af_alg: fix file descriptor leak
[gnulib.git] / ChangeLog
bloba738b5990709b0c40647db79f6bd6010f4f160cc
1 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
3         af_alg: fix file descriptor leak
4         * lib/af_alg.c (afalg_stream): Close leak.
6         af_alg: Pacify --enable-gcc-warnings on GCC 8
7         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
8         and checking to pacify gcc -Wjump-misses-init on GCC 8.
10 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
12         af_alg: Pacify --enable-gcc-warnings
13         Problem reported by Assaf Gordon in:
14         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
15         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
16         gcc -Wjump-misses-init.
17         * lib/sha512.c (shaxxx_stream): Now static.
19 2018-05-06  Bruno Haible  <bruno@clisp.org>
21         af_alg: Add ability to use Linux kernel crypto API on data in memory.
22         * lib/af_alg.h (afalg_buffer): New declaration.
23         * lib/af_alg.c (afalg_buffer): New function.
25 2018-05-06  Bruno Haible  <bruno@clisp.org>
27         af_alg: Avoid warnings.
28         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
29         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
31 2018-05-06  Bruno Haible  <bruno@clisp.org>
33         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
34         * tests/bench-digest.h: New file.
35         * tests/bench-md5.c: New file.
36         * tests/bench-sha1.c: New file.
37         * tests/bench-sha224.c: New file.
38         * tests/bench-sha256.c: New file.
39         * tests/bench-sha384.c: New file.
40         * tests/bench-sha512.c: New file.
41         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
42         tests/bench-digest.h.
43         (Depends-on): Add getrusage, gettimeofday.
44         (Makefile.am): Add variables to build bench-md5.
45         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
46         tests/bench-digest.h.
47         (Depends-on): Add getrusage, gettimeofday.
48         (Makefile.am): Add variables to build bench-sha1.
49         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
50         tests/bench-sha256.c, tests/bench-digest.h.
51         (Depends-on): Add getrusage, gettimeofday.
52         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
53         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
54         tests/bench-sha512.c, tests/bench-digest.h.
55         (Depends-on): Add getrusage, gettimeofday.
56         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
58 2018-05-06  Bruno Haible  <bruno@clisp.org>
60         af_alg: Fix a resource leak.
61         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
62         New local variable 'result'.
64 2018-05-06  Bruno Haible  <bruno@clisp.org>
66         af_alg: Fix bug with streams that are not at position 0.
67         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
68         assume that the stream is positioned at position 0.
69         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
70         of the stream.
71         * lib/md5.h (md5_stream): Likewise.
72         * lib/sha1.h (sha1_stream): Likewise.
73         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
74         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
75         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
77         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
78         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
79         stream that is not positioned at the beginning.
81 2018-05-06  Bruno Haible  <bruno@clisp.org>
83         af_alg: Add configure option to enable/disable use of Linux crypto API.
84         Suggested by Assaf Gordon <assafgordon@gmail.com>.
85         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
86         USE_LINUX_CRYPTO_API.
87         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
88         * lib/af_alg.c: Likewise.
90 2018-05-06  Bruno Haible  <bruno@clisp.org>
92         Followup to 'af_alg: New module.'.
93         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
94         * modules/crypto/sha1 (Depends-on): Likewise.
95         * modules/crypto/sha256 (Depends-on): Likewise.
96         * modules/crypto/sha512 (Depends-on): Likewise.
98 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
100         crypto/{md5,sha1,sha256,sha512}: simplify
101         * lib/md5.c (md5_stream):
102         * lib/sha1.c (sha1_stream):
103         * lib/sha256.c (shaxxx_stream):
104         Simplify, partly by assuming C99.
105         * lib/sha256.c (shaxxx_stream):
106         New function, which implements both sha256 and sha224.
107         Simplify, partly by assuming C99.
108         (sha256_stream, sha224_stream):
109         Use it to avoid code duplication, removing a FIXME.
110         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
111         Likewise.
113         af_alg: Improve comments.
114         * lib/af_alg.h: Use imperatives and tighten up wording.
116 2018-05-05  Bruno Haible  <bruno@clisp.org>
118         af_alg: Improve comments.
119         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
121 2018-05-05  Bruno Haible  <bruno@clisp.org>
123         af_alg: New module.
124         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
125         * lib/af_alg.c: Include "af_alg.h" before the other header files.
126         * lib/md5.c: Include "af_alg.h" unconditionally.
127         (md5_stream): Invoke afalg_stream unconditionally.
128         * lib/sha1.c: Include "af_alg.h" unconditionally.
129         (sha1_stream): Invoke afalg_stream unconditionally.
130         * lib/sha256.c: Include "af_alg.h" unconditionally.
131         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
132         * lib/sha512.c: Include "af_alg.h" unconditionally.
133         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
134         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
135         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
136         * modules/crypto/af_alg: New file.
137         * modules/crypto/md5 (Files): Remove files that are now in the
138         'crypto/af_alg' module.
139         (Depends-on): Add crypto/af_alg.
140         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
141         (Makefile.am): Don't mention af_alg.c here.
142         * modules/crypto/sha1 (Files): Remove files that are now in the
143         'crypto/af_alg' module.
144         (Depends-on): Add crypto/af_alg.
145         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
146         (Makefile.am): Don't mention af_alg.c here.
147         * modules/crypto/sha256 (Files): Remove files that are now in the
148         'crypto/af_alg' module.
149         (Depends-on): Add crypto/af_alg.
150         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
151         (Makefile.am): Don't mention af_alg.c here.
152         * modules/crypto/sha512 (Files): Remove files that are now in the
153         'crypto/af_alg' module.
154         (Depends-on): Add crypto/af_alg.
155         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
156         (Makefile.am): Don't mention af_alg.c here.
158 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
160         crypto tests: pacify GCC
161         * tests/test-digest.h (test_digest_on_files):
162         Don’t assume digest size fits in int (!).
164         af_alg: minor style improvements
165         * lib/af_alg.c (afalg_stream): Prefer C99 style
166         decl-after-statement, since we’re already assuming C99.  Clarify
167         by strengthening the bind test and omit unnecessary assignment.
169 2018-05-05  Bruno Haible  <bruno@clisp.org>
171         af_alg: Fix bug on empty files.
172         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
173         stream is empty.
175 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
177         sys-limits.h: new file for crypto and safe I/O
178         * lib/af_alg.c: Include sys-limits.h.
179         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
180         (afalg_stream): Also reject negative sizes for sendfile; they
181         should not happen and the code is a bit cleaner and faster this way.
182         * lib/safe-read.c: Include sys-limits.h.
183         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
184         * lib/sys-limits.h: New file, with values and commentary derived
185         from the old safe-read.c and from GNU Emacs sysdep.c.
186         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
187         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
188         Add lib/sys-limits.h to Files section.
190 2018-05-05  Bruno Haible  <bruno@clisp.org>
192         af_alg: Improve function signature.
193         * lib/af_alg.h (afalg_stream): Swap second and third argument.
194         * lib/af_alg.c (afalg_stream): Likewise.
195         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
197 2018-05-05  Bruno Haible  <bruno@clisp.org>
199         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
200         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
201         * modules/crypto/sha1 (Depends-on): Likewise.
202         * modules/crypto/sha256 (Depends-on): Likewise.
203         * modules/crypto/sha512 (Depends-on): Likewise.
205 2018-05-05  Bruno Haible  <bruno@clisp.org>
207         crypto/{md5,sha1,sha256,sha512}: Fix module description.
208         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
209         * modules/crypto/sha1 (Depends-on): Likewise.
210         * modules/crypto/sha256 (Depends-on): Likewise.
211         * modules/crypto/sha512 (Depends-on): Likewise.
213 2018-05-05  Bruno Haible  <bruno@clisp.org>
215         af_alg: Add documentation.
216         * lib/af_alg.h: Add comments.
218 2018-05-05  Bruno Haible  <bruno@clisp.org>
220         sha512: Add tests.
221         * tests/test-sha512.c: New file.
222         * modules/crypto/sha512-tests: New file.
224 2018-05-05  Bruno Haible  <bruno@clisp.org>
226         sha256: Add tests.
227         * tests/test-sha256.c: New file.
228         * modules/crypto/sha256-tests: New file.
230 2018-05-05  Bruno Haible  <bruno@clisp.org>
232         sha1 tests: Add test for sha1_stream.
233         * tests/test-sha1.c: Include test-digest.h.
234         (main): Invoke test_digest_on_files on 'sha1_stream'.
235         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
237 2018-05-05  Bruno Haible  <bruno@clisp.org>
239         md5 tests: Add test for md5_stream.
240         * tests/test-digest.h: New file.
241         * tests/test-md5.c: Include test-digest.h.
242         (main): Invoke test_digest_on_files on 'md5_stream'.
243         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
245 2018-04-28  Matteo Croce  <mcroce@redhat.com>
247         md5sum: Use AF_ALG when available.
248         * lib/md5.c: Include af_alg.h.
249         (md5_stream): Use afalg_stream when available.
250         * modules/crypto/md5 (Files): Add the af_alg files.
251         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
252         (Makefile.am): Add af_alg.c.
254 2018-04-28  Matteo Croce  <mcroce@redhat.com>
256         sha512sum: Use AF_ALG when available.
257         * lib/sha512.c: Include af_alg.h.
258         (sha512_stream, sha384_stream): Use afalg_stream when available.
259         * modules/crypto/sha512 (Files): Add the af_alg files.
260         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
261         (Makefile.am): Add af_alg.c.
263 2018-04-28  Matteo Croce  <mcroce@redhat.com>
265         sha256sum: Use AF_ALG when available.
266         * lib/sha256.c: Include af_alg.h.
267         (sha256_stream, sha224_stream): Use afalg_stream when available.
268         * modules/crypto/sha256 (Files): Add the af_alg files.
269         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
270         (Makefile.am): Add af_alg.c.
272 2018-04-28  Matteo Croce  <mcroce@redhat.com>
274         sha1sum: Use AF_ALG when available.
275         * lib/af_alg.h: New file.
276         * lib/af_alg.c: New file.
277         * lib/sha1.c: Include af_alg.h.
278         (sha1_stream): Use afalg_stream when available.
279         * m4/linux-if-alg.m4: New file.
280         * modules/crypto/sha1 (Files): Add the new files.
281         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
282         (Makefile.am): Add af_alg.c.
284 2018-05-05  Bruno Haible  <bruno@clisp.org>
286         all: Replace more http URLs by https URLs.
287         * lib/localename.c: Use https: URL.
288         * lib/timespec.h: Likewise.
290 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
292         maint: port more modules to GCC 8
293         * lib/dirname.h (base_name):
294         * lib/exclude.h (new_exclude):
295         * lib/xstrndup.h (xstrndup):
296         Add malloc attribute.
297         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
298         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
299         This pacifies GCC 8.
300         * m4/gnulib-common.m4 (gl_COMMON_BODY):
301         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
303 2018-05-03  Bruno Haible  <bruno@clisp.org>
305         Simplify code. Drop support for Borland C++ on Windows.
306         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
307         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
308         'defined _WIN32'.
309         * lib/canonicalize-lgpl.c: Likewise.
310         * lib/classpath.c: Likewise.
311         * lib/clean-temp.c: Likewise.
312         * lib/csharpexec.c: Likewise.
313         * lib/ctime.c: Likewise.
314         * lib/dosname.h: Likewise.
315         * lib/dup2.c: Likewise.
316         * lib/errno.in.h: Likewise.
317         * lib/error.c: Likewise.
318         * lib/euidaccess.c: Likewise.
319         * lib/execute.c: Likewise.
320         * lib/fcntl.in.h: Likewise.
321         * lib/fcntl.c: Likewise.
322         * lib/filename.h: Likewise.
323         * lib/findprog.c: Likewise.
324         * lib/flock.c: Likewise.
325         * lib/fopen.c: Likewise.
326         * lib/freopen.c: Likewise.
327         * lib/fstat.c: Likewise.
328         * lib/fsync.c: Likewise.
329         * lib/gc-gnulib.c: Likewise.
330         * lib/get-rusage-data.c: Likewise.
331         * lib/getaddrinfo.c: Likewise.
332         * lib/getdelim.c: Likewise.
333         * lib/getdtablesize.c: Likewise.
334         * lib/gethostname.c: Likewise.
335         * lib/getlogin.c: Likewise.
336         * lib/getlogin_r.c: Likewise.
337         * lib/getopt.c: Likewise.
338         * lib/getpagesize.c: Likewise.
339         * lib/getpass.c: Likewise.
340         * lib/getrusage.c: Likewise.
341         * lib/gettimeofday.c: Likewise.
342         * lib/glob.c: Likewise.
343         * lib/inttypes.in.h: Likewise.
344         * lib/isapipe.c: Likewise.
345         * lib/javaexec.c: Likewise.
346         * lib/link.c: Likewise.
347         * lib/localcharset.c: Likewise.
348         * lib/localename.h: Likewise.
349         * lib/localename.c: Likewise.
350         * lib/localtime.c: Likewise.
351         * lib/lseek.c: Likewise.
352         * lib/mbsinit.c: Likewise.
353         * lib/mkdir.c: Likewise.
354         * lib/msvc-nothrow.h: Likewise.
355         * lib/nanosleep.c: Likewise.
356         * lib/nl_langinfo.c: Likewise.
357         * lib/nonblocking.c: Likewise.
358         * lib/nproc.c: Likewise.
359         * lib/open.c: Likewise.
360         * lib/openpty.c: Likewise.
361         * lib/pathmax.h: Likewise.
362         * lib/pipe-filter-aux.c: Likewise.
363         * lib/pipe-filter-gi.c: Likewise.
364         * lib/pipe-filter-ii.c: Likewise.
365         * lib/pipe.c: Likewise.
366         * lib/pipe2.c: Likewise.
367         * lib/poll.c: Likewise.
368         * lib/popen.c: Likewise.
369         * lib/posix_openpt.c: Likewise.
370         * lib/printf-parse.c: Likewise.
371         * lib/progreloc.c: Likewise.
372         * lib/putenv.c: Likewise.
373         * lib/read.c: Likewise.
374         * lib/relocatable.c: Likewise.
375         * lib/rename.c: Likewise.
376         * lib/same-inode.h: Likewise.
377         * lib/secure_getenv.c: Likewise.
378         * lib/select.c: Likewise.
379         * lib/sethostname.c: Likewise.
380         * lib/setlocale.c: Likewise.
381         * lib/sigaction.c: Likewise.
382         * lib/sigprocmask.c: Likewise.
383         * lib/sleep.c: Likewise.
384         * lib/spawn-pipe.h: Likewise.
385         * lib/spawn-pipe.c: Likewise.
386         * lib/spawni.c: Likewise.
387         * lib/stat-time.h: Likewise.
388         * lib/stat-w32.c: Likewise.
389         * lib/stat.c: Likewise.
390         * lib/stdio.in.h: Likewise.
391         * lib/stdio-impl.h: Likewise.
392         * lib/stdio-read.c: Likewise.
393         * lib/stdio-write.c: Likewise.
394         * lib/stdlib.in.h: Likewise.
395         * lib/strerror_r.c: Likewise.
396         * lib/strftime-fixes.c: Likewise.
397         * lib/sys_stat.in.h: Likewise.
398         * lib/sys_types.in.h: Likewise.
399         * lib/sys_wait.in.h : Likewise.
400         * lib/system-quote.h: Likewise.
401         * lib/system-quote.c: Likewise.
402         * lib/tmpdir.c: Likewise.
403         * lib/tzset.c: Likewise.
404         * lib/uname.c: Likewise.
405         * lib/unistd.in.h: Likewise.
406         * lib/utime.in.h: Likewise.
407         * lib/utime.c: Likewise.
408         * lib/utimecmp.c: Likewise.
409         * lib/utimens.c: Likewise.
410         * lib/vasnprintf.c: Likewise.
411         * lib/vma-iter.h: Likewise.
412         * lib/vma-iter.c: Likewise.
413         * lib/wait-process.c: Likewise.
414         * lib/wcsftime.c: Likewise.
415         * lib/wctype.in.h: Likewise.
416         * lib/write.c: Likewise.
417         * tests/nap.h: Likewise.
418         * tests/test-cloexec.c: Likewise.
419         * tests/test-dup-safer.c: Likewise.
420         * tests/test-dup2.c: Likewise.
421         * tests/test-dup3.c: Likewise.
422         * tests/test-fcntl.c: Likewise.
423         * tests/test-get-rusage-data.c: Likewise.
424         * tests/test-getaddrinfo.c: Likewise.
425         * tests/test-getlogin.h: Likewise.
426         * tests/test-isatty.c: Likewise.
427         * tests/test-localename.c: Likewise.
428         * tests/test-mbrtowc-w32.c: Likewise.
429         * tests/test-nonblocking.c: Likewise.
430         * tests/test-nonblocking-pipe-main.c: Likewise.
431         * tests/test-nonblocking-socket-main.c: Likewise.
432         * tests/test-nonblocking-socket.h: Likewise.
433         * tests/test-pipe.c: Likewise.
434         * tests/test-pipe2.c: Likewise.
435         * tests/test-poll.c: Likewise.
436         * tests/test-pthread_sigmask1.c: Likewise.
437         * tests/test-select.h: Likewise.
438         * tests/test-sethostname2.c: Likewise.
439         * tests/test-sigprocmask.c: Likewise.
440         * tests/test-spawn-pipe-child.c: Likewise.
441         * tests/test-stat-time.c: Likewise.
442         * tests/test-system-quote-main.c: Likewise.
443         * tests/test-utimens-common.h: Likewise.
444         * tests/test-wcrtomb-w32.c: Likewise.
445         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
446         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
447         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
448         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
449         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
450         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
451         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
452         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
453         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
454         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
455         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
456         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
457         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
458         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
459         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
460         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
462 2018-05-02  Bruno Haible  <bruno@clisp.org>
464         localename: Fix test failures on mingw.
465         * lib/localename.c (gl_locale_name_thread): Remove code specific to
466         native Windows.
467         (gl_locale_name_posix): Move code specific to native Windows here.
468         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
469         Accept result without charset suffix, as it appears on mingw.
471 2018-04-28  Paul Smith  <psmith@gnu.org>
473         bootstrap: Avoid gnulib operations if not needed
474         * build-aux/bootstrap: Remove unused variable gnulib_mk.
475         Set $gnulib_extra_files early so it can be overridden in .conf.
476         Remove redundant --import flag from $gnulib_tool_options.
477         Set $use_gnulib to false if no gnulib modules or files are needed.
478         If $use_gnulib is false, don't do anything related to gnulib.
479         A lot of this is just whitespace (indentation) changes.
481 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
483         manywarnings: port to GCC 8.0
484         * build-aux/gcc-warning.spec: Add -Wcatch-value,
485         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
486         fact that the GCC help message now mentions operands for
487         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
488         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
489         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
490         and -Wunused-const-variable.
491         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
492         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
493         -Wmissing-attributes, -Wmultistatement-macros,
494         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
495         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
497 2018-04-24  Bruno Haible  <bruno@clisp.org>
499         sys_socket: Make SO_REUSEPORT available across platforms.
500         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
501         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
502         * doc/posix-headers/sys_socket.texi: Mention the issue.
503         * tests/test-poll.c (SO_REUSEPORT): Remove.
504         * tests/test-select.h: Include <sys/socket.h>.
505         (SO_REUSEPORT): Remove.
506         * modules/select-tests (Depends-on): Add 'sys_socket'.
508 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
510         localcharset: short-circuit the search for an alias on a Mac
511         * lib/localcharset.c (get_charset_aliases): Add a tautological
512         UTF-8 entry to speed up the search for this case.
513         Most machines default to a UTF-8 locale nowadays, so begin the
514         list of aliases with a dummy UTF-8 entry so it will be found
515         immediately and a time-consuming search through the rest of
516         the list is avoided.
518 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
520         fts: add comment
521         * lib/fts.c (fts_build): Explain why ==, not >.
522         See remark by Bernhard Voelker in:
523         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
525         fts: fix bug in find across filesystems
526         This fixes a bug I introduced last summer.
527         Problem reported by Kamil Dudka in:
528         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
529         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
530         (leaf_optimization):
531         New arg for file descriptor.  All callers changed.
532         (fts_build): Check for whether inodes should be sorted
533         before closing the directory.
535 2018-04-07  Bruno Haible  <bruno@clisp.org>
537         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
538         Reported by Genki Sky <sky@genki.is>.
539         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
540         version 0.9.10 or newer.
541         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
542         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
543         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
544         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
545         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
547 2018-04-07  Bruno Haible  <bruno@clisp.org>
549         execute: Update comment.
550         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
552 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
554         fts: treat CIFS like NFS
555         Problem reported by Kamil Dudka in:
556         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
557         * lib/fts.c (S_MAGIC_CIFS): New macro.
558         (dirent_inode_sort_may_be_useful, leaf_optimization):
559         Treat CIFS like NFS.
561 2018-03-28  Bruno Haible  <bruno@clisp.org>
563         c-stack: Fix possible build failure on some platforms.
564         * lib/c-stack.c (die): Define whenever this function is referenced.
566 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
568         time_rz: fix workaround for Mac OS X 10.6 infloop
569         Problems reported by Charles A. Roelli (Bug#27736#117).
570         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
571         Also, discard output, which clutters the 'configure' log.
573 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
575         havelib: port to Solaris 10 /bin/sh
576         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
577         instead of '! test EXPR'.
579 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
581         time_rz: work around Mac OS X 10.6 infloop
582         * doc/posix-functions/localtime.texi:
583         * doc/posix-functions/localtime_r.texi: Mention the bug.
584         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
585         better to fix localtime and localtime_r instead, but that would be
586         more work and is not needed to fix the Emacs problem.
587         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
589 2018-03-24  Jim Meyering  <meyering@fb.com>
591         test-version-etc.sh: don't use diff directly: use init.sh's compare
592         We'd rather not sacrifice readable "diff -u" output even for
593         "diff -c" output (not supported by busybox) or for even less
594         readable ed-style "diff" output.  So use init.sh's compare function
595         * tests/test-version-etc.sh: Source init.sh and add "." to path.
596         Remove "./" from invocation of test-version-etc, so we use path.
597         And s/diff/compare/.
598         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
599         to get init.sh.
600         Prompted by Eric Blake's comments in
601         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
603 2018-03-24  Bruno Haible  <bruno@clisp.org>
605         javacomp-script, javacomp: Add support for Java 10.
606         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
607         target-version 10.
608         * lib/javaversion.h: Update comments.
609         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
610         source_version_index, get_goodcode_snippet, get_failcode_snippet,
611         TARGET_VERSION_BOUND, target_version_index,
612         corresponding_classfile_version): Accept source_version 10 and
613         target_version 10.
614         * lib/javacomp.h: Update comments accordingly.
616 2018-03-24  Bruno Haible  <bruno@clisp.org>
618         javacomp-script, javacomp: Update comments.
619         * m4/javacomp.m4: Update comments regarding gcj.
620         * lib/javacomp.h: Likewise.
622 2018-03-24  Bruno Haible  <bruno@clisp.org>
624         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
625         * lib/javaversion.h: Update comments.
626         * lib/javacomp.h: Likewise.
627         * lib/javacomp.c (default_target_version, source_version_index,
628         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
629         "1.9".
630         (TARGET_VERSION_BOUND): Bump to 9.
631         (target_version_index, corresponding_classfile_version): Recognize "9"
632         instead of "1.9".
633         (get_source_version_for_javac): New function.
634         (is_envjavac_nongcj_usable, is_javac_usable): Add
635         source_version_for_javac argument.
636         (compile_java_class): Determine and pass source_version_for_javac.
637         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
638         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
639         appropriate.
641 2018-03-23  Jim Meyering  <meyering@fb.com>
643         test-version-etc.sh: port to diff without -c
644         * tests/test-version-etc.sh: Don't use diff's -c option.
645         This caused spurious test failure on Alpine Linux, which
646         uses busybox's diff. Reported by Assaf Gordon in
647         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
649 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
651         c-stack: port to recent GCC build
652         Problem reported by The Fireplace (Bug#30913).
653         * lib/c-stack.c (die): Define only if used.
655 2018-03-20  Bruno Haible  <bruno@clisp.org>
657         euidaccess: Port to native Windows.
658         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
659         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
661 2018-03-19  Bruno Haible  <bruno@clisp.org>
663         javacomp: Add support for Java 7, 8, 9.
664         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
665         source_version_index, get_goodcode_snippet, get_failcode_snippet,
666         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
667         and target_version 1,7, 1.8, 1.9.
668         * lib/javacomp.h: Update comments accordingly.
670 2018-03-19  Bruno Haible  <bruno@clisp.org>
672         javacomp-script: Add support for Java 9.
673         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
674         target-version 1.9.
676 2018-03-16  Bruno Haible  <bruno@clisp.org>
678         glob: Don't compile replacements on recent glibc systems.
679         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
680         REPLACE_GLOB is 0, include the system's <glob.h> and use
681         _GL_CXXALIAS_SYS.
682         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
683         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
684         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
685         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
686         Remove snippet/warn-on-use.
687         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
688         (Makefile.am): Create glob.h always. Update list of substitutions in
689         glob.h. Don't depend on $(WARN_ON_USE_H).
691 2018-03-16  Bruno Haible  <bruno@clisp.org>
693         glob: Fix link error on native Windows.
694         * modules/glob (Depends-on): Add 'lstat'.
696 2018-03-15  Bruno Haible  <bruno@clisp.org>
698         glob: Fix compilation error in C++ mode.
699         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
701 2018-03-15  Bruno Haible  <bruno@clisp.org>
703         host-cpu-c-abi: Support for RISC-V CPU.
704         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
705         riscv32 and riscv64 ABIs.
706         References:
707         https://github.com/riscv/riscv-toolchain-conventions
708         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
709         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
711 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
713         fflush: be more paranoid about libio.h change
714         Suggested by Eli Zaretskii in:
715         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
716         * lib/fbufmode.c (fbufmode):
717         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
718         (disable_seek_optimization, rpl_fflush):
719         * lib/fpending.c (__fpending):
720         * lib/fpurge.c (fpurge):
721         * lib/freadable.c (freadable):
722         * lib/freadahead.c (freadahead):
723         * lib/freading.c (freading):
724         * lib/freadptr.c (freadptr):
725         * lib/freadseek.c (freadptrinc):
726         * lib/fseeko.c (fseeko):
727         * lib/fseterr.c (fseterr):
728         * lib/fwritable.c (fwritable):
729         * lib/fwriting.c (fwriting):
730         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
732 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
734         maint: write-file-hooks -> before-save-hook
735         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
736         it's time to use the recommended replacement.
737         Problem reported by Glenn Morris in:
738         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
739         * build-aux/announce-gen, build-aux/bootstrap:
740         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
741         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
742         * build-aux/gnu-web-doc-update, build-aux/gnupload:
743         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
744         * build-aux/update-copyright, build-aux/useless-if-before-free:
745         * build-aux/vc-list-files:
746         Update hook usage for files where Gnulib is the canonical source.
748 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
750         binary-io: pacify gcc -Wunused-parameter
751         Problem reported by Reuben Thomas in:
752         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
753         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
754         Use _GL_UNUSED where appropriate.
756         fflush: adjust to glibc 2.28 libio.h removal
757         Problem reported by Daniel P. Berrangé in:
758         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
759         * lib/fbufmode.c (fbufmode):
760         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
761         (disable_seek_optimization, rpl_fflush):
762         * lib/fpending.c (__fpending):
763         * lib/fpurge.c (fpurge):
764         * lib/freadable.c (freadable):
765         * lib/freadahead.c (freadahead):
766         * lib/freading.c (freading):
767         * lib/freadptr.c (freadptr):
768         * lib/freadseek.c (freadptrinc):
769         * lib/fseeko.c (fseeko):
770         * lib/fseterr.c (fseterr):
771         * lib/fwritable.c (fwritable):
772         * lib/fwriting.c (fwriting):
773         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
774         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
775         Define if not already defined.
777 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
779         environ: fix link error on 32-bit Cygwin
780         Problem reported for GNU Emacs by Ken Brown in:
781         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
782         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
784 2018-02-24  Bruno Haible  <bruno@clisp.org>
786         mbrtowc tests: Fix regression on glibc.
787         Reported by Bernhard Voelker.
788         * tests/test-mbrtowc.c (main): Fix expected value of wc.
790 2018-02-24  Bruno Haible  <bruno@clisp.org>
792         striconveha, uniconv/*: Avoid test failures on musl libc.
793         * tests/iconvsupport.c: New file.
794         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
795         does not support the ISO-2022-JP-2 encoding.
796         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
797         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
798         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
799         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
800         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
801         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
802         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
803         (Makefile.am): Link test-striconveha with iconvsupport.o.
804         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
805         tests/iconvsupport.c.
806         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
807         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
808         tests/iconvsupport.c.
809         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
810         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
811         tests/iconvsupport.c.
812         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
813         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
814         tests/iconvsupport.c.
815         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
816         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
817         tests/iconvsupport.c.
818         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
819         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
820         tests/iconvsupport.c.
821         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
823 2018-02-24  Bruno Haible  <bruno@clisp.org>
825         localename: Add support for musl libc.
826         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
827         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
828         on Linux platforms which define NL_LOCALE_NAME.
830 2018-02-24  Bruno Haible  <bruno@clisp.org>
832         mbrtowc tests: Don't make assumptions about the charset the C locale.
833         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
834         particular mapping in the C locale.
836 2018-02-24  Bruno Haible  <bruno@clisp.org>
838         ptsname_r: Don't expect that this function sets errno.
839         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
840         from ptsname_r().
841         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
843 2018-02-23  Bruno Haible  <bruno@clisp.org>
845         xmalloca: pacify gcc -Wbad-function-cast
846         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
848 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
850         nl_langinfo: pacify gcc -Wunused-function
851         * lib/nl_langinfo.c (ctype_codeset): Do not define if
852         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
853         this case.  Without this change, I got a diagnostic when building
854         coreutils on Fedora 27 with gcc 7.3.1 20180130.
856         same: pacify gcc -Wunused-variable
857         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
858         Omit unused variable.
860         malloca: pacify gcc -Wbad-function-cast
861         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
862         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
863         To pacify GCC, I had to cast alloca’s result to some type other
864         than void * before casting that to uintptr_t.
866 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
868         utimecmp: new function utimecmpat
869         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
870         Do not include utimens.h.
871         (utimecmpat): New function, generalizing utimecmp.
872         (utimecmp): Now a thin layer around utimecmpat.
873         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
874         utimensat instead of on lstat and utimens.
876         same: new function same_nameat
877         * lib/same.c: Include fcntl.h.
878         * lib/same.c (same_nameat): New function, generalizing same_name.
879         (same_name): Now a thin layer around same_nameat.
880         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
881         * modules/same (Depends-on): Depend on fstatat, openat.
883 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
885         warnings: Add support for Objective C.
886         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
887         macro.
889 2018-02-17  Bruno Haible  <bruno@clisp.org>
891         lock: Fix test-once1 crash on FreeBSD11.
892         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
893         'pthread_create', not 'pthread_cancel'.
895 2018-02-17  Bruno Haible  <bruno@clisp.org>
897         lock: Add test of gl_once.
898         * tests/test-once.c: New file.
899         * modules/lock-tests (Files): Add it.
900         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
902 2018-02-17  Bruno Haible  <bruno@clisp.org>
904         thread: Fix compilation error on IRIX.
905         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
906         needed; include it outside the C++ extern "C" {} block.
907         * doc/posix-headers/pthread.texi: Mention the problem with
908         pthread_atfork on IRIX.
910 2018-02-04  Bruno Haible  <bruno@clisp.org>
912         nl_langinfo: Override the system's nl_langinfo() when needed.
913         Reported by Jim Meyering.
914         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
915         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
917 2018-02-04  Bruno Haible  <bruno@clisp.org>
919         signal-h, monetary, strings: Fix build failure in some cases.
920         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
921         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
922         as delimiter in sed command, not '|'.
923         * modules/monetary (Makefile.am): Likewise.
924         * modules/strings (Makefile.am): Likewise.
926 2018-02-03  Jim Meyering  <meyering@fb.com>
928         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
929         * top/maint.mk (sc_file_system): Don't complain about
930         "/proc/filesystems".
932 2018-02-03  Bruno Haible  <bruno@clisp.org>
934         stdlib: Fix compilation error on OpenIndiana.
935         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
936         <sys/time.h>.
937         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
938         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
940 2018-02-03  Bruno Haible  <bruno@clisp.org>
942         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
943         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
944         and use $EGREP instead of 'grep -E'.
945         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
946         'grep -E'.
948 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
950         malloca: Add a compile-time verification.
951         * lib/malloca.c (small_t): Verify that it is wide enough.
952         * modules/malloca (Depends-on): Add verify.
954 2018-02-02  Bruno Haible  <bruno@clisp.org>
956         malloca: Add an argument check.
957         Suggested by Paul Eggert.
958         * lib/malloca.c (freea): Check against an invalid argument.
960 2018-02-02  Bruno Haible  <bruno@clisp.org>
962         localename: Add support for OpenIndiana.
963         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
964         Solaris 11 variants with uselocale() but without getlocalename_l().
966 2018-02-02  Bruno Haible  <bruno@clisp.org>
968         malloca, xmalloca: Make multithread-safe.
969         Reported by Florian Weimer <fweimer@redhat.com>.
970         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
971         * lib/malloca.h (malloca): In the stack allocation case, return a
972         pointer that is a multiple of 2 * sa_alignment_max.
973         (sa_increment): Remove enum item.
974         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
975         a pointer that is a multiple of 2 * sa_alignment_max.
976         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
977         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
978         HASH_TABLE_SIZE, mmalloca_results): Remove.
979         (small_t): New type.
980         (mmalloca, free): Rewritten.
981         * lib/malloca.valgrind: Remove file.
982         * modules/malloca (Files): Remove it.
983         (Depends-on): Remove verify.
985 2018-01-31  Bruno Haible  <bruno@clisp.org>
987         environ: Fix link error on 64-bit Cygwin.
988         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
989         __declspec(dllimport) attribute.
990         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
992 2018-01-30  Bruno Haible  <bruno@clisp.org>
994         get-rusage-data: Add support for Minix 3.
995         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
997 2018-01-30  Bruno Haible  <bruno@clisp.org>
999         vma-iter: Add support for Minix 3.
1000         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
1001         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
1003 2018-01-27  Bruno Haible  <bruno@clisp.org>
1005         Fix malfunction of socket functions on HP-UX in 64-bit mode.
1006         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
1007         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
1008         _HPUX_ALT_XOPEN_SOCKET_API.
1009         * modules/accept (Depends-on): Add 'extensions'.
1010         * modules/getpeername (Depends-on): Likewise.
1011         * modules/getsockname (Depends-on): Likewise.
1012         * modules/getsockopt (Depends-on): Likewise.
1013         * modules/recvfrom (Depends-on): Likewise.
1014         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
1015         * doc/posix-functions/getpeername.texi: Likewise.
1016         * doc/posix-functions/getsockname.texi: Likewise.
1017         * doc/posix-functions/getsockopt.texi: Likewise.
1018         * doc/posix-functions/recvfrom.texi: Likewise.
1020 2018-01-27  Bruno Haible  <bruno@clisp.org>
1022         getsockname tests: More tests.
1023         * tests/test-getsockname.c (open_server_socket): New function, mostly
1024         copied from test-poll.c.
1025         (main): Check that getsockname fills in addr.
1026         * modules/getsockname-tests (Depends-on): Add the necessary
1027         dependencies.
1028         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
1030 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
1032         manywarnings: fix maintainer comment
1033         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
1034         it does not mistakenly think that ‘-1)’ is an option.
1036 2018-01-26  Bruno Haible  <bruno@clisp.org>
1038         langinfo: Fix last commit.
1039         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
1040         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
1042 2018-01-24  Bruno Haible  <bruno@clisp.org>
1044         langinfo, nl_langinfo: Add support for alternative month names.
1045         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
1046         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
1047         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
1048         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
1049         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
1050         * doc/posix-functions/nl_langinfo.texi: Likewise.
1052 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
1054         Merge strftime.c changes from glibc
1055         This incorporates:
1056         2017-11-14 [BZ #10871] Implement alternative month names
1057         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
1058         2017-06-20 Use locale_t, not __locale_t, throughout glibc
1059         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
1060         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
1061         Use locale_t, not __locale_t.
1062         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
1063         (__strftime_internal): Add support for alternate months.
1065 2018-01-23  Bruno Haible  <bruno@clisp.org>
1067         doc: Mention another prerequisite for using Gnulib.
1068         Reported at <https://stackoverflow.com/questions/48378214/>.
1069         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
1070         AC_CONFIG_HEADERS.
1072 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
1074         build: GuixSD doesn't have /bin/bash
1075         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
1077 2018-01-21  Bruno Haible  <bruno@clisp.org>
1079         Avoid test failures on Microsoft Windows Subsystem for Linux.
1080         * tests/test-fcntl.c (main): Allow a different errno.
1081         * tests/test-rename.h (test_rename): Likewise.
1082         * tests/test-renameat.c (main): Likewise.
1083         * tests/test-renameat2.c (main): Likewise.
1085 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
1087         filenamecat: make base a suffix of result
1088         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
1089         (mfile_name_concat): Always make BASE a suffix of the result, as
1090         cp expects this.  To implement this, separate with '.' instead of
1091         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
1092         * tests/test-filenamecat.c (main): Adjust tests to match
1093         current behavior.  Check that BASE_IN_RESULT points to
1094         a copy of BASE and is a suffix of the resultk, and that DIR
1095         is a prefix of the result that is no longer than the prefix
1096         indicated by BASE_IN_RESULT.
1098 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
1100         update-copyright: Handle use of ©
1101         * build-aux/update-copyright ($circle_c_re): Update regex to
1102         handle use of © in headers.
1104 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
1106         Fix -Wundef warning in user-included header lib/cdefs.h.
1107         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
1109 2018-01-04  Bruno Haible  <bruno@clisp.org>
1111         pthread_sigmask: Avoid compilation error on mingw.
1112         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
1113         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
1114         macro.
1116 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
1118         test-framework-sh: ‘ps -ef’, not ‘ps ef’
1119         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
1120         Suggested by Bob Proulx (Bug#29968).
1121         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
1123 2018-01-02  Eric Blake  <eblake@redhat.com>
1125         stat-time: silence -Wunused-parameter regression
1126         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
1127         Prefer attribute over cast-to-void.
1128         (stat_time_normalize): Mark st as potentially unused.
1130 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
1132         test-framework-sh: avoid netstat
1133         Problem reported by Kristýna Streitová (Bug#29947).
1134         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
1135         deprecated on SuSE and it's not that important anyway.
1137 2018-01-01  Jim Meyering  <meyering@fb.com>
1139         update-copyright: add code to handle more special cases
1140         After running "make update-copyright" this year, five files
1141         required additional manual changes.  Automate those adjustments
1142         for next year.
1143         * Makefile (_year_and_prev): Define.
1144         (update-copyright): Add perl commands to induce this year's post-
1145         update-copyright adjustments.
1147 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
1149         version-etc: new year
1150         * build-aux/gendocs.sh (version):
1151         * doc/gendocs_template:
1152         * doc/gendocs_template_min:
1153         * doc/gnulib.texi:
1154         * lib/version-etc.c (COPYRIGHT_YEAR):
1155         Update copyright dates by hand in templates and the like.
1157         maint: fix 'make update-copyright'
1158         * Makefile (update-copyright): Adjust to 2016-11-23 change
1159         to config/srclist-update, which changed the format of srclist.txt.
1161 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
1163         chdir-safer: remove this module
1164         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
1165         * NEWS: Document removal.
1166         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
1167         * modules/chdir-safer: Remove these files.
1169 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
1171         Add cross-compilation results for GNU/Hurd.
1172         * m4/calloc.m4: Add GNU/Hurd guess.
1173         * m4/cbrtl.m4: Likewise.
1174         * m4/ceil.m4: Likewise.
1175         * m4/ceilf.m4: Likewise.
1176         * m4/ceill.m4: Likewise.
1177         * m4/chown.m4: Likewise.
1178         * m4/duplocale.m4: Likewise.
1179         * m4/exp2l.m4: Likewise.
1180         * m4/expm1.m4: Likewise.
1181         * m4/fchdir.m4: Likewise.
1182         * m4/floor.m4: Likewise.
1183         * m4/floorf.m4: Likewise.
1184         * m4/fmod.m4: Likewise.
1185         * m4/fmodf.m4: Likewise.
1186         * m4/fmodl.m4: Likewise.
1187         * m4/getcwd.m4: Likewise.
1188         * m4/getgroups.m4: Likewise.
1189         * m4/gettimeofday.m4: Likewise.
1190         * m4/hypot.m4: Likewise.
1191         * m4/hypotf.m4: Likewise.
1192         * m4/hypotl.m4: Likewise.
1193         * m4/link-follow.m4: Likewise.
1194         * m4/link.m4: Likewise.
1195         * m4/linkat.m4: Likewise.
1196         * m4/log.m4: Likewise.
1197         * m4/log10.m4: Likewise.
1198         * m4/log10f.m4: Likewise.
1199         * m4/log1p.m4: Likewise.
1200         * m4/log1pf.m4: Likewise.
1201         * m4/log1pl.m4: Likewise.
1202         * m4/log2.m4: Likewise.
1203         * m4/log2f.m4: Likewise.
1204         * m4/logf.m4: Likewise.
1205         * m4/lstat.m4: Likewise.
1206         * m4/malloc.m4: Likewise.
1207         * m4/mbrlen.m4: Likewise.
1208         * m4/mbrtowc.m4: Likewise.
1209         * m4/mkdir.m4: Likewise.
1210         * m4/mkfifo.m4: Likewise.
1211         * m4/mknod.m4: Likewise.
1212         * m4/mkstemp.m4: Likewise.
1213         * m4/modf.m4: Likewise.
1214         * m4/modff.m4: Likewise.
1215         * m4/modfl.m4: Likewise.
1216         * m4/printf.m4: Likewise.
1217         * m4/pselect.m4: Likewise.
1218         * m4/ptsname.m4: Likewise.
1219         * m4/putenv.m4: Likewise.
1220         * m4/readlink.m4: Likewise.
1221         * m4/realloc.m4: Likewise.
1222         * m4/remainder.m4: Likewise.
1223         * m4/remainderf.m4: Likewise.
1224         * m4/remainderl.m4: Likewise.
1225         * m4/rmdir.m4: Likewise.
1226         * m4/round.m4: Likewise.
1227         * m4/roundf.m4: Likewise.
1228         * m4/roundl.m4: Likewise.
1229         * m4/select.m4: Likewise.
1230         * m4/setenv.m4: Likewise.
1231         * m4/signbit.m4: Likewise.
1232         * m4/sleep.m4: Likewise.
1233         * m4/stat.m4: Likewise.
1234         * m4/strerror.m4: Likewise.
1235         * m4/strtok_r.m4: Likewise.
1236         * m4/symlink.m4: Likewise.
1237         * m4/symlinkat.m4: Likewise.
1238         * m4/trunc.m4: Likewise.
1239         * m4/truncf.m4: Likewise.
1240         * m4/truncl.m4: Likewise.
1241         * m4/tzset.m4: Likewise.
1242         * m4/ungetc.m4: Likewise.
1243         * m4/usleep.m4: Likewise.
1244         * m4/wcwidth.m4: Likewise.
1246 2017-12-28  Bruno Haible  <bruno@clisp.org>
1248         gnulib-tool: Make --conditional-dependencies work better.
1249         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
1250         * gnulib-tool (Options): Don't reject the combination of
1251         --conditional-dependencies with --with-tests.
1252         (func_emit_autoconf_snippets): Add argument referenceable_modules.
1253         Don't reference $modules.
1254         (func_import, func_create_testdir): Pass it.
1256 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
1258         regex: use re_malloc etc. consistently
1259         Problem and original patch reported by Arnold Robbins in:
1260         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
1261         * lib/regcomp.c (re_comp):
1262         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
1263         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
1265 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
1266             Paul Eggert  <eggert@cs.ucla.edu>
1268         glob: Silence warning about void pointer arithmetic.
1269         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
1270         arithmetic.
1272 2017-12-15  Bruno Haible  <bruno@clisp.org>
1274         spawn-pipe: Silence a clang warning.
1275         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
1276         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
1277         in this file.
1279 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
1281         explicit_bzero: port to macOS + Clang 9.0.0
1282         Problem reported by Marcus Johnson (Bug#29658).
1283         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
1284         Don’t use asm.
1286 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
1288         doc: Improve explanation of supporting relocatable libraries.
1289         * doc/relocatable-maint.texi (Supporting Relocation): Explain
1290         properly how to build the relocatable module for
1291         libraries. (Method and example code from Bruno Haible.)
1293 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
1295         doc: Use better texinfo tags in a few cases.
1296         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
1297         instead of @samp in a few places.
1299 2017-12-11  Bruno Haible  <bruno@clisp.org>
1301         unistr/base: Update comment.
1302         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
1304 2017-12-10  Pádraig Brady  <P@draigBrady.com>
1306         test-faccessat.c: unlink temp file to avoid subsequent test failure
1307         * tests/test-faccessat.c: Remove the file to avoid failure
1308         to open the file on subsequent runs due to being created
1309         with no permissions.
1311 2017-12-10  Bruno Haible  <bruno@clisp.org>
1313         doc: New sect. "Modifying the build rules of a Gnulib import directory".
1314         * doc/gnulib-tool.texi (Modified build rules): New node.
1316 2017-12-10  Bruno Haible  <bruno@clisp.org>
1318         doc: Tweak wording.
1319         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
1320         "binaries".
1322 2017-12-05  Sam Steingold  <sds@gnu.org>
1323             Bruno Haible  <bruno@clisp.org>
1325         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
1326         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
1327         AC_EGREP_CPP pattern.
1329 2017-12-03  Bruno Haible  <bruno@clisp.org>
1331         all: Replace more http URLs by https URLs.
1332         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
1333         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
1334         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
1335         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
1337 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
1339         Port better to CentOS 5
1340         Problems reported by Tom G. Christensen in:
1341         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
1342         * doc/glibc-functions/strverscmp.texi (strverscmp):
1343         Document strverscmp bug with glibc 2.9 and earlier.
1344         * doc/posix-functions/tzset.texi (tzset):
1345         Document that TZ with angle brackets is POSIX-2001 and later.
1346         * tests/test-nstrftime.c: Include unistd.h.
1347         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
1348         (TZ): Use it to skip tests with angle brackets in TZ,
1349         for older systems.
1351         stat: add missing module dependencies
1352         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
1353         Add stat-time.
1355 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
1357         stat: fix compilation failure on macOS Sierra
1358         Reported by Marius Schamschula <mschamschula@gmail.com> in:
1359         https://savannah.gnu.org/bugs/?52546
1360         * lib/stat.c: Add missing include of stat-time.h.
1362 2017-11-28  Jim Meyering  <meyering@fb.com>
1364         test-faccessat.c: correct BASE definition to avoid parallel test failure
1365         * tests/test-faccessat.c (BASE): Define using this file's name, not
1366         that of test-lstat.c.  Using the latter caused this test to fail
1367         sometimes when run concurrently with test-lstat.
1369 2017-11-27  Daiki Ueno  <ueno@gnu.org>
1371         unicase: fix VPATH build
1372         * modules/unicase/special-casing (Makefile.am): Ensure that the
1373         base directory is created when generating
1374         unicase/special-casing.h.
1376 2017-11-27  Daiki Ueno  <ueno@gnu.org>
1378         libunistring: update to Unicode 9.0.0
1379         * lib/gen-uni-tables.c (fill_properties): Recognize
1380         Sentence_Terminal and Prepended_Concatenation_Mark.
1381         (is_property_default_ignorable_code_point): Exclude U+08E2.
1382         (fill_arabicshaping): Allow missing whitespace when parsing;
1383         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
1384         (output_blocks): Increase the element size of the level1 table to
1385         accommodate more blocks.
1386         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
1387         Update each class according to the standard.
1388         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
1389         E_Base_GAZ characters.
1390         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
1391         Glue_After_Zwj, and E_Base_GAZ characters.
1392         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
1393         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
1394         enum value.
1395         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
1396         value.
1397         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
1398         LBP_ZWJ, LBP_EB, and LBP_EM.
1399         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
1400         enum value.
1401         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
1402         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
1403         declaration.
1404         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
1405         (uniwbrk_table): Implement WB14.
1406         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
1407         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
1408         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
1409         uc-is-grapheme-break.
1410         * modules/unigbrk/uc-grapheme-breaks: New module.
1411         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
1412         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
1413         enum value.
1414         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
1415         * lib/unigbrk/u-grapheme-breaks.h: New file.
1416         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
1417         u-grapheme-breaks.h instead of uc_is_grapheme_break.
1418         * lib/unigbrk/uc-grapheme-breaks.c: New file.
1419         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
1420         29.
1421         * tests/unigbrk/test-uc-gbrk-prop.c
1422         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
1423         GBP_GAZ, and GBP_EBG.
1424         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
1425         * tests/unigbrk/test-uc-is-grapheme-break.c
1426         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
1427         GBP_GAZ, and GBP_EBG.
1428         (main): Skip unsupported rules involving 3 or more characters,
1429         namely GB10, GB12, and GB13.
1430         * lib/uniwidth/width.c (nonspacing_table_data): Update.
1431         * all generated files under lib/uni* and tests/uni*: Regenerate.
1432         * all the affected modules: Bump version.
1434 2017-11-26  Bruno Haible  <bruno@clisp.org>
1436         strfmon_l: Fix compilation error with glibc 2.5.
1437         Reported by Tom G. Christensen <tgc@jupiterrise.com>
1438         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
1439         * lib/monetary.in.h: Include also <locale.h>.
1441 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
1443         posixtm: remove PDS_LEADING_YEAR
1444         This changes the API slightly, in a hopefully-innocuous way.
1445         Without this change the code had undefined behavior when a
1446         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
1447         Problem reported by Pádraig Brady in:
1448         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
1449         * NEWS: Mention this.
1450         * lib/posixtm.c (posix_time_parse): Treat the absence of
1451         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
1452         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
1453         present, but define it as zero, for compatibility with existing
1454         source code).  All other PDS_* values moved up.
1455         * tests/test-posixtm.c (LY): New macro.
1456         (T): Use it.  Do not expect a particular numeric encoding
1457         for PDS_CENTURY etc.
1459 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
1461         stat: work around Solaris bug with tv_nsec < 0
1462         * doc/posix-functions/fstat.texi (fstat):
1463         * doc/posix-functions/fstatat.texi (fstatat):
1464         * doc/posix-functions/lstat.texi (lstat):
1465         * doc/posix-functions/stat.texi (stat):
1466         Mention Solaris 11 bug.
1467         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
1468         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
1469         * lib/lstat.c (rpl_lstat):
1470         * lib/stat.c (rpl_stat):
1471         Normalize resulting timestamps.
1472         * lib/fstatat.c (normal_fstatat): New function.
1473         (rpl_fstatat): Use it.
1474         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
1475         (stat_time_normalize): New function.
1476         * m4/fstat.m4 (gl_FUNC_FSTAT):
1477         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
1478         * m4/lstat.m4 (gl_FUNC_LSTAT):
1479         * m4/stat.m4 (gl_FUNC_STAT):
1480         Replace on Solaris.
1481         * modules/fstat (Depends-on):
1482         * modules/fstatat (Depends-on):
1483         Add stat-time.
1484         * modules/stat-time (Depends-on): Add errno, intprops.
1486 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
1488         regex: merge from glibc
1489         * lib/regcomp.c (init_word_char): Add comments.
1491 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
1493         regex: merge from glibc
1494         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
1495         * lib/regex_internal.h (internal_function): Remove.
1496         All uses removed.
1498 2017-11-20  Bruno Haible  <bruno@clisp.org>
1500         crypto/gc-sm3: Fix buffer overrun.
1501         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
1502         Reported by Coverity.
1504 2017-11-12  Jim Meyering  <meyering@fb.com>
1506         maint: shorten https://lists.gnu.org/archive/html/... links
1507         Each /archive/html/ part can be replace with /r/.
1508         Run this to induce the change:
1509         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
1510         * ChangeLog: Perform that substitution.
1511         * Makefile: Likewise.
1512         * STATUS-libposix: Likewise.
1513         * build-aux/bootstrap: Likewise.
1514         * doc/maintain.texi: Likewise.
1515         * gnulib-tool: Likewise.
1516         * lib/allocator.h: Likewise.
1517         * lib/argp-ba.c: Likewise.
1518         * lib/argp-pv.c: Likewise.
1519         * lib/canon-host.c: Likewise.
1520         * lib/canonicalize-lgpl.c: Likewise.
1521         * lib/float.in.h: Likewise.
1522         * lib/fstat.c: Likewise.
1523         * lib/getdelim.c: Likewise.
1524         * lib/getprogname.c: Likewise.
1525         * lib/glthread/thread.h: Likewise.
1526         * lib/intprops.h: Likewise.
1527         * lib/mbsrtowcs-state.c: Likewise.
1528         * lib/safe-read.c: Likewise.
1529         * lib/signal.in.h: Likewise.
1530         * lib/stat.c: Likewise.
1531         * lib/stdbool.in.h: Likewise.
1532         * lib/stdio-impl.h: Likewise.
1533         * lib/stdio.in.h: Likewise.
1534         * lib/sysexits.in.h: Likewise.
1535         * lib/timespec.h: Likewise.
1536         * lib/wcsrtombs-state.c: Likewise.
1537         * m4/alloca.m4: Likewise.
1538         * m4/extern-inline.m4: Likewise.
1539         * m4/fstatat.m4: Likewise.
1540         * m4/gnulib-common.m4: Likewise.
1541         * m4/lib-ignore.m4: Likewise.
1542         * m4/printf.m4: Likewise.
1543         * m4/regex.m4: Likewise.
1544         * m4/stat-size.m4: Likewise.
1545         * m4/std-gnu11.m4: Likewise.
1546         * m4/stdbool.m4: Likewise.
1547         * m4/sys_types_h.m4: Likewise.
1548         * m4/threadlib.m4: Likewise.
1549         * m4/vararrays.m4: Likewise.
1550         * pygnulib/GLImport.py: Likewise.
1551         * tests/test-exp.h: Likewise.
1552         * tests/test-exp2.h: Likewise.
1553         * tests/test-expm1.h: Likewise.
1554         * tests/test-fflush2.c: Likewise.
1555         * tests/test-getopt_long.h: Likewise.
1556         * tests/test-intprops.c: Likewise.
1557         * tests/test-log.h: Likewise.
1558         * tests/test-log10.h: Likewise.
1559         * tests/test-log1p.h: Likewise.
1560         * tests/test-log2.h: Likewise.
1561         * tests/test-printf-posix.h: Likewise.
1562         * tests/test-regex.c: Likewise.
1563         * tests/test-snprintf-posix.h: Likewise.
1564         * tests/test-sprintf-posix.h: Likewise.
1565         * tests/test-stdalign.c: Likewise.
1566         * tests/test-stdbool.c: Likewise.
1567         * tests/test-vasnprintf-posix.c: Likewise.
1568         * tests/test-vasprintf-posix.c: Likewise.
1569         * top/maint.mk: Likewise.
1571 2017-11-12  Bruno Haible  <bruno@clisp.org>
1573         faccessat: Make the last change more robust.
1574         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
1575         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
1577 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
1579         faccessat: port to macOS (Bug#29231)
1580         macOS faccessat has the same bug that lstat does: if the file
1581         name ends in '/' it ignores the trailing slash.
1582         Problem reported for Emacs by Vincent Zhang.
1583         * doc/posix-functions/faccessat.texi (faccessat): Document this.
1584         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
1585         around the initial includes.  Include errno.h, string.h, sys/stat.h.
1586         (orig_faccessat) [HAVE_FACCESSAT]: New function.
1587         Include "unistd.h" after defining it.
1588         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
1589         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
1590         Handle in the usual way.
1591         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
1592         lstat dereferences symlinks, since faccessat is likely to
1593         have the same problem.
1594         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
1595         * modules/faccessat (Depends-on): Add fstatat.
1596         Depend if REPLACE_FACCESSAT is 1, too.
1597         (configure.ac): Link if REPLACE_FACCESSAT is 1.
1598         * modules/faccessat-tests (Depends-on): Add symlink.
1599         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
1600         * tests/test-faccessat.c (main): Test for the bug.
1602 2017-11-11  Bruno Haible  <bruno@clisp.org>
1604         getprogname: Fix compilation error on IRIX.
1605         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
1606         'namesize'.
1608 2017-11-11  Bruno Haible  <bruno@clisp.org>
1610         year2038: Tweak last patch.
1611         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
1613 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
1615         year2038: be more insistent about 64-bit time_t
1616         Applications requiring access to arbitrary files should not be
1617         built with 32-bit time_t on hosts that have 64-bit timestamps,
1618         as this can lead to real trouble at runtime.
1619         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
1620         Check on all systems, not just MinGW.  Use a heuristic involving
1621         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
1622         output a failure or just a warning, to make it more likely that
1623         builders will select 64-bit time_t.
1625 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
1627         havelib: fix typo in previous change
1628         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
1630         Don’t use AC_EGREP_CPP if affected by CFLAGS
1631         * m4/float_h.m4 (gl_FLOAT_H):
1632         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
1633         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
1634         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
1635         * m4/year2038.m4 (gl_YEAR2038):
1636         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
1637         likely to be affected by the choice of CFLAGS, since CFLAGS are
1638         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
1639         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
1641         fstatat: pacify GCC on unusual platform
1642         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
1643         Omit, as it’s unused in this case.
1645 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
1647         timespec: prefer ‘assume’ to ‘assure’
1648         This avoids some runtime tests.  The rest of the module makes
1649         similar assumptions and there is little point to testing here.
1650         * lib/timespec.h: Include verify.h instead of assure.h.
1651         (timespec_cmp): Use ‘assume’, not ‘assure’.
1652         Also, remove an unnecessary cast to ‘int’, as lots of other
1653         code in this module now causes -Wconversion to complain, and
1654         this is a problem with -Wconversion not with the code.
1656         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
1658         Port recent gnulib-tool change to Dash
1659         * gnulib-tool (func_create_testdir): Don't assume that the shell
1660         retokenizes after expanding "$@" inside the call to
1661         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
1663 2017-10-27  Jim Meyering  <meyering@fb.com>
1665         timespec.h: use "assure" to avoid a spurious warning
1666         * lib/timespec.h: Include "assure.h" and use it to help
1667         gcc7's -Wstrict-overflow avoid a false positive warning
1668         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
1669         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
1670         * modules/timespec (Depends-on): Add assure.
1672 2017-10-29  Bruno Haible  <bruno@clisp.org>
1674         Avoid several test failures with traditional locales on Haiku.
1675         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
1676         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
1677         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
1678         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
1679         LOCALE_ZH_CN=none.
1681 2017-10-29  Bruno Haible  <bruno@clisp.org>
1683         strerror_r-posix: Fix behaviour and test failure on Haiku.
1684         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
1685         are positive. Work around return value 0 instead of ERANGE on Haiku.
1686         For unknown error numbers, use a format string consistent with perror().
1687         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
1688         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
1689         are positive.
1691 2017-10-29  Bruno Haible  <bruno@clisp.org>
1693         get-rusage-data: Avoid crash on Haiku.
1694         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
1696 2017-10-29  Bruno Haible  <bruno@clisp.org>
1698         get-rusage-as: Avoid crash on Haiku.
1699         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
1701 2017-10-29  Bruno Haible  <bruno@clisp.org>
1703         ilogbl: Ensure replacement on Haiku.
1704         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
1705         REPLACE_ILOGBL if ilogbl does not work.
1706         (gl_FUNC_ILOGBL_WORKS): New macro.
1707         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
1708         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
1709         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
1710         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
1711         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
1713 2017-10-29  Bruno Haible  <bruno@clisp.org>
1715         expl: Ensure replacement on Haiku.
1716         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
1717         zero.
1718         * doc/posix-functions/expl.texi: Mention the Haiku problem.
1720 2017-10-29  Bruno Haible  <bruno@clisp.org>
1722         math: Fix test failure on Haiku.
1723         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
1724         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
1725         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
1726         * doc/posix-headers/math.texi: Mention the Haiku problem.
1728 2017-10-29  Bruno Haible  <bruno@clisp.org>
1730         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
1731         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
1732         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
1734 2017-10-29  Bruno Haible  <bruno@clisp.org>
1736         crypto/*: Verify that the header file is self-contained.
1737         * tests/test-gc-*.c: Include the module's header file immediately after
1738         <config.h>.
1739         * tests/test-hmac-*.c: Likewise.
1740         * tests/test-arcfour.c: Likewise.
1741         * tests/test-arctwo.c: Likewise.
1742         * tests/test-des.c: Likewise.
1743         * tests/test-md2.c: Likewise.
1744         * tests/test-md4.c: Likewise.
1745         * tests/test-md5.c: Likewise.
1746         * tests/test-rijndael.c: Likewise.
1747         * tests/test-sha1.c: Likewise.
1748         * tests/test-sm3.c: Likewise.
1750 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
1751             Bruno Haible  <bruno@clisp.org>
1753         crypto/gc: fix build failure with -Werror=suggest-attribute=const
1754         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
1756 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
1758         New module: crypto/gc-sm3
1759         * lib/gc.h: Declare SM3-related stuffs.
1760         * lib/gc-gnulib.c: Support sm3 in internal functions.
1761         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
1762         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
1763         * modules/crypto/gc-sm3: Define gc-sm3 module.
1764         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
1765         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
1766         * MODULES.html.sh: List gc-sm3 module.
1768 2017-10-29  Bruno Haible  <bruno@clisp.org>
1770         random, random_r: Mention different prototypes on Haiku.
1771         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
1772         * doc/glibc-functions/random_r.texi: Likewise.
1773         * doc/glibc-functions/initstate_r.texi: Likewise.
1774         * doc/glibc-functions/setstate_r.texi: Likewise.
1776 2017-10-28  Bruno Haible  <bruno@clisp.org>
1778         posix_spawn: Avoid spurious message in configure output.
1779         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
1780         'cmp' command.
1782 2017-10-28  Bruno Haible  <bruno@clisp.org>
1784         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
1785         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
1786         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
1788 2017-10-28  Bruno Haible  <bruno@clisp.org>
1790         ioctl: Override non-POSIX declaration on Haiku.
1791         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
1792         * lib/sys_ioctl.in.h: Add comment about Haiku.
1793         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
1794         * doc/glibc-headers/sys_ioctl.texi: Likewise.
1796 2017-10-28  Bruno Haible  <bruno@clisp.org>
1798         crypto/sm3: Add overview documentation to the .h file.
1799         * lib/sm3.h: Add comments.
1801 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
1803         New module: crypto/sm3
1804         This new module can be used to compute SM3 message digest of files or
1805         memory blocks according to the specification GM/T 004-2012
1806         Cryptographic Hash Algorithm SM3, published by State Cryptography
1807         Administration, China.
1808         The official SM3 cryptographic hash algorithm specification is
1809         available at
1810         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
1811         * lib/sm3.h: Declare the APIs of sm3 module.
1812         * lib/sm3.c: Implement SM3 hash algorithm.
1813         * m4/sm3.m4: m4 file for sm3 module.
1814         * modules/crypto/sm3: Define sm3 module.
1815         * tests/test-sm3.c: Implement SM3 test case.
1816         * modules/crypto/sm3-tests: Define sm3 test module.
1817         * MODULES.html.sh: List sm3 module.
1819 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
1821         gc-libgcrypt: fix undefined enum type in switch statement
1822         Resolve the following build failure:
1823         lib/gc-libgcrypt.c: In function 'gc_hash_open':
1824         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
1825         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
1826              case 0:
1827              ^~~~
1828         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
1829         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
1831 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
1833         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
1834         Resolve the following build failure:
1835         lib/gc-libgcrypt.c: In function 'gc_hash_read':
1836         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
1837         in signedness [-Werror=pointer-sign]
1838             digest = gcry_md_read (ctx->gch, 0);
1839                    ^
1840         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
1842 2017-10-26  Bruno Haible  <bruno@clisp.org>
1844         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
1845         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
1846         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
1848 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
1850         glob: fix another heap buffer overflow
1851         Problem reported by Tim Rühsen in:
1852         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
1853         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
1855 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
1857         quotearg: pacify compiler re unsigned
1858         * lib/quotearg.c (quotearg_n_options):
1859         Rewrite to avoid diagnostic from overly-picky compiler.
1860         Problem reported by Sami Kerola in:
1861         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
1863         glob: fix heap buffer overflow
1864         * lib/glob.c (glob): Fix off-by-one error introduced into
1865         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
1866         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
1867         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
1868         Fix suggested by Bruno Haible.
1870 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
1872         glob: pacify fuzzer for mempcpy
1873         Problem reported by Tim Rühsen in:
1874         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
1875         * lib/glob.c (glob): Do not pass NULL to mempcpy.
1877 2017-10-12  Bruno Haible  <bruno@clisp.org>
1879         doc: Fix syntax error (regression from 2017-10-03).
1880         * doc/posix-functions/strncpy.texi: Fix syntax error.
1882 2017-10-12  Bruno Haible  <bruno@clisp.org>
1884         doc: Update for Solaris 11.3.
1885         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
1886         mention Solaris 11.3.
1887         * m4/log2.m4: Fix comments.
1888         * m4/log2f.m4: Likewise.
1889         * m4/printf.m4: Update comments.
1890         * m4/rename.m4: Likewise.
1891         * m4/strncat.m4: Likewise.
1893         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
1895 2017-10-10  Bruno Haible  <bruno@clisp.org>
1897         doc: Improve doc about ioctl.
1898         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
1899         prototype.
1901 2017-10-09  Bruno Haible  <bruno@clisp.org>
1903         wcwidth: Don't use obsolete syntax of 'test'.
1904         Reported by Eric Blake.
1905         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
1906         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
1908 2017-10-09  Bruno Haible  <bruno@clisp.org>
1910         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
1911         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
1912         and Daniel P. Berrange <berrange@redhat.com>.
1913         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
1914         on glibc systems. The getopt-pfx-core.h file declares exactly what
1915         unistd.h needs, nothing more.
1917 2017-10-08  Bruno Haible  <bruno@clisp.org>
1919         vma-iter: Improve support for FreeBSD.
1920         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
1921         vma_iterate.
1922         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
1924 2017-10-08  Bruno Haible  <bruno@clisp.org>
1926         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
1927         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
1929 2017-10-07  KO Myung-Hun  <komh@chollian.net>
1931         test-framework-sh: Fix 'invalid path dir' error.
1932         On OS/2, a path separator is ';' not ':'. And ':' is used as a
1933         separator between a drive letter and directory parts.
1934         As a result, an absolute path such as x:/path/to/dir on OS/2 is
1935         treated as an invalid path dir.
1936         * tests/init.sh (PATH_SEPARATOR): Set at startup.
1937         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
1938         instead of hard coded ':'.
1940 2017-10-07  Bruno Haible  <bruno@clisp.org>
1942         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
1943         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
1944         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
1945         (rof_open): On Linux, do multiple read() calls and make sure
1946         MIN_LEFTOVER bytes are left when read() returns.
1948 2017-10-07  Bruno Haible  <bruno@clisp.org>
1950         vma-iter: Improve support for GNU/Hurd.
1951         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
1952         API, not the /proc file system.
1954 2017-10-07  Bruno Haible  <bruno@clisp.org>
1956         test-framework-sh: Don't require bash on Windows and OS/2.
1957         Reported by KO Myung-Hun.
1958         * tests/test-init.sh: Use 'shopt' only when running in bash.
1960 2017-10-06  KO Myung-Hun  <komh@chollian.net>
1962         wcwidth: check a macro version of wcwidth () as well
1963         * lib/wchar.in.h: Revert commit from 2016-01-14.
1964         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
1966 2017-10-06  Bruno Haible  <bruno@clisp.org>
1968         getopt-posix: Clarify copyright header.
1969         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
1970         * lib/getopt-pfx-core.h: Likewise.
1971         * lib/getopt-pfx-ext.h: Likewise.
1972         * lib/getopt-cdefs.in.h: Likewise.
1974 2017-10-03  Bruno Haible  <bruno@clisp.org>
1976         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
1977         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
1978         gl_HOST_CPU_C_ABI.
1980 2017-10-03  Bruno Haible  <bruno@clisp.org>
1982         doc: warn about misuse of strncpy and wcsncpy.
1983         * doc/posix-functions/strcpy.texi: Describe requirements on prior
1984         memory allocation.
1985         * doc/posix-functions/wcscpy.texi: Likewise.
1986         * doc/posix-functions/strncpy.texi: Describe what this function is not
1987         useful for.
1988         * doc/posix-functions/wcsncpy.texi: Likewise.
1990 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
1992         fsuage: fix typo in previous change
1993         * lib/fsusage.c: Remove stray include of full-read.h.
1994         Problem reported by Sam Steingold for macOS (Bug#28669).
1996 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
1998         fsusage: remove SVR2 support
1999         SVR2 was obsolete by 1986 and is no longer supported by anybody,
2000         and its code was getting in the way of use of this module by
2001         Emacs, which has its own ‘read’ function anyway.
2002         * lib/fsusage.c: Do not include sys/filsys.h.
2003         (get_fs_usage): Remove SVR2-specific code.
2004         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
2005         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
2006         * modules/fsusage (Depends-on): Do not depend on full-read.
2008         Simplify autoupdate of licenses
2009         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
2010         place.
2012 2017-10-01  Bruno Haible  <bruno@clisp.org>
2014         vma-iter: Add support for GNU/Hurd.
2015         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
2016         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
2018 2017-09-30  Bruno Haible  <bruno@clisp.org>
2020         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
2021         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
2022         fail when module 'largefile' is in use.
2023         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
2024         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
2025         Don't test HAVE_SYS_PROCFS_H.
2027 2017-09-30  Bruno Haible  <bruno@clisp.org>
2029         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
2030         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
2031         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
2032         * modules/havelib (Depends-on): Add host-cpu-c-abi.
2034 2017-09-30  Bruno Haible  <bruno@clisp.org>
2036         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
2037         * lib/uniname/uniname.c (unicode_name_character): Add braces around
2038         scope of local variables.
2040 2017-09-28  Bruno Haible  <bruno@clisp.org>
2042         string: code style
2043         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
2044         substitutable variables.
2045         * modules/string (Makefile.am): Likewise.
2047 2017-09-26  Bruno Haible  <bruno@clisp.org>
2049         uniname/uniname-tests: Tighten code.
2050         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
2051         local variables into one.
2053 2017-09-26  Bruno Haible  <bruno@clisp.org>
2055         vma-iter: Improvements for Linux and BSD platforms.
2056         - Add support for DragonFly BSD.
2057         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
2058         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
2059         Read the entire file into memory in a single system call.
2060         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
2061         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
2063 2017-09-26  Bruno Haible  <bruno@clisp.org>
2065         vma-iter: Provide the protection flags on FreeBSD.
2066         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
2067         skip three fields between the addresses and the protection flags.
2069 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2071         glob: remove bogus extern decl
2072         * lib/glob.c (__glob_pattern_type): Remove now-spurious
2073         extern declaration.  Problem reported by Adhemerval Zanella in:
2074         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
2076 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
2078         uniname/uniname-tests: integer overflow fix
2079         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
2080         Check for integer overflow.
2082         duplocale-tests: fix unlikely crash
2083         * tests/test-duplocale.c (get_locale_dependent_values):
2084         Don’t crash with absurdly long month names.
2086         maint: fix overflow checking in nap.h
2087         * modules/chown-tests:
2088         * modules/fchownat-tests, modules/fdutimensat-tests:
2089         * modules/futimens-tests, modules/lchown-tests:
2090         * modules/stat-time-tests, modules/utime-tests:
2091         * modules/utimens-tests, modules/utimensat-tests:
2092         Depend on intprops.
2093         * tests/nap.h: Include intprops.h.
2094         (diff_timespec): Handle overflow properly.
2096         sys_types: update URL
2097         * m4/sys_types_h.m4: Use https: URL.
2099         parse-datetime: fix dependency
2100         * modules/parse-datetime (Depends-on): Depend
2101         on nstrftime, not strftime.
2103         parse-datetime, posixtm: avoid uninit access
2104         * lib/parse-datetime.y (parse_datetime2):
2105         * lib/posixtm.c (posixtime):
2106         Do not access uninitialized storage, even though the resulting
2107         value is never used.
2109 2017-09-25  Bruno Haible  <bruno@clisp.org>
2111         vma-iter: Improvements for BSD platforms.
2112         - Add support for GNU/kFreeBSD.
2113         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
2114         - Speed up on OpenBSD.
2115         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
2116         (vma_iterate_bsd): New function.
2117         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
2118         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
2119         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
2120         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
2122 2017-09-23  Bruno Haible  <bruno@clisp.org>
2124         strfmon_l: New module.
2125         * modules/strfmon_l: New file.
2126         * lib/strfmon_l.c: New file.
2127         * m4/strfmon_l.m4: New file.
2128         * doc/posix-functions/strfmon_l.texi: Mention the new module.
2129         * modules/strfmon_l-tests: New file.
2130         * tests/test-strfmon_l.c: New file.
2132         monetary: New module.
2133         * modules/monetary: New file.
2134         * lib/monetary.in.h: New file.
2135         * m4/monetary_h.m4: New file.
2136         * doc/posix-headers/monetary.texi: Mention the new module.
2137         * modules/monetary-tests: New file.
2138         * tests/test-monetary.c: New file.
2139         * modules/monetary-c++-tests: New file.
2140         * tests/test-monetary-c++.cc: New file.
2141         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
2143 2017-09-23  Bruno Haible  <bruno@clisp.org>
2145         duplocale tests: Fix test crash on Linux/x86.
2146         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
2147         locale from the current thread before freeing it.
2149 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
2151         mktime: port to OpenVMS
2152         Problem reported by John E. Malmberg in:
2153         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
2154         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
2156 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
2158         manywarnings: port to GCC on 64-bit MS-Windows
2159         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
2160         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
2161         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
2163 2017-09-13  Bruno Haible  <bruno@clisp.org>
2165         all: Replace many more http URLs by https URLs. Update stale URLs.
2166         * users.txt: Remove mention of 'newts'.
2167         * lib/localename.c: Update comment about LANG_SOTHO.
2169 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
2171         all: Replace many http URLs by https URLs.
2173 2017-09-12  Bruno Haible  <bruno@clisp.org>
2175         doc: Prefer https URLs where possible.
2176         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
2177         * doc/ld-output-def.texi: Remove unavailable URL.
2179 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
2181         maintainer-makefile: FTP -> HTTPS
2182         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
2183         of FTP, which is planned to be decommissioned on 2017-11-01.
2185 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
2187         libc-config: Fix __GNUC_PREREQ macro.
2188         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
2189         __GNUC_MINOR.
2191 2017-09-09  Bruno Haible  <bruno@clisp.org>
2193         gnulib-tool: Simplify commit from 2015-08-20.
2194         * gnulib-tool (func_add_or_update): Remove local variable
2195         is_binary_file.
2197 2017-09-08  Bruno Haible  <bruno@clisp.org>
2199         stddef: Avoid conflict with system-defined max_align_t.
2200         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
2201         Reported by Werner Lemberg <wl@gnu.org> in
2202         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
2203         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
2204         (max_align_t): Define as a macro.
2205         (GNULIB_defined_max_align_t): New macro. Guards against multiple
2206         definitions of rpl_max_align_t in different copies of gnulib-generated
2207         <stddef.h>.
2209 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
2211         libc-config: port to MSVC
2212         Problems reported by Gisle Vanem in:
2213         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
2214         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
2215         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
2216         * m4/__inline.m4: New file.
2217         * modules/libc-config (Files): Add it.
2218         (Depends-on): Use it.
2220         glob: Use enum for __glob_pattern_type result
2221         From a patch proposed by Adhemerval Zanella in:
2222         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
2223         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
2224         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
2225         * lib/glob_internal.h (__glob_pattern_type):
2226         * lib/glob.c (glob):
2227         * lib/glob_pattern_p.c (__glob_pattern_p):
2228         Use them.
2230         glob: fix for use in glibc
2231         Problem reported by Adhemerval Zanella in:
2232         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
2233         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
2234         Do not redefine if _LIBC.
2236 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
2238         glob: fix bugs with long login names
2239         Problem reported by Adhemerval Zanella in:
2240         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
2241         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
2242         (glob): Use the same scratch buffer for both getlogin_r and
2243         getpwnam_r.  Don’t require preallocation of the login name.  This
2244         simplifies storage allocation, and corrects the handling of
2245         long login names.
2247 2017-09-02  Bruno Haible  <bruno@clisp.org>
2249         dirent: Update doc.
2250         * doc/posix-headers/dirent.texi: More concrete list of platforms.
2252 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
2254         glob: fix getpwnam_r errno typo
2255         * lib/glob.c (glob): Fix longstanding misuse of errno after
2256         getpwnam_r, which returns an error number rather than setting
2257         errno.
2259         glob: fix typo in recent change
2260         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
2261         Fix recently-introduced typo.
2263 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
2265         glob: don't save and restore errno unnecessarily
2266         * lib/glob.c (glob): Don't save and restore errno
2267         merely because we have getpwnam_r.
2269         glob: don't assume getpwnam_r
2270         * lib/glob.c (glob): Port recent patches to platforms
2271         lacking getpwnam_r.
2273         scratch_buffer: don’t use private glibc API
2274         Suggested by Florian Weimer in:
2275         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
2276         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
2277         * lib/scratch_buffer_grow.c: Rename to
2278         lib/malloc/scratch_buffer_grow.c.
2279         * lib/scratch_buffer_grow_preserve.c: Rename to
2280         lib/malloc/scratch_buffer_grow_preserve.c.
2281         * lib/scratch_buffer_set_array_size.c: Rename to
2282         lib/malloc/scratch_buffer_set_array_size.c.
2283         * lib/scratch_buffer.h: New file.
2284         * modules/scratch_buffer (Files, Makefile.am):
2285         Adjust to source-file renaming.
2287 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
2289         glob: use scratch_buffer instead of extend_alloca
2290         Much of the lib/glob.c part of this patch comes from a glibc patch
2291         proposed by Adhemerval Zanella in:
2292         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
2293         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
2294         included via glob.h, does this for us now.
2295         (__set_errno): Remove, as libc-config does this for us now.
2296         Include <scratch_buffer.h>.
2297         (GETPW_R_SIZE_MAX): Remove.
2298         (glob): Use struct scratch_buffer instead of extend_alloca.
2299         * lib/glob.in.h: Include libc-config.h rather than
2300         including <sys/cdefs.h> conditionally.
2301         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
2302         (__glibc_unlikely, __restrict, weak_alias):
2303         Remove, as libc-config does this for us now.
2304         * m4/glob.m4 (gl_PREREQ_GLOB):
2305         Remove sys/cdefs.h tests; no longer needed.
2306         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
2307         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
2309         scratch_buffer: new module
2310         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
2311         * lib/scratch_buffer_grow_preserve.c:
2312         * lib/scratch_buffer_set_array_size.c:
2313         New files, copied from glibc with very minor changes that can be
2314         copied back.
2315         * modules/scratch_buffer: New file.
2317         libc-config: new module
2318         * MODULES.html.sh: Add libc-config.
2319         * lib/cdefs.h: New file, copied from the GNU C Library with very
2320         minor changes that can be copied back.
2321         * lib/libc-config.h, modules/libc-config: New files.
2323 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
2325         glob: match dangling symlinks
2326         This fixes a bug I inadvertently introduced to Gnulib when I
2327         merged glibc glob back into gnulib on 2007-10-16.  This fix is
2328         inspired by a patch proposed for glibc by Adhemerval Zanella in:
2329         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
2330         * doc/posix-functions/glob.texi: Update list of affected platforms.
2331         * lib/glob.c (__lstat64): New macro.
2332         (is_dir): New function.
2333         (glob, glob_in_dir): Match symlinks even if they are dangling.
2334         (link_stat, link_exists_p): Remove.  All uses removed.
2335         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
2336         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
2337         * modules/glob-tests (Depends-on): Add symlink.
2338         * tests/test-glob.c: Include errno.h, unistd.h.
2339         (BASE): New macro.
2340         (main): Test dangling symlinks, if symlinks are supported.
2342         glob, backupfile: inode 0 is a valid inode number
2343         * doc/posix-functions/readdir.texi (readdir):
2344         * doc/posix-headers/dirent.texi (dirent.h):
2345         Document more readdir portability issues.
2346         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
2347         (numbered_backup): Don’t treat inode 0 any differently from
2348         other inode values.
2349         * lib/glob.c (struct readdir_result): Remove skip_entry member.
2350         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
2351         All uses removed.
2352         * modules/glob (Depends-on): Remove d-ino.
2354         glob: simplify symlink detection
2355         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
2356         uint8_t, as C99 does not require uint8_t.
2357         (struct readdir_result): Use it.  Do not define skip_entry unless
2358         it is needed; this saves a byte on platforms lacking d_ino.
2359         (readdir_result_type, readdir_result_skip_entry):
2360         New functions, replacing ...
2361         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
2362         ... these functions, which were removed.  This makes the callers
2363         easier to read.  All callers changed.
2364         (D_INO_TO_RESULT): Now empty if there is no d_ino.
2366 2017-08-30  Pádraig Brady  <P@draigBrady.com>
2368         fts-tests: tag as a longrunning-test so not included by default
2369         * modules/fts-tests: This test takes about 20s on current systems,
2370         and uses about 285M of space on ext4.
2372 2017-08-30  Pádraig Brady  <P@draigBrady.com>
2374         renameat2: fix compilation on alpine linux
2375         * m4/renameat.m4: Check for <linux/fs.h> presence.
2376         * lib/renameat2.h: Only include <linux/fs.h> if present.
2377         Reported by Assaf Gordon on Alpine Linux.
2379 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2381         glob: try to port recent changes to MS-Windows
2382         Problem reported by Bruno Haible in:
2383         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
2384         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
2385         * lib/glob.in.h (__glob_pattern_p): ... to here.
2387 2017-08-24  Eric Blake  <eblake@redhat.com>
2389         warnings: fix compilation with old autoconf
2390         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
2391         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
2392         AC_DEFUN.
2393         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
2394         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
2396 2017-08-24  Bruno Haible  <bruno@clisp.org>
2398         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
2399         * modules/glob (Depends-on): Add c99.
2401 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2403         glob: fix typo that broke platforms lacking d_ino
2404         This typo also hurt performance on GNU/Linux and similar hosts.
2405         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
2406         in previous change.
2408 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
2410         glob: merge from glibc with Zanella glob changes
2411         Merge glob from glibc, with changes for glob proposed
2412         by Adhemerval Zanella in the thread starting here:
2413         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
2414         plus some fixes for this merge.
2415         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
2416         New files, ported from glibc.
2417         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
2418         with __restrict.
2419         (__size_t): Remove.  All uses replaced by size_t.
2420         (size_t): Define by defining __need_size_t and including <stddef.h>.
2421         This should work even in non-glibc platforms, where any name
2422         pollution is OK.
2423         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
2424         (struct stat64): Don’t worry about __GLOB_GNULIB.
2425         (glob, globfree, glob_pattern_p): Remove macros for
2426         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
2427         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
2428         but set errno.
2429         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
2430         removed since the glibc behavior works on null pointers.
2431         Do not include stdio.h; old SunOS is irrelevant now.
2432         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
2433         Include glob_internal.h.
2434         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
2435         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
2436         worked only coincidentally.
2437         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
2438         Remove macros; now done in glob.in.h.
2439         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
2440         (glob): Properly initialize glob structure with
2441         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
2442         Remove old code using SHELL since Bash no longer
2443         uses this.
2444         (glob, prefix_array): Separate MS code better.
2445         (glob, glob_in_dir): Use C99 decls before statements when glibc
2446         does.
2447         (glob_in_dir): Remove old Amiga and VMS code.
2448         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
2449         separate files.
2450         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
2451         (__glibc_unlikely):
2452         Move here from glob.c.
2453         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
2454         (weak_alias): New macro.
2455         (__size_t): Remove.  All uses replaced by size_t.
2456         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
2457         * modules/glob (Files): Add +lib/glob_internal.h,
2458         lib/glob_pattern_p.c, lib/globfree.c.
2459         (Depends-on): Remove snippet/arg-nonnull.
2461 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
2463         glob: port to clang's Undefined Sanitizer
2464         Problem reported by Tim Rühsen in:
2465         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
2466         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
2467         (glob_in_dir): Do not rely on undefined behavior in accessing
2468         struct members beyond their bounds.  Use a flexible array member
2469         instead.
2471 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
2473         vc-list-files: port to Solaris 10
2474         * build-aux/vc-list-files: Don't assume test -e works.
2476 2017-08-21  Karl Berry  <karl@freefriends.org>
2478         * doc/posix-functions/srandom.texi (srandom): typo }.
2480 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
2482         git-version-gen: port to Solaris 10
2483         Problem reported by Dagobert Michelsen in:
2484         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
2485         * build-aux/git-version-gen (v_from_git):
2486         Use expr instead of shell substitution.
2488 2017-08-19  Bruno Haible  <bruno@clisp.org>
2490         host-cpu-c-abi: Improve detection of MIPS ABI.
2491         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
2492         _MIPS_SIM.
2494 2017-08-17  Bruno Haible  <bruno@clisp.org>
2496         hypot tests: Fix test failure on FreeBSD 11.0/x86.
2497         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
2499 2017-08-17  Bruno Haible  <bruno@clisp.org>
2501         float: Fix LDBL_MIN value on FreeBSD/x86.
2502         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
2504 2017-08-17  Bruno Haible  <bruno@clisp.org>
2506         random: Fix test compilation failure on Cygwin 1.5.25.
2507         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
2508         HAVE_DECL_SETSTATE.
2509         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
2510         declared.
2511         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
2512         HAVE_DECL_SETSTATE.
2513         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
2514         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
2515         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
2516         * doc/posix-functions/random.texi: Likewise.
2517         * doc/posix-functions/setstate.texi: Likewise.
2518         * doc/posix-functions/srandom.texi: Likewise.
2520 2017-08-16  Bruno Haible  <bruno@clisp.org>
2522         stdnoreturn: Fix test compilation failure on Cygwin.
2523         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
2524         <stdnoreturn.h> replacement.
2525         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
2526         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
2528 2017-08-16  Bruno Haible  <bruno@clisp.org>
2530         thread: Fix conflict with pthread_sigmask module.
2531         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
2532         it's defined as a macro.
2533         * modules/thread (Depends-on): Add pthread_sigmask.
2535 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
2537         rename: port better to NetBSD
2538         * doc/posix-functions/rename.texi (rename): NetBSD 7
2539         does not have the link-count bug.
2540         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
2541         broken merely because rename ("a", "b") removes "a" when the two
2542         names are hard links to the same file.
2544 2017-08-16  Bruno Haible  <bruno@clisp.org>
2546         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
2547         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
2548         the target file names with '$(srcdir)/'.
2549         * modules/unicase/locale-language (Makefile.am): Likewise.
2550         * modules/unicase/special-casing (Makefile.am): Likewise.
2551         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
2552         * modules/unictype/category-byname (Makefile.am): Likewise.
2553         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
2554         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
2555         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
2556         * modules/unictype/property-byname (Makefile.am): Likewise.
2557         * modules/unictype/scripts (Makefile.am): Likewise.
2558         * modules/uninorm/composition (Makefile.am): Likewise.
2560 2017-08-16  Bruno Haible  <bruno@clisp.org>
2562         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
2563         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
2564         value for OpenBSD.
2566 2017-08-16  Bruno Haible  <bruno@clisp.org>
2568         rename, renameat: Update doc regarding NetBSD.
2569         * doc/posix-functions/rename.texi: Clarify that when using
2570         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
2571         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
2572         version.
2574 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
2576         renameat2: port better to macOS
2577         * lib/renameat2.c (renameat2): Use renameatx_np if available.
2579         futimens: don’t assume struct timespec layout
2580         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
2581         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
2582         * tests/test-fdutimensat.c (main):
2583         * tests/test-futimens.h (test_futimens):
2584         * tests/test-lutimens.h (test_lutimens):
2585         * tests/test-utimens.h (test_utimens):
2586         * tests/test-utimensat.c (main):
2587         Don’t assume that struct timespec is a two-member structure in
2588         tv_sec, tv_nsec order.  Although this is true on all platforms we
2589         know about, POSIX does not guarantee it.
2591         rename: document+test NetBSD rename
2592         Test failure reported by Bruno Haible in:
2593         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
2594         This is an area where NetBSD is better-behaved than POSIX,
2595         so allow the NetBSD behavior in tests.
2596         * doc/posix-functions/rename.texi:
2597         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
2598         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
2600 2017-08-15  Bruno Haible  <bruno@clisp.org>
2602         renameat: Ensure declaration in <stdio.h> on NetBSD.
2603         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
2604         * doc/posix-functions/renameat.texi: Mention this problem.
2606 2017-08-15  Bruno Haible  <bruno@clisp.org>
2608         duplocale: Work around NetBSD 7.0 bug.
2609         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
2610         * lib/duplocale.c: Add comment about NetBSD problem.
2611         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
2613 2017-08-15  Bruno Haible  <bruno@clisp.org>
2615         duplocale tests: Verify use with *_l functions.
2616         * modules/duplocale-tests (configure.ac): Test for uselocale and
2617         some *_l functions.
2618         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
2619         from main.
2620         (get_locale_dependent_values_from, test_with_locale_parameter): New
2621         functions.
2622         (main): Test both test_with_uselocale and test_with_locale_parameter.
2624 2017-08-15  Bruno Haible  <bruno@clisp.org>
2626         extensions: Enable NetBSD specific extensions.
2627         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
2629 2017-08-14  Bruno Haible  <bruno@clisp.org>
2631         open, openat: Update doc about O_CLOEXEC.
2632         * doc/posix-functions/open.texi: More concrete list of platforms.
2633         * doc/posix-functions/openat.texi: Likewise.
2635 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
2637         open: support O_CLOEXEC
2638         * NEWS, doc/posix-functions/open.texi:
2639         * doc/posix-functions/openat.texi: Document this.
2640         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
2641         (GNULIB_defined_O_CLOEXEC): New symbol.
2642         * lib/open.c: Include cloexec.h.
2643         (open): Support O_CLOEXEC.
2644         * lib/openat.c: Include cloexec.h.
2645         (rpl_openat): Support O_CLOEXEC.
2646         * lib/popen-safer.c: Do not include cloexec.h.
2647         (open_noinherit): Remove.
2648         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
2649         * lib/save-cwd.c: Do not include cloexec.h.
2650         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
2651         * m4/open-cloexec.m4: New file.
2652         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
2653         Replace 'open' if O_CLOEXEC is not present.
2654         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
2655         Replace 'openat' if O_CLOEXEC is not present.
2656         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
2657         * modules/open (Files): Add m4/open-cloexec.m4.
2658         (Depends-on): Depend on cloexec if replacing 'open'.
2659         * modules/openat (Files): Add m4/open-cloexec.m4.
2660         (Depends-on): Depend on cloexec if replacing openat.
2661         * modules/popen-safer (Depends-on): Remove cloexec.
2662         * modules/save-cwd (Depends-on): Remove cloexec, and add
2663         fd-safer-flag and 'open'.
2665 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
2667         reallocarray: minor fixes
2668         * doc/glibc-functions/reallocarray.texi: Update version numbers.
2669         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
2670         * modules/reallocarray (License): Change from GPL to LGPL.
2671         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
2672         Indent properly and don't use tabs.
2674 2017-08-13  Darshit Shah  <darnir@gnu.org>
2676         reallocarray: New module
2677         reallocarray is a new function in glibc 2.26 to safely allocate an array
2678         of memory locations with integer overflow protection.
2679         * MODULES.html.sh: Add reallocarray.
2680         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
2681         * lib/reallocarray.c: New file to implement module reallocarray.
2682         * lib/stdlib.in.h: Add function declarations for reallocarray.
2683         * m4/reallocarray.m4: New file.
2684         * m4/stdlib_h.m4: Declare reallocarray.
2685         * modules/reallocarray: New file.
2686         * modules/reallocarray-test: New file.
2687         * modules/stdlib: Coerce stdlib.h to export reallocarray.
2688         * tests/test-reallocarray.c: New test.
2690 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
2692         dirent-safer: fix cloexec race
2693         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
2694         (opendir_safer): Use F_DUPFD_CLOEXEC.
2695         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
2696         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
2697         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
2698         instead of dup_safer.
2700         fts: fix cloexec races
2701         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
2702         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
2703         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
2704         (fd_ring_check): Set cloexec flag on new file descriptors.
2705         (fts_build, fd_ring_check): While we’re at it, make sure the
2706         resulting file descriptor is not 0, 1, or 2, since that is easy.
2708 2017-08-11  Bruno Haible  <bruno@clisp.org>
2710         fts tests: Fix link error.
2711         Reported by Tom G. Christensen in
2712         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
2713         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
2715 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
2717         fts: port recent changes to CentOS 6
2718         Problem reported by Tom G. Christensen in:
2719         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
2720         * lib/fts.c (fsword): New type.
2721         (struct dev_type, filesystem_type): Use it.
2722         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
2723         Also, check for f_type only if fstatfs and sys/vfs.h work.
2725 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
2727         tempname: do not depend on secure_getenv
2728         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
2729         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
2730         * modules/tempname (Depends-on): Remove secure_getenv.
2732 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
2734         extensions: add _OPENBSD_SOURCE
2735         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
2737 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
2738             Bruno Haible  <bruno@clisp.org>
2740         manywarnings: Add support for C++.
2741         * build-aux/g++-warning.spec: New file.
2742         * m4/manywarnings-c++.m4: New file.
2743         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
2744         redirects to manywarnings-c++.m4.
2745         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
2747 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
2749         git-version-gen: another fix for tags with "-"
2750         * build-aux/git-version-gen: Improve fix for tags containing "-".
2751         Suggested by Markus Armbruster in:
2752         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
2754 2017-08-06  Bruno Haible  <bruno@clisp.org>
2756         warnings, manywarnings: Add support for multiple languages, not just C.
2757         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
2758         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
2759         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
2760         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
2761         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
2762         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
2763         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
2764         of the current language. If C++ is the current language, modify
2765         WARN_CXXFLAGS instead of WARN_CFLAGS.
2766         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
2767         gl_MANYWARN_ALL_GCC.
2768         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
2770 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
2772         git-version-gen: Fix for tags containing '-'
2774         Really old versions of git-describe (before v1.5.0, Feb 2007)
2775         don't have the number of commits in their long format output,
2776         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
2777         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
2778         recognizes both patterns, and normalizes the old format to the new one.
2780         Unfortunately, this normalization code gets confused when the tag
2781         contains '-'.  Reproducer:
2783             $ git-tag -m test v0.2-rc1
2784             $ build-aux/git-version-gen .tarball-version; echo
2785             build-aux/git-version-gen: WARNING: git rev-list failed
2786             UNKNOWN
2788         We take exact tag "v0.2-rc1" for the old format, extract the presumed
2789         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
2790         commits since tha tag.  Fails, because tag "v0.2" does not exist.
2792         * git-version-gen: We could perhaps drop support for versions from
2793         more than a decade ago.  But tightening the pattern match is easy
2794         enough, so do that.  Still breaks when you use version tags ending in
2795         something matching -g????, but you arguably get what you deserve then.
2797 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
2799         valgrind-tests: use ls, and cache
2800         * m4/valgrind-tests.m4: Test ls, not bash.
2801         Problem reported by Reuben Thomas.
2802         Also, cache the result so that it can be overridden.
2804 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
2806         manywarnings: port to 64-bit GCC builds of Emacs
2807         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
2808         object size rather than hardwiring 2147483647.  This is needed to
2809         build GNU Emacs, which has one conditional (and used
2810         only-in-theory) call to malloc with a literal greater than
2811         2147483647.
2813 2017-08-04  Bruno Haible  <bruno@clisp.org>
2815         Relax the license of some modules with no runtime code.
2816         * modules/std-gnu11 (License): Set to 'unlimited'.
2817         * modules/c99 (License): Likewise.
2818         Reported by Reuben Thomas <rrt@sc3d.org>.
2819         * modules/d-ino (License): Set to 'LGPL'.
2820         * modules/host-os (License): Likewise.
2821         * modules/longlong (License): Likewise.
2823 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
2825         renameat2: port to RHEL 7 + NFS
2826         * lib/renameat2.c (renameat2) [SYS_renameat2]:
2827         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
2828         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
2830 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
2832         renameat2: port to non-renameat platforms
2833         Problem reported for MSVC-2015 by Gisle Vanem in:
2834         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
2835         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
2836         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
2838 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
2840         manywarnings: port to 32-bit GCC bug
2841         Problem reported by Pino Toscano in:
2842         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
2843         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
2844         not 2**63 - 1, to work around the following GCC bug:
2845         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
2847 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
2849         backupfile: new function to validate backup suffix
2850         * lib/backupfile.c (set_simple_backup_suffix): New function.
2851         (backupfile_internal): Use it.
2853         canonicalize: fix EOVERFLOW commentary
2854         Problem reported by Bruno Haible in:
2855         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
2856         * lib/canonicalize.c (canonicalize_filename_mode):
2857         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
2859         Don't interpret EOVERFLOW to mean nonexistence
2860         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
2861         may be EOVERFLOW; this is likely more useful than reporting the
2862         stat errno.
2863         * lib/glob.c (link_stat): Rename from link_exists2_p and
2864         return -1/0 instead of 0/1.  Caller changed.
2865         * lib/glob.c (link_exists_p):
2866         * lib/renameat2.c (rename_noreplace, renameat2):
2867         * lib/tempname.c (try_nocreate):
2868         If errno == EOVERFLOW then the directory entry exists, so do not
2869         act as if it does not exist.
2871         backup-rename: new module
2872         It is like backupfile, except it avoids some race conditions,
2873         and it does not output to stderr or exit.
2874         * MODULES.html.sh: Add backup-rename.
2875         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
2876         * modules/backup-rename: New files.
2877         * lib/backupfile.c: Turn this into an internals file, which
2878         contains code common to backupfile and backup_rename.  Include
2879         backupfile-internal.h instead of backupfile.h.  Do not include
2880         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
2881         renameat2.h and fcntl.h.
2882         (BACKUP_NOMEM): New constant.
2883         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
2884         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
2885         (backupfile_internal): Rename from find_backup_file_name.
2886         Support new arg RENAME.
2887         (backup_args, backup_types, get_version, xget_version):
2888         Move to lib/backup-find.c.
2889         * lib/backupfile.h (backup_file_rename): New decl.
2890         * modules/backupfile (Files): Add lib/backup-internal.h,
2891         lib/backup-find.c.
2892         (Depends-on): Add dirfd, fcntl, renameat2.
2893         (lib_SOURCES): Add backup-find.c.
2895         renameat2: port better to older Solaris
2896         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
2897         Add goto to use a label, to silence picky compilers.
2899         fts-tests: port to gcc -Wwrite-strings
2900         * tests/test-fts.c (base, base_d): New static vars.
2901         (argv, remove_tree, main): Use them.
2903 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
2905         relocatable-lib{,-lgpl}: improve documentation
2906         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
2907         Various other updates.
2909 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
2910             Bruno Haible  <bruno@clisp.org>
2912         relocatable-lib{,-lgpl}: add Valgrind suppressions
2913         * lib/relocatable.valgrind: New file.
2914         * modules/relocatable-lib (Files): Add relocatable.valgrind.
2915         * modules/relocatable-lib-lgpl: Likewise.
2917 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
2919         relocatable: Make the license on the sources the GPL.
2920         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
2921         LGPL, which was a special case so that the relocatable source files
2922         could be used without gnulib-tool, to GPL. They can still be used under
2923         the LGPL, using the --lgpl option to gnulib-tool.
2925 2017-07-30  Bruno Haible  <bruno@clisp.org>
2927         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
2928         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
2929         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
2930         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
2931         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
2933 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
2935         faccessat: document AT_SYMLINK_NOFOLLOW issue
2936         * doc/posix-functions/faccessat.texi: Modernize platform list.
2937         Document AT_SYMLINK_NOFOLLOW limitation.
2939         renameat2: port to Solaris 10
2940         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
2941         with AT_SYMLINK_NOFOLLOW (which is not portable).
2942         (renameat): Undef before using, to avoid endless recursion when
2943         the replacement renameat calls renameat2 which calls the
2944         replacement renameat.
2945         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
2946         * modules/renameat2 (Depends-on): Remove faccessat.
2947         * modules/renameat-tests (test_renameat_LDADD):
2948         * modules/renameat2-tests (test_renameat2_LDADD):
2949         Remove $(LIB_EACCESS).
2951         renameat2: new module
2952         Although the Linux syscall renameat2 is not in glibc (yet?), it is
2953         useful to have access to its RENAME_NOREPLACE flag.
2954         * MODULES.html.sh (func_all_modules): Add renameat2.
2955         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
2956         * modules/renameat2-tests, tests/test-renameat2.c: New files.
2957         * lib/renameat.c (renameat): Move most of the implementation
2958         to renameat2, and just call renameat2.
2959         * modules/renameat (Files): Remove lib/at-func2.c.
2960         (Depends-on): Depend only on renameat2.
2961         (Include): Remove <fcntl.h>.
2962         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
2963         since renameat (via renameat2) might use faccessat.
2965 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
2967         vc-list-files: Adjust the script to support git worktrees
2968         * build-aux/vc-list-files: Require existence, not directory.
2970 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
2972         doc: bring MODULES.html.sh up to date
2973         Somehow a few months ago we stopped updating MODULES.html.sh.
2974         I don’t recall explicitly deciding this, so I updated it now.
2975         Alternatively I suppose we could remove it.
2976         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
2977         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
2978         truncate, utime, utime-h, windows-stat-inodes,
2979         windows-stat-override, windows-stat-timespec, year2038.  Sort.
2981 2017-07-26  Jim Meyering  <meyering@fb.com>
2983         fprintftime: fix build-break caused by recent renaming
2984         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
2985         "strftime.c".
2986         * modules/fprintftime: Depend directly on nstrftime.
2988 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
2990         regex: work with GCC7's -Werror=implicit-fallthrough=
2991         * lib/regex_internal.h (FALLTHROUGH): New macro.
2992         * lib/regcomp.c (peek_token_bracket, parse_expression):
2993         * lib/regexec.c (check_node_accept): Use it.
2995 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
2997         fts: simplify fts_build
2998         * lib/fts.c (fts_build): Simplify, and be lazier about
2999         calling leaf_optimization.
3001         fts: three levels of leaf optimization
3002         * lib/fts.c (enum leaf_optimization): New type with three values.
3003         (S_MAGIC_AFS): New macro.  Sort them.
3004         (leaf_optimization): Rename from leaf_optimization_applies, and
3005         return enum leaf_optimization instead of bool.  All uses changed.
3006         Add cases for unknown type and for AFS.
3007         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
3009         fts: cache dirent_inode_sort_may_be_useful too
3010         * lib/fts.c (struct dev_type): New struct.
3011         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
3012         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
3013         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
3014         Now takes FTSENT const *, not int.  All uses changed.  Use
3015         filesystem_type to cache.
3016         (link_count_optimize_ok): Remove.  Caller changed to use
3017         leaf_optimization_applies, which now uses shared cache.
3019         fts: introduce MIN_DIR_NLINK
3020         * lib/fts.c (MIN_DIR_NLINK): New constant.
3021         Use it instead of 2, whenever we are talking about link counts.
3023         fts: nlink_t signedness fixups
3024         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
3025         so that root need not be a special case later.
3026         (fts_read): Remove now-redundant test for fts_level.
3027         Do not assume that nlink_t is signed.
3028         (fts_build): Remove useless decrement of nlinks.
3029         (fts_stat): Avoid unlikely signed integer overflow later, if
3030         nlink_t is signed.
3032         fts-tests: new module
3033         * modules/fts-tests, tests/test-fts.c: New files.
3035 2017-07-23  Bruno Haible  <bruno@clisp.org>
3037         Rename module 'strftime' to 'nstrftime'.
3038         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
3039         * lib/nstrftime.c: Renamed from lib/strftime.c.
3040         * modules/nstrftime: Renamed from modules/strftime.
3041         (Files, Makefile.am): Update.
3042         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
3043         Fix comment.
3044         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
3045         (Files, Makefile.am): Update.
3046         * modules/strftime: New file, an obsolete indirection.
3047         * doc/posix-functions/strftime.texi: Update reference.
3048         * config/srclist.txt: Update info.
3049         * NEWS: Mention the change.
3051 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
3053         malloca: Silence a warning from clang's memory sanitizer.
3054         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
3055         (freea): Use it.
3057 2017-07-18  Bruno Haible  <bruno@clisp.org>
3059         host-cpu-c-abi: Fix detection of MIPS ABI.
3060         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
3061         ABI, not the CPU instruction set.
3063 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
3065         explicit_bzero: new module
3066         The explicit_bzero function has been added to glibc.
3067         This module is intended to supports its use in GNU programs.
3068         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
3069         * m4/explicit_bzero.m4, modules/explicit_bzero:
3070         New files.
3071         * doc/gnulib.texi (Glibc string.h): Link to new doc.
3072         * lib/string.in.h (explicit_bzero): Declare.
3073         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
3074         * modules/string (string.h): Substitute its vars.
3076 2017-07-16  Bruno Haible  <bruno@clisp.org>
3078         threadlib: Support static linking.
3079         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
3080         set gl_cv_have_weak to 'no'.
3082 2017-07-16  Bruno Haible  <bruno@clisp.org>
3084         unicase/locale-language: Fix link dependencies.
3085         * modules/unicase/locale-language (Link): New section.
3086         * modules/unicase/locale-language-tests (Makefile.am): Link
3087         test-locale-language program with $(LIBTHREAD).
3089 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
3091         sys_socket: Add support for OpenVMS.
3092         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
3093         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
3095 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
3097         sys_resource: Add support for OpenVMS.
3098         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
3099         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
3101 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
3102             Bruno Haible  <bruno@clisp.org>
3104         math: Add support for OpenVMS.
3105         * lib/math.in.h [__VMS]: Include <fp.h>.
3106         * doc/posix-headers/math.texi: Mention OpenVMS issues.
3108 2017-07-15  Bruno Haible  <bruno@clisp.org>
3110         getdtablesize: Add minimal support for OpenVMS.
3111         Reported by John E. Malmberg <wb8tyw@qsl.net>.
3112         * modules/getdtablesize (Description): Fix.
3113         * lib/getdtablesize.c: Fix comment.
3114         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
3115         getdtablesize() function, even though the test fails.
3116         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
3117         limitation on OpenVMS.
3119 2017-07-13  Bruno Haible  <bruno@clisp.org>
3121         Revisit cross-compilation guesses.
3122         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
3124 2017-07-13  Bruno Haible  <bruno@clisp.org>
3126         Improve cross-compilation guesses for native Windows.
3127         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
3128         Windows.
3129         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
3130         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
3131         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
3132         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
3133         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
3134         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
3135         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
3136         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3137         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
3138         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
3139         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
3140         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
3141         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
3142         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
3143         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
3144         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
3145         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
3146         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
3147         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
3148         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
3149         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
3150         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
3151         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
3152         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
3153         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
3154         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
3155         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
3156         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
3157         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
3158         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
3159         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
3160         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
3161         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
3162         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
3163         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
3164         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
3165         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
3166         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
3167         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
3168         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
3169         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
3170         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
3171         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
3172         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
3173         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
3174         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
3175         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
3176         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
3177         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
3178         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
3179         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
3180         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
3181         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
3182         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
3183         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
3184         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
3185         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
3186         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
3187         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
3188         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
3189         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
3190         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
3191         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
3192         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
3193         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
3194         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
3195         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
3196         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
3197         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
3198         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
3199         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
3200         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
3201         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
3202         * m4/regex.m4 (gl_REGEX): Likewise.
3203         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
3204         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
3205         gl_FUNC_REMAINDERF_WORKS): Likewise.
3206         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
3207         gl_FUNC_REMAINDERL_WORKS): Likewise.
3208         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
3209         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
3210         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
3211         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3212         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3213         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
3214         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
3215         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
3216         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
3217         * m4/stdint.m4 (gl_STDINT_H): Likewise.
3218         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
3219         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
3220         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
3221         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
3222         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
3223         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3224         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3225         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3226         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
3227         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
3228         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
3229         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
3230         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
3231         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
3232         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
3233         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
3234         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
3235         Likewise.
3236         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
3237         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
3238         Windows. Enable also on Autoconf 2.70.
3239         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
3240         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
3241         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
3242         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
3243         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
3244         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
3245         for native Windows.
3246         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
3247         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
3249 2017-07-13  Bruno Haible  <bruno@clisp.org>
3251         Improve cross-compilation guesses for native Windows.
3252         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
3253         Windows.
3254         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
3255         memchr.m4.
3256         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
3258 2017-07-13  Bruno Haible  <bruno@clisp.org>
3260         Improve cross-compilation guesses for native Windows.
3261         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
3262         native Windows.
3263         (gl_FUNC_FFLUSH): Update accordingly.
3264         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
3265         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
3267 2017-07-11  Bruno Haible  <bruno@clisp.org>
3269         More systematic m4 quoting and indentation.
3270         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
3271         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
3272         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
3273         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
3274         * m4/host-os.m4 (gl_HOST_OS): Likewise.
3275         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
3276         gl_WINSIZE_IN_PTEM): Likewise.
3277         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
3278         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
3279         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
3280         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
3281         Correct indentation.
3282         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3283         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3284         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
3285         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
3286         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
3287         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
3289 2017-07-10  Bruno Haible  <bruno@clisp.org>
3291         round, roundf: Avoid compiler warning in configure test.
3292         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
3293         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3295 2017-07-10  Bruno Haible  <bruno@clisp.org>
3297         getlogin tests: Avoid #ifdefs when sharing code between modules.
3298         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
3299         * modules/getlogin-tests (Files): Likewise. Remove
3300         tests/test-getlogin_r.c.
3301         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
3302         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
3303         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
3304         getlogin().
3306 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
3308         getlogin: don’t assume one name per uid
3309         Problem reported by Wolfgang F. Muthmann (Bug#27640).
3310         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
3311         (ttyname): Remove test.
3312         * modules/getlogin_r-tests (ttyname): Remove test.
3313         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
3314         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
3315         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
3316         getlogin rather than getlogin_r.  This avoids code duplication.
3317         (main): Use isatty and fstat rather than ttyname and stat.
3318         Use getpwnam instead of getpwuid, to be portable to test platforms
3319         that have multiple login names for the same uid.
3321 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
3322             Bruno Haible  <bruno@clisp.org>
3324         glob: Fix more memory leaks.
3325         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
3326         returning.
3327         Reported by Tim Rühsen.
3329 2017-07-10  Bruno Haible  <bruno@clisp.org>
3331         Make sure $host and $host_os are defined when used.
3332         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
3333         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
3334         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
3335         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
3336         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
3337         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
3338         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
3339         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
3340         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
3341         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
3342         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
3343         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
3344         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
3345         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
3346         m4_ifdef block.
3348 2017-07-09  Bruno Haible  <bruno@clisp.org>
3350         *printf: Fix cross-compilation guess for Solaris.
3351         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
3352         2010-12-21.
3354 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
3355             Bruno Haible  <bruno@clisp.org>
3357         vasnprintf: port to macOS 10.13
3358         Problem reported by comex in:
3359         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
3360         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
3362 2017-07-06  Bruno Haible  <bruno@clisp.org>
3364         imaxdiv tests: Fix logic.
3365         * tests/test-imaxdiv.c (main): Use == instead of =.
3366         Reported by Coverity.
3368 2017-07-06  Bruno Haible  <bruno@clisp.org>
3370         uninorm/filter: Fix use-after-free bug.
3371         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
3372         sortbuf == filter->sortbuf invariant.
3373         Reported by Coverity.
3375 2017-07-06  Bruno Haible  <bruno@clisp.org>
3377         glob: Fix more memory leaks.
3378         * lib/glob.c (glob): Free dirname before returning.
3379         Reported by Coverity and Tim Rühsen.
3381 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
3383         parse-datetime: fix uninit var bug
3384         Reported by Bruno Haible in:
3385         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
3386         * lib/parse-datetime.y (parse_datetime2): Do not use
3387         uninitialized.
3389 2017-07-05  Bruno Haible  <bruno@clisp.org>
3391         doc: Update for MSVC 14.
3392         * doc/posix-headers/*.texi: Add info about MSVC 14.
3393         * doc/posix-functions/*.texi: Likewise.
3394         * doc/pastposix-functions/*.texi: Likewise.
3395         * doc/glibc-headers/*.texi: Likewise.
3396         * doc/glibc-functions/*.texi: Likewise.
3398 2017-07-05  Bruno Haible  <bruno@clisp.org>
3400         sched: Fix build failure on native Windows (regression from 2017-06-19).
3401         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
3403 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
3405         stdioext: Port to OpenVMS.
3406         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
3407         * lib/fpending.c (fpending): Remove non-working VMS specific code.
3408         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
3409         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
3410         * lib/fpurge.c (fpurge): Likewise.
3411         * lib/freadable.c (freadable): Likewise.
3412         * lib/freadahead.c (freadahead): Likewise.
3413         * lib/freading.c (freading): Likewise.
3414         * lib/freadptr.c (freadptr): Likewise.
3415         * lib/freadseek.c (freadseek): Likewise.
3416         * lib/fseeko.c (fseeko): Likewise.
3417         * lib/fseterr.c (fseterr): Likewise.
3418         * lib/fwritable.c (fwriteable): Likewise.
3419         * lib/fwriting.c (fwriting): Likewise.
3421 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
3423         glob: Declare variables at the very start of their scope.
3424         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
3425         its separate scope, so the functions will compile on Haiku.
3427 2017-07-01  Bruno Haible  <bruno@clisp.org>
3429         logbl: Work around a glibc bug on PowerPC64LE.
3430         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
3431         numbers.
3432         * doc/posix-functions/logbl.texi: Update.
3434 2017-06-29  Bruno Haible  <bruno@clisp.org>
3436         stat, fstat: Compile stat-w32.c only on platforms that need it.
3437         Suggested by Paul Eggert.
3438         * modules/stat (configure.ac): Request stat-w32.o only on native
3439         Windows.
3440         * modules/fstat (configure.ac): Likewise.
3442 2017-06-25  Bruno Haible  <bruno@clisp.org>
3444         stat: Improve last change.
3445         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
3447 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
3449         stat: port to xlc 12.01
3450         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
3451         12.01 complains "Compilation unit is empty."
3453 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
3455         xalloc-oversized: port to icc
3456         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
3457         __builtin_mul_overflow if ICC is defined, as this results in
3458         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
3459         20170213.
3461 2017-06-19  Bruno Haible  <bruno@clisp.org>
3463         classpath: Avoid including config.h twice, as it produces warnings.
3464         Reported by John E. Malmberg <wb8tyw@gmail.com>.
3465         * lib/classpath.h: Conditionalize the include of config.h.
3467 2017-06-19  Bruno Haible  <bruno@clisp.org>
3468             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
3470         sched: Fix compilation failure on OpenVMS.
3471         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
3472         test whether <pthread.h> exists and defines struct sched_param.
3473         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
3475 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
3477         diffseq: port to GCC 7 with --enable-gcc-warnings
3478         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
3479         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
3480         not complain about big_snake being defined but not used.
3482 2017-06-15  Bruno Haible  <bruno@clisp.org>
3484         gettext-h: Update theoretical condition for use of variable size arrays.
3485         Reported by Paul Eggert.
3486         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
3487         to include the theoretical condition for availability of variable size
3488         arrays, if we could trust the value of __STDC_VERSION__.
3490 2017-06-12  Bruno Haible  <bruno@clisp.org>
3492         Relicense some modules under LGPLv2+.
3493         Daiki Ueno's approval is in
3494         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
3495         * modules/uniwidth/base (License): Change to LGPLv2+.
3496         * modules/uniwidth/width (License): Likewise.
3498 2017-06-11  Bruno Haible  <bruno@clisp.org>
3500         localename: Fix test failure on DragonFly BSD.
3501         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
3502         like FreeBSD.
3504 2017-06-11  Bruno Haible  <bruno@clisp.org>
3506         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
3507         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
3508         * lib/float.in.h: Likewise.
3509         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
3511 2017-06-11  Bruno Haible  <bruno@clisp.org>
3513         gnulib-tool: Clean up after autotools.
3514         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
3515         useless directory left over by the Autotools.
3517 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
3519         getopt-posix: port to glibc 2.25.90
3520         Problem reported by Daniel P. Berrange in:
3521         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
3522         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
3523         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
3524         #undef if __GETOPT_PREFIX is defined.
3526 2017-06-11  Bruno Haible  <bruno@clisp.org>
3528         strtod-obsolete: Fix license.
3529         * modules/strtod-obsolete (License): Change to LGPL.
3531 2017-06-10  Jim Meyering  <meyering@fb.com>
3533         maint: update to work with GCC7's -Werror=implicit-fallthrough=
3534         * lib/savewd.c (FALLTHROUGH): Define.
3535         (savewd_save, savewd_restore): Use this, rather than a comment,
3536         whenever one switch case falls through into the next.
3538 2017-06-08  Bruno Haible  <bruno@clisp.org>
3540         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
3541         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
3542         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
3543         case.
3545 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
3547         doc: remove robots, add prereqs
3548         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
3549         builds.  Simon's robot site does not seem to be up, so remove
3550         mentions of it for now.
3552 2017-06-08  Bruno Haible  <bruno@clisp.org>
3554         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
3555         * gnulib-tool (func_symlink_target): New function, extracted from
3556         func_symlink.
3557         (func_symlink, func_symlink_if_changed): Use it.
3559 2017-06-08  Bruno Haible  <bruno@clisp.org>
3561         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
3562         * gnulib-tool (func_ln_s): Determine cp_src correctly.
3564 2017-06-07  Bruno Haible  <bruno@clisp.org>
3566         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
3567         Reported by John E. Malmberg <wb8tyw@gmail.com> in
3568         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
3569         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
3570         override, pass 2 arguments to getcwd, not 3.
3572 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
3574         same-inode: port better to VMS 8.2 and later
3575         Problem reported by John E. Malmberg in:
3576         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
3577         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
3578         Use the usual POSIX definition.
3579         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
3581 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
3583         error: fix POSIX violation for va_end
3584         Problem reported by Bruno Haible in:
3585         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
3586         * lib/error.c (error_tail): Do not call va_end here.
3587         (error, error_at_line): Call it here instead.
3589 2017-05-28  Bruno Haible  <bruno@clisp.org>
3591         c-strtod: Make it usable in C++ mode.
3592         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
3594 2017-05-25  Jim Meyering  <meyering@fb.com>
3596         quotearg: fix compilation failure due to FALLTHROUGH misuse
3597         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
3598         macro back to /* fall through */ comment.  The macro can apply only
3599         to a following case statement.  Reported by Assaf Gordon.
3601 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
3603         intprops: port to recent icc
3604         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
3605         but does not support __builtin_add_overflow etc.
3606         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
3607         Define to 0.
3609 2017-05-23  Karl Berry  <karl@freefriends.org>
3611         * config/srclist.txt (iconv.m4): sync broken, comment out
3612         until (hopefully) the next gettext release.
3614 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
3616         Remove repeated words in comments.
3618 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
3620         fallthrough: reinstate a FALLTHROUGH instance in quotearg
3621         quotearg.c: Reinstate this instance which is significant
3622         when the if branch is not taken.
3624 2017-05-21  Bruno Haible  <bruno@clisp.org>
3626         gnulib-tool: Add options to create hard links.
3627         * gnulib-tool (func_usage): Document options --hardlink,
3628         --local-hardlink, --more-hardlinks.
3629         (func_symlink): Renamed from func_ln.
3630         (func_symlink_if_changed): Renamed from func_ln_if_changed.
3631         (func_hardlink): New function.
3632         (copymode, lcopymode): New variables.
3633         (symbolic, lsymbolic): Remove variables.
3634         (Options): Implement options --hardlink, --local-hardlink,
3635         --more-hardlinks.
3636         (func_should_link): Renamed from func_should_symlink. Set copyaction.
3637         (func_add_file, func_update_file): Update invocation of
3638         func_should_link. Invoke func_hardlink when appropriate.
3639         (func_import): Update comments.
3640         (func_create_testdir): Update invocation of func_should_link. Invoke
3641         func_hardlink when appropriate.
3642         Finally, invoke 'git update-index --refresh' to mitigate the effects of
3643         the hard links on git.
3645 2017-05-20  Bruno Haible  <bruno@clisp.org>
3647         argp: Simplify bit manipulation.
3648         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
3649         on a signed integer type.
3651 2017-05-20  Bruno Haible  <bruno@clisp.org>
3653         Avoid wrong configure results with gcc -fsanitize=address.
3654         This completes the work done on 2016-02-06 on this topic.
3655         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
3656         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
3657         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3658         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
3659         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
3660         returning.
3661         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
3662         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
3663         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
3664         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
3665         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
3666         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
3667         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
3668         free allocated memory before returning.
3669         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
3670         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
3671         objects before returning.
3672         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
3673         returning.
3675 2017-05-20  Bruno Haible  <bruno@clisp.org>
3677         gnulib-tool: Don't create hard links between gnulib and its testdirs.
3678         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
3680 2017-05-20  Bruno Haible  <bruno@clisp.org>
3682         argp, tsearch tests: Fix file list.
3683         * modules/argp-tests (Files): Add tests/macros.h.
3684         * modules/tsearch-tests (Files): Likewise.
3686 2017-05-20  Bruno Haible  <bruno@clisp.org>
3688         getopt-posix tests: Remove redundant include.
3689         * tests/test-getopt.h: Don't include "macros.h". It's already included
3690         by tests/test-getopt-main.h.
3692 2017-05-19  Jim Meyering  <meyering@fb.com>
3694         dfa: two small simplifications
3695         * lib/dfa.c (build_state): Avoid repeating longer expressions.
3697 2017-05-18  Jim Meyering  <meyering@fb.com>
3699         fallthrough: update for GCC 7/8
3700         * lib/quotearg.c (FALLTHROUGH): New macro.
3701         Use it whenever one switch case falls through into the next,
3702         replacing "/* Fall through */" comments.  This exposed one
3703         instance of an unwarranted "fall through" comment: unwarranted
3704         because it preceded a "goto" label not a case statement.
3705         * lib/freopen-safer.c (freopen_safer): Likewise.
3706         * lib/fts.c (leaf_optimization_applies): Likewise.
3707         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
3708         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
3709         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
3710         tests/macros.h for the definition.
3711         * tests/test-argp.c (group1_parser): Likewise.
3712         * tests/test-getopt.h (getopt_loop): Likewise.
3714 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
3716         argp: fix shift bug
3717         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
3718         behavior on shift overflow, caught by gcc -fsanitize=undefined.
3720         argp: fix pointer-subtraction bug
3721         * lib/argp-help.c (hol_append): Don’t subtract pointers to
3722         different arrays, as this can run afoul of -fcheck-pointer-bounds.
3723         See the thread containing Bruno Haible’s report in:
3724         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
3726 2017-05-19  Bruno Haible  <bruno@clisp.org>
3728         printf-posix tests: Avoid test failure with "gcc --coverage".
3729         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
3730         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
3731         than 5000000.
3732         * tests/test-fprintf-posix2.c (main): Likewise.
3734 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
3736         closeout: don’t close stderr when sanitizing
3737         * NEWS: Document this.
3738         * lib/closeout.c (__has_feature): New macro, if not already defined.
3739         (SANITIZE_ADDRESS): New constant.
3740         (close_stdout): Don’t close stderr if sanitizing addresses.
3742 2017-05-19  Bruno Haible  <bruno@clisp.org>
3744         get-rusage-data tests: Avoid failure on Linux/glibc.
3745         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
3746         on glibc systems.
3748 2017-05-18  Bruno Haible  <bruno@clisp.org>
3750         localename: Include necessary header files on Cygwin.
3751         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
3752         where NL_LOCALE_NAME is defined.
3754 2017-05-18  Bruno Haible  <bruno@clisp.org>
3756         gettext: Update macros from gettext git.
3757         * m4/intldir.m4: Require Autoconf >= 2.60.
3758         * m4/progtest.m4: Fix typos in copyright notice.
3760 2017-05-18  Bruno Haible  <bruno@clisp.org>
3762         copy-file tests: Fix link error (regression from 2017-05-01).
3763         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3764         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
3765         $(LIB_CLOCK_GETTIME).
3767 2017-05-18  Bruno Haible  <bruno@clisp.org>
3769         unicase/special-casing: Fix incompatibility with gperf-3.0.4
3770         (regression from 2017-02-13).
3771         * lib/unicase/special-casing.in.h: Renamed from
3772         lib/unicase/special-casing.h.
3773         * modules/unicase/special-casing (Files): Add
3774         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
3775         (Makefile.am): Add rule for generating unicase/special-casing.h.
3776         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
3777         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
3778         not "special-casing.h".
3779         * lib/unicase/u*.c: Likewise.
3781 2017-05-17  Bruno Haible  <bruno@clisp.org>
3783         README: Don't ask people to read a TeXinfo file.
3784         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
3785         * README: Tell people how to read the HTML formatted manual.
3787 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
3789         parse-datetime: Fix memleak
3790         * lib/parse-datetime.y (parse_datetime2): Cleanup on
3791         localtime_rz() failure.
3793 2017-05-16  Bruno Haible  <bruno@clisp.org>
3795         javacomp: Fix handle leak.
3796         Found by Coverity.
3797         * lib/javacomp.c (get_classfile_version): Close fd before returning.
3799 2017-05-16  Bruno Haible  <bruno@clisp.org>
3801         relocate: Make it easier to reclaim allocated memory.
3802         * lib/relocatable.h (relocate2): New declaration/macro.
3803         * lib/relocatable.c (relocate2): New function.
3804         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
3805         relocate2 function.
3806         * lib/localcharset.c (relocate2): Define fallback.
3807         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
3808         allocated memory.
3809         * lib/javaversion.c (relocate2): Define fallback.
3810         (javaexec_version): Invoke relocate2 instead of relocate. Free the
3811         allocated memory.
3813 2017-05-16  Bruno Haible  <bruno@clisp.org>
3815         relocate: Simplify EMX specific code.
3816         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
3817         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
3819 2017-05-16  Bruno Haible  <bruno@clisp.org>
3821         sigpipe tests: Fix file list.
3822         * modules/sigpipe-tests (Files): Add tests/macros.h.
3824 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
3826         manywarnings: update for GCC 7
3827         * build-aux/gcc-warning.spec:
3828         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
3829         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
3830         requires a non-comment fallthrough attribute.  This is a bit
3831         cleaner than the comment versions.
3832         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
3833         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
3834         Use it whenever one switch case falls through into the next.
3835         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
3836         Use FALLTHROUGH macro.
3838 2017-05-15  Bruno Haible  <bruno@clisp.org>
3840         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
3841         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
3842         @ALLOCA@, not @LTALLOCA@.
3844 2017-05-15  Bruno Haible  <bruno@clisp.org>
3846         sys_select: Avoid "was expanded before it was required" warning.
3847         * modules/sys_select (configure.ac): Require, not invoke,
3848         gl_HEADER_SYS_SELECT.
3850 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
3852         gnulib-tool: improve GNU Make debugging
3853         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
3854         Report autoconf diagnostics when it fails, in the output makefile.
3856 2017-05-14  Bruno Haible  <bruno@clisp.org>
3858         stat-time tests: Improve comment.
3859         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
3861 2017-05-14  Bruno Haible  <bruno@clisp.org>
3863         same-inode: Adapt for windows-stat-inodes.
3864         * lib/same-inode.h: Include <sys/types.h>.
3865         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
3866         * modules/same-inode (Depends-on): Add sys_types.
3868 2017-05-14  Bruno Haible  <bruno@clisp.org>
3870         windows-stat-inodes: New module.
3871         * m4/windows-stat-inodes.m4: New file.
3872         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
3873         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
3874         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
3875         (_GL_WINDOWS_STAT_INODES): New macro.
3876         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
3877         (GetFileInformationByHandleExFunc): New variable.
3878         (initialize): Initialize it.
3879         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
3880         st_ino appropriately.
3881         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
3882         a fallback, because it does not provide st_dev and st_ino values.
3883         * modules/fstat (Depends-on): Add 'verify'.
3884         * modules/windows-stat-inodes: New file.
3885         * doc/windows-stat-inodes.texi: New file.
3886         * doc/gnulib.texi: Include it.
3887         * doc/posix-headers/sys_stat.texi: Mention the new module.
3889 2017-05-14  Bruno Haible  <bruno@clisp.org>
3891         stat-time tests: Workaround for native Windows.
3892         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
3893         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
3894         New variables.
3895         (initialize_filenames): New function.
3896         (main): Invoke it.
3897         (cleanup, prepare_test): Update.
3899 2017-05-14  Bruno Haible  <bruno@clisp.org>
3901         stat-time: Adapt for windows-stat-timespec.
3902         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
3903         entire st_ctim field.
3905 2017-05-13  Jim Meyering  <meyering@fb.com>
3907         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
3908         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
3909         file that uses the assume macro, claiming that verify.h is unused.
3911 2017-05-13  Bruno Haible  <bruno@clisp.org>
3913         Use symbolic values for _WIN32_WINNT.
3914         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
3915         * lib/sethostname.c (_WIN32_WINNT): Likewise.
3917 2017-05-13  Bruno Haible  <bruno@clisp.org>
3919         year2038: New module.
3920         * m4/year2038.m4: New file.
3921         * modules/year2038: New file.
3922         * doc/year2038.texi: New file.
3923         * doc/gnulib.texi: Include it.
3925 2017-05-13  Bruno Haible  <bruno@clisp.org>
3927         largefile: Simplify.
3928         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
3929         of _GL_WINDOWS_64_BIT_ST_SIZE.
3931 2017-05-13  Bruno Haible  <bruno@clisp.org>
3933         largefile: Improve and document.
3934         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
3935         the mingw headers already define 'stat' appropriately.
3936         * modules/largefile (Description): Clarify.
3937         * doc/largefile.texi: New file.
3938         * doc/gnulib.texi: Include it.
3939         * doc/posix-headers/sys_types.texi: Update.
3941 2017-05-13  Bruno Haible  <bruno@clisp.org>
3943         truncate: New module.
3944         * lib/unistd.in.h (truncate): New declaration.
3945         * lib/truncate.c: New file.
3946         * m4/truncate.m4: New file.
3947         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
3948         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
3949         REPLACE_TRUNCATE.
3950         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
3951         HAVE_TRUNCATE, REPLACE_TRUNCATE.
3952         * modules/truncate: New file.
3953         * tests/test-unistd-c++.cc (truncate): Test signature.
3954         * doc/posix-functions/truncate.texi: Mention the new module.
3956         * tests/test-truncate.c: New file.
3957         * modules/truncate-tests: New file.
3959 2017-05-13  Bruno Haible  <bruno@clisp.org>
3961         windows-stat-timespec: New module.
3962         * modules/windows-stat-timespec: New file.
3963         * m4/windows-stat-timespec.m4: New file.
3964         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
3965         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
3966         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
3967         fields st_atim, st_mtim, st_ctim.
3968         (st_atime, st_mtime, st_ctime): Define as macros.
3969         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
3970         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
3971         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
3972         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
3973         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
3974         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
3975         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
3976         FILETIME to 'struct timespec', not 'time_t'.
3977         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
3978         FILETIME to 'struct timespec', not 'time_t'.
3979         * lib/stat-time.h (STAT_TIMESPEC): Define also if
3980         _GL_WINDOWS_STAT_TIMESPEC.
3981         * doc/windows-stat-timespec.texi: New file.
3982         * doc/gnulib.texi: Include it.
3984 2017-05-13  Bruno Haible  <bruno@clisp.org>
3986         windows-stat-override: New module.
3987         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
3988         definition. Define GNULIB_defined_struct_stat.
3989         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
3990         link error if this symbol is used and the corresponding module is not
3991         in use.
3992         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
3993         GNULIB_OVERRIDES_STRUCT_STAT.
3994         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
3995         GNULIB_OVERRIDES_STRUCT_STAT.
3996         * modules/sys_stat (Makefile.am): Substitute
3997         GNULIB_OVERRIDES_STRUCT_STAT.
3998         * modules/windows-stat-override: New file.
4000 2017-05-13  Bruno Haible  <bruno@clisp.org>
4002         fstat: Fix module dependency conditions.
4003         * modules/fstat (Depends-on): Fix typo.
4005 2017-05-13  Bruno Haible  <bruno@clisp.org>
4007         stat, fstat: Complete removal of old native Windows code.
4008         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
4009         * lib/fstat.c: Likewise.
4010         * lib/stat-w32.c: Likewise.
4012 2017-05-13  Bruno Haible  <bruno@clisp.org>
4014         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
4015         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
4017 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
4019         getopt-posix: port to mingw
4020         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
4021         Problem reported by Daniel P. Berrage in:
4022         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
4024 2017-05-11  Bruno Haible  <bruno@clisp.org>
4026         gettimeofday: Increase precision on mingw.
4027         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
4028         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
4029         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
4030         GetSystemTimePreciseAsFileTime based implementation always.
4031         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
4032         mingw.
4034 2017-05-11  Bruno Haible  <bruno@clisp.org>
4036         poll: Fix confusion between SOCKETs and FDs on native Windows.
4037         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
4038         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
4040 2017-05-11  Bruno Haible  <bruno@clisp.org>
4042         doc: Clarify doc about socket functions on native Windows.
4043         This reworks doc that was added on 2008-09-29.
4044         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
4045         clearer wording.
4046         * doc/posix-functions/accept.texi: Use clearer wording.
4047         * doc/posix-functions/bind.texi: Likewise.
4048         * doc/posix-functions/connect.texi: Likewise.
4049         * doc/posix-functions/getpeername.texi: Likewise.
4050         * doc/posix-functions/getsockname.texi: Likewise.
4051         * doc/posix-functions/getsockopt.texi: Likewise.
4052         * doc/posix-functions/ioctl.texi: Likewise.
4053         * doc/posix-functions/listen.texi: Likewise.
4054         * doc/posix-functions/recv.texi: Likewise.
4055         * doc/posix-functions/recvfrom.texi: Likewise.
4056         * doc/posix-functions/send.texi: Likewise.
4057         * doc/posix-functions/sendto.texi: Likewise.
4058         * doc/posix-functions/setsockopt.texi: Likewise.
4059         * doc/posix-functions/shutdown.texi: Likewise.
4060         * doc/posix-functions/socket.texi: Likewise.
4062 2017-05-10  Bruno Haible  <bruno@clisp.org>
4064         poll: Fix link error on native Windows.
4065         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
4067 2017-05-10  Bruno Haible  <bruno@clisp.org>
4069         time: Fix missing initialization of HAVE_TIMEZONE_T.
4070         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
4071         here...
4072         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
4073         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
4074         gl_HEADER_SYS_TIME_H_DEFAULTS.
4075         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
4076         (configure.ac): Remove useless quoting.
4078 2017-05-10  Bruno Haible  <bruno@clisp.org>
4080         Implement a way to opt out from MSVC support, part 2.
4081         * modules/msvc-inval (Include): Document recommended idiom.
4082         * modules/msvc-nothrow (Include): Likewise.
4084         Implement a way to opt out from MSVC support.
4085         This is useful for Emacs.
4086         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
4087         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
4088         * lib/error.c: Likewise.
4089         * lib/fcntl.c: Likewise.
4090         * lib/flock.c: Likewise.
4091         * lib/fstat.c: Likewise.
4092         * lib/fsync.c: Likewise.
4093         * lib/ioctl.c: Likewise.
4094         * lib/isapipe.c: Likewise.
4095         * lib/lseek.c: Likewise.
4096         * lib/nonblocking.c: Likewise.
4097         * lib/poll.c: Likewise.
4098         * lib/select.c: Likewise.
4099         * lib/sockets.h: Likewise.
4100         * lib/sockets.c: Likewise.
4101         * lib/stdio-read.c: Likewise.
4102         * lib/stdio-write.c: Likewise.
4103         * lib/utimens.c: Likewise.
4104         * lib/w32sock.h: Likewise.
4105         * lib/w32spawn.h: Likewise.
4106         * tests/test-cloexec.c: Likewise.
4107         * tests/test-dup-safer.c: Likewise.
4108         * tests/test-dup2.c: Likewise.
4109         * tests/test-dup3.c: Likewise.
4110         * tests/test-fcntl.c: Likewise.
4111         * tests/test-pipe.c: Likewise.
4112         * tests/test-pipe2.c: Likewise.
4113         * lib/ftruncate.c: Likewise.
4114         (chsize_nothrow): Renamed from chsize.
4115         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
4116         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
4117         * lib/close.c: Likewise.
4118         * lib/dup.c: Likewise.
4119         * lib/fclose.c: Likewise.
4120         * lib/raise.c: Likewise.
4121         * tests/test-fgetc.c: Likewise.
4122         * tests/test-fputc.c: Likewise.
4123         * tests/test-fread.c: Likewise.
4124         * tests/test-fwrite.c: Likewise.
4125         * lib/getdtablesize.c: Likewise.
4126         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
4127         * lib/isatty.c: Don't include msvc-inval.h if
4128         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
4129         Include <io.h> as an alternative to msvc-nothrow.h.
4130         * lib/read.c: Likewise.
4131         * lib/write.c: Likewise.
4132         * lib/dup2.c: Likewise.
4133         (dup2_nothrow): New function.
4134         (ms_windows_dup2): Use it.
4135         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
4136         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
4137         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
4138         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
4139         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
4140         * m4/read.m4 (gl_FUNC_READ): Likewise.
4141         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
4142         * doc/windows-without-msvc.texi: New file.
4143         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
4144         section.
4146 2017-05-10  Bruno Haible  <bruno@clisp.org>
4148         wait-process: Adjust native Windows support.
4149         * lib/wait-process.c: Use the usual condition for recognizing a native
4150         Windows platform.
4152 2017-05-10  Bruno Haible  <bruno@clisp.org>
4154         doc: New chapter "Native Windows Support".
4155         * doc/gnulib.texi (Native Windows Support): New chapter.
4156         * doc/windows-libtool.texi: Small wording changes.
4157         * doc/windows-sockets.texi: Small wording and formatting changes.
4159 2017-05-10  Bruno Haible  <bruno@clisp.org>
4161         doc: Move section "Library version handling".
4162         * doc/gnulib.texi: Move section "Library version handling"
4163         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
4165 2017-05-10  Bruno Haible  <bruno@clisp.org>
4167         doc: Move section "Running self-tests under valgrind".
4168         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
4169         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
4171 2017-05-10  Bruno Haible  <bruno@clisp.org>
4173         doc: New chapter "Build Infrastructure Modules".
4174         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
4176 2017-05-10  Bruno Haible  <bruno@clisp.org>
4178         Prepare for reordering sections in the manual.
4179         * doc/gnulib.texi: Move several sections to separate files. Include
4180         these files.
4181         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
4182         * doc/obsolete.texi: Likewise.
4183         * doc/extra-tests.texi: Likewise.
4184         * doc/transversal.texi: Likewise.
4185         * doc/namespace.texi: Likewise.
4186         * doc/check-version.texi: Likewise.
4187         * doc/windows-sockets.texi: Likewise.
4188         * doc/windows-libtool.texi: Likewise.
4189         * doc/licenses-texi.texi: Likewise.
4190         * doc/build-automation.texi: Likewise.
4191         * doc/c-locale.texi: Likewise.
4193 2017-05-10  Bruno Haible  <bruno@clisp.org>
4195         Fix instructions how to update manual on www.gnu.org.
4196         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
4198 2017-05-09  Bruno Haible  <bruno@clisp.org>
4200         tzset: Expand comment about TZ problem on native Windows.
4201         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
4202         Paul Eggert.
4203         * lib/ctime.c (rpl_ctime): Likewise.
4204         * lib/localtime.c (rpl_localtime): Likewise.
4205         * lib/mktime.c (mktime): Likewise.
4206         * lib/strftime-fixes.c (rpl_strftime): Likewise.
4207         * lib/wcsftime.c (rpl_wcsftime): Likewise.
4209 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
4211         intprops: don’t depend on ‘verify’
4212         Problem reported by Ævar Arnfjörð Bjarmason in:
4213         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
4214         * lib/intprops.h: Do not include verify.h, and move compile-time
4215         checks from here ...
4216         * tests/test-intprops.c (main): ... to here, if they’re not here
4217         already.  Check widths of other standard integer types.
4218         * modules/intprops (Depends-on): Remove ‘verify’.
4220 2017-05-07  Bruno Haible  <bruno@clisp.org>
4222         utimens: On native Windows, support 100ns resolution also if fd < 0.
4223         * lib/utime.in.h: Include <time.h>.
4224         (_gl_utimens_windows): New declaration.
4225         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
4226         (utime): Invoke it.
4227         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
4228         instead of utime.
4229         * modules/utime (Depends-on): Add 'time'.
4231 2017-05-07  Bruno Haible  <bruno@clisp.org>
4233         utimens: Improve error code on native Windows.
4234         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
4235         error code EACCES, not EINVAL.
4237 2017-05-07  Bruno Haible  <bruno@clisp.org>
4239         utime: Handle more Windows error codes.
4240         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
4241         Based on explanations by Billy O'Neal.
4243 2017-05-05  Bruno Haible  <bruno@clisp.org>
4245         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
4246         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
4247         union.
4248         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
4249         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
4250         value of cipher->IV.
4252 2017-05-05  Bruno Haible  <bruno@clisp.org>
4254         wctype-h-c++-tests: Update.
4255         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
4257 2017-05-05  Bruno Haible  <bruno@clisp.org>
4259         wchar-c++-tests: Update.
4260         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
4262 2017-05-05  Bruno Haible  <bruno@clisp.org>
4264         utime-h-c++-tests: New module.
4265         * tests/test-utime-h-c++.cc: New file.
4266         (utime): Declare, missing since 2017-04-30.
4267         * modules/utime-h-c++-tests: New file.
4269 2017-05-05  Bruno Haible  <bruno@clisp.org>
4271         unistd-c++-tests: Update.
4272         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
4273         (read): Declare, missing since 2011-04-15.
4274         (sethostname): Declare, missing since 2011-12-03.
4276 2017-05-05  Bruno Haible  <bruno@clisp.org>
4278         time-c++-tests: Update.
4279         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
4280         (localtime, gmtime): Declare, missing since 2017-04-30.
4281         (ctime): Declare, missing since 2017-04-30.
4282         (strftime): Declare, missing since 2017-04-30.
4283         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
4284         2015-07-24.
4286 2017-05-05  Bruno Haible  <bruno@clisp.org>
4288         sys_resource-c++-tests: New module.
4289         * tests/test-sys_resource-c++.cc: New file.
4290         (getrusage): Declare, missing since 2012-04-13.
4291         * modules/sys_resource-c++-tests: New file.
4293 2017-05-05  Bruno Haible  <bruno@clisp.org>
4295         strings-c++-tests: New module.
4296         * tests/test-strings-c++.cc: New file.
4297         (ffs): Declare, missing since 2011-07-12.
4298         * modules/strings-c++-tests: New file.
4300 2017-05-05  Bruno Haible  <bruno@clisp.org>
4302         string-c++-tests: Update.
4303         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
4304         (ffsll): Declare, missing since 2011-07-15.
4306 2017-05-05  Bruno Haible  <bruno@clisp.org>
4308         stdlib-c++-tests: Update.
4309         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
4310         2011-10-18.
4311         (ptsname_r): Declare, missing since 2011-11-07.
4312         (qsort_r): Declare, missing since 2014-08-29.
4313         (random, srandom, initstate, setstate): Declare, missing since
4314         2012-01-14.
4315         (secure_getenv): Declare, missing since 2013-02-05.
4317 2017-05-05  Bruno Haible  <bruno@clisp.org>
4319         stdio-c++-tests: Update.
4320         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
4322 2017-05-05  Bruno Haible  <bruno@clisp.org>
4324         signal-h-c++-tests: Update.
4325         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
4327 2017-05-05  Bruno Haible  <bruno@clisp.org>
4329         math-c++-tests: Update.
4330         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
4331         (fma): Declare, missing since 2011-10-17.
4332         (fmal): Declare, missing since 2011-10-17.
4334 2017-05-05  Bruno Haible  <bruno@clisp.org>
4336         locale-c++-tests: Update.
4337         * tests/test-locale-c++.cc (localeconv): Declare, missing since
4338         2012-03-25.
4340 2017-05-05  Bruno Haible  <bruno@clisp.org>
4342         inttypes-c++-tests: New module.
4343         * tests/test-inttypes-c++.cc: New file.
4344         (strtoimax): Declare, missing since 2012-01-05.
4345         (strtoumax): Declare, missing since 2012-01-05.
4346         * modules/inttypes-c++-tests: New file.
4348 2017-05-05  Bruno Haible  <bruno@clisp.org>
4350         dirent-c++-tests: Update.
4351         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
4352         (rewinddir): Declare, missing since 2011-09-13.
4353         (dirfd): Declare, missing since 2010-03-08.
4355 2017-05-04  Bruno Haible  <bruno@clisp.org>
4357         argp: Fix mistake in 2017-04-23 commit.
4358         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
4359         assume that strerror_r returns 'int', not 'char *'.
4361 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
4363         argp: Fix typo.
4364         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
4366 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
4368         utimens: port to Emacs + MS-Windows
4369         Skip the new MS-Windows-specific code if Emacs.
4370         * lib/utimens.c [EMACS_CONFIGUATION]:
4371         Avoid new MS-Windows-specific code.
4372         (USE_SETFILETIME): New macro.
4373         (fdutimens): Use it.
4375 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
4377         tzset: update doc for TZ problems on MS-Windows
4378         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
4379         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
4380         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
4381         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
4382         * doc/posix-functions/wcsftime.texi:
4383         Mention some issues with TZ under MS-Windows.
4385 2017-05-01  Bruno Haible  <bruno@clisp.org>
4387         copy-file: Fix build error on mingw.
4388         * modules/copy-file (Depends-on): Add 'close'.
4390 2017-05-01  Bruno Haible  <bruno@clisp.org>
4392         tzset: Work around TZ problem on native Windows.
4393         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
4394         Windows, set REPLACE_TZSET to 1.
4395         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
4396         invoke '_tzset' instead of 'tzset'.
4397         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
4399         * modules/time_rz (Depends-on): Add tzset.
4400         * lib/time_rz.c (tzset): Remove fallback definition.
4401         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
4403 2017-05-01  Bruno Haible  <bruno@clisp.org>
4405         mktime: Fix dependencies.
4406         * modules/mktime (Depends-on): Add 'time'.
4408 2017-05-01  Bruno Haible  <bruno@clisp.org>
4410         New module 'localtime-buffer', split off from module 'gettimeofday'.
4411         * lib/localtime-buffer.h: New file.
4412         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
4413         * lib/time.in.h (tzset): New declaration.
4414         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
4415         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
4416         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
4417         moved to lib/localtime-buffer.c or lib/tzset.c.
4418         * m4/localtime-buffer.m4: New file.
4419         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
4420         HAVE_TZSET, REPLACE_TZSET.
4421         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
4422         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
4423         gl_LOCALTIME_BUFFER_NEEDED.
4424         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
4425         since 2007-01-18.
4426         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
4427         tzset.
4428         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
4429         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
4430         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
4431         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
4432         * modules/localtime-buffer: New file.
4433         * modules/time (Depends-on): Remove 'gettimeofday'.
4434         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
4435         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
4436         * modules/tzset (Description): Enable hyperlink to POSIX spec.
4437         (Files): Add lib/tzset.c.
4438         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
4439         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
4440         gl_TIME_MODULE_INDICATOR.
4441         * modules/gettimeofday (Depends-on): Add localtime-buffer.
4443 2017-05-01  Bruno Haible  <bruno@clisp.org>
4445         copy-file: Preserve sub-second time stamps.
4446         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
4447         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
4448         transport the time stamps from the original file to the destination
4449         file.
4450         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
4451         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
4452         utime-h.
4454 2017-05-01  Bruno Haible  <bruno@clisp.org>
4456         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
4457         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
4458         also on MSVC.
4459         Reported by Eli Zaretskii <eliz@gnu.org>.
4461 2017-05-01  Bruno Haible  <bruno@clisp.org>
4463         wchar: Fix compilation error with the original mingw.org mingw.
4464         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
4465         <stddef.h> instead.
4466         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
4467         gl_WCTYPE_H.
4468         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
4469         gl_TYPE_WINT_T_PREREQ instead.
4470         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
4471         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
4472         Reported by Eli Zaretskii <eliz@gnu.org>.
4474 2017-04-30  Bruno Haible  <bruno@clisp.org>
4476         utimecmp: Add support for native Windows.
4477         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
4479 2017-04-30  Bruno Haible  <bruno@clisp.org>
4481         utimens: Add support for native Windows.
4482         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
4483         (fdutimens): Provide a native Windows implementation, like utime.c with
4484         added tv_nsec support.
4485         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
4486         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
4488 2017-04-30  Bruno Haible  <bruno@clisp.org>
4490         wcsftime: New module.
4491         * lib/wchar.in.h (wcsftime): New declaration.
4492         * lib/wcsftime.c: New file.
4493         * m4/wcsftime.m4: New file.
4494         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
4495         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
4496         HAVE_WCSFTIME, REPLACE_WCSFTIME.
4497         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
4498         HAVE_WCSFTIME, REPLACE_WCSFTIME.
4499         * modules/wcsftime: New file.
4500         * doc/posix-functions/wcsftime.texi: Mention the new module.
4502 2017-04-30  Bruno Haible  <bruno@clisp.org>
4504         strftime-fixes: New module.
4505         * lib/time.in.h (strftime): New declaration.
4506         * lib/strftime-fixes.c: New file.
4507         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
4508         (gl_FUNC_STRFTIME): Remove macro.
4509         * m4/strftime-fixes.m4: New file.
4510         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
4511         REPLACE_STRFTIME.
4512         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
4513         REPLACE_STRFTIME.
4514         * modules/strftime-fixes: New file.
4515         * doc/posix-functions/strftime.texi: Mention the new module.
4517 2017-04-30  Bruno Haible  <bruno@clisp.org>
4519         mktime: Work around TZ problem on native Windows.
4520         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
4521         from the native Windows workaround.
4522         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
4523         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
4524         'guessing no'.
4525         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
4526         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
4527         NEED_MKTIME_WINDOWS.
4528         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
4529         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
4530         NEED_MKTIME_INTERNAL.
4531         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
4532         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
4533         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
4534         not REPLACE_MKTIME.
4535         * doc/posix-functions/mktime.texi: Mention the native Windows
4536         workaround.
4538 2017-04-30  Bruno Haible  <bruno@clisp.org>
4540         localtime: New module.
4541         * lib/time.in.h (localtime): Declare also if requested by module
4542         'localtime'.
4543         * lib/localtime.c: New file.
4544         * m4/localtime.m4: New file.
4545         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
4546         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
4547         * modules/localtime: New file.
4548         * doc/posix-functions/localtime.texi: Mention the new module.
4550 2017-04-30  Bruno Haible  <bruno@clisp.org>
4552         ctime: New module.
4553         * lib/time.in.h (ctime): New declaration.
4554         * lib/ctime.c: New file.
4555         * m4/ctime.m4: New file.
4556         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
4557         REPLACE_CTIME.
4558         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
4559         * modules/ctime: New file.
4560         * doc/posix-functions/ctime.texi: Mention the new module.
4562 2017-04-30  Bruno Haible  <bruno@clisp.org>
4564         gettimeofday: Provide higher resolution on native Windows.
4565         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
4566         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
4567         (initialize): Initialize it.
4568         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
4569         'struct timeval'. Don't use _ftime().
4570         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
4571         <sys/timeb.h> and _ftime.
4573 2017-04-30  Bruno Haible  <bruno@clisp.org>
4575         Document the problem with the Cygwin environment variable TZ.
4576         * doc/posix-functions/tzset.texi: Add note about TZ.
4577         * doc/posix-functions/ctime.texi: Likewise.
4578         * doc/posix-functions/localtime.texi: Likewise.
4579         * doc/posix-functions/mktime.texi: Likewise.
4580         * doc/posix-functions/strftime.texi: Likewise.
4581         * doc/posix-functions/wcsftime.texi: Likewise.
4582         * doc/pastposix-functions/ftime.texi: Likewise.
4584 2017-04-30  Bruno Haible  <bruno@clisp.org>
4586         utime-tests: New module.
4587         * tests/test-utime.c: New file, based on tests/test-utimens.h.
4588         * tests/test-utimens-common.h: Include <sys/stat.h>.
4589         * modules/utime-tests: New file.
4591 2017-04-29  Bruno Haible  <bruno@clisp.org>
4593         utime: New module.
4594         * lib/utime.in.h: Add comment for snippets.
4595         (utime): New declaration.
4596         * lib/utime.c: New file.
4597         * m4/utime.m4: New file.
4598         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
4599         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
4600         REPLACE_UTIME.
4601         * modules/utime-h (Depends-on): Add snippets.
4602         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
4603         Insert snippets.
4604         * modules/utime: New file.
4605         * doc/posix-functions/utime.texi: Mention the new module.
4607 2017-04-29  Bruno Haible  <bruno@clisp.org>
4609         utime-h: Modernize handling of 'struct utimbuf'.
4610         * lib/utime.in.h: Include next <utime.h> if it exists.
4611         (utimbuf): Define to _utimbuf on native Windows.
4612         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
4613         Set UTIME_H on native Windows.
4614         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
4615         * modules/utime-h (Depends-on): Add include_next.
4616         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
4617         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
4619         * lib/utimens.c (utimbuf): Remove fallback definition.
4620         * m4/utimens.m4 (gl_UTIMENS): Don't require
4621         gl_CHECK_TYPE_STRUCT_UTIMBUF.
4622         * m4/utimbuf.m4: Remove file.
4623         * modules/utimens (Files): Remove m4/utimbuf.m4.
4625 2017-04-29  Bruno Haible  <bruno@clisp.org>
4627         Make use of module 'utime-h'.
4628         * modules/copy-file (Depends-on): Add utime-h.
4629         * lib/copy-file.c: Assume that <utime.h> exists.
4630         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
4632         * modules/utimens (Depends-on): Add utime-h.
4633         * lib/utimens.c: Assume that <utime.h> exists.
4635 2017-04-29  Bruno Haible  <bruno@clisp.org>
4637         utime-h: New module.
4638         * m4/utime_h.m4: New file.
4639         * lib/utime.in.h: New file.
4640         * modules/utime-h: New file.
4641         * doc/posix-headers/utime.texi: Mention the new module.
4643         * tests/test-utime-h.c: New file.
4644         * modules/utime-h-tests: New file.
4646 2017-04-30  Bruno Haible  <bruno@clisp.org>
4648         Fix a few typos.
4649         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
4650         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
4651         * doc/posix-functions/fstat.texi: Fix a plural typo.
4652         * doc/posix-functions/stat.texi: Likewise.
4653         * m4/include_next.m4: Update comments.
4655 2017-04-29  Bruno Haible  <bruno@clisp.org>
4657         error: Fix mistake in 2017-04-23 commit.
4658         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
4659         assume that strerror_r returns 'int', not 'char *'.
4661 2017-04-29  Bruno Haible  <bruno@clisp.org>
4663         stat: Fix time_t values and other problems on native Windows platforms.
4664         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
4665         implementations of stat().
4666         * lib/stat.c: Include filename.h instead of dosname.h. Include
4667         malloca.h, stat-w32.h.
4668         (is_unc_root): New function.
4669         (rpl_stat): New implementation for native Windows. Remove
4670         REPLACE_FUNC_STAT_DIR code.
4671         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
4672         Don't define REPLACE_FUNC_STAT_DIR.
4673         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
4674         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
4675         (Depends-on): Remove dosname. Add filename, malloca.
4676         (configure.ac): Also compile lib/stat-w32.c.
4678 2017-04-29  Bruno Haible  <bruno@clisp.org>
4680         fstat: Fix time_t values on native Windows platforms.
4681         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
4682         * lib/stat-w32.h: New file.
4683         * lib/stat-w32.c: New file.
4684         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
4685         stat-w32.h instead.
4686         (fstat_nothrow): Remove function.
4687         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
4688         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
4689         always.
4690         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
4691         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
4692         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
4693         (configure.ac): Also compile lib/stat-w32.c.
4695 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
4697         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
4698         Problem reported by Assaf Gordon and Gavin Smith in:
4699         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
4700         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
4701         #define this, too.
4703 2017-04-29  Bruno Haible  <bruno@clisp.org>
4705         strerror_r-posix: Fixes for MSVC 14.
4706         * lib/strerror_r.c: Include <stdarg.h>.
4707         (strerror_r): Provide error messages for errno values 100...140.
4708         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
4710 2017-04-28  Bruno Haible  <bruno@clisp.org>
4712         noreturn: New module.
4713         * lib/noreturn.h: New file.
4714         * modules/noreturn: New file.
4715         * tests/test-noreturn.c: New file.
4716         * modules/noreturn-tests: New file.
4717         * tests/test-noreturn-c++.cc: New file.
4718         * modules/noreturn-c++-tests: New file.
4720 2017-04-27  Bruno Haible  <bruno@clisp.org>
4722         wctype-h: Fix compilation error with the original mingw.org mingw.
4723         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
4724         HAVE_CRTDEFS_H.
4725         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
4726         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
4727         <stddef.h> instead.
4728         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
4730 2017-04-26  Pádraig Brady  <P@draigBrady.com>
4732         nap.h: Fix compilation on non windows platforms
4733         * tests/nap.h: Move misplaced endif.
4735 2017-04-26  Pádraig Brady  <P@draigBrady.com>
4736         and Paul Eggert  <eggert@cs.ucla.edu>
4738         time_rz: fix heap buffer overflow vulnerability
4739         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
4740         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
4741         whether there is enough buffer space available, thus avoiding
4742         the problematic promotion of signed to unsigned causing an invalid
4743         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
4744         the start of the buffer.
4745         * tests/test-parse-datetime.c (main): Add a test case written by
4746         Paul Eggert, which overwrites enough of the heap so that
4747         standard glibc will fail with "free(): invalid pointer"
4748         without the patch applied.
4750 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
4752         xalloc: add missing integer overflow check
4753         * lib/xalloc.h (x2nrealloc): Also check for multiplication
4754         overflow when P is null.
4756 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
4758         parse-datetime: make it standalone
4759         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
4760         (_GL_ATTRIBUTE_FORMAT): New macro.
4761         These are needed to get './gnulib-tool --test parse-datetime' to work.
4763 2017-04-23  Bruno Haible  <bruno@clisp.org>
4765         nap.h: Port to native Windows.
4766         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
4767         use nap_fd instead. On native Windows, close and reopen nap_fd.
4768         (nap_works): Don't compare the ctimes, because on native Windows, these
4769         are the creation times.
4770         (nap): Update.
4772 2017-04-23  Bruno Haible  <bruno@clisp.org>
4774         nap.h: Fix logic.
4775         * tests/nap.h (nap): Avoid signed integer overflow in loop.
4777 2017-04-23  Bruno Haible  <bruno@clisp.org>
4779         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
4780         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
4781         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
4782         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
4783         * lib/argp-help.c (__argp_failure): Likewise.
4785 2017-04-23  Bruno Haible  <bruno@clisp.org>
4787         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
4788         * m4/strerror_r.m4: Revert changes since 2016-10-16.
4789         * lib/strerror_r.c: Likewise.
4791 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
4793         Target a C99 subset, not a C89 subset
4794         For many years Gnulib has targeted C89 and has resisted using C99
4795         features, as some Gnulib-using programs still wanted to target
4796         C89.  As this no longer seems to be the case, relax the porting
4797         requirements to allow some C99 features.  This is merely a change
4798         to the documentation, to give other Gnulib developers a chance to
4799         weigh in on the topic.
4800         * doc/extern-inline.texi (extern inline):
4801         * doc/gnulib-readme.texi (Portability guidelines):
4802         * doc/gnulib-tool.texi (Initial import):
4803         * doc/gnulib.texi (Header files):
4804         Modernize to talk about C99 and C11 instead of C89 and C99.
4805         * doc/gnulib-readme.texi (Portability guidelines):
4806         Now a section, not merely a subsection, so that it
4807         can be split up.  Modernize a bit.
4808         (C language versions, C99 features assumed)
4809         (C99 features avoided):
4810         New sections.
4812 2017-04-23  Bruno Haible  <bruno@clisp.org>
4814         doc: New section "Modules that modify the way other modules work".
4815         * doc/gnulib.texi (Modules that modify the way other modules work): New
4816         section.
4818 2017-04-23  Bruno Haible  <bruno@clisp.org>
4820         stat-time: Update comments.
4821         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
4822         * tests/test-utimens-common.h: Add reference regarding st_ctime on
4823         Windows.
4825 2017-04-01  Bruno Haible  <bruno@clisp.org>
4827         glob: Fix more memory leaks.
4828         * lib/glob.c (glob): Free allocated memory before returning.
4829         Reported by Coverity via Tim Rühsen.
4831 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4833         poll: improve fast check for out-of-range NFD
4834         * lib/poll.c: Do not include intprops.h.
4835         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
4836         * modules/poll (Depends-on): Remove intprops.
4838         ftoastr: cite a newer paper
4839         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
4840         instead of Loitsch 2010.
4842 2017-04-22  Bruno Haible  <bruno@clisp.org>
4844         poll: Enable argument check also in the Windows implementation.
4845         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
4846         Reported by Paul Eggert.
4848 2017-04-22  Bruno Haible  <bruno@clisp.org>
4850         getlogin_r: Work around bug in Mac OS X 10.12.
4851         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
4852         bug.
4853         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
4854         given size minus 1, call getlogin_r a second time, on a larger buffer.
4855         * modules/getlogin_r (Depends-on): Add malloca.
4856         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
4858 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4860         parse-datetime: fix %z and prefer signed int
4861         %z problem reported by Pádraig Brady in:
4862         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
4863         While fixing it, I decided to prefer signed ints to size_t, as
4864         they are less error-prone (e.g., ubsan catches overflow).
4865         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
4866         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
4867         counts, since signed integers make for better debugging.
4868         (date): Don’t assume %z works in printf formats.
4869         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
4870         sizes of buffers known to be small, e.g., because we’re using snprintf.
4871         (parse_datetime2): Simplify call to debug_mktime_not_ok.
4873 2017-04-22  Bruno Haible  <bruno@clisp.org>
4875         *printf: Work around rounding bug on Mac OS X.
4876         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
4877         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
4878         Mac OS X and FreeBSD.
4879         * doc/glibc-functions/*printf.texi: Likewise.
4881 2017-04-22  Bruno Haible  <bruno@clisp.org>
4883         vasnprintf tests: Avoid warnings.
4884         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
4885         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
4886         test.
4888 2017-04-22  Bruno Haible  <bruno@clisp.org>
4890         sys_file tests: Avoid warning.
4891         * tests/test-sys_file.c (main): Add a default clause to the switch
4892         statement.
4894 2017-04-22  Bruno Haible  <bruno@clisp.org>
4896         sethostname: Update doc.
4897         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
4898         Mac OS X.
4900 2017-04-22  Bruno Haible  <bruno@clisp.org>
4902         quotearg tests: Avoid warnings.
4903         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
4904         false.
4906 2017-04-22  Bruno Haible  <bruno@clisp.org>
4908         poll: Enable argument check.
4909         * lib/poll.c: Include intprops.h.
4910         (poll): Check value of nfd correctly.
4911         * modules/poll (Depends-on): Add intprops.
4913 2017-04-22  Bruno Haible  <bruno@clisp.org>
4915         get-rusage-data: Avoid warnings on Mac OS X.
4916         * lib/get-rusage-data.c: On Mac OS X, don't define
4917         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
4918         (get_rusage_data) [Mac OS X]: Just return 0.
4920 2017-04-22  Bruno Haible  <bruno@clisp.org>
4922         xbinary-io: Fix build error.
4923         * modules/xbinary-io (Depends-on): Add gettext-h.
4924         * lib/xbinary-io.c: Include gettext.h and define _().
4925         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
4926         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
4928 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4930         parse-datetime: overflow and debug cleanups
4931         This long patch was triggered by this bug report from Ruediger Meier:
4932         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
4933         I fixed the bug he noted, then found some others nearby, and then
4934         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
4935         up some of the code to follow GNU standards while I was at it.
4936         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
4937         use c_isdigit.
4938         (EPOCH_YEAR): Remove; unused.
4939         (TM_YEAR_BASE): Now an enum rather than a macro.
4940         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
4941         time zone offset, since timezones now are in terms of seconds and
4942         not minutes.
4943         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
4944         appropriate.  Verify that intmax_t is wide enough.
4945         (time_overflow, time_zone_str): New functions, used to deal
4946         more reliably with overflow.
4947         (dbg_printf): Add printf attribute, to help catch integer width errors.
4948         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
4949         (%union, to_hour, yylex, parse_datetime2):
4950         Use intmax_t instead of long int and/or long_time_t.
4951         All uses changed.
4952         (DBGBUFSIZE): Move earlier.
4953         (relative_time, set_hhmmss, parser_control):
4954         Just use int for nanoseconds and for time zones; that’s wide enough.
4955         (parser_control): Use bool for members like year_seen that can
4956         be booleans instead of counters.  All uses changed.
4957         Remove debug_default_input_timezone; no longer needed.
4958         All uses removed.
4959         (apply_relative_time): Return a bool overflow flag.
4960         All uses changed to check for overflow.
4961         (apply_relative_time, zone, date, relunit, relunit_snumber)
4962         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
4963         Check for integer overflow portably.
4964         (str_days): Use just int for N, as it’s wide enough.
4965         Prefer 2D char arrays to arrays of char * when it looks like
4966         2D is a win on typical platforms.
4967         Prefer snprintf to strncpy/strncat, for simplicity;
4968         all buffers are smaller than INT_MAX so this is safe.
4969         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
4970         (debug_print_current_time): Don’t assume tv_nsec is of type long,
4971         as this is not true on x32.  Output "." before any nanoseconds.
4972         (debug_print_current_time, parse_datetime2):
4973         Output local zones using a more-consistent format.
4974         (debug_print_current_time, date, parse_datetime2):
4975         (main) [TEST]:
4976         Don’t assume time_t is the same width as long.
4977         (print_rel_part): New function, replacing ...
4978         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
4979         (debug_print_relative_time): Use bool for boolean.
4980         (local_zone): dsts_seen now counts only tDST instances.
4981         (date): Fix printf of size_t to use %z.  Do not assume numeric
4982         tokens have negative values merely because the context suggests
4983         a syntax with "-" separating tokens.
4984         (time_zone_hhmm): Return bool success indicator, which checks for
4985         overflow.  Store result into PC->time_zone instead.  All callers
4986         changed.
4987         (tm_year_str): New function.  Return a bool success indicator and
4988         store the result into a buffer.  All callers changed.  Output the
4989         numerically correct string even if adding 1900 to the year would
4990         overflow.
4991         (to_tm_year): New function, replacing the old to_year.  All
4992         callers changed.
4993         (tm_diff): Sync with glibc.
4994         (lookup_word): Use to_uchar instead of doing it by hand.
4995         (TZBUFSIZE): Now local to the only function that needs it.
4996         (debug_strfdatetime): Simplify now that time zones are int seconds.
4997         (debug_strfdate): Work even if tm_year + 1900 would overflow.
4998         (get_effective_timezone): Remove.  All uses removed.
4999         (parse_datetime2): Use fprintf in pieces instead of snprintfing
5000         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
5001         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
5002         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
5003         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
5004         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
5005         * modules/parse-datetime (Depends-on): Add inttypes.
5007 2017-04-21  Bruno Haible  <bruno@clisp.org>
5009         gettext-h: Avoid -Wundef warning.
5010         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
5011         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
5012         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
5014 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
5016         error: Avoid "function declaration isn't a prototype" warning.
5017         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
5019 2017-04-21  Bruno Haible  <bruno@clisp.org>
5021         vasnprintf: Fix for MSVC 14.
5022         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
5023         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
5024         of !HAVE_SNPRINTF_RETVAL_C99.
5026 2017-04-21  Bruno Haible  <bruno@clisp.org>
5028         mbrtowc tests: Fix test failures on MSVC 14.
5029         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
5030         behaviour for invalid input.
5032 2017-04-21  Bruno Haible  <bruno@clisp.org>
5034         mbsinit: Fix for MSVC 14.
5035         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
5036         implementation that is in sync with mbrtowc.c. On other platforms, use
5037         an adequate ad-hoc implementation.
5039 2017-04-21  Bruno Haible  <bruno@clisp.org>
5041         Fix test-mbrtowc5.sh failure on native Windows.
5042         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
5043         "C".
5045 2017-04-21  Bruno Haible  <bruno@clisp.org>
5047         Avoid accidental use of native Windows APIs on Cygwin.
5048         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
5049         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
5050         * lib/localename.c (WINDOWS_NATIVE): Likewise.
5052 2017-04-20  Bruno Haible  <bruno@clisp.org>
5054         Remove red warnings from the generated MODULES.html.
5055         * modules/fcntl (Description): Disambiguate function references.
5056         * modules/getcwd-lgpl (Description): Likewise.
5057         * modules/hostent (Description): Likewise.
5058         * modules/servent (Description): Likewise.
5059         * modules/tempname (Description): Likewise.
5061 2017-04-20  Bruno Haible  <bruno@clisp.org>
5063         verify tests: Fix spurious failure with parallel make.
5064         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
5065         EXTRA_PROGRAMS.
5066         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
5067         * tests/test-verify-try.c: New file.
5068         * modules/verify-tests (Files): Add it.
5069         (EXTRA_PROGRAMS): Add test-verify-try.
5070         (MOSTLYCLEANFILES): Update accordingly.
5071         Reported by Adam James Stewart <ajstewart@anl.gov>.
5073 2017-04-18  Bruno Haible  <bruno@clisp.org>
5075         vma-iter: Fix compilation error on Solaris 7.
5076         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
5077         like on IRIX, OSF/1.
5078         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5080 2017-04-18  Bruno Haible  <bruno@clisp.org>
5082         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
5083         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
5084         included.
5085         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
5086         <sys/procfs.h>.
5087         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
5088         <sys/procfs.h> cannot be included.
5089         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5091 2017-04-18  Bruno Haible  <bruno@clisp.org>
5093         getopt-gnu: Add comments.
5094         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
5095         * modules/getopt-gnu (configure.ac): Likewise.
5097 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
5099         regex: port better to Solaris 10
5100         Solaris 10 <locale.h> includes <libintl.h>, which #defines
5101         gettext, and this causes a double #define.
5102         Problem reported by Gavin Smith in:
5103         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
5104         * lib/regex_internal.h (gettext): #undef before #defining.
5106 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
5108         intprops: improve comments
5109         * lib/intprops.h: Improve and shorten commentary.
5110         For the record, if we ever run into a pedantic compiler that
5111         behaves differently from GCC when converting an out-of-range value
5112         to a signed integer, we can work around the problem with something
5113         like the following code, where UCT is the signed counterpart of T
5114         (UCT is sometimes narrower than UT) and all callers are changed
5115         accordingly:
5116         #if __SUNPRO_C <= 0x5120
5117         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
5118            ((t) ((ut) (a) op (ut) (b)))
5119         #else
5120         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
5121            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
5122             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
5123                + TYPE_MINIMUM (t)) \
5124             : (t) (uct) ((ut) (a) op (ut) (b)))
5125         #endif
5127 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
5129         intprops: try to avoid tickling similar bugs
5130         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
5131         needs to be the same width as T; it can be wider.
5132         Change callers so that UT is at least as wide as unsigned int,
5133         as I suspect that this is less likely to run into compiler bugs.
5135         intprops: port to Oracle Studio 12.3 x86
5136         Problem reported by Gavin Smith in:
5137         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
5138         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
5139         Convert unsigned to signed via the usual rather than the standard way,
5140         to avoid a compiler bug in Oracle Studio 12.3 x86.
5142 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
5144         getopt: prefer - to _ in new file names
5145         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
5146         * lib/getopt-core.h: Rename from lib/getopt_core.h.
5147         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
5148         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
5149         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
5150         All uses changed.
5152         getopt: port recent getopt changes to macOS
5153         Problem reported by Harald Maier (Bug#26398).
5154         The macOS C compiler uses __nonnull for its own purposes and that
5155         clashes with glibc's __nonnull.
5156         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
5157         * lib/getopt_cdefs.in.h (__nonnull): Remove.
5158         * lib/getopt_core.h (getopt):
5159         * lib/getopt_ext.h (getopt_long, getopt_long_only):
5160         Use _GL_ARG_NONNULL, not __nonnull.
5161         * lib/unistd.in.h: Move snippet hooks to before where the getopt
5162         .h files are included, so that _GL_ARG_NONNULL is defined in time.
5163         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
5164         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
5166 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
5168         getopt-gnu: omit some duplicate code
5169         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
5170         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
5171         gnulib-tool already does this.
5172         * modules/getopt-gnu (configure.ac): Omit code duplicated from
5173         getopt-posix, which we depend on.
5175         getopt-posix: use angle-bracket include
5176         * lib/getopt1.c: Include <config.h>, not "config.h".
5178 2017-04-06  Zack Weinberg  <zackw@panix.com>
5180         getopt: annotate files with relationship to glibc
5182         As the final act in this patchset, adjust the message at the top of
5183         each file to indicate which files are synced with glibc.  (This has
5184         already been done for most of the headers.)
5186         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
5187         Mention in top-of-file boilerplate that these files are shared
5188         between glibc and gnulib.
5191         getopt: split up getopt.in.h and eliminate __need_getopt
5193         Over in glibc, all of the __need macros are being phased out in favor
5194         of small headers that declare only the necessary components, as this
5195         is much simpler and less prone to bugs.  As getopt is shared with
5196         glibc, gnulib needs to do the same for __need_getopt.
5198         __need_getopt is misnamed; what it really means is "we want only the
5199         getopt features specified in POSIX, not the GNU extensions".  glibc
5200         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
5201         these files can be shared verbatim with gnulib.  The portability
5202         wrapper, on the other hand, they have renounced altogether; glibc's
5203         getopt.h will no longer be shared with gnulib at all.  In exchange,
5204         certain glibc-specific quirks (having to do with __posix_getopt) no
5205         longer need appear in gnulib's headers at all.
5207         This patch merges getopt_core.h and getopt_ext.h from glibc, and
5208         splits up the current gnulib-side portability wrapper into three
5209         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
5210         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
5211         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
5212         unistd.in.h just use them.  All new files are clearly marked with
5213         whether they are shared with glibc.
5215         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
5216         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
5217         with glibc, and ...
5218         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
5219         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
5220         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
5221         instead of defining __need_getopt and including the full getopt.h.
5223         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
5224         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
5225         * modules/getopt-posix (Files): Add new headers and sort list.
5226         (Depends-on): No longer need snippet/arg-nonnull.
5227         (Makefile.am): Generate getopt_cdefs.h.
5230         getopt: better handling of ambiguous options
5232         glibc's getopt uses alloca to construct a linked list of possibilities
5233         for an "ambiguous" long option.  In gnulib, malloc should be used
5234         instead.  Providing for both cases complicates things a fair bit.
5236         This patch rewrites ambiguous-option handling to use a boolean vector
5237         instead of a linked list.  There is then only one allocation that
5238         might need freeing; in glibc it can honor __libc_use_alloca as usual,
5239         and in gnulib we define __libc_use_alloca to always be false, so we
5240         don't need ifdefs in the middle of the function.  This should also be
5241         slightly more efficient in the normal case of long options being fully
5242         spelled out -- I think most people aren't even aware they _can_
5243         sometimes abbreviate long options.
5245         One interesting consequence is that the list of possibilities is now
5246         printed in exactly the order they appear in the list of long options,
5247         instead of the first possibility being shuffled to the end.
5249         (The patch looks bigger than it really is because there's a fair bit
5250         of reindentation and code rearrangement.)
5252         * lib/getopt.c: When used standalone, define __libc_use_alloca
5253         as always false and alloca to abort if called.
5254         (process_long_option): Rewrite handling of ambiguous long options
5255         to use a single boolean vector, not a linked list; use
5256         __libc_use_alloca to decide whether to allocate this using alloca.
5259         getopt: refactor long-option handling
5261         There were two copies of the bulk of the code to handle long options.
5262         Now there is only one.
5264         This change temporarily removes the logic to avoid using alloca when
5265         standalone; the next patch in the series will restore it.
5267         * lib/getopt.c (process_long_option): New function split out
5268         from _getopt_internal_r.
5269         (_getopt_internal_r): Replace both copies of the long-option
5270         processing code with calls to process_long_option.
5273         getopt: tidy up _getopt_initialize a bit
5275         _getopt_data.__posixly_correct is completely redundant to
5276         _getopt_data.__ordering, and some work that logically belongs in
5277         _getopt_initialize was being done by _getopt_internal_r, making the
5278         code harder to understand.
5280         As a side effect, getenv will no longer be called if the first
5281         character of the options string is '+' or '-', which is probably a
5282         Good Thing.  (Perhaps we should have a flag character that
5283         specifically asks for the permutation behavior?)
5285         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
5286         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
5287         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
5290         getopt: merge from glibc: repetition reduction
5292         The definitions of the entry point functions 'getopt' and
5293         '__posix_getopt' can be made substantially less repetitive with a
5294         helper macro.
5296         While I was merging the const-correctness changes from gnulib into
5297         glibc I noticed there are still some unnecessary casts in
5298         _getopt_internal_r.
5300         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
5301         a macro.  Consistently cast 'argv' to 'char **' when calling
5302         _getopt_internal.
5303         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
5306         getopt: clean up error reporting
5308         getopt can print a whole bunch of error messages, and when used
5309         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
5310         cancellation point and getopt isn't, and also applying fprintf to a
5311         stream in wide-character mode is not allowed.  So every single error
5312         reporting case has an #ifdef _LIBC block in which it calls internal
5313         libc functions instead.  The counterpart patch series in glibc makes
5314         it possible to simplify all of that down to a set of #defines at the
5315         top of the file; core code is written as if it is safe to just call
5316         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
5317         call any *other* stdio functions.)
5319         * lib/getopt.c: When _LIBC is defined, define fprintf to
5320         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
5321         to _IO_funlockfile.  When neither _LIBC nor
5322         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
5323         funlockfile as no-ops.
5324         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
5325         standalone error-printing code can now be used for libc as well.
5326         Add an flockfile/funlockfile pair around one case where the error
5327         message is printed in several chunks.  Don't use fputc.
5330         getopt: fix fencepost error in ambiguous-W-option handling
5332         getopt_long contains an undocumented (AFAICT) feature in which, if you
5333         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
5334         treated as equivalent to '--foo'.  This is implemented with a partial
5335         second copy of the code for handling long options, and that code
5336         increments optind one too many times when recovering from an ambiguous
5337         abbreviated option, which can cause the main loop to walk past the end
5338         of argv and crash.
5340         I discovered this while writing a test case that tries to exercise all
5341         of getopt's error reporting paths; I wouldn't be surprised to learn
5342         that this feature is never used by real applications.
5344         * lib/getopt.c (_getopt_internal_r): Don't increment
5345         d->optind a second time when reporting ambiguous -W options.
5348         getopt: clean up getopt.c and getopt1.c file headers
5350         In getopt.c, there is no need to include wchar.h at all, and it is
5351         safe nowadays to assume that stdlib.h does declare getenv (several
5352         other gnulib modules make this assumption).
5354         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
5355         by using "" inclusions consistently, and there is no actual need to
5356         include stdlib.h (except in the #ifdef TEST block, where it should be
5357         unconditional), nor to provide a backup definition of NULL at all.
5359         * lib/getopt1.c: Simplify #ifdeffage at top of file.
5360         Move inclusion of stdlib.h to #ifdef TEST block and make
5361         unconditional.  Do not define NULL.
5362         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
5363         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
5364         * modules/getopt-gnu, modules/getopt-posix: Don't call
5365         gl_PREREQ_GETENV.
5368         getopt: harmonize comments with glibc
5370         The comments explaining how the behavior of 'getopt' varies depending
5371         on whether it's the standalone version and whether there are special
5372         characters at the beginning of the options string were inconsistent
5373         between gnulib and glibc, and also out of sync with the code.
5375         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
5378         getopt: remove USE_NONOPTION_FLAGS
5380         getopt includes code to parse an environment variable named
5381         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
5382         in decimal); but all of it has been #ifdefed out since 2001, with no
5383         official way to turn it back on.
5385         According to commentary in glibc's config.h.in, bash version 2.0
5386         set this environment variable to indicate argv elements that were
5387         the result of glob expansion and therefore should not be treated
5388         as options, but the feature was "disabled later" because "it
5389         caused problems".  According to bash's CHANGES file, "later" was
5390         release 2.01; it gives no more detail about what the problems
5391         were.
5393         Version 2.0 of bash was released on the last day of 1996, and version
5394         2.01 in June of 1997.  Twenty years later, I think it is safe to
5395         assume that this environment variable isn't coming back.
5397         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
5398         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
5399         __libc_argc and __libc_argv externs, which were only used by
5400         #ifdef USE_NONOPTION_FLAGS blocks.
5403         getopt: tabify, in preparation for merge with glibc
5405         glibc sticks to the GNU default of indenting with a mix of
5406         8-column tabs and spaces; make the gnulib copy match.
5408         getopt.h is not included because it is *not* going to be merged in its
5409         present form.
5411         * getopt.c, getopt1.c, getopt_int.h: Tabify.
5413 2017-04-02  Bruno Haible  <bruno@clisp.org>
5415         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
5416         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
5417         like it was done in modules/relocatable-lib on 2011-05-21 and in
5418         modules/relocatable-prog on 2011-08-15.
5419         Reported by Reuben Thomas <rrt@sc3d.org>.
5421 2017-03-31  Bruno Haible  <bruno@clisp.org>
5423         glob: Fix invalid free() call.
5424         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
5425         static storage to home_dir.
5426         Reported by Coverity via Tim Rühsen.
5428 2017-03-31  Bruno Haible  <bruno@clisp.org>
5430         glob: Fix memory leaks.
5431         * lib/glob.c (glob): Free allocated memory before returning.
5432         Reported by Coverity via Tim Rühsen.
5434 2017-03-31  Bruno Haible  <bruno@clisp.org>
5436         md5, sha1, sha256, sha512: Add comments regarding correctness.
5437         * lib/md5.h (buflen): Add comments regarding range.
5438         * lib/sha1.h (buflen): Likewise.
5439         * lib/sha256.h (buflen): Likewise.
5440         * lib/sha512.h (buflen): Likewise.
5441         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
5442         * lib/sha1.c (sha1_process_bytes): Likewise.
5443         * lib/sha256.c (sha256_process_bytes): Likewise.
5444         * lib/sha512.c (sha512_process_bytes): Likewise.
5445         Reported by Coverity via Tim Rühsen.
5447 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
5449         getopt: merge from glibc
5450         This does not change anything substantial; it merely simplifies
5451         hypothetical merges back to glibc.
5452         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
5453         Change copyright notice to match what is in glibc.
5454         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
5455         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
5456         __open_memstream rather than open_memstream and __glibc_likely
5457         instead of __builtin_expect.
5458         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
5460 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
5462         dfa: make [0-9] faster in non-C locales
5463         Problem reported by John P. Linderman (Bug#26193).
5464         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
5465         If both ends of the range are ASCII digits, do not worry about
5466         multi-character collating sequences and the like.  Be consistent
5467         about using isalpha as a precondition for setbit_case_fold_c.
5469 2017-03-19  Bruno Haible  <bruno@clisp.org>
5471         lock: Fix compilation error with HP-UX IA64 cc.
5472         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
5473         weak on non-glibc platforms.
5475 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
5477         stdalign: tweak version# and test for HP-UX IA64
5478         Problems reported by Bruno Haible in:
5479         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
5480         * lib/stdalign.in.h (_Alignas):
5481         * m4/stdalign.m4 (gl_STDALIGN_H):
5482         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
5483         used octal (as that is how they document it), but it is decimal in
5484         practice now and the ancient implementations no longer matter.
5485         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
5487 2017-03-19  Bruno Haible  <bruno@clisp.org>
5489         vma-iter: Add support for Solaris.
5490         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
5491         approach.
5492         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
5493         * lib/get-rusage-as.c: Update comment about Solaris.
5494         * lib/get-rusage-data.c: Likewise.
5496 2017-03-19  Bruno Haible  <bruno@clisp.org>
5498         vma-iter: Prefer HP-UX specific API on HP-UX.
5499         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
5500         * lib/vma-iter.h: Update.
5501         Just in case HP-UX ever implements mquery().
5503 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
5505         stdalign: restore previous behavior for HP-UX IA64
5506         See Bruno Haible's email in:
5507         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
5508         which cites p 150 of a manual saying that 'aligned' works on Itanium.
5509         * lib/stdalign.in.h (_Alignas):
5510         Assume the '061200' applies to Itanium, not to PA-RISC.
5511         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
5513 2017-03-17  Bruno Haible  <bruno@clisp.org>
5515         stat-time, timespec: Support use of the header files in C++ mode.
5516         * lib/stat-time.h: Add "C" linkage declaration.
5517         * lib/timespec.h: Likewise.
5519 2017-03-17  Bruno Haible  <bruno@clisp.org>
5521         stdalign: Make it work with HP-UX cc.
5522         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
5523         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
5524         for HP-UX cc.
5526 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
5528         flexmember: try to detect HP-UX 11.31 cc bug
5529         Problem reported by Bruno Haible in:
5530         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
5531         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
5532         Attempt to detect bug in HP-UX 11.31 cc.
5534 2017-03-16  Bruno Haible  <bruno@clisp.org>
5536         stdint: Fix test compilation failure with HP-UX 11 cc.
5537         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
5538         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
5539         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
5540         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
5542 2017-03-14  Bruno Haible  <bruno@clisp.org>
5544         gnulib-tool: Don't produce a tests directory with only snippet .h files.
5545         * gnulib-tool (func_modules_transitive_closure_separately): If
5546         testsrelated_modules ends up with no "real" modules, aside from
5547         modules with applicability 'all', set it to empty.
5549 2017-03-14  Bruno Haible  <bruno@clisp.org>
5551         vma-iter: Add support for HP-UX.
5552         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
5553         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
5554         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
5555         * lib/get-rusage-as.c: Update comment about HP-UX.
5556         * lib/get-rusage-data.c: Likewise.
5557         (get_rusage_data): Use get_rusage_data_via_setrlimit.
5559 2017-03-14  Bruno Haible  <bruno@clisp.org>
5561         limits-h: Make it work with HP-UX cc.
5562         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
5563         defined.
5565 2017-03-14  Bruno Haible  <bruno@clisp.org>
5567         Fix test failures on DragonFlyBSD.
5568         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
5569         * tests/test-select.h (test_bad_fd): Likewise.
5570         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
5572 2017-03-14  Bruno Haible  <bruno@clisp.org>
5574         freadahead: Silence warning on DragonFlyBSD.
5575         * lib/freadahead.c (__sreadahead): Declare ourselves.
5577 2017-03-14  Bruno Haible  <bruno@clisp.org>
5579         vma-iter: Add comment about AIX.
5580         * lib/vma-iter.c: Add comment about why this module is not implemented
5581         on AIX.
5583 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
5585         snippets: move unadjusted snippet sources to lib
5586         Problem reported by Michal Privoznik in:
5587         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
5588         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
5589         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
5590         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
5591         * lib/unused-parameter.h: Rename from
5592         build-aux/snippet/unused-parameter.h.
5593         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
5594         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
5595         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
5596         * modules/snippet/c++defs (Files:, CXXDEFS_H):
5597         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
5598         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
5599         Adjust to file renamings.
5601 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
5603         gnulib-tool: don't automatically distribute files from top/
5604         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
5605         not distribute top/README-release by default, don't distribute files
5606         from top/ unconditionally.
5607         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
5608         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
5610 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
5612         gnulib-tool: fix typo in comment output
5613         * gnulib-tool (func_import): Fix typo with previous change.
5615         snippets: work around GNU Make 3.82 VPATH
5616         When using 'gnulib-tool --gnu-make' on Emacs, and building
5617         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
5618         an out-of-source (VPATH) build failed because the sans-copyright
5619         snippet file was not built before the file that used it.
5620         Presumably this is some sort of VPATH thing.  Work around the
5621         problem by using the original snippet, i.e., don’t bother to
5622         remove its copyright notice.
5623         * modules/snippet/_Noreturn, modules/snippet/link-warning:
5624         Don’t assume Automake in comments.  Omit long-incorrect comment.
5625         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
5626         (MOSTLYCLEANFILES):
5627         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
5628         (MOSTLYCLEANFILES):
5629         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
5630         (MOSTLYCLEANFILES):
5631         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
5632         (MOSTLYCLEANFILES):
5633         Remove.
5634         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
5635         * modules/snippet/c++defs (CXXDEFS_H):
5636         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
5637         * modules/snippet/warn-on-use (WARN_ON_USE_H):
5638         Don’t bother to remove the copyright notice; just use the
5639         original snippet as-is.
5641 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
5643         gnulib-tool: minor --gnu-make fixups
5644         * gnulib-tool (func_emit_lib_Makefile_am):
5645         Remove useless code that was a blind alley during implementation.
5646         Problem reported by Thien-Thi Nguyen in:
5647         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
5648         (func_import): Note the "--gnu-make" option in the output comment.
5650 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
5652         gnulib-tool: new option --gnu-make
5653         This is for applications like GNU Emacs that use GNU Make
5654         features instead of Automake.
5655         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
5656         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
5657         Do not assume Automake.
5658         * gnulib-tool (func_determine_path_separator)
5659         (func_modules_transitive_closure, func_update_file)
5660         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
5661         (func_import): Add support for --gnu-make.
5663 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
5665         gnulib-common.m4: avoid aclocal.m4 bloat
5666         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
5667         Hide AM_PROG_AR from aclocal, so that aclocal does not
5668         install irrelevant macro definitions into aclocal.m4.
5670 2017-03-10  Bruno Haible  <bruno@clisp.org>
5672         vma-iter: Let callers know about error.
5673         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
5674         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
5676 2017-03-05  Bruno Haible  <bruno@clisp.org>
5678         Fix value of LD for 64-bit compilers on AIX.
5679         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
5680         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
5682 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
5684         dtotimespec: simplify
5685         * lib/dtotimespec.c (dtotimespec): Simplify.
5687 2017-03-04  Bruno Haible  <bruno@clisp.org>
5689         test-calloc-gnu: Reenable test also for GCC 7.
5690         * tests/test-calloc-gnu.c (eight): New function.
5691         (main): Don't skip test; use eight() instead.
5693 2017-03-04  Jim Meyering  <meyering@fb.com>
5695         test-calloc-gnu: port to GCC7
5696         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
5697         that attempts to calloc more than SIZE_MAX bytes, because GCC7
5698         and newer would detect that at compilation time.
5700 2017-03-04  Bruno Haible  <bruno@clisp.org>
5702         tests: Avoid compiler warning about uses of null_ptr.
5703         * tests/null-ptr.h: New file.
5704         * tests/test-canonicalize.c: Include null-ptr.h.
5705         (null_ptr): Remove function.
5706         * tests/test-canonicalize-lgpl.c: Likewise.
5707         * tests/test-memmem.c: Likewise.
5708         * tests/test-ptsname_r.c: Likewise.
5709         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
5710         * modules/canonicalize-lgpl-tests: Likewise.
5711         * modules/memmem-tests: Likewise.
5712         * modules/ptsname_r-tests: Likewise.
5713         Reported by Jim Meyering.
5715 2017-03-03  Bruno Haible  <bruno@clisp.org>
5717         doc: Mention Mac OS X deficiencies regarding semaphores.
5718         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
5719         * doc/posix-functions/sem_destroy.texi: Likewise.
5720         * doc/posix-functions/sem_getvalue.texi: Likewise.
5722 2017-03-03  Bruno Haible  <bruno@clisp.org>
5724         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
5725         Reported by Assaf Gordon <assafgordon@gmail.com> via
5726         Pádraig Brady <P@draigBrady.com>.
5727         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
5728         semaphores.
5729         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
5730         (atomic_int_semaphore): New macro.
5732 2017-02-28  Bruno Haible  <bruno@clisp.org>
5734         perror tests: Tweak for z/OS.
5735         Reported by Daniel Richard G. <skunk@iskunk.org>.
5736         * tests/test-perror.sh: Don't fail z/OS style perror output.
5738 2017-02-26  Bruno Haible  <bruno@clisp.org>
5740         nproc: Refactor large function.
5741         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
5742         from num_processors.
5743         (num_processors): In this function, only deal with OMP.
5745 2017-02-26  Pádraig Brady  <P@draigBrady.com>
5747         nproc: adjust handling of OpenMP environment variables
5748         to match the return value from omp_get_num_threads(), i.e.:
5749          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
5750          - Treat 0 as an invalid value and ignore
5751         Also remove the call to omp_get_num_threads() because
5752         it's ineffective without the omp pragmas in place.
5753         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
5754         so that it can be ignored.
5755         (num_processors): Honor OMP_THREAD_LIMIT even without
5756         OMP_NUM_THREADS being set.  Also fix a typo in the environment
5757         variable being checked, from the previous recent commit.
5759 2017-02-26  Pádraig Brady  <P@draigBrady.com>
5761         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
5762         * lib/nproc.c (parse_omp_threads): A new function refactored
5763         from num_processors() to support parsing both of the
5764         above environment variables.
5765         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
5766         to accurately reflect the current OpenMP nesting level.
5767         Also support the OMP_THREAD_LIMIT environment variable
5768         to limit the max value determined from OMP_NUM_THREADS.
5769         * modules/nproc: Depend on minmax header.
5770         Suggested by Oliver Heimlich.
5772 2017-02-25  Bruno Haible  <bruno@clisp.org>
5774         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
5775         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
5777 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
5779         ftoastr: port to -Wdouble-promotion
5780         Work around -Wdouble-promotion false alarm in recent GCCs.
5781         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
5782         (ftoastr_snprintf, FTOASTR): Use it.
5784 2017-02-21  Bruno Haible  <bruno@clisp.org>
5786         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
5787         Reported by Rene Saavedra <rennes@openmailbox.org> in
5788         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
5789         * lib/glthread/lock.h: On glibc systems without
5790         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
5791         implementation of rwlocks.
5792         * lib/glthread/lock.c: Likewise.
5794 2017-02-20  Bruno Haible  <bruno@clisp.org>
5796         lock tests: Fix build failure on z/OS.
5797         Reported by Daniel Richard G. <skunk@iskunk.org>.
5798         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
5799         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
5800         exist.
5802 2017-02-19  Bruno Haible  <bruno@clisp.org>
5804         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
5805         This helps when CC=clang.
5806         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
5807         of /usr/bin/gcc.
5809         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
5810         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
5812 2017-02-19  Bruno Haible  <bruno@clisp.org>
5814         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
5815         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
5816         --with-tests --single-configure is specified.
5818 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
5820         users.txt: Update links, use HTTPS where possible
5821         * users.txt: Updated to HTTPS where possible,
5822         fixed some links to new locations.
5824 2017-02-16  Bruno Haible  <bruno@clisp.org>
5826         xbinary-io: Fix inlining.
5827         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
5829 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
5831         xbinary-io: rename from xsetmode
5832         This patch is taken from suggestions by Bruno Haible in:
5833         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
5834         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
5835         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
5836         not ENOTTY, when it is an inappropriate device.
5837         * lib/binary-io.h (SET_BINARY): Resurrect.
5838         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
5839         (xset_binary_mode_error): Rename from xsetmode_error.
5840         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
5841         (xset_binary_mode): Rename from xsetmode.
5842         All uses changed.
5843         * modules/xbinary-io: Rename from modules/xsetmode.
5844         Update file names.
5845         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
5846         * NEWS: Update to match revised behavior.
5848 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
5850         tests: Adjust to recent SET_BINARY change
5851         * tests/test-binary-io.c (main):
5852         * tests/test-binary-io.sh: Remove test for SET_BINARY.
5853         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
5854         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
5855         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
5857         xsetmode: new module
5858         This is to fix a problem noted by Eric Blake.
5859         Code was using xfreopen to change files to binary mode, but this
5860         fails for stdout when in append mode.  Such code should use
5861         xsetmode instead.
5862         * NEWS: Document incompatible changes to binary-io module.
5863         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
5864         New function.
5865         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
5866         (set_binary_mode): New function, which also checks for tty.
5867         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
5869 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
5871         headers: fix begin-end typos
5872         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
5873         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
5875         selinux-h: port to PGI 16.10
5876         * lib/se-selinux.in.h: Don't assume that include_next skips over
5877         duplicate -I DIR options.
5879         argp: port to PGI 16.10
5880         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
5882 2017-02-13  Darshit Shah  <darnir@gnu.org>
5884         unicase: Update function protoype to match definition.
5885         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
5886         uses 'size_t' as the datatype for the 'len' parameter in the functions
5887         it generates. Update the prototype specified here to match the newly
5888         generated function.
5890 2017-02-12  Bruno Haible  <bruno@clisp.org>
5892         times test: Avoid gcc warnings on Linux/x32.
5893         * tests/test-times.c (main): Really cast printf arguments from clock_t
5894         to 'long int'.
5896 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
5898         glob: port better to emscripten
5899         Problem reported by Bruno Haible in:
5900         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
5901         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
5903 2017-02-11  Bruno Haible  <bruno@clisp.org>
5905         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
5906         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
5907         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
5908         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
5909         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
5910         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
5911         Distinguish hppa64 from hppa.
5913 2017-02-10  Bruno Haible  <bruno@clisp.org>
5915         search: Don't assume that tsearch() exists if 'VISIT' is defined.
5916         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
5917         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
5918         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
5920 2017-02-09  Bruno Haible  <bruno@clisp.org>
5922         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
5923         * doc/gnulib.texi (Libtool and Windows): Recommend
5924         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
5925         Reported by Reuben Thomas <rrt@sc3d.org>.
5927 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
5929         stddef-tests: port to SIZE_MAX <= INT_MAX
5930         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
5931         Do not assume that INT_MAX < SIZE_MAX.
5933 2017-02-01  Bruno Haible  <bruno@clisp.org>
5935         lock tests: Fix link error.
5936         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
5937         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5939 2017-01-31  Bruno Haible  <bruno@clisp.org>
5941         lock: Fix link error (regression from 2017-01-05).
5942         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
5943         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
5944         pthread_rwlockattr_destroy weak.
5945         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5947 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
5949         Port to PGI 16.10 x86-64
5950         This patch fixes one real bug in gl_anylinked_list2.h, along with
5951         some minor glitches that are not bugs.  It does not silence PGI’s
5952         thousands of bogus warnings when compiling test-intprops.c.
5953         Fortunately, the warnings do not cause a failure.
5954         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
5955         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
5956         My goodness, PGI goes back a long ways - this predates C89!
5957         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
5958         For example, ASYNCSAFE (const void *) should expand to
5959         ‘const void *volatile’, not to ‘volatile const void *’.
5960         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
5961         * lib/verify.h (verify) [!__GNUC__]:
5962         Use shorter albeit meaningless string to bypass silly compiler limits.
5963         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
5964         * tests/nan.h (NaNf, NaNd, NaNl):
5965         Use static functions to avoid misguided compiler diagnostics.
5966         Is there some reason we don’t use static functions on all platforms?
5968 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
5970         parse-datetime: handle timezones reentrantly
5971         This API change was prompted by a report by Pádraig Brady in:
5972         https://bug.debian.org/851934#10
5973         To help fix the bug, make parse_datetime2 more reentrant.
5974         * NEWS: Document this incompatible change.
5975         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
5976         Add two arguments, the timezone and the timezone name.
5977         All callers changed.  If TZ="..." is specified, use it for
5978         calculating defaults.
5979         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
5980         this code should be usable in a library.
5981         (mktime_ok, get_effective_timezone):
5982         Accept timezone arg too.  All callers changed.
5983         (get_tz): Remove.
5984         (get_effective_timezone): Check for failures.
5986 2017-01-20  Eric Blake  <eblake@redhat.com>
5988         localename: port to cygwin 2.6
5989         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
5990         Cygwin.
5991         * modules/localename (Depends-on): Add extensions, since
5992         NL_LOCALE_NAME() is not visible without it.
5994 2017-01-17  Pádraig Brady  <P@draigBrady.com>
5996         parse-datetime: fix dependence on AC_PROG_SED
5997         * modules/parse-datetime: Use `sed` directly like all other modules.
5998         Reported by J William Piggott
6000 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
6002         intprops: update doc URLs
6003         * doc/intprops.texi (Integer Range Overflow): Update URLs.
6005 2017-01-16  Bruno Haible  <bruno@clisp.org>
6007         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
6008         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
6009         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
6010         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
6011         distinguish s390 and s390x.
6012         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
6013         * NEWS: Mention the change regarding 'armel'.
6015 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
6017         localeinfo: case_folded_counterparts and WEOF
6018         * NEWS: Document this.
6019         * lib/localeinfo.c (case_folded_counterparts):
6020         First arg is now wint_t, not wchar_t.  This generalizes the
6021         function to also work on WEOF, where it returns 0.
6023         dfa: port to gcc -fsanitize=undefined
6024         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
6025         as this runs afoul of gcc -fsanitize=undefined.
6027 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
6029         strftime: %z is -00 if unknown
6030         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
6031         the caller's responsibility to set 'negative_number'.  All uses changed.
6032         (__strftime_internal): Put '-' before a zero UTC offset if the time
6033         zone abbreviation starts with "-", which is the recently-introduced
6034         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
6035         * tests/test-strftime.c: Test for this.
6037 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
6039         dfa: port to older GCC
6040         Problem reported by Assaf Gordon in:
6041         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
6042         * modules/c99: New module.  This merely attempts to use the latest
6043         C version, which should be enough to solve this particular problem.
6044         The idea is to document which Gnulib modules assume C99 or later.
6045         * modules/dfa (Depends-on): Add it.
6047 2017-01-10  Bruno Haible  <bruno@clisp.org>
6049         Update DEPENDENCIES.
6050         * DEPENDENCIES: List only https URLs. Update recommended version for
6051         autoconf, automake, gperf.
6053 2017-01-10  Jim Meyering  <meyering@fb.com>
6055         maint.mk: enforce spelling of "timestamp" (i.e., no space)
6056         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
6057         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
6059 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
6061         dfa: minor simplification with emptyset
6062         * lib/dfa.c (build_state): Simplify by using emptyset.
6064 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
6066         dfa: shrink constraints from 4 bits to 3
6067         * lib/dfa.c (newline_constraint, letter_constraint)
6068         (other_constraint, prev_newline_dependent)
6069         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
6070         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
6071         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
6072         Constraints need only 3 bits, not 4.  Using smaller integers
6073         shrinks the code a bit and makes grep a tad faster on x86-64.
6075         dfa: omit unnecessary ptrdiff_t check
6076         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
6077         overflow, since xnmalloc does that now.
6079         dfa: omit unnecessary allocation
6080         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
6081         an all-zero follow set works just fine.
6083         dfa: omit unused local
6084         * lib/dfa.c (build_state): Fix up recent change.
6086         maint: remove stray .texi files
6087         Although these were superseded by other files like
6088         doc/posix-functions/ctime.texi, the old files were not removed.
6089         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
6091 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
6093         getprogname: fix port to IRIX
6094         * lib/getprogname.c (getprogname) [__sgi]:
6095         Don't dump core if malloc returns NULL.
6097         dfa: fix reallocation bug when matching newlines
6098         Problem reported for sed by S. Gilles (Bug#25390).
6099         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
6100         (dfastate): Reallocate before moving any newline transition ...
6101         (build_state): ... instead of reallocating here, where it is too late.
6103 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
6105         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
6106         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
6108 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
6110         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
6111         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
6113 2017-01-07  Bruno Haible  <bruno@clisp.org>
6115         stdioext: Port to Minix 3.2 and newer.
6116         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
6117         * lib/fseeko.c (fseeko): Likewise.
6118         Reported by Nelson Beebe via Paul Eggert.
6120 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
6122         getprogname: port to IRIX
6123         * lib/getprogname.c (getprogname): Port to IRIX.
6124         Based on an idea by Bastien Roucariès at:
6125         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
6126         via code from Bruno Haible at:
6127         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
6129         localename-tests: port to NetBSD 7
6130         Problem reported by Nelson H. F. Beebe.
6131         * tests/test-localename.c:
6132         Test newlocale and uselocale only if both exist.
6134         glob, intprops, xalloc: work around Clang bug
6135         Work around LLVM bug 16404, which is still not fixed.
6136         https://llvm.org/bugs/show_bug.cgi?id=16404
6137         Problem reported by Nelson H. F. Beebe.
6138         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
6139         Remove.
6140         * lib/glob.c (size_add_wrapv):
6141         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
6142         * lib/xalloc-oversized.h (xalloc_oversized):
6143         Do not use overflow builtins if Clang.
6145         dfa: fix 'return' typo
6146         Problem reported by Nelson H. F. Beebe.
6147         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
6149 2017-01-05  Pádraig Brady  <P@draigBrady.com>
6151         parse-datetime: fix generated paths for coverage files
6152         * modules/parse-datetime: Adjust the paths for parse-datetime.y
6153         within parse-datetime.c, so that gcc generates appropriate .gcno
6154         files, allowing lcov to proceed without error.  Previously it
6155         would error trying to find "lib/lib/parse-datetime.y".
6157 2017-01-05  Pádraig Brady  <P@draigBrady.com>
6159         maint.mk: support parallel execution of coverage
6160         * top/maint.mk (coverage): Run dependencies serially,
6161         thus supporting parallel processing of each one,
6162         particularly build-coverage, which builds and runs tests.
6164 2017-01-05  Bruno Haible  <bruno@clisp.org>
6166         lock tests: Prefer semaphore over mutex.
6167         * tests/test-lock.c (USE_SEMAPHORE): New constant.
6168         (struct atomic_int, init_atomic_int, get_atomic_int_value,
6169         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
6170         Suggested by Torvald Riegel <triegel@redhat.com>.
6172 2017-01-05  Bruno Haible  <bruno@clisp.org>
6174         lock: Provide guarantee to avoid writer starvation for rwlocks.
6175         The rationale is: 1) Read-preferring read-write locks are prone to
6176         writer starvation if the number of reader threads multiplied by the
6177         percentage of time they have the lock held is too high. 2) Write-
6178         preferring read-write locks are the only reliable way to avoid this.
6179         3) There have been reports of 'test-lock' hanging on glibc systems
6180         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
6181         and glibc indeed implements read-preferring rwlocks by default, see
6182         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
6183         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
6184         * m4/pthread_rwlock_rdlock.m4: New file.
6185         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
6186         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
6187         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
6188         of rwlock initialization on glibc systems without
6189         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
6190         of rwlocks altogether on non-glibc systems without
6191         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
6192         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
6193         * lib/glthread/lock.c [USE_POSIX_THREADS]
6194         (glthread_rwlock_init_for_glibc): New function.
6195         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
6196         comment.
6197         [USE_PTH_THREADS]: New implementation of rwlocks.
6198         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
6199         readers.
6200         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
6201         (Depends-on): Add 'extensions'.
6202         * tests/test-rwlock1.c: New file.
6203         * lock-tests (Files): Add it.
6204         (Depends-on): Add usleep.
6205         (Makefile.am): Add test-rwlock1 to the tests.
6207 2017-01-05  Bruno Haible  <bruno@clisp.org>
6209         thread: Fix pth port.
6210         * lib/glthread/thread.h (pth_init): Declare weak.
6211         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
6212         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
6213         function.
6215 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
6217         parse-datetime: fix debug message on lone year number
6218         Input dates such as
6219           date -d "Apr 11 22:59:00 2011"
6220         are parsed as date (Apr 11, with default year 2016), then time, then a
6221         number (2011). Based on the combination of previously seen tokens,
6222         'digits_to_date_time' determines 2011 to be a year value.
6223         This fixes the debug messages to correctly show the updated year.
6224         Before:
6225             $ date --debug -d 'Apr 11 22:59:00 2011'
6226             date: parsed date part: (Y-M-D) 2016-04-11
6227             date: parsed time part: 22:59:00
6228             date: parsed number part: today/this/now
6229         After:
6230             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
6231             date: parsed date part: (Y-M-D) 2016-04-11
6232             date: parsed time part: 22:59:00
6233             date: parsed number part: year: 2011
6234         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
6235         'debug_year_seen' member fields.
6236         (digits_to_date_time): Update 'year_seen' as needed.
6237         (debug_print_current_time): Inform about year updates.
6238         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
6240         parse-datetime: fix local timezone debug messages
6241         "Local timezones" are strings that affect only DST relative to the
6242         default timezone. The debug messages in parse-datetime.y printed
6243         wrong information when encountering local timezones.
6244         Examples:
6245         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
6246              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
6247              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
6248         When the default timezone relates to the zone strings, EET/EEST are
6249         parsed as local timezones (tLOCAL_ZONE), and only change the DST
6250         value (0/1, respectively):
6251              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
6252              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
6253         * lib/parse-datetime.y (debug_print_current_time): If local timezone
6254         was seen, inform about DST change, don't print actual timezone.
6255         (debug_strfdatetime): If local timezone was seen, use default timezone
6256         (and adjust as needed) instead of using incorrect timezone.
6257         (parse_datetime2): Use correct time-zone source string, and adjust
6258         default timezone as needed.
6260         parse-datetime: add debug warning about DST changes
6261         Incorrect date arithmetic due to daylight saving time (DST) are a
6262         common (false) bug report in coreutils.
6263         Detect two such cases and print a warning:
6264         1. year/month/day adjustments (performed on 'struct tm'),
6265            where 'mktime' returns a different isdst value.
6266         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
6267            where the result of 'localtime(3)' on the value will return a
6268            different isdst value.
6269         Note: DST changes could be harmless or unnoticeable.
6270         Examples (with 'TZ=America/New_York'):
6271         Unnoticeable: result is 2016-Dec-14
6272            $ date -d '2016-06-15 EDT + 6 months' +%b
6273            Dec
6274         Unnoticeable: result is 2016-Dec-15 11:00:00
6275            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
6276            2016-12-15
6277         This is unexpected:
6278            $ date -d '2016-06-01 EDT + 6 months' +%F
6279            2016-11-30
6280         The new debug warnings will show:
6281            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
6282            ...
6283            date: warning: daylight saving time changed after date adjustment
6284            ...
6285         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
6286         print an appropriate warning message.
6288         parse-datetime: add debug warning about date arithmetic
6289         Date arithmetic are done directly on the fields of 'struct tm',
6290         which can result in invalid dates. Normalization with 'mktime(3)'
6291         will then produce a different date - which might cause unexpected
6292         results.
6293         Examples:
6294           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
6295           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
6296         Note that date normalization is not inherently wrong and not rejected,
6297         as it has legitimate uses:
6298           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
6299         If the user asked to adjust months but 'mday' changed,
6300         or user asked to adjust years but 'month' changed - warn about it.
6301             $ ./src/date --debug -d '2016-10-31 - 1 month'
6302             ...
6303             date: warning: when adding relative months/years, \
6304                            it is recommended to specify the 15th of the month
6305             ...
6306             date: warning: month/year adjustment resulted in shifted dates:
6307             date:      adjusted Y M D: 2016 09 31
6308             date:    normalized Y M D: 2010 10 01
6309             ...
6310         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
6311         a warning message. Improve recommendation of when to use 15 of the
6312         month or noon for date arithmetic.
6314         parse-datetime: fix debug message of relative part after timezone
6315         Relative part (e.g '+8 days') after a timezone string was not
6316         reported (was only reported after a timezone number). Due to the
6317         parser's structure, timezone strings with numbers were handled
6318         separately.
6319         before:
6320              # Timezone number + relative part: OK
6321              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
6322              ...
6323              date: parsed relative part: -8 day(s)
6324              # Timezone string + relative part: missing
6325              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
6326              [ missing message ]
6327         After: messages are printed in both cases.
6328         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
6330         parse-datetime: fix incorrect debug message on lone number
6331         A lone number is an absolute value, not a relative time part.
6332         before:
6333            $ date --debug -d '20130101'
6334            date: parsed number part: today/this/now
6335         After:
6336            $ ./src/date --debug -d '20130101'
6337            date: parsed number part: (Y-M-D) 2013-01-01
6338         * lib/parse-datetime.y ('item'/'number' tokens): Call
6339         'debug_print_current_time' instead of 'debug_print_relative_time'.
6341 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
6343         doc: modernize for C11 etc.
6344         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
6345         for C11, MinGW, etc.  This responds to Paul Smith's question in:
6346         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
6348         dfa: prefer functions to FETCH_WC macro
6349         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
6350         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
6351         wint_t result into DFA->lex.wctok instead of to a separate arg.
6352         All callers changed.  Move more local decls closer to where
6353         they're used.
6355         dfa: narrow more local var scopes
6356         * lib/dfa.c: Move more local decls to be more local.
6358         dfa: remove duplicate assignment
6359         Problem reported by Bruno Haible in:
6360         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
6361         * lib/dfa.c (parse_bracket_exp): Simplify.
6363 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
6365         dfa: simplify constraint-dependency checking
6366         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
6367         (prev_other_constraint): Remove.
6368         (prev_newline_dependent, prev_letter_dependent):
6369         Simplify, to avoid an unnecessary bitwise AND operation.
6371         dfa: prefer functions and constants to macros
6372         * lib/dfa.c: Prefer constants to macros where either will do.
6373         (streq, isasciidigit, newline_constraint)
6374         (letter_constraint, other_constraint, succeeds_in_context)
6375         (prev_newline_constraint, prev_letter_constraint)
6376         (prev_other_constraint, prev_newline_dependent)
6377         (prev_letter_dependent, accepting, accepts_in_context):
6378         Now static functions instead of function-like macros.
6379         Use lower-case names accordingly.  All uses changed.
6381         dfa: narrow more local var scopes
6382         * lib/dfa.c: Move some more local decls down to nearer where
6383         they're needed.
6385 2016-12-31  Jim Meyering  <meyering@fb.com>
6387         dfa: narrow the scope of many local variables
6388         * lib/dfa.c: Now that we are no longer constrained to c89, move
6389         declarations of many variables (often indices) "down" into the
6390         scope(s) where used or to the point of definition.  This is a
6391         no-semantic-change diff.
6393 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
6395         version-etc: new year
6396         * build-aux/gendocs.sh (version):
6397         * doc/gendocs_template:
6398         * doc/gendocs_template_min:
6399         * doc/gnulib.texi:
6400         * lib/version-etc.c (COPYRIGHT_YEAR):
6401         Update copyright dates by hand in templates and the like.
6402         * all files: Run 'make update-copyright'.
6404 2016-12-31  Eric Blake  <eblake@redhat.com>
6406         do-release-commit-and-tag: avoid shell syntax error
6407         * build-aux/do-release-commit-and-tag (curr_br): $branch can
6408         contain spaces when rebasing.
6410         maint.mk: hoist gnulib_dir definition earlier
6411         * top/maint.mk (gnulib_dir): Move near top of file.
6413 2016-12-31  Jim Meyering  <meyering@fb.com>
6415         maint.mk: do not always evaluate intprops-related shell
6416         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
6417         using gnulib_dir undefined (gnulib_dir is defined later in the
6418         file, which will be fixed separately), and besides, there is no
6419         need to incur the cost of this shell invocation for every single
6420         use of this .mk file.  Reported by Eric Blake in
6421         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
6423 2016-12-30  Jim Meyering  <meyering@fb.com>
6425         maint.mk: improve sc_prohibit_intprops_without_use
6426         * top/maint.mk (_intprops_names): Don't hard-code the list of
6427         symbol names.  Instead, derive it on the fly.
6429 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
6431         dfa: shorten sbit, success
6432         * lib/dfa.c (struct regex_syntax.sbit):
6433         (struct dfa.success): Use char, not int, for array elements, since
6434         they are all in the range 0..7.
6436         dfa: simplify multibyte_prop etc.
6437         This follows up on a change made when dfa.c was in grep, namely grep
6438         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
6439         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
6440         That earlier simplification allows for some more simplification
6441         and trimming down here.
6442         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
6443         (struct lexer_state): New mamber brack.
6444         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
6445         since they must be in the range 0..3 now.
6446         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
6447         the brack member now supersedes them.
6448         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
6449         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
6450         (dfaparse): Remove unnecessary initializations of already-0 storage.
6451         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
6452         (dfassbuild): No need to clear sup->mbcsets.
6454         dfa: minor performance tweak
6455         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
6457         dfa: wrap charclass inside a struct
6458         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
6459         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
6460         about 5% faster, where list.txt is generated by 'aspell dump
6461         master | head -n 100000 >list.txt'.  See Bug#22239.
6462         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
6463         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
6464         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
6465         Adjust to this, e.g., by using charclass * rather than charclass.
6466         All callers changed as needed.
6467         (copyset): Remove.  All uses changed to simple assignment.
6468         (parse_bracket_exp): Use zeroset instead of memset.
6470 2016-12-30  Jim Meyering  <meyering@fb.com>
6472         maint.mk: update list of intprops.h symbol names
6473         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
6474         This avoids a false failure of the sc_prohibit_intprops_without_use
6475         rule in grep.
6477 2016-12-29  Eric Blake  <eblake@redhat.com>
6479         getopt: fix parallel test failure
6480         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
6481         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
6482         * tests/test-getopt-main.h (main): Use different file names
6483         in case test-getopt-gnu and test-getopt-posix run in parallel.
6485 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
6487         xalloc: x2nrealloc check for ptrdiff_t overflow
6488         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
6489         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
6491 2016-12-24  Bruno Haible  <bruno@clisp.org>
6493         lock test: Fix performance problem on multi-core machines.
6494         * tests/test-lock.c (USE_VOLATILE): New macro.
6495         (struct atomic_int): New type.
6496         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
6497         functions.
6498         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
6499         as 'struct atomic_int'.
6500         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
6501         reclock_checker_thread, test_recursive_lock): Use the new functions.
6502         Reported by Eric Blake in
6503         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
6504         and by Pádraig Brady in
6505         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
6507 2016-12-19  Bruno Haible  <bruno@clisp.org>
6509         vma-iter: Fix endless loop on 64-bit Windows.
6510         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
6511         'unsigned long'.
6513 2016-12-19  Bruno Haible  <bruno@clisp.org>
6515         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
6516         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
6517         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
6518         Invoke gt_TYPE_WINT_T instead.
6519         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
6520         * modules/stdint (Files): Add m4/wint_t.m4.
6521         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
6522         * modules/wctype-h (Makefile.am): Likewise.
6523         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
6524         not only on MSVC.
6525         * lib/wctype.in.h (wint_t): Likewise.
6527 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
6529         getopt-posix-tests: fix Makefile typo
6530         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
6531         Fix typo: the last ‘_’ was missing in the name.
6532         I suspect that the typo explains this build failure:
6533         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
6534         although I can’t reproduce the problem on Solaris 10 sparc.
6536 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6538         dfa: improve worst-case 'replace' performance
6539         See my note in Bug#22357#71.
6540         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
6541         (merge_constrained): New function, which is like
6542         the old 'merge' function, except with a new argument C2.
6543         Simplify the body by avoiding the need for different sections
6544         of code depending on whether one input is exhausted.
6545         (merge): Use the new function.
6546         (delete): Return the constraint of the deleted position,
6547         not the entire position.  Caller changed.
6548         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
6550 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
6552         dfa: performance improvement for removal of epsilon closure
6553         See Bug#22357#32.
6554         * lib/dfa.c (delete): Use binary search to find deleted index.
6555         (replace): New function.  It replaces a position with the followed set.
6556         (epsclosure): Replace it with a new algorithm.  Update caller.
6558 2016-12-18  Bruno Haible  <bruno@clisp.org>
6560         Split tests for getopt-posix and getopt-gnu.
6561         * tests/test-getopt-posix.c: New file.
6562         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
6563         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
6564         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
6565         GNULIB_TEST_GETOPT_GNU.
6566         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
6567         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
6568         (Makefile.am): Test test-getopt-posix instead of test-getopt.
6569         * modules/getopt-gnu-tests: New file.
6570         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
6572 2016-12-18  Bruno Haible  <bruno@clisp.org>
6574         posix-modules: Add options for specific platforms.
6575         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
6576         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
6577         Invoke func_tmpdir. Filter out the excludes.
6579 2016-12-18  Bruno Haible  <bruno@clisp.org>
6581         getopt: Fix link error for users of getopt() in <unistd.h>.
6582         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
6583         __need_getopt is defined. Undefine all macros before defining them.
6584         * modules/getopt (Include): Clarify that including <unistd.h> is also
6585         OK.
6586         * tests/test-getopt.c: Add comment.
6588 2016-12-17  Bruno Haible  <bruno@clisp.org>
6590         getaddrinfo tests: Avoid compilation error on MSVC.
6591         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
6592         getaddrinfo on native Windows.
6594 2016-12-17  Bruno Haible  <bruno@clisp.org>
6596         getlogin, getlogin_r: Fix link errors on MSVC.
6597         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
6598         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
6599         (Link): New section.
6600         * modules/getlogin_r (Files): Add m4/getlogin.m4.
6601         (configure.ac): Require gl_LIB_GETLOGIN.
6602         (Link): New section.
6603         * NEWS: Mention the new link requirements.
6604         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
6605         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
6607 2016-12-17  Bruno Haible  <bruno@clisp.org>
6609         Un-deprecate the 'progname' module.
6610         * NEWS: Describe the appropriate use-cases of 'progname' versus
6611         'getprogname'. Based on discussion summary at
6612         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
6614 2016-12-17  Bruno Haible  <bruno@clisp.org>
6616         Reorganize NEWS a bit.
6617         * NEWS: Move some not so important changes away from section
6618         "Important Notes".
6620 2016-12-17  Bruno Haible  <bruno@clisp.org>
6622         tanhf: Avoid redefinition error on MSVC.
6623         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
6624         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
6625         may be defined as an inline function.
6626         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
6627         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
6629 2016-12-17  Bruno Haible  <bruno@clisp.org>
6631         tanf: Avoid redefinition error on MSVC.
6632         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
6633         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
6634         may be defined as an inline function.
6635         * modules/math (Makefile.am): Substitute REPLACE_TANF.
6636         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
6638 2016-12-17  Bruno Haible  <bruno@clisp.org>
6640         sqrtf: Avoid redefinition error on MSVC.
6641         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
6642         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
6643         may be defined as an inline function.
6644         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
6645         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
6647 2016-12-17  Bruno Haible  <bruno@clisp.org>
6649         sinhf: Avoid redefinition error on MSVC.
6650         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
6651         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
6652         may be defined as an inline function.
6653         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
6654         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
6656 2016-12-17  Bruno Haible  <bruno@clisp.org>
6658         sinf: Avoid redefinition error on MSVC.
6659         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
6660         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
6661         may be defined as an inline function.
6662         * modules/math (Makefile.am): Substitute REPLACE_SINF.
6663         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
6665 2016-12-17  Bruno Haible  <bruno@clisp.org>
6667         logf: Avoid redefinition error on MSVC.
6668         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
6669         may be defined as an inline function.
6671 2016-12-17  Bruno Haible  <bruno@clisp.org>
6673         log10l: Avoid redefinition error on MSVC.
6674         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
6675         may be defined as an inline function.
6677 2016-12-17  Bruno Haible  <bruno@clisp.org>
6679         log10f: Avoid redefinition error on MSVC.
6680         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
6681         may be defined as an inline function.
6683 2016-12-17  Bruno Haible  <bruno@clisp.org>
6685         hypotl: Avoid redefinition error on MSVC.
6686         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
6687         may be defined as an inline function.
6689 2016-12-17  Bruno Haible  <bruno@clisp.org>
6691         hypotf: Avoid redefinition error on MSVC.
6692         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
6693         may be defined as an inline function.
6695 2016-12-17  Bruno Haible  <bruno@clisp.org>
6697         fmodl: Avoid redefinition error on MSVC.
6698         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
6699         may be defined as an inline function.
6701 2016-12-17  Bruno Haible  <bruno@clisp.org>
6703         fmodf: Avoid redefinition error on MSVC.
6704         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
6705         may be defined as an inline function.
6707 2016-12-17  Bruno Haible  <bruno@clisp.org>
6709         expf: Avoid redefinition error on MSVC.
6710         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
6711         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
6712         may be defined as an inline function.
6713         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
6714         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
6716 2016-12-17  Bruno Haible  <bruno@clisp.org>
6718         coshf: Avoid redefinition error on MSVC.
6719         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
6720         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
6721         may be defined as an inline function.
6722         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
6723         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
6725 2016-12-17  Bruno Haible  <bruno@clisp.org>
6727         cosf: Avoid redefinition error on MSVC.
6728         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
6729         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
6730         may be defined as an inline function.
6731         * modules/math (Makefile.am): Substitute REPLACE_COSF.
6732         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
6734 2016-12-17  Bruno Haible  <bruno@clisp.org>
6736         atan2f: Avoid redefinition error on MSVC.
6737         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
6738         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
6739         may be defined as an inline function.
6740         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
6741         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
6743 2016-12-17  Bruno Haible  <bruno@clisp.org>
6745         atanf: Avoid redefinition error on MSVC.
6746         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
6747         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
6748         may be defined as an inline function.
6749         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
6750         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
6752 2016-12-17  Bruno Haible  <bruno@clisp.org>
6754         asinf: Avoid redefinition error on MSVC.
6755         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
6756         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
6757         may be defined as an inline function.
6758         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
6759         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
6761 2016-12-17  Bruno Haible  <bruno@clisp.org>
6763         acosf: Avoid redefinition error on MSVC.
6764         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
6765         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
6766         may be defined as an inline function.
6767         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
6768         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
6770 2016-12-17  Bruno Haible  <bruno@clisp.org>
6772         Avoid redefinition errors on MSVC.
6773         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
6774         the function may be defined as an inline function.
6775         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
6776         the function may be defined as an inline function.
6778 2016-12-17  Bruno Haible  <bruno@clisp.org>
6780         Avoid redefinition errors on MSVC.
6781         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
6782         * lib/unistd.in.h: Include <stdio.h> when necessary.
6784 2016-12-17  Bruno Haible  <bruno@clisp.org>
6786         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
6787         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
6788         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
6789         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
6790         WINT_MAX.
6792 2016-12-17  Bruno Haible  <bruno@clisp.org>
6794         Avoid autoconf warning.
6795         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
6796         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
6798 2016-12-17  Bruno Haible  <bruno@clisp.org>
6800         fpending: Revert workaround against Emacs bug.
6801         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
6802         The Emacs bug is fixed by Eli Zaretskii in
6803         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
6805 2016-12-17  Bruno Haible  <bruno@clisp.org>
6807         getlogin_r tests: Port to mingw.
6808         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
6809         regression introduced on 2014-05-19.
6811 2016-12-17  Bruno Haible  <bruno@clisp.org>
6813         getlogin: Port to newer mingw.
6814         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
6815         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
6816         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
6817         HAVE_GETLOGIN.
6818         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
6819         HAVE_GETLOGIN.
6820         * doc/posix-functions/getlogin.texi: Mention the issue.
6821         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
6822         regression introduced on 2014-05-14.
6824 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
6826         builtin-expect: improve port to IBM XL C
6827         Problem reported for z/OS by Daniel Richard G. in:
6828         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
6829         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
6830         Test for <builtins.h> directly.
6832         builtin-expect: port to IBM XL C
6833         Problem reported for z/OS by Daniel Richard G. in:
6834         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
6835         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
6836         Also allow __builtin_expect defined via a standard include file.
6838         regex: fix dependency
6839         Problem reported by Bruno Haible in:
6840         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
6841         * modules/regex: Depend on builtin-expect.
6843         builtin-expect: new module
6844         Fix fnmatch to use it.
6845         Problem reported for z/OS by Daniel Richard G.
6846         * lib/fnmatch.c (__builtin_expect):
6847         * lib/glob.c (__builtin_expect):
6848         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
6849         * lib/memmem.c (__builtin_expect) [!_LIBC]:
6850         * lib/scandir.c (__builtin_expect):
6851         * lib/strstr.c (__builtin_expect) [!_LIBC]:
6852         Remove macro; config.h now does this.
6853         * lib/gl_anytreehash_list1.h (add_to_bucket):
6854         * lib/regex_internal.h (BE):
6855         Assume __builtin_expect.
6856         * m4/builtin-expect.m4, modules/builtin-expect: New files.
6857         * modules/avltreehash-list, modules/fnmatch, modules/glob:
6858         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
6859         * modules/scandir, modules/strstr-simple:
6860         Depend on builtin-expect.
6862 2016-12-15  Bruno Haible  <bruno@clisp.org>
6864         init.sh: Add possibility to not delete temporary files.
6865         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
6866         to yes, don't erase the temporary directory.
6868 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
6870         regex: fix integer-overflow bug in never-used code
6871         Problem reported by Clément Pit–Claudel in:
6872         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
6873         * lib/regex_internal.h: Include intprops.h.
6874         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
6875         behavior on integer overflow.
6876         * modules/regex (Depends-on): Add intprops.
6878         fpending: fix port to MinGW on Emacs
6879         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
6880         Problem reported by Eli Zaretskii in:
6881         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
6882         Is Plan 9 still a valid porting target, anyway?
6884 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
6886         safe-alloc: use xalloc-oversized
6887         * lib/safe-alloc.c: Include xalloc-oversized.h.
6888         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
6889         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
6891         xalloc: do not exceed PTRDIFF_MAX
6892         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
6893         xalloc_oversized check, since objects larger than PTRDIFF_MAX
6894         bytes have pointer-subtraction problems.
6896         malloca: do not exceed PTRDIFF_MAX
6897         * lib/malloca.h: Include xalloc-oversized.
6898         (nmalloca): Use xalloc_oversized instead of rolling our own.
6899         * modules/malloca (Depends-on):
6900         * modules/relocatable-prog-wrapper (Depends-on):
6901         Add xalloc-oversized.
6903         quotearg: pacify GCC better
6904         * modules/quotearg (Depends-on): Add minmax, stdint.
6905         * lib/quotearg.c: Include minmax.h, stdint.h.
6906         (nslots): Now int, as there seems little point to going to extra
6907         work merely to support the INT_MAX slot, which nobody ever uses.
6908         (quotearg_n_options): Redo size-overflow checks to pacify GCC
6909         and to catch (mostly-theoretical) ptrdiff_t problems too.
6910         This can be done via one comparison.
6912 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
6914         xalloc-oversized: check for PTRDIFF_MAX too
6915         This avoids undefined behavior when subtracting pointers to
6916         objects containing more than PTRDIFF_MAX bytes.
6917         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
6918         Also return 1 if the result would exceed PTRDIFF_MAX>
6919         * modules/xalloc-oversized (Depends-on):
6920         Add stdint.
6922         dfa: fix glitches in previous commit
6923         Sorry, I don't know how I managed to commit the wrong version.
6924         * lib/dfa.c (MIN): Move up.
6925         (xpalloc): Now static.
6927         dfa: fix some unlikely integer overflows
6928         I found these while reviewing the recent Coverity-related fix.
6929         This patch changes part of dfa.c to prefer ptrdiff_t instead of
6930         size_t for object counts.  Using ptrdiff_t is the style typically
6931         used in Emacs; although it wastes a sign bit as sizes can never be
6932         negative, it makes -fsanitize=undefined more likely to catch
6933         integer overflows in index calculation, and nowadays the upside is
6934         typically more important than the downside.  Although perhaps the
6935         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
6936         of dfa.c already does, since it uses state_num which is signed),
6937         that is a bigger change and is not needed to fix the bugs I found.
6938         * lib/dfa.c: Include stdint.h and intprops.h.
6939         (TOKEN_MAX): New macro.
6940         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
6941         (charclass_index, parse_bracket_exp, addtok, insert, merge)
6942         (realloc_trans_if_necessary, free_mbdata):
6943         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
6944         This is safe because xpalloc checks that the sizes do not exceed
6945         either SIZE_MAX or PTRDIFF_MAX.
6946         (xpalloc): New function, mostly taken from Emacs.
6947         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
6948         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
6949         (charclass_index): Check for integer overflow in computing
6950         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
6951         added to it later.
6952         (alloc_position_set): Check for integer overflow.  On typical
6953         platforms this check has zero overhead, since the constant
6954         expression is false.
6955         (realloc_trans_if_necessary):
6956         Remove assertion, which I hope Coverity no longer needs.
6958         * modules/dfa (Depends-on): Add intprops, stdint.
6960 2016-12-12  Jim Meyering  <meyering@fb.com>
6962         dfa: add an assertion to avoid coverity false positive
6963         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
6964         warned that "newalloc1 - 2" could overflow.
6966 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
6968         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
6969         * dfa.h (DFA_CASE_FOLD): Remove.
6970         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
6972 2016-12-13  John W. Eaton  <gnu@jweaton.org>
6974         link: fix test to declare use of rename()
6975         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
6976         -Werror=implicit-function-declaration
6978 2016-12-12  Bruno Haible  <bruno@clisp.org>
6980         fpending: Port to native Windows with MSVC.
6981         * lib/fpending.c: Include stdio-impl.h.
6982         (__fpending): Include all known implementations. Err out if it's not
6983         ported.
6984         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
6985         * modules/fpending (Files): Add lib/stdio-impl.h.
6986         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
6988 2016-12-12  Bruno Haible  <bruno@clisp.org>
6990         stdioext: Port to native Windows with MSVC.
6991         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
6992         (struct _gl_real_FILE): New type.
6993         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
6994         Windows.
6995         * lib/fbufmode.c (fbufmode): Add code for native Windows.
6996         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
6997         other SystemV derived implementations.
6998         * lib/fpurge.c (fpurge): Likewise.
6999         * lib/freadable.c (freadable): Likewise.
7000         * lib/freadahead.c (freadahead): Likewise.
7001         * lib/freading.c (freading): Likewise.
7002         * lib/freadptr.c (freadptr): Likewise.
7003         * lib/freadseek.c (freadptrinc): Likewise.
7004         * lib/fseeko.c (fseeko): Likewise.
7005         * lib/fseterr.c (fseterr): Likewise.
7006         * lib/fwritable.c (fwritable): Likewise.
7007         * lib/fwriting.c (fwriting): Likewise.
7008         Reported by Gisle Vanem <gvanem@yahoo.no>.
7010 2016-12-11  Jim Meyering  <meyering@fb.com>
7012         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
7013         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
7014         to work with most shells, but not with the one provided by many
7015         Solaris 10 systems, so running configure with such a /bin/sh evokes
7016         e.g., "./configure: syntax error at line 33602: `(' unexpected".
7017         Reported by Assaf Gordon in
7018         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
7020 2016-12-10  Bruno Haible  <bruno@clisp.org>
7022         threadlib: Optimize out runtime test on Solaris >= 10.
7023         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
7024         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
7025         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
7027 2016-12-10  Bruno Haible  <bruno@clisp.org>
7029         stdint: Update doc about Solaris 9.
7030         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
7032 2016-12-09  Bruno Haible  <bruno@clisp.org>
7034         c-ctype tests: Fix link error on Solaris 9.
7035         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
7036         Reported at <https://savannah.gnu.org/bugs/?46827>.
7038 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
7040         dfa: fix performance bug that recomputes trans
7041         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
7042         25 on-demand changes.  The bug caused build_state to reset all
7043         d->trans elements to -2 even when d->trans was already non-null.
7044         Use C99 style decls after statements in this function.
7046         same-inode: port to MinGW
7047         Here st_ino is always 0, so change the definition of SAME_INODE so
7048         that 1 means the two files are the same, 0 with st_ino != 0 means
7049         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
7050         reported by Bruno Haible (Bug#25146).
7051         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
7052         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
7054 2016-12-04  Bruno Haible  <bruno@clisp.org>
7056         javacomp-script: Support Java 7 and 8.
7057         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
7058         target-version 1.7, 1.8.
7060 2016-12-02  Daiki Ueno  <ueno@gnu.org>
7062         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
7063         GPLv2" rewriting.
7065 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
7067         * gnulib-tool (func_import): Adhere to the license guideline when
7068         rewriting the license text to "LGPLv3+ or GPLv2":
7069         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
7071 2016-12-02  Bruno Haible  <bruno@clisp.org>
7073         localcharset: Avoid theoretical buffer overrun.
7074         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
7075         return value from setlocale if it would lead to a buffer overrun.
7077 2016-12-01  Bruno Haible  <bruno@clisp.org>
7079         Relicense some modules under LGPLv2+.
7080         Kevin Cernekee's approval is in
7081         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
7082         * modules/fseterr (License): Change to LGPLv2+.
7083         * modules/mbchar (License): Likewise.
7084         * modules/mbiter (License): Likewise.
7085         * modules/mbsnlen (License): Likewise.
7086         * modules/wcwidth (License): Likewise.
7088 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
7090         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
7091         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
7092         OS/2 kLIBC.
7094 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
7096         alphasort, scandir: Port to OS/2 kLIBC
7097         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
7098         declaration.
7099         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
7101 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
7103         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
7104         * lib/relocatable.c (relocate): Do not touch pathname if it is started
7105         with '/@unixroot'.
7107 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
7109         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
7110         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
7111         OS/2 kLIBC unless TCPV40HDRS is defined.
7113 2016-11-29  Jim Meyering  <meyering@fb.com>
7115         dfa: avoid new infinite loop
7116         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
7117         * lib/dfa.c (dfastate): When constructing a new state table, we could
7118         initially declare that we had found a match, and later find that
7119         constraints eliminate that possibility, yet continue to use the
7120         now stale "matched" indicator.  That would lead to an infinite loop.
7121         The solution is to update "matched" when necessary.
7122         Introduced by commit v0.1-983-g403adf1.
7124 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
7126         dfa: avoid match middle in multibyte character
7127         * lib/dfa.c (transit_state): If fails in matching single byte characters
7128         on a state including period expression in non-UTF8 multibyte locales,
7129         skip trailing bytes.
7130         (dfa_supported): Revert previous change.
7132 2016-11-27  Jim Meyering  <meyering@fb.com>
7134         dfa: avoid false match in non-UTF8 multibyte locales
7135         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
7136         as "not supported" so that callers will resort to using regex-based
7137         matcher.  This will surely hurt performance, but correctness trumps
7138         performance here, and the affected locales are less and less relevant,
7139         these days.  See grep's bug report https://bugs.gnu.org/24975.
7141 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
7143         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
7144         * lib/ptsname_r.c: Include the appropriate headers.
7145         [__sun]: Delete sys/sysmacros.h include.
7146         [_AIX || __osf__]: Likewise.
7147         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
7149 2016-11-27  Pádraig Brady  <P@draigBrady.com>
7151         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
7152         * lib/md4.c (md4_process_bytes): The existing define is made internal
7153         in recent versions of glibc, so also use this new public define.
7154         * lib/md5.c (md5_process_bytes): Likewise.
7155         * lib/sha1.c (sha1_process_bytes): Likewise.
7156         * lib/sha256.c (sha256_process_bytes): Likewise.
7157         * lib/sha512.c (sha512_process_bytes): Likewise.
7159 2016-11-27  Pádraig Brady  <P@draigBrady.com>
7161         maint: use a more standard return from mbrtowc test
7162         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
7163         from the test program as this often indicates an
7164         unhandled case in the test program.
7165         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
7166         (gl_MBRTOWC_SANITYCHECK): Likewise.
7167         (gl_MBRTOWC_NULL_ARG2): Likewise.
7168         (gl_MBRTOWC_NUL_RETVAL): Likewise.
7170 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
7172         freopen: work around glibc bug with closed fd
7173         Work around glibc bug#15589, where freopen mishandles the case
7174         where stdin etc. are already closed.
7175         * doc/posix-functions/freopen.texi (freopen): Document the bug.
7176         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
7177         instead of __need_FILE, as the latter does not work with glibc.
7178         Include <fcntl.h>, for open flags.
7179         (rpl_freopen): Work around glibc bug.
7180         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
7181         * modules/freopen (Depends-on): Add fcntl-h.
7182         * tests/test-freopen.c (main): Test for bug.
7184 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
7186         fnmatch: fix typo introduced on 2016-08-17
7187         This fixes the port to non-GCC compilers that lack __builtin_expect.
7188         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
7190         dfa: simplify with new function fillset
7191         * lib/dfa.c (fillset): New function.
7192         Use it for clarity when applicable.
7194         dfa: fix glitches with on-demand states
7195         Also, adjust commentary to better match new code.
7196         Some of these glitches predate the recent change.
7197         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
7198         only non-initial states.
7199         (dfastate): Rename locals to better match new roles.
7200         Move them into nested scopes if this is easy.
7201         Omit unnecessary calls to zeroset.
7202         Simplify test for whether to throw in the positions of state 0.
7203         Omit C99-ism (decl after statement) since Gawk still wants C89.
7204         (build_state): Omit unnecessary test and assignment.
7205         Fix some confusion that counted transition tables inaccurately
7206         and could cause a memory leak.
7207         (dfaexec_main): Redo to make it clearer to the compiler that
7208         -1 and -2 are the only negative state numbers here.
7210 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
7212         dfa: addition of new state on demand
7213         * src/dfa.c (dfastate): Add argument UC, the current input character.
7214         Fill only a group including the character in transition table.
7215         (realloc_trans_if_necessary): Add the dummy state which means that a
7216         transition table is assigned but the next state is not assigned.
7217         (build_state): Return the next state.  All callers updated.
7218         (transit_state_singlebyte): If we get the dummy state,
7219         fill the transition table.
7220         (dfaexec_main): Handle the dummy state.
7221         (free_mbdata, dfafree): Consider the dummy state.
7223 2016-11-24  Daiki Ueno  <ueno@gnu.org>
7225         srclist: sync with released gettext
7226         * config/srclist.txt: Set "release" option to the files under
7227         $GETTEXT.
7229 2016-11-24  Daiki Ueno  <ueno@gnu.org>
7231         srclist: add "release" option
7232         * config/srclist.txt: Change the format so that the first column
7233         of each line points to the top-level directory of the source
7234         archive.
7235         * config/srclist-update: Accept "release" option that checks files
7236         from the most recently tagged revision in the source archive.
7238 2016-11-21  Bruno Haible  <bruno@clisp.org>
7240         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
7241         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
7242         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
7243         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
7244         Inline and remove member function 'rpl ()' of the wrapper struct.
7246 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
7248         dfa: fix logic typo
7249         Problem reported by Stephane Chazelas (Bug#24973).
7250         * lib/dfa.c (using_simple_locale): Fix typo that caused some
7251         non-simple locales like fr_FR to be treated as simple.
7253 2016-11-20  Jim Meyering  <meyering@fb.com>
7255         fix test driver leaks: exclude, malloc, realloc
7256         * tests/test-exclude.c (main): Fix trivial leak.
7257         * tests/test-malloc-gnu.c (main): Likewise.
7258         * tests/test-realloc-gnu.c (main): Likewise.
7259         With these changes, grep's tests are now leak free.
7260         I.e., running them with ASAN elicits no failure:
7261           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
7262             AM_LDFLAGS='-fsanitize=address -static-libasan' check
7264 2016-11-11  Bruno Haible  <bruno@clisp.org>
7266         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
7267         * modules/libunistring: (License): Change from LGPL to
7268         "LGPLv3+ or GPLv2".
7269         * modules/libunistring-optional: Likewise.
7270         * modules/unicase/*: Likewise.
7271         * modules/uniconv/*: Likewise.
7272         * modules/unictype/*: Likewise.
7273         * modules/unigbrk/*: Likewise.
7274         * modules/unilbrk/*: Likewise.
7275         * modules/uniname/*: Likewise.
7276         * modules/uninorm/*: Likewise.
7277         * modules/unistdio/*: Likewise.
7278         * modules/unistr/*: Likewise.
7279         * modules/uniwbrk/*: Likewise.
7280         * modules/uniwidth/*: Likewise.
7282 2016-11-12  Bruno Haible  <bruno@clisp.org>
7284         Relicense some modules under LGPLv2+.
7285         Paul Eggert's approval is in
7286         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
7287         Eric Blake's approval is in
7288         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
7289         Ludovic Courtès's approval is in
7290         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
7291         * modules/isnand-nolibm (License): Change to LGPLv2+.
7292         * modules/isnanf-nolibm (License): Likewise.
7293         * modules/isnanl-nolibm (License): Likewise.
7295 2016-11-19  Bruno Haible  <bruno@clisp.org>
7297         Relicense some modules under LGPLv2+.
7298         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
7299         modules/vasnprintf.
7300         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
7301         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
7302         All other significant changes to the files in lib/ of these modules
7303         are from me.
7304         * modules/memcmp2 (License): Change to LGPLv2+.
7305         * modules/amemxfrm (License): Likewise.
7306         * modules/fpieee (License): Likewise.
7307         * modules/fpucw (License): Likewise.
7308         * modules/frexp-nolibm (License): Likewise.
7309         * modules/frexpl-nolibm (License): Likewise.
7310         * modules/printf-frexp (License): Likewise.
7311         * modules/printf-frexpl (License): Likewise.
7312         * modules/printf-safe (License): Likewise.
7313         * modules/signbit (License): Likewise.
7315 2016-11-17  Bruno Haible  <bruno@clisp.org>
7317         Enable Unicode decoder safety unconditionally.
7318         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
7319         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
7320         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
7321         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
7322         * lib/unistr/u8-prev.c (u8_prev): Likewise.
7323         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
7324         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
7325         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
7326         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
7327         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
7328         * lib/unistr/u16-prev.c (u16_prev): Likewise.
7329         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
7330         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
7331         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
7332         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
7333         * lib/unistr/u32-prev.c (u32_prev): Likewise.
7334         * lib/unistr/u32-next.c (u32_next): Likewise.
7335         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
7336         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
7337         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
7338         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
7339         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
7340         CONFIG_UNICODE_SAFETY tests unconditionally.
7341         * tests/unistr/test-u32-mblen.c (main): Likewise.
7342         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
7343         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
7344         * tests/unistr/test-u32-next.c (main): Likewise.
7345         * tests/unistr/test-u32-strmblen.c (main): Likewise.
7346         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
7347         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
7348         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
7349         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
7350         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
7351         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
7352         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
7353         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
7354         * lib/unistr/u16-check.c (u16_check): Update comment.
7355         * NEWS: Mention the changes that callers should be aware of.
7357 2016-11-19  Bruno Haible  <bruno@clisp.org>
7359         relocatable-prog-wrapper: Fix breakage on Cygwin.
7360         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
7361         (Depends-on): Remove intprops.
7362         * lib/relocwrapper.c: Update dependency tree.
7363         (strerror): Undefine.
7364         * build-aux/install-reloc (func_create_wrapper): Do not compile
7365         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
7367 2016-11-19  Bruno Haible  <bruno@clisp.org>
7369         strerror: Make it compile in C++ mode.
7370         * lib/strerror.c (strerror): Ignore the return value of memcpy().
7372 2016-11-15  Pedro Alves  <palves@redhat.com>
7374         sys_time: add gnulib::timeval for C++
7375         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
7376         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
7377         timeval macro.
7379 2016-11-14  Pedro Alves  <palves@redhat.com>
7381         snippet/c++defs: fix real-floating arg functions in C++ mode
7382         Also, define isfinite, isinf, isnan, signbit in the gnulib
7383         namespace instead of in the global namespace.
7384         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
7385         (_GL_END_NAMESPACE): New.
7386         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
7387         (isfinite, isinf, isnan, signbit) [__cplusplus &&
7388         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
7389         instead of in the global namespace.
7390         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
7391         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
7392         of in the global namespace.
7394 2016-11-13  Jim Meyering  <meyering@fb.com>
7396         strftime: don't use __THROW
7397         Each use of __THROW would provoke this from gcc-7-to-be:
7399           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
7400             on unit local functions [-Wattributes]
7401           static int iso_week_days (int, int) __THROW;
7402           ^~~~~~
7403         * lib/strftime.c (__THROW): Don't define.
7404         Remove each use of __THROW.
7405         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
7406         (tm_diff, iso_week_days, __strftime_internal): Likewise.
7408 2016-11-14  Paul Eggert  <eggert@union>
7410         obstack: port to gcc -fcheck-pointer-bounds
7411         Problem found by 'make check' failure on bleeding-edge coreutils
7412         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
7413         6.2.0-5ubuntu12), configured via "./configure
7414         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
7415         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
7416         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
7417         New macro, copied from fts_.h.
7418         (struct _obstack_chunk.contents): Use it.
7420 2016-11-14  Eric Blake  <eblake@redhat.com>
7422         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
7423         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
7424         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
7426 2016-11-14  Pádraig Brady  <P@draigBrady.com>
7428         strptime: fix compile error in recent change
7429         * lib/strptime.c (__strptime_internal): Fix ported code.
7431 2016-11-11  Bruno Haible  <bruno@clisp.org>
7433         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
7434         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
7435         (func_import): Extend determination of license_incompatibilities.
7436         (func_create_testdir): Extend table of license compatibility. Handle
7437         also the licenses GPLv3+, GPL, LGPLv3+.
7439 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
7441         strftime: tune %q
7442         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
7444         Merge strftime.c changes from glibc
7445         This incorporates:
7446         2007-10-16 [BZ #5184] Add tzset_called argument
7447         2008-06-13 [BZ #6612] pass reference to tzset_called around
7448         2009-10-30 Implement Burmese language locale for Myanmar
7449         2010-01-09 Add support for XPG7 testing
7450         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
7451         2015-10-20 Convert miscellaneous function definitions to prototype style
7452         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
7453         it anyway and this lessens the difference between gnulib and glibc.
7454         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
7455         (__THROW): Define if standard headers do not.
7456         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
7457         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
7458         Declare with __THROW.
7459         (__strftime_internal): Rename from strftime_case_. Add arg for
7460         whether tzset is called.  All uses changed.  Call tzset at most
7461         once.  Allow %OC, for Burmese.
7462         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
7463         Don't assume values are in range.
7465 2016-11-12  Eric Blake  <eblake@redhat.com>
7467         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
7468         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
7469         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
7470         different value.
7472 2006-11-12  Pedro Alves  <palves@redhat.com>
7474         Fix gnulib C++ namespace support and std::frexp
7475         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
7476         _GL_CXXALIASWARN.
7478 2006-11-12  Pedro Alves  <palves@redhat.com>
7480         GNULIB_NAMESPACE::func need not pull in rpl_func
7481         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
7482         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
7483         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
7484         struct instead of a function pointer.
7486 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
7488         manywarnings: fix -Wno-missing-field-initializers detection
7489         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
7490         to be independent of -Wunused-variable.  I.E. ensure the latter
7491         warning doesn't occur so that detection of the former is accurate.
7493 2016-11-05  Pádraig Brady  <pbrady@fb.com>
7495         strftime,strptime: support %q to represent the quarter
7496         * lib/strftime.c (strftime_case_): Add %q case.
7497         * lib/strptime.c (__strptime_internal): Likewise.
7498         * tests/test-strftime.c (quarter_test): A new test case.
7500 2016-11-03  Eric Blake  <eblake@redhat.com>
7502         bootstrap: Fix get_version() for AIX 5.3
7503         * build-aux/bootstrap (get_version): Factor out sed script, since
7504         indented comments choke AIX 5.3 sed.
7505         Reported-by: Michael Felt <aixtools@gmail.com>
7507 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
7509         intprops: port to older XL C
7510         Problem reported by Alexander Samoilov in:
7511         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
7512         http://savannah.nongnu.org/bugs/?49448
7513         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
7514         Define to 1 only for XL C 12.1 or later, since this bug
7515         occurs in XL C for AIX 6.0 but not in 12.1.
7517 2016-11-02  Pádraig Brady  <P@draigBrady.com>
7519         backupfile: initialize default suffix within the implementation
7520         * lib/backupfile.c (find_backup_file_name): Initialize the
7521         global variable here, to simplify usage, and to only call
7522         getenv() when needed.
7524 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
7526         futimens: remove FIXME for old Linux kernels
7527         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
7528         this in 2012" FIXME, like that for utimensat.
7530         utimensat: remove FIXME for old Linux kernels
7531         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
7532         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
7533         this in 2012" FIXME, by assuming the file system bug is absent
7534         unless demonstrated to be present.  We no longer need to worry
7535         about Linux kernel 2.6.32 when building with newer kernels.
7537 2016-10-16  Bruno Haible  <bruno@clisp.org>
7539         qsort_r: Fix macrology for platforms that lack the function.
7540         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
7541         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
7542         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
7543         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
7544         not exist.
7545         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
7546         the function exists.
7547         * modules/qsort_r: Add comments.
7549 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
7551         sys_types: fix Texinfo typos
7552         * doc/glibc-functions/gnu_dev_major.texi:
7553         * doc/glibc-functions/gnu_dev_makedev.texi:
7554         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
7556 2016-10-26  John David Anglin  <dave.anglin@bell.net>
7558         getprogname: port to HP-UX
7559         See Bug#24805.
7560         * lib/getprogname.c (getprogname) [__hpux]: Port.
7561         * tests/test-getprogname.c (STREQ) [__hpux]:
7562         Special-case for HP-UX limitations on program name length.
7564 2016-10-20  Bruno Haible  <bruno@clisp.org>
7566         Update doc about target platforms.
7567         * doc/gnulib-intro.texi (Target Platforms): Update list.
7569 2016-10-15  Bruno Haible  <bruno@clisp.org>
7571         opendir, readdir, closedir: Relicense under LGPLv2+.
7572         * modules/opendir (License): Change to LGPLv2+.
7573         * modules/readdir (License): Likewise.
7574         * modules/closedir (License): Likewise.
7576 2016-10-16  Bruno Haible  <bruno@clisp.org>
7578         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
7579         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
7580         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
7581         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
7582         HAVE_DECL_STRERROR_R.
7584 2016-10-16  Bruno Haible  <bruno@clisp.org>
7586         Make the 'argp' module work without the 'error' module.
7587         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
7589 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
7591         diffseq: restore TOO_EXPENSIVE heuristic
7592         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
7593         (Bug#24715).  The simplest solution is to restore the
7594         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
7595         using a higher threshold to avoid Bug#16848 on smaller files.
7596         * lib/diffseq.h (struct context): Restore member too_expensive.
7597         (struct partition): Restore members lo_minimal, hi_minimal.
7598         (diag, compareseq): Restore arg find_minimal.  All uses changed.
7599         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
7600         1993 to make 'diff' run faster (but not as well) on large inputs,
7601         but use a threshold of 4096 instead of the old 256.
7602         * lib/fstrcmp.c (strcmp_bounded):
7603         * lib/git-merge-changelog.c (compute_differences):
7604         Adjust to diffseq.h changes.
7606 2016-10-22  Bruno Haible  <bruno@clisp.org>
7608         iconv: Avoid compilation error when bootstrapping GNU libiconv.
7609         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
7610         declaration yet, define ICONV_CONST to empty.
7612 2016-10-15  Bruno Haible  <bruno@clisp.org>
7614         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
7615         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
7616         module.
7618 2016-10-16  Bruno Haible  <bruno@clisp.org>
7620         system-quote tests: Avoid compiler warning on AIX.
7621         * tests/test-system-quote-child.c (fopen): Redefine like the system's
7622         <stdio.h> does.
7624 2016-10-16  Bruno Haible  <bruno@clisp.org>
7626         Fix some "gcc -Wall" warnings.
7627         * tests/test-ffsl.c (main): Use variable x, not i.
7628         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
7629         freopen.
7630         * tests/test-sethostname1.c (main): Explicitly ignore the return value
7631         of sethostname.
7633 2016-10-16  Bruno Haible  <bruno@clisp.org>
7635         gnulib-tool: Make --create-testdir on all modules work again.
7636         * gnulib-tool (func_create_testdir): Don't include the
7637         non-recursive-gnulib-prefix-hack module.
7639 2016-10-21  Daiki Ueno  <ueno@gnu.org>
7641         libunistring: change the maintainer to 'all'
7642         * modules/gen-uni-tables, modules/libunistring:
7643         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
7644         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
7645         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
7646         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
7647         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
7648         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
7649         * modules/uniwidth/*: Change the maintainer to 'all'.
7651 2016-10-16  Bruno Haible  <bruno@clisp.org>
7653         Simplify "configure: checking ..." messages.
7654         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
7655         AC_MSG_NOTICE.
7656         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
7658 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
7660         quotearg-tests: pacify gcc -Wall
7661         Problem reported by Bruno Haible in:
7662         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
7663         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
7664         * tests/test-quotearg.h: ... from here.
7666 2016-10-20  Pádraig Brady  <P@draigBrady.com>
7668         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
7669         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
7670         Needed on Centos <= 4.
7672 2016-10-20  Jim Meyering  <meyering@fb.com>
7674         printf.m4: fix a bug in detecting printf %j support
7675         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
7676         uintmax_t is defined in neither stdint.h nor inttypes.h.
7677         Before, this macro might have mistakenly set
7678         gl_cv_func_printf_sizes_c99=yes on such a system.
7679         Spotted by Zev Weiss.
7681 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
7683         sched: substitute HAVE_SYS_CDEFS_H too
7684         Problem reported by Tom G. Christensen in:
7685         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
7686         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
7687         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
7689 2016-10-19  Pádraig Brady  <P@draigBrady.com>
7691         quotearg: never write beyond the returned length
7692         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
7693         scan of the string when we initially encounter a single quote when
7694         shell quoting, so that if we then switch to a more concise quoting method
7695         we will not have written beyond that returned length.
7696         This is significant for sh-quote, which has separate routines
7697         to determine the length and do the actual quoting.
7698         * tests/test-quotearg.h: Reinstate the buffer bounds checking
7699         now that we never write more than the returned length.
7701 2016-10-18  Bruno Haible  <bruno@clisp.org>
7703         getprogname tests: Avoid failure in packages that use libtool.
7704         * tests/test-getprogname.c (main): Strip "lt-" prefix.
7705         Based on a patch by Jim Meyering.
7707 2016-10-16  Bruno Haible  <bruno@clisp.org>
7709         getprogname: Fix test failure on Cygwin. Comments.
7710         * lib/getprogname.h: Add comments.
7711         * lib/getprogname.c: Add comments. Fix #elif indentation.
7712         * tests/test-getprogname.c (main): On Cygwin, expect a result without
7713         ".exe" suffix.
7715 2016-10-16  Bruno Haible  <bruno@clisp.org>
7717         Make sure the libunistring detection rejects older versions with a
7718         known bug.
7719         * modules/unistr/u8-strtok (configure.ac): Bump required version.
7720         * modules/unistr/u16-strtok (configure.ac): Likewise.
7721         * modules/unistr/u32-strtok (configure.ac): Likewise.
7723 2016-10-18  Bruno Haible  <bruno@clisp.org>
7725         sh-quote, system-quote: revert regression of unit test.
7726         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
7727         * tests/test-system-quote-main.c (check_one): Likewise.
7729 2016-10-16  Pádraig Brady  <P@draigBrady.com>
7731         quotearg: fix stale tests
7732         * tests/test-quotearg.c [locale_results]: Add the missing str7
7733         entries to the expected results.
7734         * tests/test-system-quote-main.c (check_one): Don't enforce that we
7735         don't write beyond the returned length, since that's no longer the
7736         case if we switch to a more concise quoting style.
7737         * tests/test-sh-quote.c (check_one): Likewise.
7738         (main): Adjust for the new more concise quoting style.
7739         Reported by Bruno Haible.
7741 2016-10-16  Jim Meyering  <meyering@fb.com>
7743         non-recursive-gnulib-prefix-hack: fix inconsequential typo
7744         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
7745         to "$1".  This macro is always invoked with $1 == lib.
7746         Spotted by Bruno Haible
7748 2016-10-16  Bruno Haible  <bruno@clisp.org>
7750         Fix a test crash.
7751         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
7752         fails.
7754 2016-10-16  Pádraig Brady  <P@draigBrady.com>
7756         test-limits-h: suppress -Woverlength-strings
7757         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
7759 2016-10-15  Bruno Haible  <bruno@clisp.org>
7761         gettime, timespec, utimens: Relicense under LGPL.
7762         * modules/gettime (License): Change to LGPL.
7763         * modules/timespec (License): Likewise.
7764         * modules/utimens (License): Likewise.
7766 2016-10-14  Bruno Haible  <bruno@clisp.org>
7767             Pádraig Brady  <P@draigBrady.com>
7769         canonicalize-lgpl: Support the case path_max > INT_MAX.
7770         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
7771         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
7773 2016-10-13  Jim Meyering  <meyering@fb.com>
7775         getprogname: IBM z/OS: avoid NULL-dereference
7776         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
7777         upon strdup failure.
7779 2016-10-12  Jim Meyering  <meyering@fb.com>
7781         test-stdint: use _GL_VERIFY rather than "verify" for some tests
7782         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
7783         and an abbreviated diagnostic rather than verify with the full one,
7784         because the full-length strings would evoke warnings from gcc with
7785         -Woverlength-strings.
7787 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
7789         stdint: port SIZE_MAX to glibc s390
7790         Problem reported by Eric Blake in:
7791         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
7792         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
7793         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
7794         correct type, if possible.
7796 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
7798         getprogname: port to IBM z/OS
7799         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
7801 2016-10-11  Jim Meyering  <meyering@fb.com>
7803         maint: remove stray space after "." in AC_DEFINE comment.
7804         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
7805         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
7807 2016-10-05  Jim Meyering  <meyering@fb.com>
7809         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
7810         * lib/long-options.c (parse_long_options): Add a break statement
7811         to avoid this new warning/failure:
7812         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
7813           --create-testdir --dir=/t/x --with-tests --test long-options
7814         ../../gllib/long-options.c: In function 'parse_long_options':
7815         ../../gllib/long-options.c:66:12: error: this statement may \
7816           fall through [-Werror=implicit-fallthrough]
7817                    (*usage_func) (EXIT_SUCCESS);
7818                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
7820 2016-10-05  Jim Meyering  <meyering@fb.com>
7822         utimecmp: avoid new GCC 7 warning from -Wbool-operation
7823         Testing this module would fail when using GCC 7 like this:
7824         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
7825           --dir=/tmp/x --with-tests --test utimecmp
7826         ../../gllib/utimecmp.c: In function ‘utimecmp’:
7827         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
7828           [-Werror=bool-operation]
7829                          time_t s = src_s & ~ (res == 2 * BILLION);
7830                                             ^
7831         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
7832           [-Werror=bool-operation]
7833                src_s &= ~ (res == 2 * BILLION);
7834                         ^
7835         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
7836         Instead, make it explicit that we intend to apply it to 0 or 1.
7838 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
7840         dfa: save memory for states
7841         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
7842         states if dfa has a lot of caches.
7844 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
7846         wchar, wctype-h: fix for MinGW 3.22.2
7847         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
7848         special invocation, to fix issues with MinGW 3.22.2 wchar.h
7849         when included from <string.h>.
7850         * lib/wctype.in.h [__MINGW32__]: Add special invocation
7851         convention for MinGW 3.22.2, to solve issues with their
7852         wctype.h when included from <ctype.h>.
7854 2016-10-05  Jim Meyering  <meyering@fb.com>
7856         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
7857         * lib/long-options.c (parse_long_options): Add a break statement
7858         to avoid this new warning/failure:
7859         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
7860           --create-testdir --dir=/t/x --with-tests --test long-options
7861         ../../gllib/long-options.c: In function ‘parse_long_options’:
7862         ../../gllib/long-options.c:66:12: error: this statement may \
7863           fall through [-Werror=implicit-fallthrough]
7864                    (*usage_func) (EXIT_SUCCESS);
7865                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
7867         utimecmp: avoid new GCC 7 warning from -Wbool-operation
7868         Testing this module would fail when using GCC 7 like this:
7869         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
7870           --dir=/tmp/x --with-tests --test utimecmp
7871         ../../gllib/utimecmp.c: In function ‘utimecmp’:
7872         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
7873           [-Werror=bool-operation]
7874                          time_t s = src_s & ~ (res == 2 * BILLION);
7875                                             ^
7876         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
7877           [-Werror=bool-operation]
7878                src_s &= ~ (res == 2 * BILLION);
7879                         ^
7880         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
7881         Instead, make it explicit that we intend to apply it to 0 or 1.
7883 2016-10-03  Pádraig Brady  <P@draigBrady.com>
7885         quotearg: minimize shell quoting using double quotes
7886         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
7887         quote in encountered then use double quotes (c style quoting)
7888         when possible, as it simplifies the quoting.
7889         * tests/test-quotearg-simple.c: Add test cases.
7890         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
7891         for the fact we now may write beyond the returned length.
7893 2016-10-02  Jim Meyering  <meyering@fb.com>
7895         vasnprintf.c: avoid spurious warning from GCC 7
7896         The presence of cpp directives renders this "FALLTHROUGH" comment
7897         ineffective, so does not suppress the -Wimplicit-fallthrough warning
7898         from GCC 7 built from git on 2016-10-02.
7899         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
7900         directives, so that it takes effect once again.  This is clearly
7901         not a proper change, and I will revert it once this bug is fixed:
7902         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
7904 2016-10-01  Jim Meyering  <meyering@fb.com>
7906         getprogname: correct the test for a __progname variable
7907         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
7908         and AC_LINK_IFELSE to check for a global __progname.  If found,
7909         define HAVE_VAR___PROGNAME.
7910         * lib/getprogname.c (getprogname): Reflect the new name of the
7911         feature- checked preprocessor symbol:
7912         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
7914 2016-09-28  Jim Meyering  <meyering@fb.com>
7916         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
7917         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
7918         fall-through case with a /* fallthrough */ comment.
7920         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
7921         * lib/dfa.c (dfassbuild): Mark the end of this case with a
7922         /* fallthrough */ comment.
7924         getprogname: avoid __progname vs program_invocation_short_name pitfall
7925         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
7926         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
7927         not with Fedora 24's glibc-2.23.1-10.
7928         * lib/getprogname.c (__progname): Move this declaration down...
7929         (getprogname): ... into the #elif block where used, and make it
7930         explicitly "extern".
7932         getprogname: port to OpenBSD 5.1
7933         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
7934         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
7935         * modules/getprogname (configure.ac): Move most of this code...
7936         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
7937         increment serial number, and add a test for __progname.
7938         https://bugs.gnu.org/24562
7939         Reported by Nelson H. F. Beebe.
7941 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
7943         sched: port to GCC 6.2.1 on macOS Sierra
7944         Problem reported by Denis Davydov in:
7945         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
7946         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
7947         Include <sys/cdefs.h> before <sched.h>.
7948         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
7949         so that we needn’t worry about the sched.h include bug here.
7950         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
7951         and include it before <sched.h> if it exists, when
7952         checking for <sched.h>.
7954         tests/init.sh: port Alpine fix to AIX 7.1
7955         * tests/init.sh (compare_): When attempting to use diff -U3,
7956         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
7957         diff -u not outputting a space after leading '+', as the users
7958         of 'compare' should not be that picky about its output format.
7959         In the AIX 7.1 case, return with diff exit status (or with 2 if
7960         trouble), instead of some random nonzero exit status.
7961         * tests/test-init.sh (test_compare): Remove space after leading
7962         '+', so that AIX 7.1 'diff' passes the test.
7964 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
7966         nl_langinfo: pacify GCC
7967         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
7968         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
7970         stdint: also set GL_GENERATE_LIMITS_H
7971         Problem reported by Jim Meyering in:
7972         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
7973         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
7975         limits-h, stdint: Don't assume extensions, fix typo
7976         * m4/limits-h.m4 (gl_LIMITS_H):
7977         * m4/stdint.m4 (gl_STDINT_H):
7978         Don't assume AC_USE_SYSTEM_EXTENSIONS.
7979         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
7980         reported by Jim Meyering in:
7981         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
7983 2016-09-21  Jim Meyering  <meyering@fb.com>
7985         getprogname: port to AIX
7986         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
7987         and strdup to obtain a short program name string.  Using code from
7988         Bruno Haible and an idea from Bastien ROUCARIÈS, in
7989         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
7990         Assaf Gordon reported that this new file would fail to compile on
7991         AIX-7.1 32bit.
7993 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
7995         extensions: fix typo in comment
7996         * m4/extensions.m4: Sync from Autoconf master.
7998         stdint: support new _WIDTH macros
7999         * doc/posix-headers/stdint.texi: Document this.
8000         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
8001         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
8002         support for INTMAX_WIDTH, etc. as well as for support for just C99.
8003         * modules/stdint (Depends-on): Add limits-h.
8004         (Makefile.am): Substitute HAVE_C99_STDINT_H.
8005         * modules/stdint-tests (Depends-on): Add extensions, so that
8006         INTMAX_MAX etc. are defined.
8007         * tests/test-stdint.c: Verify the new macros.
8009         limits-h: new module
8010         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
8011         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
8012         * doc/posix-headers/limits.texi: Document new module.
8013         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
8014         * modules/limit-h-tests, tests/test-limits-h.c: New files.
8016         stdio: don't redefine __USE_MINGW_ANSI_STDIO
8017         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
8018         if it is already defined.  Apparently GNU Emacs relies on this.  See:
8019         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
8021 2016-09-15  Eric Blake  <eblake@redhat.com>
8023         sys_types: avoid glibc 2.25 warnings about major()
8024         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
8025         older autoconf.
8026         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
8027         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
8028         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
8029         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
8031         mountlist: include sysmacros.h for glibc
8032         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
8033         AC_HEADER_MAJOR.
8034         * lib/mountlist.c (includes): Use correct headers.
8036 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
8038         extensions: port to more ISO C TSes
8039         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
8040         master, to add support for more recent ISO C TRs and TSes.
8042 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
8044         intprops: new macro TYPE_WIDTH
8045         * lib/intprops.h (TYPE_WIDTH): New macro.
8046         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
8047         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
8048         * lib/parse-datetime.y (parse_datetime2):
8049         Use it.
8051         extensions: port to recent ISO C TRs
8052         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
8053         Sync from Autoconf master, to add support for recent ISO C TRs.
8054         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
8055         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
8056         the MinGW option is not an extension.
8058 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
8060         dfa: port to Solaris 9
8061         Problems reported by Tom G. Christensen in:
8062         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
8063         * modules/dfa (Depends-on): Add isblank.
8064         * modules/dfa-tests (dfa_match_aux_LDADD):
8065         Rename from test_stat_LDADD, to fix typo.
8066         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
8068 2016-09-10  Jim Meyering  <meyering@fb.com>
8070         strverscmp: avoid link failure on OS X
8071         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
8072         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
8074 2016-08-16  Jim Meyering  <meyering@fb.com>
8076         dfa: new module, importing grep's DFA matcher
8077         Since grep's DFA matcher is now being used by two gnulib-enabled
8078         projects, grep and sed, it makes sense to version-control its
8079         sources and unit tests in one place: here.
8080         * modules/dfa: New module.
8081         * modules/dfa-tests: New file.
8082         * lib/dfa.c: New file, from grep.
8083         * lib/dfa.h: Likewise.
8084         * lib/localeinfo.c: Likewise.
8085         * lib/localeinfo.h: Likewise.
8086         * tests/dfa-match-aux.c: Likewise.
8087         * tests/dfa-invalid-char-class.sh: Likewise.
8088         * tests/dfa-match.sh: Likewise, with minor changes.
8089         * MODULES.html.sh (Misc): Add "dfa" to this list.
8091 2016-09-09  Jim Meyering  <meyering@fb.com>
8093         getprogname-tests: don't depend on assert-h
8094         * modules/getprogname-tests (Depends-on): Remove assert-h.
8095         It was not needed, and in fact would cause build failure for
8096         coreutils on some systems.  Reported by Assaf Gordon in https:
8097         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
8099 2016-09-07  Jim Meyering  <meyering@fb.com>
8101         getprogname-tests: work also when EXEEXT is nonempty
8102         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
8103         * tests/test-getprogname.c (main): Use it.
8104         Suggested by Gisle Vanem.
8106 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
8108         getprogname: fix errors in previous change
8109         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
8110         s/program_invocation_name/base/
8111         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
8113 2016-09-08  Pádraig Brady  <P@draigBrady.com>
8115         parse-datetime: restrict debug output to input string
8116         * lib/parse-datetime.y (parse_datetime2): If we parse
8117         all of the input but determine it's invalid, ensure
8118         we don't output the now invalid input pointer.
8119         This issue was seen with `date -d 'now +1'`.
8121 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
8123         flexmember: new macro FLEXALIGNOF
8124         * lib/flexmember.h: Include <stddef.h>, for offsetof.
8125         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
8126         this macro.  Update comments.
8128 2016-09-07  Jim Meyering  <meyering@fb.com>
8130         getprogname: port to systems with __argv (mingw, msvc)
8131         * lib/getprogname.c (getprogname): Include "dirname.h" and use
8132         last_component: more general than open coding it with hard-coded "/".
8133         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
8134         * modules/getprogname (Depends-on): Add dirname-lgpl.
8135         (configure.ac): Check for __argv in <stdlib.h>.
8136         * modules/getprogname-tests: New file.
8137         * tests/test-getprogname.c: New file.
8138         Suggested by Gisle Vanem in
8139         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
8141 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
8143         flexmember: port better to GCC + valgrind
8144         With a char[] flexible array member in a struct with nontrivial
8145         alignment, GCC-generated code can access past the end of the
8146         array, because GCC assumes there are padding bytes to get the
8147         struct aligned.  So the common idiom of malloc (offsetof (struct
8148         s, m), n) does not properly allocate an n-byte trailing member, as
8149         malloc’s argument should be the next multiple of alignof (struct s).
8150         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
8151         Although C11 apparently permits this GCC optimization (i.e., there
8152         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
8153         See the thread containing:
8154         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
8155         * lib/flexmember.h: New file.
8156         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
8157         * lib/localename.c, lib/time_rz.c:
8158         Include flexmember.h.
8159         * lib/fnmatch_loop.c (struct patternlist):
8160         * lib/localename.c (struct hash_node):
8161         Use FLEXIBLE_ARRAY_MEMBER.
8162         * lib/fnmatch_loop.c (EXT):
8163         * lib/fts.c (fts_alloc):
8164         * lib/glob.c (glob_in_dir):
8165         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
8166         * lib/localename.c (gl_lock_define_initialized):
8167         * lib/time_rz.c (tzalloc):
8168         Use FLEXSIZEOF instead of offsetof.
8169         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
8170         Check that the size of the struct can be taken.
8171         * modules/flexmember (Files): Add lib/flexmember.h.
8172         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
8173         Add flexmember.
8175 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
8177         getprogname: port to Solaris 10
8178         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
8179         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
8180         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
8182         stdalign: correct mistake in alignof doc
8183         Problem reported by Joseph Myers in:
8184         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
8185         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
8186         alignof(S) where S is a structure containing a flexible array
8187         member.  The Gnulib substitute does not support this, but C11 does.
8189 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
8191         main.mk: remove sc_program_name, since there is no more need to
8192         use set_program_name in tools (getprogname is enough for most
8193         of the cases).
8194         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
8195         * top/maint.mk (sc_program_name): Remove.
8197 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
8199         Port tests away from progname, since modules that need the
8200         program name already depend on getprogname.
8201         * modules/acl-tests (Depends-on): Remove progname.
8202         * modules/argmatch (Depends-on): Likewise.
8203         * modules/argmatch-tests (Depends-on): Likewise.
8204         * modules/argp-tests (Depends-on): Likewise.
8205         * modules/argp-version-etc-tests (Depends-on): Likewise.
8206         * modules/array-list-tests (Depends-on): Likewise.
8207         * modules/array-oset-tests (Depends-on): Likewise.
8208         * modules/avltree-list-tests (Depends-on): Likewise.
8209         * modules/avltree-oset-tests (Depends-on): Likewise.
8210         * modules/avltreehash-list-tests (Depends-on): Likewise.
8211         * modules/carray-list-tests (Depends-on): Likewise.
8212         * modules/copy-file-tests (Depends-on): Likewise.
8213         * modules/exclude-tests (Depends-on): Likewise.
8214         * modules/fchownat-tests (Depends-on): Likewise.
8215         * modules/fdopendir-tests (Depends-on): Likewise.
8216         * modules/filenamecat-tests (Depends-on): Likewise.
8217         * modules/fstatat-tests (Depends-on): Likewise.
8218         * modules/fstrcmp-tests (Depends-on): Likewise.
8219         * modules/linked-list-tests (Depends-on): Likewise.
8220         * modules/linkedhash-list-tests (Depends-on): Likewise.
8221         * modules/mkdirat-tests (Depends-on): Likewise.
8222         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
8223         * modules/nonblocking-socket-tests (Depends-on): Likewise.
8224         * modules/obstack-printf-tests (Depends-on): Likewise.
8225         * modules/openat-tests (Depends-on): Likewise.
8226         * modules/parse-datetime-tests (Depends-on): Likewise.
8227         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
8228         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
8229         * modules/quotearg-simple-tests (Depends-on): Likewise.
8230         * modules/quotearg-tests (Depends-on): Likewise.
8231         * modules/rbtree-list-tests (Depends-on): Likewise.
8232         * modules/rbtree-oset-tests (Depends-on): Likewise.
8233         * modules/rbtreehash-list-tests (Depends-on): Likewise.
8234         * modules/spawn-pipe-tests (Depends-on): Likewise.
8235         * modules/system-quote-tests (Depends-on): Likewise.
8236         * modules/uniname/uniname-tests (Depends-on): Likewise.
8237         * modules/uninorm/nfc-tests (Depends-on): Likewise.
8238         * modules/uninorm/nfd-tests (Depends-on): Likewise.
8239         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
8240         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
8241         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
8242         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
8243         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
8244         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
8245         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
8246         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
8247         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
8248         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
8249         * modules/unlinkat-tests (Depends-on): Likewise.
8250         * modules/version-etc-tests (Depends-on): Likewise.
8251         * modules/xalloc-die-tests (Depends-on): Likewise.
8252         * modules/xmemdup0-tests (Depends-on): Likewise.
8253         * modules/xprintf-posix-tests (Depends-on): Likewise.
8254         * modules/xvasprintf-tests (Depends-on): Likewise.
8255         * tests/test-argmatch.c: Do not include progname.h.
8256         (main) Stop calling set_program_name.
8257         * tests/test-argp-version-etc.c: Likewise.
8258         * tests/test-argp.c: Likewise.
8259         * tests/test-argv-iter.c: Likewise.
8260         * tests/test-array_list.c: Likewise.
8261         * tests/test-array_oset.c: Likewise.
8262         * tests/test-avltree_list.c: Likewise.
8263         * tests/test-avltree_oset.c: Likewise.
8264         * tests/test-avltreehash_list.c: Likewise.
8265         * tests/test-carray_list.c: Likewise.
8266         * tests/test-copy-acl.c: Likewise.
8267         * tests/test-copy-file.c: Likewise.
8268         * tests/test-exclude.c: Likewise.
8269         * tests/test-fchownat.c: Likewise.
8270         * tests/test-fdopendir.c: Likewise.
8271         * tests/test-filenamecat.c: Likewise.
8272         * tests/test-fstatat.c: Likewise.
8273         * tests/test-fstrcmp.c: Likewise.
8274         * tests/test-linked_list.c: Likewise.
8275         * tests/test-linkedhash_list.c: Likewise.
8276         * tests/test-mkdirat.c: Likewise.
8277         * tests/test-nonblocking-pipe-main.c: Likewise.
8278         * tests/test-nonblocking-socket-main.c: Likewise.
8279         * tests/test-obstack-printf.c: Likewise.
8280         * tests/test-openat.c: Likewise.
8281         * tests/test-parse-datetime.c: Likewise.
8282         * tests/test-pipe-filter-gi1.c: Likewise.
8283         * tests/test-pipe-filter-gi2-main.c: Likewise.
8284         * tests/test-pipe-filter-ii1.c: Likewise.
8285         * tests/test-pipe-filter-ii2-main.c: Likewise.
8286         * tests/test-quotearg-simple.c: Likewise.
8287         * tests/test-quotearg.c: Likewise.
8288         * tests/test-rbtree_list.c: Likewise.
8289         * tests/test-rbtree_oset.c: Likewise.
8290         * tests/test-rbtreehash_list.c: Likewise.
8291         * tests/test-sameacls.c: Likewise.
8292         * tests/test-set-mode-acl.c: Likewise.
8293         * tests/test-spawn-pipe-main.c: Likewise.
8294         * tests/test-system-quote-main.c: Likewise.
8295         * tests/test-unlinkat.c: Likewise.
8296         * tests/test-version-etc.c: Likewise.
8297         * tests/test-xalloc-die.c: Likewise.
8298         * tests/test-xfprintf-posix.c: Likewise.
8299         * tests/test-xmemdup0.c: Likewise.
8300         * tests/test-xprintf-posix.c: Likewise.
8301         * tests/test-xvasprintf.c: Likewise.
8302         * tests/uniname/test-uninames.c: Likewise.
8303         * tests/uninorm/test-u32-nfc-big.c: Likewise.
8304         * tests/uninorm/test-u32-nfd-big.c: Likewise.
8305         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
8306         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
8307         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
8308         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
8309         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
8310         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
8311         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
8312         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
8313         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
8314         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
8315         * tests/test-c-stack.c: (program_name): Do not define.
8316         (main): Do not set program_name.
8317         * tests/test-closein.c: Likewise.
8318         * tests/test-xstrtol.c: Likewise.
8319         * tests/test-yesno.c: Likewise.
8321 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
8323         Port modules to use getprogname explicitly, instead of requiring
8324         progname to be used (or program_name to be provided).
8325         * lib/argmatch.c: Do not include progname.h.
8326         [TEST] (program_name): Do not define.
8327         [TEST] (main): Call getprogname instead of using program_name.
8328         * lib/c-stack.c: Do not include progname.h.
8329         (program_name): Do not define.
8330         (die): Call getprogname instead of using program_name.
8331         * lib/chdir-long.c: Do not include progname.h.
8332         [TEST_CHDIR] (main): Do not set program_name.
8333         * lib/error.c [!_LIBC]: Include progname.h.
8334         [!_LIBC] (program_name): Define using getprogname.
8335         * lib/euidaccess.c: Do not include progname.h.
8336         [TEST] (main): Do not set program_name.
8337         * lib/git-merge-changelog.c: Include getprogname.h instead of
8338         progname.h.
8339         (usage): Call getprogname instead of using program_name.
8340         (main): Likewise.  Stop calling set_program_name.
8341         * lib/group-member.c: Do not include progname.h.
8342         [TEST] (main): Do not set program_name.
8343         * modules/argmatch (Depends-on): Add getprogname.
8344         * modules/c-stack (Depends-on): Likewise.
8345         * modules/error (Depends-on): Likewise.
8346         * modules/git-merge-changelog (Depends-on): Likewise.
8347         Also remove progname.
8349 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
8351         * NEWS: Document the deprecation of the 'progname' module.
8353 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
8355         getprogname: new module
8356         This provides a LGPL module for getting the name of the current
8357         program, using the same API found on *BSD systems.
8358         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
8359         * modules/getprogname: New files.
8360         * MODULES.html.sh (Misc): Add getprogname.
8362 2016-09-02  Jim Meyering  <meyering@fb.com>
8364         manywarnings: add -fno-common
8365         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
8366         to the list.  Quoting the manual, "Compiling with -fno-common is
8367         useful on targets for which it provides better performance, or if
8368         you wish to verify that the program will work on other systems that
8369         always treat uninitialized variable declarations this way [putting
8370         it in the data section]."  If diffutils had been using this sooner,
8371         it would have prevented this duplicate declaration issue:
8372         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
8374 2016-08-31  Simon Josefsson  <simon@josefsson.org>
8376         parse-datetime: Fix typo.
8377         * lib/parse-datetime.y (parse_datetime2): Fix typo.
8379 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
8381         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
8382         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
8383         GCC 5 and 6 that have __builtin_sub_overflow but not
8384         __builtin_sub_overflow_p.  With the recent changes, these
8385         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
8386         implementation than with INT_SUBTRACT_OVERFLOW implementation,
8387         since the former needs just one runtime comparison whereas the
8388         latter needs two.
8390         strverscmp: sync with glibc
8391         Although this doesn't exactly synchronize with glibc
8392         byte-for-byte, it makes the code behave the same as glibc.
8393         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
8394         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
8395         difference shouldn't matter in practical use.  All uses changed
8396         back to isdigit.
8397         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
8398         (next_state): Now unsigned char array; redo elements.
8399         (result_type): Now signed char array; redo elements.
8400         (__strverscmp): Fix glibc bug 9913 by using new states.
8401         * tests/test-strverscmp.c (main): Test glibc bug 9913.
8403 2016-08-29  Jim Meyering  <meyering@fb.com>
8405         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
8406         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
8407         similarly to how it was done to intprops.h.
8409 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
8411         intprops.h: port recent changes to GCC 6.2.0
8412         * lib/intprops.h (__has_builtin): Move earlier.
8413         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
8414         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
8415         the last argument can be null.  All uses changed.
8416         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
8417         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
8418         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
8419         and it's not clear which GCC versions it works for.
8420         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
8421         its definiens.
8423         intprops.h: use __typeof__ with GCC 7
8424         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
8425         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
8426         This avoids computing the expression's value (which might overflow!).
8428 2016-08-29  Jim Meyering  <meyering@fb.com>
8430         intprops.h, xalloc-oversized.h: work with gcc 7
8431         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
8432         __builtin_mul_overflow each accept a NULL pointer as the third
8433         argument.  However in gcc 7, that is no longer accepted.
8434         Instead, one must use the "_p"-suffixed names, with which, the
8435         third parameter is no longer a pointer.
8436         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
8437         the definition: not true for gcc 7 and subsequent.
8438         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
8439         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
8440         Provide new definitions for gcc 7 and subsequent.
8441         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
8442         that works with gcc-7.
8444         intprops.h: fix missing-backslash problems
8445         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
8446         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
8448 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
8450         intprops: fix paren typo on old platforms
8451         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
8452         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
8453         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
8454         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
8455         && !defined LLONG_MAX]:
8456         Remove stray paren.
8458         intprops: port to OpenVMS
8459         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
8460         * doc/posix-headers/limits.texi: Document the problem.
8461         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
8462         Define if not already defined.
8464 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
8466         parse-datetime: improve debug implementation
8467         Follow-up to commit 12ad79069 ("add optional debug printing").
8468         Improve parse-datetime's debug implementation: remove macros,
8469         replace global debug flag variable with a function parameter,
8470         use nstrftime for formatting.
8471         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
8472         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
8473         (parse_datetime2): New function, accepts 'flags' parameter, supporting
8474         debug flag. Existing interface 'parse_datetime' left unmodified.
8475         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
8476         (struct parser_control): add 'parse_datetime_debug' member variable.
8477         (parse_datetime): Call new function 'parse_datetime2' without debug.
8478         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
8479         pc.parse_datetime_debug variable as needed.
8480         (to_year): Accept new flags parameter, instead of using global variable.
8481         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
8482         use struct 'debug' variable instead of global variable.
8483         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
8484         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
8485         correspnding functions directly instead of using macros.
8486         * modules/parse-datetime: Add gnulib's strftime module.
8488 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
8490         c-strcase-tests: port to EBCDIC
8491         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
8492         which assume ASCII encoding semantics to run only in ASCII
8493         mode, as they fail in EBCDIC.
8495         sigpipe-tests: fix typo
8496         * tests/test-sigpipe.sh: C, not B.
8498 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
8500         canonicalize-lgpl: fix errno after malloca fails
8501         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
8502         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
8503         * lib/canonicalize-lgpl.c (__realpath):
8504         Don't assume malloca sets errno on failure.
8506 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
8508         strtod: port errno handling to z/OS
8509         * lib/strtod.c (strtod): Save and restore errno more reliably.
8511 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
8513         strtod: port to z/OS
8514         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
8515         implementation.
8517 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
8519         strtod: port to z/OS
8520         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
8521         implementation.
8523         regex, string: rename to avoid '__string'
8524         * lib/regex.h, lib/string.in.h: Do not use the identifier
8525         '__string', as it is effectively reserved by string.h on z/OS.
8527         c-strcase-tests, wcwidth-tests: depend on c-ctype
8528         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
8529         Add c-ctype.
8531 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
8533         thread: port to z/OS
8534         * lib/glthread/thread.c, lib/glthread/thread.h:
8535         Rudimentary gl_thread support for z/OS.
8537         maint: port tests to z/OS errno behavior
8538         * tests/test-nonblocking-reader.h:
8539         * tests/test-nonblocking-writer.h:
8540         Accommodate z/OS errno code preferences. (I believe this should
8541         still be within spec; IBM is good at following the letter if not
8542         the spirit of such things.)
8544         maint: preprocessor changes to support z/OS
8545         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
8546         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
8547         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
8548         * tests/test-nonblocking-pipe.h:
8550         fclose, strstr-simple, wchar: port to z/OS
8551         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
8552         Changes to the Autoconf M4 code to support z/OS.  Note that
8553         fclose() is broken in a different way on z/OS than it is on other
8554         systems, thus the special-case in fclose.m4.
8556         iconv_open-utf-tests, iconv-tests: port to EBCDIC
8557         * tests/test-iconv-utf.c, tests/test-iconv.c:
8558         Added appropriately conditional #pragmas so that the test strings
8559         in test-iconv-utf.c are correctly interpreted in ASCII instead of
8560         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
8561         addressed in a more portable way by simply rewriting all the ASCII
8562         literal characters as octal escapes, but then you would lose the
8563         partial readability that the strings have now. Also, iconv_open()
8564         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
8566         c-strcase-tests, wcwidth-tests: port to EBCDIC
8567         * tests/test-c-strcasecmp.c: Include c-ctype.h.
8568         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
8569         * tests/test-wcwidth.c: Likewise.
8571 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
8573         stdbool: don't require _Bool for C++
8574         Problem reported by David Seifert in:
8575         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
8576         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
8577         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
8578         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
8579         stricter about checking that bool and _Bool are compatible in C.
8581 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
8583         getdelim: remove dependency on realloc-posix
8584         * lib/canonicalize-lgpl.c (alloc_failed)
8585         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
8586         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
8587         Use __set_errno where needed, for consistency.
8588         * lib/getdelim.c (alloc_failed): New function.
8589         (getdelim): Use it.
8591 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
8593         parse-datetime: add optional debug printing
8594         Print parsing information, warnings, and errors to stderr.
8595         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
8596         * lib/parse-datetime.y:
8597         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
8598         (PROGRESS*): Same as DEBUG, for progress reporting.
8599         (dbg_printf): Print message to stderr, with 'date' prefix.
8600         (struct parser_control): Add 'debug_*_seen' variables.
8601         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
8602         (debug_print_current_time, debug_print_relateive_time): Prints the
8603         current/relative date/time value of parser_control.
8604         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
8605         (to_year): Warn about 2-digit year parsing.
8606         (yylex):   Warn about unrecognized words.
8607         (get_effective_timezone): Returns current timezone in minutes.
8608         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
8609         clearly and unambigiously as possible.
8610         (debug_mktime_not_ok): Print detailed information about failed
8611         date/time values.
8612         (parse_datetime): Add DEBUG messages for failures, warnings. Add
8613         PROGRESS messages for status messages.
8614         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
8616 2016-08-06  Jim Meyering  <meyering@fb.com>
8618         tests/init.sh: exclude dash with bad "local" semantics
8619         * tests/init.sh (gl_shell_test_script_): Add a function to
8620         eliminate a shell like "dash" (unlike bash, zsh) that has
8621         surprising/risky "local var='...'" semantics.  Inspired by
8622         the problem and discussion in https://bugs.gnu.org/24116#11.
8624 2016-08-02  Ján Tomko  <jtomko@redhat.com>
8626         maint.mk: expand the prohibit_doubled_word regex
8627         This check has a static list of words that are checked for
8628         repetitions.  Expand it before running the perl script to
8629         avoid using expensive captures.  This decreases the cost
8630         for libvirt from 1.66s to 0.66s.
8631         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
8632         (sc_prohibit_doubled_word): Use it.
8634 2016-07-26  Ján Tomko  <jtomko@redhat.com>
8636         useless-if-before-free: skip non-matching lines early
8637         * build-aux/useless-if-before-free: First match each line with the
8638         simple/quick /\bif\b/ and reject if there is no match. This often
8639         saves the cost of the much more involved regular expression.
8640         For libvirt, this decreases the cost from 1.44s to 1.02s.
8642 2016-07-26  Ján Tomko  <jtomko@redhat.com>
8644         maint.mk: speed up sc_po_check
8645         sc_po_check would skip files based on their names, or on the
8646         existence of files with derived names. Rewrite it to use perl
8647         instead of shell to make the check faster.
8648         * top/maint.mk (perl_translatable_files_list_): Define.
8649         (sc_po_check): Use it.
8651 2016-07-30  Ján Tomko  <jtomko@redhat.com>
8653         maint.mk: speed up require_config_h_first
8654         Instead of spawning three processes per file,
8655         rewrite the check in perl and run it once for all the files.
8656         * top/maint.mk (perl_config_h_first_): Define.
8657         (sc_require_config_h_first): Use it in place of shell code.
8659 2016-07-26  Ján Tomko  <jtomko@redhat.com>
8661         maint.mk: speed up sc_po_check
8662         sc_po_check would skip files based on their names, or on the
8663         existence of files with derived names. Rewrite it to use perl
8664         instead of shell to make the check faster.
8665         * top/maint.mk (perl_translatable_files_list_): Define.
8666         (sc_po_check): Use it.
8668 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
8670         obstack: pacify GCC 6 with -Wnull-dereference
8671         Problem reported by Assaf Gordon in:
8672         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
8673         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
8674         Declare with __attribute_noreturn__.
8675         * lib/obstack.h (__attribute_noreturn__): New macro.
8677 2016-07-13  Eric Blake  <eblake@redhat.com>
8679         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
8680         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
8681         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
8683 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
8685         doc: mention glibc SSIZE_MAX buglet
8686         * doc/posix-headers/limits.texi (limits.h): Document the bug.
8688 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
8690         printf-posix: Fix mingw build
8691         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
8692         expression for detecting C symbol prefixes but forgot to qoute square
8693         brackets in the command line arguments for grep.  That way when
8694         building with mingw the condition was false although it ought to be
8695         true instead.  In particular scenarios this led to the following
8696         compile error:
8698             Cannot export rpl_printf: symbol not found
8699             Cannot export rpl_scanf: symbol not found
8700             collect2: error: ld returned 1 exit status
8702         Fix this by properly quoting square brackets.
8704 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
8706         mktime: call tzset as per POSIX
8707         Problem reported by Ludovic Courtès in:
8708         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
8709         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
8710         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
8712 2016-06-26  Pádraig Brady  <P@draigBrady.com>
8714         fts: handle readdir() errors
8715         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
8716         but also upon error when it will also set errno.  Therefore
8717         flag the error case from readdir().  We treat the case where
8718         no items are read the same as if the dir can't be accessed,
8719         i.e. by setting fts_errno to FTS_DNR.
8721 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
8723         intprops: port better to GCC 7
8724         GCC 7 __builtin_add_overflow supports a new usage form, where the
8725         last argument is a null pointer, and which merely returns 1 if an
8726         overflow would occur.  This is a constant expression if all
8727         arguments are constants, and should generate faster code when code
8728         needs to be generated.
8729         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
8730         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
8731         Use builtin operations if available.
8732         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
8733         operations are available, as it's almost surely faster.
8735 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
8737         intprops-test: port to GCC 6
8738         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
8739         since the bug is not fixed in GCC 6.1.
8741 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
8743         xalloc-oversized: port to GCC 7; fewer warnings
8744         GCC 7 will have a better way to deal with integer overflow.
8745         Plus, fix a warnings problem reported by Tim Ruehsen in:
8746         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
8747         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
8748         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
8749         For GCC 5, use __xalloc_oversized if both args are constants,
8750         or if pedantic.
8752 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
8754         regex: port to Sun C
8755         Reported by Daiki Ueno.
8756         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
8757         __restrict, in prototype.  This fixes a problem I introduced in
8758         the 2016-02-19 merge from glibc.
8760 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
8762         stdbool: Restore __bool_true_false_are_defined check
8763         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
8764         __bool_true_false_are_defined is still defined, even with C++11.
8766 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
8768         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
8769         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
8771 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
8773         Use GCC_LINT, not lint
8774         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
8775         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
8776         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
8777         Document problem with lint and _Noreturn.
8778         * lib/diffseq.h (IF_LINT, IF_LINT2):
8779         * lib/fts.c (sccsid):
8780         * lib/getndelim2.c (IF_LINT):
8781         * lib/gl_anylinked_list2.h (gl_linked_iterator)
8782         (gl_linked_iterator_from_to):
8783         * lib/gl_anytree_list2.h (gl_tree_iterator)
8784         (gl_tree_iterator_from_to):
8785         * lib/gl_anytree_oset.h (gl_tree_iterator):
8786         * lib/gl_array_list.c (gl_array_iterator)
8787         (gl_array_iterator_from_to):
8788         * lib/gl_array_oset.c (gl_array_iterator):
8789         * lib/gl_carray_list.c (gl_carray_iterator)
8790         (gl_carray_iterator_from_to):
8791         * lib/idcache.c:
8792         * lib/inet_ntop.c (IF_LINT):
8793         * lib/regcomp.c (build_charclass_op, create_tree):
8794         * lib/regex_internal.c (re_acquire_state)
8795         (re_acquire_state_context):
8796         * lib/trigl.c (rcsid):
8797         * lib/trim.c (IF_LINT):
8798         * lib/vasnprintf.c (IF_LINT):
8799         * lib/verify.h (assume):
8800         Treat GCC_LINT like lint.
8802 2016-05-29  Bruno Haible  <bruno@clisp.org>
8804         secure_getenv: Port to many more platforms.
8805         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
8806         functions.
8807         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
8808         for non-BSD Unix platforms and for native Windows.
8809         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
8810         Prompted by a request from Nikos Mavrogiannopoulos.
8812 2016-05-27  Eric Blake  <eblake@redhat.com>
8814         canonicalize: Fix broken probe for realpath.
8815         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
8816         in logic introduced in 54615b95.
8818 2016-05-26  Eric Blake  <eblake@redhat.com>
8820         unsetenv: relax to LGPLv2+
8821         * modules/unsetenv (License): Match setenv license.
8823 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
8825         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
8826         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
8827         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
8828         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
8829         (commonarg, dirargs, dirs, infoarg, generate_ascii)
8830         (generate_html, generate_info, generate_tex, outdir)
8831         (source_extra, split, srcfile, texarg): Move above 'version'.
8832         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
8834 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
8836         manywarnings: update for GCC 6.1
8837         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
8838         Add GCC 6.1 options that apply to C.
8839         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
8840         do not apply to C, are obsolescent, etc.
8842 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
8844         glob: size_t overflow checks
8845         * lib/glob.c (__has_builtin): New macro.
8846         (size_add_wrapv, glob_use_alloca): New static functions.
8847         (glob, glob_in_dir): Check for size_t overflow in several places,
8848         and fix some size_t checks that were not quite right.
8850         glob: don't assume INT_MAX < SIZE_MAX
8851         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
8852         latter is not portable to (probably theoretical) hosts where
8853         SIZE_MAX <= INT_MAX.
8855 2016-05-09  Bruno Haible  <bruno@clisp.org>
8857         Fix undefined behaviour in gettext.h.
8858         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
8859         pointer's value after the storage it points to has been freed.
8860         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
8861         Spotted by Coverity.
8863 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
8865         git-version-gen: avoid undefined shift
8866         Problem reported by Mosè Giordano in:
8867         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
8868         * build-aux/git-version-gen: Avoid undefined behavior if invoked
8869         with --prefix or --fallback but without a later argument.  While
8870         we're at it, omit unnecessary quotes.
8872 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
8874         glob: merge glibc changes into lib/glob.c
8875         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
8876         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
8877         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
8878           struct dirent [BZ #19779]
8879         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
8880           callback gl_readdir
8881         2015-10-20 Convert miscellaneous function definitions to prototype style
8882         2015-10-20 Convert 113 more function definitions to prototype style
8883           (files with assertions)
8884         2015-06-12 Fix getlogin_r namespace (bug 18527).
8885         2014-02-10 Use glibc_likely instead __builtin_expect.
8886         2013-10-20 When glob pattern contains a trailing slash match only
8887           directories. Fixes bug 10278.
8888         2013-09-04 glob: silence -Wattribute warnings
8889         2013-06-07 Avoid use of "register" as optimization hint.
8890         2012-09-25 Use size_t instead of int for internal variables in glob
8891           (bug 14621)
8892         2011-07-20 Check for overflows in expressions
8893         2011-05-28 Remove unused variable
8894         2011-05-22 Add a few more alloca size checks
8895         2010-03-27 Whitespace fixes
8896         2010-03-27 Fix one more issue with the glob patch
8897         2010-03-24 Fix glob with empty pattern
8898         2008-05-27 Remove useless more "if" tests before "free"
8899         * modules/glob (Depends-on): Add stdint.
8901 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
8903         mktime: port to stricter signed overflow checking
8904         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
8905         (long_int): Require width for INT_MAX * 3 * (seconds per year),
8906         instead of merely for INT_MAX * 2.  In practice platforms that
8907         do the latter also do the former.
8908         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
8909         (shr): New static function, replacing SHR.  All uses changed.
8910         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
8911         and TIME_T_MAX.  All uses changed.
8912         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
8913         Use long_int, not time_t.
8914         (long_int_avg): New static function, replacing time_t_avg.
8915         All uses changed.  Round toward positive infinity, as that
8916         generates slightly better code.
8917         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
8918         by INT_ADD_WRAPV.
8919         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
8920         (convert_time): New static function.
8921         (ranged_convert): Use it
8922         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
8923         Use simpler test for loop exit.
8924         (__mktime_internal): Store negative of guessed offset, to simplify
8925         overflow checking.  Remove no-longer-needed test for small time_t
8926         overflows.
8928         mktime: speed up DEBUG_MKTIME benchmarks
8929         Call tzset just once, at the start, rather than for every test
8930         case.  This lets us measure the CPU cost of mktime as opposed to
8931         that of tzset.  This is relevant when TZ is not set and glibc is
8932         being used.  This speeds up tests by a factor of 40 on my Fedora
8933         23 x86-64 platform.
8934         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
8935         to call tzset and as a sanity check.  Later on, use localtime_r
8936         instead of localtime.
8938         mktime: resurrect DEBUG_MKTIME testing
8939         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
8940         Include <string.h>, for strcmp.
8942         mktime: simplify DEBUG_MKTIME
8943         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
8944         Simplify later usage accordingly.
8946         Port mktime_internal offset to unsigned time_t
8947         This avoids some assumptions about wraparound arithmetic on
8948         signed integer overflow.
8949         * lib/mktime-internal.h (mktime_offset_t): New type.
8950         (mktime_internal): Use it in decl.
8951         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
8953         * lib/mktime.c (__mktime_internal, localtime_offset):
8954         * lib/timegm.c (timegm): Use it.
8955         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
8956         (gl_FUNC_MKTIME): Require it.
8958 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
8960         xstrtol: prohibit monstrosities like "1bB"
8961         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
8962         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
8963         "B" only if the first suffix needs a base.
8964         * tests/test-xstrtol.sh: Test this.
8966 2016-04-21  Pádraig Brady  <P@draigBrady.com>
8968         xstrtod: reinstate setting of *result upon ERANGE
8969         * lib/xstrtod.c (XSTRTOD): The user may decide to use
8970         the returned limits upon ERANGE, so allow and document that.
8972 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
8974         xstrtod: modify *result only if no errors
8975         * lib/xstrtod.c (XSTRTOD).
8977 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
8979         btowc: document problems in C locale
8980         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
8981         with mbrtowc.  See: http://bugs.gnu.org/23269#32
8983 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
8985         mktime: improve integer overflow checking
8986         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
8987         (WRAPV): Remove; no longer needed.
8988         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
8989         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
8990         Remove.  Use intprops.h defns instead.
8991         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
8992         Use bool for Boolean, for clarity.
8993         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
8994         detect integer overflow.
8995         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
8997         intprops: check two's complement assumption
8998         Suggested by Eric Blake in:
8999         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
9000         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
9001         short, int, long, and (if available) long long are two's complement.
9002         * modules/intprops (Depends-on): Add 'verify'.
9004         intprops, mktime, strtol: assume two's complement
9005         These macros were not portable to every conforming C11 ones'
9006         complement platform.  It's not worth the hassle of porting to some
9007         platforms that use ones' complement or signed magnitude, as such
9008         platforms are almost purely theoretical nowadays and porting even
9009         to some of them makes the code harder to review for little
9010         practical benefit.  Problem reported by Florian Weimer in:
9011         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
9012         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
9013         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
9014         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
9015         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
9016         (TYPE_SIGNED_MAGNITUDE):
9017         Remove.  All uses rewritten to assume two's complement, which is
9018         all we can reasonably test nowadays anyway.
9019         * top/maint.mk (_intprops_names): Remove the removed macros.
9021 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
9023         stdint: port to strict C11 left shift
9024         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
9025         Pacify clang -Wshift-negative-value, which should be an issue only
9026         on clang setups where stdint.h does not conform to C11 or to C++11.
9027         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
9029 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
9031         mbrtowc: work around glibc bug#19932
9032         Fix mbrtowc so that it never returns -1 in the C locale,
9033         as this conflicts with a future version of POSIX
9034         http://austingroupbugs.net/view.php?id=663#c2738
9035         and causes problems with GNU grep: http://bugs.gnu.org/23234
9036         See glibc bug 19932:
9037         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
9038         * doc/posix-functions/mbrlen.texi (mbrlen):
9039         * doc/posix-functions/mbrtowc.texi (mbrtowc):
9040         Document the glibc bug.
9041         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
9042         Include hard-locale.h, locale.h.
9043         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
9044         if the bug is possible.
9045         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
9046         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
9047         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
9048         * modules/mbrtowc (Depends-on): Add hard-locale.
9049         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
9050         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
9051         * tests/test-mbrtowc5.sh: New file.
9053 2016-04-03  Pedro Alves  <palves@redhat.com>
9055         stdint: detect good enough pre-C++11 stdint.h in C++ mode
9056         When gnulib is configured in C++ mode for a system with a working C99
9057         implementation of stdint.h that predates C++11, gnulib ends up
9058         substituting stdint.h anyway.  This works on most targets, but on e.g.,
9059         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
9060         MinGW is LLP64.  Instead of trying to detect the right types, detect
9061         good-enough-pre-C++11 stdint.h and in such case define
9062         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
9063         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
9064         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
9065         conforms to C99.  If it does, check whether it hides symbols
9066         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
9067         does, define those macros in config.h.
9069 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
9071         argp: merge changes from glibc
9072         Among other things, this should fix problems found by a Coverity
9073         scan and reported by Andrei Borzenkov:
9074         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
9075         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
9076         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
9077         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
9078         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
9079         * lib/argp.h:
9080         Merge changes from glibc.
9081         * tests/test-argp-2.sh: Adjust to match new behavior.
9083 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
9085         stddef: support configuring with g++
9086         Problem reported by Ángel González in:
9087         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
9088         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
9089         Do not define if _GCC_MAX_ALIGN_T is defined.
9091 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
9093         test-framework-sh: minor cleanups
9094         * tests/init.sh (testdir_prefix_): Output a trailing newline,
9095         since strictly speaking POSIX requires this.
9096         (setup_): Do not use the variable 'fail', as that makes the
9097         trace output harder to read ('fail' is typically used by
9098         tests to mean the test failed).  Treat // portably.
9099         Check that new directory is not merely a sibling of the tmp dir.
9100         Avoid unnecessary invocation of tr.
9102         test-framework-sh: revert port to NetBSD 7.0
9103         It was a false alarm; I misinterpreted Assaf Gordon's report.
9104         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
9105         Restore.
9106         (test_dir_): Adjust to mktempd_ change.
9107         (mktempd_): Restore 2nd arg.  Use -t again.
9108         (base_template_, template_, nx_): Resurrect old code.
9110         Port better to Alpine Linux
9111         Its diff implementation does not support -c, but does support -U3.
9112         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
9113         * tests/init.sh (diff_opt_): New var.
9114         (compare_): Prefer diff -U3 to diff -c to plain diff.
9116 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
9118         test-framework-sh: port to NetBSD 7.0
9119         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
9120         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
9121         Remove.  All uses removed.
9122         (test_dir_): Adjust to mktempd_ change.
9123         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
9124         (base_template_, template_, nx_): Simplify by hardcoding.
9126 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
9128         gitlog-to-changelog: suppress ignored chatter
9129         * build-aux/gitlog-to-changelog: Do not warn about skipping
9130         an SHA if it would have been ignored anyway.
9132 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
9134         setlocale: add "sv" to Windows language table
9135         * lib/setlocale.c (language_table) [W32]: Add "sv".
9136         Reported in <https://savannah.gnu.org/bugs/?44588>.
9138 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
9140         sys_select: port to new Cygwin
9141         Problem reported by Ken Brown in:
9142         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
9143         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
9144         diagnostics.
9146 2016-03-17  Jim Meyering  <meyering@fb.com>
9148         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
9149         * tests/test-userspec.c (main): Remove unnecessary braces and fix
9150         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
9151           test-userspec.c:176:9: error: statement is indented as if it were \
9152             guarded by... [-Werror=misleading-indentation]
9153                    {
9154                    ^
9155           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
9156                  if (!diag && !T[i].result)
9157                  ^~
9159 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
9161         time_rz: port to clang -Wunused-const-variable
9162         * lib/time_rz.c (TZ): Remove.  All uses removed.
9164         std-gnu11: improve clang support
9165         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
9166         2016-03-15 Also try clang
9167         2016-03-15 Port C11 and C++11 testing to clang
9169         select: port more to Intel 2016.1.150 compiler
9170         Problem reported by Balázs Hajgató in:
9171         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
9172         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
9174 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
9176         select: try to port to 2016.1.150 compiler
9177         Problem reported by Balázs Hajgató in:
9178         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
9179         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
9180         POSIX specifies 'restrict'.
9182 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
9184         localename-tests: memory allocation fixes
9185         * tests/test-localename.c (test_locale_name)
9186         (test_locale_name_thread): Don't call freelocale on a locale
9187         that was the base of a successful newlocale, as that
9188         results in a double free.  Problem reported by Assaf Gordon.
9189         (test_locale_name_thread): Free saved names after use, to pacify
9190         gcc -fsanitize=address.
9192 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
9194         intprops: make .h file license match module
9195         * lib/intprops.h: Change the license wording to match glibc format.
9196         This is what is in modules/intprops anyway.  See:
9197         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
9199 2016-03-08  Eric Blake  <eblake@redhat.com>
9201         acl: fix missing return on Cygwin
9202         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
9203         fall off end of function. Fixes http://bugs.gnu.org/22949
9205 2016-03-05  Bruno Haible  <bruno@clisp.org>
9207         extern-inline: port to PGI CC
9208         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
9209         keyword 'inline'.
9210         Reported by Adam James Stewart in:
9211         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
9213 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
9215         signbit: port back to pre-C++11 GCC
9216         * lib/math.in.h (signbit): Do previous change only if
9217         __cplusplus < 201103.  See Jonathan Wakely in:
9218         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
9220 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
9222         mountlist: recognize autofs-mounted remote file systems, too
9223         Originally reported at: https://bugzilla.redhat.com/1309247
9224         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
9225         "-hosts" because it is used by autofs to mount remote file systems.
9227 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
9229         signbit: port to C++ with GCC 6
9230         * lib/math.in.h (signbit) [__cplusplus]:
9231         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
9232         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
9234         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
9236         regex: make it closer to libc
9237         Make Idx a signed type, rather than possibly unsigned.
9238         The unsignedness was not really buying us anything, since the code
9239         overflows for other reasons before getting to PTRDIFF_MAX.  Making
9240         it signed allows us to use -1 and -2 with abandon, like libc does,
9241         thus lessening the number of differences between gnulib and libc.
9242         Also, it should help avoid gratuitous warnings like the one
9243         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
9244         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
9247         regex: merge patches from libc
9249         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
9250         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
9251         Convert miscellaneous function definitions to prototype style.
9252         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
9253         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
9254         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
9255         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
9256         (re_search_internal):
9257         Convert to prototype-style function definition.
9258         Use internal_function for internal functions.
9260 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
9262         stdalign: port to older HP and IBM cc
9263         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
9264         C compilers, by checking their version numbers.  These version
9265         numbers appear in MariaDB and in Qt code that dates way back and
9266         that conditiionally uses the 'aligned' attribute.
9268 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
9270         stdalign: port to clang 3.7.0
9271         Problem reported by Herbert J. Skuhra in:
9272         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
9273         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
9274         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
9275         https://llvm.org/bugs/show_bug.cgi?id=26547
9277 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
9279         readdir_r: now obsolescent
9280         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
9281         * lib/mountlist.c (read_file_system_list): Add a FIXME.
9283 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
9285         misc: port better to gcc -fsanitize=address
9286         Without these patches, ./configure CFLAGS='-fsanitize=address'
9287         would compute incorrect values.  This patch fixes some (but not all)
9288         test failures with recent glibc, with this configuration.
9289         * m4/acl.m4 (gl_ACL_GET_FILE):
9290         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
9291         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
9292         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
9293         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
9294         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
9295         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
9296         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
9297         * m4/getline.m4 (gl_FUNC_GETLINE):
9298         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
9299         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
9300         * m4/regex.m4 (gl_REGEX):
9301         * m4/strndup.m4 (gl_FUNC_STRNDUP):
9302         * tests/test-calloc-gnu.c (main):
9303         * tests/test-duplocale.c (main):
9304         * tests/test-getgroups.c (main):
9305         * tests/test-getline.c (main):
9306         * tests/test-inttostr.c (main):
9307         * tests/test-localename.c (test_locale_name)
9308         (test_locale_name_thread, test_locale_name_environ)
9309         (test_locale_name_default):
9310         * tests/test-regex.c (main):
9311         * tests/test-setlocale1.c (main):
9312         * tests/test-stat.h (test_stat_func):
9313         Free heap-allocated storage before exiting.
9314         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
9315         Don't match *_foo symbols inserted by AddressSanitizer.
9316         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
9318 2016-02-02  Jim Meyering  <meyering@fb.com>
9320         verify-tests: also remove stray test-verify.Tpo
9321         * modules/verify-tests (Makefile.am): Arrange for "make clean"
9322         to remove the test-verify.Tpo file that is left behind by
9323         the automake-generated rule upon compilation failure.
9324         Otherwise, that .Tpo file would cause a failed "make distcheck"
9325         at least for grep.
9327 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
9329         std-gnu11: new module
9330         This makes it easier for applications to prefer C11 and C++11
9331         to older variants, when compiling C and C++ code.
9332         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
9333         a nontrivial chunk of GPLed Autoconf source code.
9334         * COPYING: Mention the m4/*.m4 copyright situation.
9335         * MODULES.html.sh (std-gnu11): New module.
9336         * m4/std-gnu11.m4, modules/std-gnu11: New files.
9338 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
9340         get-permissions, strftime: fix grammar in comments
9341         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
9342         some grammar fixes Alan Mackenzie made to GNU Emacs.
9344 2016-01-25  Daiki Ueno  <ueno@gnu.org>
9346         gettext: mark as obsolete
9347         Suggested by Paul Eggert in:
9348         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
9349         * modules/gettext (Status): Mark as obsolete.
9350         (Notice): Suggest to use 'gettext-h' instead.
9351         * modules/gettext-h (Description): Suggest GNU gettext, instead of
9352         the 'gettext' module.
9354 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
9356         gnulib-tool: don't give up on ln -s so easily
9357         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
9358         because an earlier one failed.  The targets could be on different
9359         file systems.  Problem reported by KO Myung-Hun in:
9360         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
9362         closedir: fix OS/2-related typos
9363         Problem reported by KO Myung-Hun in:
9364         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
9365         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
9366         in the last couple of changes.
9368 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
9370         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
9371         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
9372         copying a directory.
9374 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
9376         regex: treat [x] as x if x is a unibyte encoding error
9377         Problem reported by Aharon Robbins in:
9378         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
9379         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
9380         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
9382         closedir, dirfd, opendir: port to OpenSolaris 5.10
9383         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
9384         * m4/dirfd.m4 (gl_FUNC_DIRFD):
9385         * m4/opendir.m4 (gl_FUNC_OPENDIR):
9386         Don't use ${word##pat} substitution, as it doesn't work in
9387         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
9388         http://bugs.gnu.org/22443#11
9390 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9392         bootstrap: use American spelling
9393         * build-aux/bootstrap: Honor American spelling.
9395 2016-01-22  Karl Berry  <karl@freefriends.org>
9397         * doc/posix-functions/localtime.texi,
9398         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
9400 2016-01-21  Bruno Haible  <bruno@clisp.org>
9402         hash-pjw-bare: fix comment
9403         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
9405         wcwidth: Replace also on OpenBSD 5.8
9406         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
9407         * doc/posix-functions/wcwidth.texi: Update.
9409 2016-01-20  Pádraig Brady  <P@draigBrady.com>
9411         gnu-web-doc-update: fix addition of new files
9412         If there were already added (emnpty) dirs,
9413         then cvs aborts the add with the message:
9414           cvs [add aborted]: there is a version in <./dirname> already
9415         * build-aux/gnu-web-doc-update: Add directories separately
9416         to the addition of files, to avoid the above issue
9417         impacting the addition of files.
9419 2016-01-19  Daiki Ueno  <ueno@gnu.org>
9421         utimens-tests: avoid pulling gettext .m4 files
9422         Although this is not the right fix to the original problem:
9423         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
9424         it makes it possible again for consumer projects to use arbitrary
9425         version of gettext, through the steps described at:
9426         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
9427         See here for details:
9428         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
9429         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
9430         'gettext'.
9431         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
9432         'gettext'.
9434 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
9436         regex: pacify static checkers
9437         Problem and draft fix reported by Aharon Robbins in:
9438         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
9439         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
9440         Clear memory to pacify static checkers.
9442         regex: fix [ diagnostic
9443         Problem and fix reported by Aharon Robbins in:
9444         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
9445         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
9447         regex: fix memory leaks
9448         Problem and draft fix reported by Aharon Robbins in:
9449         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
9450         * lib/regcomp.c (build_range_exp, build_charclass_op)
9451         * lib/regex_internal.c (re_dfa_add_node):
9452         Fix memory leak on failure.
9454 2016-01-18  Pádraig Brady  <P@draigBrady.com>
9456         fts: don't unconditionally use leaf optimization for NFS
9457         NFS st_nlink are not accurate on all implementations,
9458         leading to aborts() if that assumption is made.
9459         See <https://bugzilla.redhat.com/1299169>
9460         * lib/fts.c (leaf_optimization_applies): Remove NFS from
9461         the white list, and document the issue.
9463 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
9464             KO Myung-Hun  <komh@chollian.net>
9466         gnulib-tool: don't assume ln -s works
9467         * gnulib-tool (func_ln_s): New function.
9468         (func_ln): Use it.
9470 2016-01-15  KO Myung-Hun  <komh@chollian.net>
9472         utimes: detect utimes() correctly on OS/2 kLIBC
9473         utimes() of OS/2 kLIBC has some limitations.
9474         1. OS/2 itself supports a file date since 1980 year in local time.
9475         2. OS/2 itself supports only even seconds for a file time.
9476         3. utimes() of OS/2 kLIBC does not work on an opened file.
9477         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
9478         * doc/posix-functions/utimes.texi: Document the above limitations of
9479         utimes() on OS/2 kLIBC.
9481 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
9482             KO Myung-Hun  <komh@chollian.net>
9484         openat_proc_name: port to OS/2 kLIBC
9485         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
9486         instead of /proc/self/fd.
9487         * lib/openat-proc.c (openat_proc_name):
9488         Don't assume file name length is less than INT_MAX.
9489         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
9491 2016-01-14  KO Myung-Hun  <komh@chollian.net>
9493         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
9494         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
9495         definitions of intptr_t and uintptr_t (which use int and unsigned)
9496         to avoid clashes with declarations of system functions like sbrk.
9497         * lib/stdint.in.h (intptr_t, uintptr_t): Check
9498         _INTPTR_T_DECLARED before defining them.
9500         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
9501         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
9502         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
9503         Declare on kLIBC.
9504         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
9505         fd associated with dirp.
9506         (_gl_register_dirp_fd): New. Register fd associated with dirp to
9507         dirp_fd_list.
9508         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
9509         (dirfd): Implemented for kLIBC.
9510         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
9511         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
9512         succeeds.
9513         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
9514         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9515         (REPLACE_DIRFD): Define to 1 if replaced.
9516         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
9517         * modules/closedir (Depends-on): Add dirfd.
9518         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
9519         condition.
9520         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
9521         * modules/opendir (Depends-on): Add dirfd.
9523         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
9524         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
9525         * lib/dup.c (dup_nothrow): New.
9526         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
9527         (klibc_dup2): New.
9528         * lib/fcntl.c (klibc_fcntl): New.
9529         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
9530         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
9531         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
9532         fd.
9534         pipe_filter_ii_execute: port to OS/2 kLIBC
9535         Pipes on kLIBC do not support O_NONBLOCK like Win32.
9536         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
9537         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
9538         Reuse Win32 code on OS/2 kLIBC.
9539         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
9540         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
9542         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
9543         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
9544         static inline function.  The implementation of wcwidth in wcwidth.c
9545         causes a "conflicting types" error.
9546         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
9548         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
9549         spawn() on OS/2 kLIBC is not silly like one on Windows
9550         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
9551         empty string on OS/2 kLIBC.
9553         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
9554         On OS/2 kLIBC, select() works only on sockets.
9555         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
9557         binary-io: don't put fd in binary mode if it is a console on EMX
9558         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
9559         a console on EMX.
9561 2016-01-15  Pádraig Brady  <P@draigBrady.com>
9563         doc: mention unfixed issues with unsupported localtime() values
9564         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
9565         returns nonsense for localtime(2^56).
9566         * doc/posix-functions/localtime_r.texi: Likewise.
9568 2016-01-14  Pádraig Brady  <P@draigBrady.com>
9570         doc: mention setlocale() issues on OpenBSD
9571         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
9572         never fails, and the need to check categories individually.
9574 2016-01-14  Pádraig Brady  <P@draigBrady.com>
9576         sig2str: list all signals on FreeBSD >= 7
9577         FreeBSD >= 7 is contravening POSIX by not defining NSIG
9578         to the maximal statically defined signal value.
9579         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
9580         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
9581         where available, even when NSIG is defined.
9583 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
9585         acl-permissions: port to USE_ACL==0 platforms
9586         I ran into this problem when building bleeding-edge GNU Emacs
9587         with gcc -fsanitize=address on Fedora 23.  On this platform
9588         the ACL library does not pass the 'configure' test and Emacs
9589         then does not build due in part to what appear to be typos in the
9590         ACL part of Gnulib.
9591         * lib/acl-internal.c (free_permission_context):
9592         * lib/acl-internal.h (struct permission_context):
9593         Test whether USE_ACL is nonzero, not whether it is defined.
9595 2016-01-12  Martin Sebor  <msebor@redhat.com>
9597         mktime: rename macro to avoid glibc clash
9598         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
9599         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
9601 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
9603         Port "$@" to OpenIndiana ksh93
9604         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
9605         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
9606         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
9607         bug long-dead shells, so remove the workaround.
9608         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
9609         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
9610         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
9611         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
9612         Use "$@" instead of ${1+"$@"}.
9614         Port Universal Time settings to strict POSIX
9615         * build-aux/announce-gen, build-aux/bootstrap:
9616         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
9617         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
9618         * build-aux/gnupload, build-aux/mkinstalldirs:
9619         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
9620         * build-aux/update-copyright, build-aux/useless-if-before-free:
9621         * build-aux/vc-list-files, tests/test-strftime.c:
9622         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
9623         but POSIX says the behavior of TZ="UTC" is undefined.
9625 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
9627         msvc-inval: fix problem with unset shell var
9628         Problem reported by Karl Berry in:
9629         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
9630         * modules/msvc-inval (Depends-on):
9631         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
9632         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
9634 2016-01-01  Pádraig Brady  <P@draigBrady.com>
9636         tests: for compare_(), use cmp -s where available
9637         * tests/init.sh (compare_): Only fall back to cmp without
9638         the POSIX defined -s option, where this is not available.
9640 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
9642         version-etc: new year
9643         * build-aux/gendocs.sh (version):
9644         * doc/gendocs_template:
9645         * doc/gendocs_template_min:
9646         * doc/gnulib.texi:
9647         * lib/version-etc.c (COPYRIGHT_YEAR):
9648         Update copyright dates by hand in templates and the like.
9649         * all files: Run 'make update-copyright'.
9651 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
9653         human: fix output buffer overrun by 1
9654         * lib/human.c (human_readable): Fix off-by-one typo in buffer
9655         calculation that could lead to a one-byte buffer overrun.
9657 2015-12-28  Daiki Ueno  <ueno@gnu.org>
9659         maint: fix operator precedence in mbrtowc test
9660         This is a fix for test breakage introduced by commit 45228d96; the
9661         equality expression must be parenthesized when negated with '!',
9662         otherwise we always get:
9664           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
9666         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
9667         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
9669 2015-12-23  James Youngman  <jay@gnu.org>
9671         regexprops-generic: update from regex.h
9672         * doc/regexprops-generic.texi: update by running the regexprops binary
9673         from findutils (the command line is 'regexprops "Regular Expressions"
9674         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
9675         gnulib with GNU grep had made this document out-of-date.
9677 2015-12-23  Pádraig Brady  <P@draigBrady.com>
9679         strftime-tests: avoid false failure on OS X
9680         * tests/test-strftime.c (struct localtime_rz_test): Add an
9681         ahistorical member which is used to warn rather than fail
9682         when tm_isdst isn't set for such entries.  This is the case for
9683         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
9685 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
9687         fts: ensure leaf optimization is used for NFS
9688         NFS provides usable dirent.d_type but not necessarily for all entries
9689         of large directories.  See <https://bugzilla.redhat.com/1252549>
9690         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
9692 2015-12-20  Pádraig Brady  <P@draigBrady.com>
9694         fts: enable leaf optimization for XFS
9695         XFS provides usable dirent.d_type only for DT_DIR,
9696         but the noleaf optimization still applies.
9697         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
9699 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
9701         intprops: comment fix
9702         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
9703         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
9705         intprops-test: work around GCC bug 68971
9706         Problem reported by Pádraig Brady in:
9707         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
9708         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
9709         (main): Add a case that better tests 64-bit long in this area.
9711 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
9713         gnulib-tool: allow multiple --local-dir usage
9714         * gnulib-tool: Use --local-dir to construct compound
9715         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
9716         PATH_SEPARATOR early.
9717         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
9718         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
9719         func_determine_path_separator because that needs to be detected
9720         earlier now.
9721         (func_determine_path_separator): New function.
9722         (func_path_foreach, func_path_foreach_inner): New functions.
9723         (func_path_prepend, func_path_append): Likewise.
9724         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
9725         (func_lookup_file, func_all_modules): Use new functions to work
9726         with local_gnulib_path.
9727         (func_modules_in_dir, func_exists_module): New callbacks for
9728         func_path_foreach.
9729         (func_exists_module, func_get_tests_module): Likewise.
9730         (func_is_local_file, func_should_symlink): New helper methods.
9731         (func_add_file, func_update_file): Use new func_should_symlink
9732         instead, DRY.
9733         (func_reconstruct_cached_local_gnulib_path): New helper.
9734         (func_reconstruct_cached_dir): New callback.
9735         (func_import): The cached_local_gnulib_dir renamed to
9736         cached_local_gnulib_path similarly to local_gnulib_dir.
9737         Use new func_reconstruct_cached_local_gnulib_path.
9738         (func_count_relative_local_gnulib_path): New sub-method.
9739         (func_create_testdir): Use func_should_symlink, DRY.
9740         (func_create_megatestdir): Use new functions to work with
9741         local_gnulib_path correctly.
9742         (func_append_local_dir): New helper.
9744 2015-12-08  Pádraig Brady  <P@draigBrady.com>
9746         fix freadptr to work with ungetc on all uClibc configs
9747         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
9748         where GNU coreutils cut(1) generates invalid output on uClibc
9749         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
9750         * lib/freadptr.c (freadptr): Return NULL if there are
9751         ungotten chars.  In this case freadseek() will iterate
9752         again to process the ungotten character.
9754 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
9756         xalloc-oversized: improve performance with GCC 5
9757         * lib/xalloc-oversized.h (xalloc_oversized):
9758         Improve performance with GCC 5 by using __builtin_mul_overflow.
9760 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
9762         intprops: new public macro EXPR_SIGNED
9763         Emacs can use this macro, so make it public.
9764         * doc/intprops.texi (Arithmetic Type Properties): Rename from
9765         'Integer Type Determination', since some of these macros apply
9766         to non-integer types.  Clarify what kinds of constant expressions
9767         these macros return.  Say when the arguments can be non-integers.
9768         Mention newly published macro EXPR_SIGNED.
9769         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
9770         make it public.  All uses changed.
9772         intprops: fix typo in clang port
9773         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
9774         '__builtin_add_overflow' that is not caught by compiler.
9776 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
9778         test-timespec: fix typo in previous change
9779         * tests/test-timespec.c (main): Fix typo that reduced test quality.
9781         timespec-sub: fix overflow bug; add tests
9782         * lib/timespec-add.c (timespec_add):
9783         * lib/timespec-sub.c (timespec_sub):
9784         Work even if time_t is narrower than int (a theoretical
9785         possibility).  Redo code for a bit more clarity.
9786         * lib/timespec-sub.c (timespec_sub):
9787         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
9788         * modules/timespec-tests, tests/test-timespec.c: New files.
9790         intprops-test: suppress -Woverlength-strings
9791         Problem reported by Pádraig Brady in:
9792         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
9793         It is not worth the hassle to port this test to compilers that
9794         cannot handle long strings in diagnostics.
9795         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
9797 2015-11-03  Pádraig Brady  <P@draigBrady.com>
9799         quotearg: add quotearg_n_style_colon()
9800         This quotes with default options of the specified style,
9801         but with quoting enabled for instances of ':'.
9802         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
9803         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
9805 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
9807         intprops: revise _WRAPV macros, revert _OVERFLOW
9808         The incompatible changes to the _OVERFLOW macros were too much of
9809         a hassle in practice, so revert them.  Instead, change the new
9810         _WRAPV macros to make them closer in behavior to GCC 5's new
9811         builtin_add_overflow etc. functions.  No other software was using
9812         these newly-added macros yet, so this should be OK.
9813         * NEWS: Revert previous change, since the incompatible change
9814         has been reverted, and nobody used the incompatible version.
9815         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
9816         Document revised behavior.
9817         (Integer Range Overflow): Adjust example to match above revisions.
9818         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
9819         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
9820         these can be used in integer constant expressions again.
9821         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
9822         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
9823         needed.
9824         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
9825         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
9826         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
9827         Remove, as they did not seem that useful.
9828         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
9829         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
9830         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
9831         Support new semantics.
9832         (__has_builtin): New macro, if not alreay defined.
9833         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
9834         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
9835         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
9836         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
9837         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
9838         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
9839         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
9840         New macros.
9841         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
9843 2015-11-03  Jim Meyering  <meyering@fb.com>
9845         intprops: add parentheses for when OP has precedence lower than "-"
9846         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
9847         "a OP b" must be parenthesized for when OP is like "<<", which has
9848         lower precedence than the following "-". Reported by Pádraig Brady.
9850 2015-11-03  Pádraig Brady  <P@draigBrady.com>
9852         quotearg: constify get_quoting_style parameters
9853         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
9854         * lib/quotearg.c (get_quoting_style): Likewise.
9856 2015-11-02  Pádraig Brady  <P@draigBrady.com>
9858         quotearg: add support for $'' shell escaping
9859         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
9860         items and descriptions.
9861         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
9862         above types by quoting like "shell", but using $'...' syntax
9863         for non printable characters, which should provide unambiguous
9864         printable output for any input.
9865         * tests/test-quotearg-simple.c: Update accordingly.
9867 2015-11-02  Pádraig Brady  <P@draigBrady.com>
9869         maint: use a more standard return from mbrtowc test
9870         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
9871         from the test program as this is non standard and often
9872         indicates an unhandled case in the test program.
9873         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
9875 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
9877         intprops: add WRAPV and const flavors for GCC 5
9878         If available, use GCC 5's builtin functions for efficient integer
9879         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
9880         and safely compute the low-order bits of the correct answer.
9881         A downside of these efficient functions is that they cannot be
9882         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
9883         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
9884         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
9885         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
9886         Document the changes.
9887         (Wraparound Arithmetic): New section.
9888         (Integer Range Overflow):
9889         Put this subsection last, since it's least useful.
9890         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
9891         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
9892         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
9893         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
9894         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
9895         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
9896         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
9897         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
9898         New macros.
9899         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
9900         Generate calls to GCC builtins if available, for speed.
9901         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
9902         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
9903         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
9904         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
9905         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
9906         (CHECK_QUOTIENT, CHECK_REMAINDER):
9907         Test WRAPV and CONST flavors (when available) too.
9909 2015-10-30  Pádraig Brady  <P@draigBrady.com>
9911         doc: use extended timezone format in iso-8601 example
9912         * doc/parse-datetime.texi: The standard states that extended format
9913         is to be used consistently throughout.
9914         Note that lib/parse-datetime.y can handle either tz format.
9916 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
9918         stdalign: port to Sun C 5.9
9919         * doc/posix-headers/stdalign.texi: Document this.
9920         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
9921         __attribute__ ((__aligned__ (...))).
9923 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
9925         time_rz: fix comment about tzalloc
9926         * lib/time_rz.c (tzalloc): Fix comment.
9928 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
9930         stdalign: work around pre-4.9 GCC x86 bug
9931         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
9932         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
9933         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
9935 2015-10-18  Pádraig Brady  <P@draigBrady.com>
9937         maint.mk: sc_tight_scope: remove extraneous expressions
9938         * top/maint.mk (tight_scope): This is not really required since
9939         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
9940         that matches all nm entries.  But it does remove extraneous entries
9941         that may be confusing or cause issue in future maintenance.
9943 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
9945         time_rz: return NULL if localtime_r fails
9946         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
9947         while still attempting to pacify bleeding-edge GCC.
9949         fts: port to C11 alignof
9950         * doc/posix-headers/stdalign.texi (stdalign.h):
9951         Document the C11 restriction.
9952         * lib/fts.c: Include stddef.h, for max_align_t.
9953         (fts_alloc): Align using max_align_t, not FTSENT.
9954         * modules/fts (Depends-on): Add stddef.
9956 2015-10-18  Jim Meyering  <meyering@fb.com>
9958         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
9959         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
9960         would see this:
9962         lib/time_rz.c: In function 'localtime_rz':
9963         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
9964           [-Werror=nonnull]
9965                    if (tm && !save_abbr (tz, tm))
9966                        ^
9968         That was complaining about "tm" because it is a parameter that was
9969         declared with the __nonnull__ attribute.
9970         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
9971         result of localtime_r.
9973 2015-10-17  Jim Meyering  <meyering@fb.com>
9975         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
9976         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
9977         name-extraction regexp mistakenly used \S+, and would mistakenly
9978         extract "*F" from "extern int *F()" rather than the desired "F".
9979         Use \w+ instead.
9981 2015-10-17  Jim Meyering  <meyering@fb.com>
9983         maint.mk: sc_tight_scope: factor and support OS X
9984         * top/maint.mk (_gl_tight_scope): Address three issues:
9985         - factor out four instances of code that wraps a string in "^...$"
9986         - allow nm-reported symbol names to have an optional leading "_"
9987         - add "main" to the list of ignored variable names, because on os x,
9988         "main" has nm-reported type "S" in the variable-checking section.
9990 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
9992         safe-alloc-tests: fix typo in license header
9993         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
9995 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
9997         copy-file: fix mem leak in error case
9998         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
9999         upon error opening or performing I/O to the src and dest files.
10001 2015-10-15  Mike Frysinger  <vapier@chromium.org>
10003         localename: control langinfo.h inclusion
10004         This header is only used to work around buggy behavior in old
10005         versions of glibc, so do not include it all the time.  Otherwise
10006         we get build failures on systems that do not provide langinfo.h.
10007         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
10008         in the source later on.
10009         The patch was originally submitted to gettext as:
10010         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
10012 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
10014         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
10015         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
10016         * lib/u64.c, lib/unistd.c:
10017         Append 'typedef int dummy;', to pacify compilers that are picky
10018         about empty translation units.
10020 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
10022         accept4-tests: fix to avoid non portable flags
10023         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
10024         as they are the only documented ones, and passing others may trigger
10025         EINVAL (seen on FreeBSD 10.1-RELEASE).
10026         * doc/glibc-functions/accept4.texi: Mention that we don't provide
10027         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
10029 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
10031         gnulib-tool: fix tests of 'extensions' module
10032         This complements f8fe25fab60e3c687a124 commit.
10033         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
10034         emitting of initial gl_EARLY macros.
10035         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
10036         replaced with func_emit_pre_early_macros call.
10038 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
10040         unicase/locale-language: fix typo in utf-8 cookie
10041         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
10042         Problem reported by Zbigniew Jędrzejewski-Szmek.
10044 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
10046         xalloc: do not worry about GCC 5 warning on 32 bit
10047         * lib/xalloc.h: Revert previous change.
10048         I found a better way to fix this in coreutils.
10050 2015-10-02  Pádraig Brady  <P@draigBrady.com>
10052         xalloc: avoid GCC 5.1 warning on 32 bit
10053         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
10054         xalloc_oversized(), which was seen to give this warning
10055         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
10056         when simplifying conditional".
10058 2015-10-02  Daiki Ueno  <ueno@gnu.org>
10060         uniname/uniname-tests: avoid compiler warnings
10061         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
10062         unused local variables.
10063         (test_alias_lookup): Fix alias name display in failure cases.
10065 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
10067         c-ctype: do not worry about EBCDIC + char signed
10068         Drop support for EBCDIC with char being signed, as this breaks too
10069         many programs.  Problem reported by Ben Pfaff in:
10070         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
10071         * lib/c-ctype.h: Verify that we are not using EBCDIC with
10072         char being signed.
10073         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
10074         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
10075         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
10076         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
10077         * tests/test-c-ctype.c (test_all):
10078         Simplify by assuming standard char values cannot be negative.
10079         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
10081 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
10083         c-ctype: port better to z/OS EBCDIC
10084         Problems reported by Daniel Richard G. in:
10085         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
10086         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
10087         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
10088         (_C_CTYPE_OTHER_CNTRL): New macro.
10089         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
10090         from SCHAR_MIN, as the functions are defined only from values
10091         promoted from char or from unsigned char, not necessarily from
10092         signed char.
10094 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
10096         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
10098         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
10099         and ARFLAGS variables.  Doing this unconditionally could break
10100         later Automake's AM_PROG_AR invocation (at least it's
10101         AC_CHECK_TOOLS call to detect correct 'ar' binary).
10103         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
10104         Amsterdam Compiler Kit, so make the previous code to have effects
10105         only on ACK, and rather automatically call the Automake's
10106         AM_PROG_AR as soon as possible to decide other cases.
10108         References:
10109         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
10111         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
10112         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
10113         is possible, keep setting AR/ARFLAGS to reasonable defaults.
10114         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
10115         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
10116         'extensions' module is used.
10117         * modules/extensions (configure.ac-early): Remove as this snippet
10118         is added to gnulib-comp.m4 earlier anyway.
10120 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
10122         sockets: MS Windows initalization fixes
10123         Problem reported by Test User in:
10124         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
10125         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
10126         Correct the endianness.
10127         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
10128         number mismatch, not just on <.  Cleanup before any such failure.
10130 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
10132         gc: fix detection of installed libgcrypt version
10133         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
10134         at least as recent as 1.4.4.  The previously used macro is not
10135         available now, since modules were removed in version 1.6.0.
10137 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
10139         c-ctype: rewrite to use inline functions
10140         This simplifies maintenance, since it makes for just one
10141         implementation of each function, letting the compiler have the fun
10142         of optimization.  In practice this works well nowadays with GCC.
10143         E.g., c_isascii might need only three instructions even though the
10144         source code lists every ASCII character individually in a large
10145         switch statement.
10146         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
10147         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
10148         * NEWS: Document the API change.
10149         * lib/c-ctype.c: Drastically simplify, since this now just expands
10150         inline functions.
10151         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
10152         (C_CTYPE_INLINE): New macro.
10153         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
10154         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
10155         Verify that either ASCII or EBCDIC is being used.
10156         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
10157         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
10158         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
10159         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
10160         New private macros.
10161         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
10162         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
10163         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
10164         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
10165         (c_tolower, c_toupper): When converting, return the unsigned char,
10166         as that is what z/OS does.
10167         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
10168         of some c-ctype.h macros.
10169         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
10170         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
10171         c_tolower promotion to be compatible with z/OS.
10173 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
10175         gitlog-to-changelog: trim only trailing whitespaces
10176         This is fix for --format regression introduced by commit
10177         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
10178         doubled %n string) had no effect anymore.  This format
10179         specification has been used e.g. by GNU paxuitils (commit
10180         edfd8bcc3).
10182         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
10183         newlines in commmit messages.
10185 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
10187         Test that c_iscntrl agrees with iscntrl, etc.
10188         Suggested by Daniel Richard G. in:
10189         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
10190         * modules/c-ctype-tests (Depends-on): Add ctype.
10191         * tests/test-c-ctype.c: Include <ctype.h>.
10192         (NCHARS): New constant.
10193         (test_agree_with_C_locale): New function.
10194         (main): Use it.
10195         (test_all): Use named constants.
10197         c-ctype: improve c_isascii testing
10198         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
10199         Add a test to count the number of ASCII characters.
10201 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
10203         savewd: remove SAVEWD_CHDIR_READABLE
10204         It was problematic in the light of file systems that ignore umask.
10205         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
10206         * NEWS: Document this.
10207         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
10208         successful, -1 (setting errno) on failure, rather than something
10209         more complicated than that.
10210         * lib/mkdir-p.c (make_dir_parents):
10211         Do not use SAVEWD_CHDIR_READABLE.
10212         * lib/savewd.c (savewd_chdir):
10213         Remove support for SAVEWD_CHDIR_READABLE.
10214         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
10216         c-ctype: port better to EBCDIC
10217         Problems reported by Daniel Richard G. in
10218         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
10219         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
10220         Include "verify.h".
10221         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
10222         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
10223         Define as enum constants with value false, if not defined, so that
10224         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
10225         code more portable, as both branches of the 'if' are compiled on
10226         all platforms.
10227         (C_CTYPE_EBCDIC): New constant.
10228         Verify that the character set is either ASCII or EBCDIC.
10229         (to_char): New static function.
10230         (c_isascii, c_iscntrl):
10231         Assume standard control-character assignments for EBCDIC.
10232         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
10233         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
10234         Rewrite to use 'if' instead of 'ifdef'.
10235         Use to_char if non-ASCII.  Prefer <= to >=.
10236         Prefer true and false to 1 and 0, for booleans.
10237         (c_iscntrl): Use 'if', not 'ifdef'.
10238         * modules/c-ctype (Depends-on): Add verify.
10239         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
10240         (to_char): New function.
10241         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
10243 2015-09-21  Pádraig Brady  <P@draigBrady.com>
10245         nanosleep: fix return code for interrupted replacement
10246         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
10247         that we return -1 in the case the call is interrupted by a signal,
10248         rather than the current value of 1.
10249         Diagnosed and tested by Daniel Richard G.
10251 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
10253         Diagnose ERE '()|\1'
10254         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
10255         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
10256         track of the set of previously-completed subexpressions available
10257         before the first alternative, and restore this set just before
10258         parsing each subsequent alternative.  This lets us diagnose the
10259         invalid back-reference in the ERE '()|\1'.
10261         regex: merge patches from libc
10263         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
10264         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
10265         * lib/regex_internal.h:
10266         Include <libc-lock.h> instead of <bits/libc-lock.h>.
10268         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
10269         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
10270         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
10271         wcscoll.
10272         * lib/regexec.c (check_node_accept_bytes): Likewise.
10274         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
10275         Fix regex wcrtomb namespace (bug 18496).
10276         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
10277         instead of wcrtomb.
10279         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
10280         Fix regex wctype namespace (bug 18495).
10281         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
10282         instead of towlower.
10283         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
10284         instead of iswlower.  Call __towupper instead of towupper.
10285         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
10286         instead of iswalnum.
10288         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
10289         * lib/regcomp.c (parse_bracket_exp): Initialize type to
10290         COLL_SYM in a couple of places to avoid uninitialized variable
10291         wanings on tilegx gcc 4.8.2.
10293         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
10294         * lib/regex_internal.h: Remove NOT_IN_libc.
10296         2014-11-17  Andreas Schwab  <schwab@suse.de>
10297         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
10299         2014-09-11  Roland McGrath  <roland@hack.frob.com>
10300         Move findidx nested functions to top-level.
10301         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
10302         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
10303         Pass new arguments to findidx.
10304         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
10305         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
10306         Don't #include it inside the function.  Pass new arguments to findidx.
10307         * lib/regex_internal.h:
10308         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
10309         (re_string_elem_size_at): Don't #include it inside the function.
10310         Pass new arguments to findidx.
10312         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
10313         Check if DEBUG is defined in regex_internal.c
10314         * lib/regex_internal.c: Check if DEBUG is defined and is set.
10316 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
10318         ceill: detect buggy OpenBSD implementation
10319         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
10320         which returns zero for small values.  Discussed here:
10321         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
10323 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
10325         mountlist: add me_mntroot field on Linux machines
10326         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
10327         mount_entry so Linux machines based on /proc/self/mountinfo can
10328         distinguish between bind mounts and original mounts.  In reality bind
10329         mounts aren't treated differently than mountroot=/ mounts by the
10330         kernel, but the user often wants these bind mounts distinguished.
10331         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
10332         More details at https://pad.lv/1432871
10334 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
10336         doc: Describe to use multiple instances of gnulib
10337         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
10338         instances of gnulib with different modules can be used, for example one
10339         for a lib and another one for associated tools.
10341 2015-09-01  Pádraig Brady  <P@draigBrady.com>
10343         base32: mark function as __attribute__ const
10344         * lib/base32.h (isbase32): Mark __attribute__ const as
10345         suggested by GCC, and consistent with the base64 module.
10347 2015-08-20  Daiki Ueno  <ueno@gnu.org>
10349         gnulib-tool: don't transform binary files with sed
10350         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
10351         .mo and .class files.
10352         Reported by Denis Denisov.
10354 2015-08-10  Daiki Ueno  <ueno@gnu.org>
10356         gperf: respect silent rules
10357         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
10358         V_GPERF_0 for silent rules.
10359         * modules/iconv_open (Makefile.am): Use V_GPERF.
10360         * modules/unicase/locale-language (Makefile.am): Likewise.
10361         * modules/unicase/special-casing (Makefile.am): Likewise.
10362         * modules/unictype/category-byname (Makefile.am): Likewise.
10363         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
10364         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
10365         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
10366         * modules/unictype/property-byname (Makefile.am): Likewise.
10367         * modules/unictype/scripts (Makefile.am): Likewise.
10368         * modules/uninorm/composition (Makefile.am): Likewise.
10370 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
10372         Improve port of stdalign to C++11
10373         Problem reported by Sundaram in:
10374         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
10375         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
10376         (__alignas_is_defined): Define if C++11 or newer.
10378 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
10380         pmccabe2html: fix gawk regex escaping
10381         * build-aux/pmccabe2html: Add one more backslash to properly
10382         escape the gsub replacement value.  Fixes this error:
10383         gawk: ./build-aux/pmccabe2html:425: \
10384         warning: escape sequence `\&' treated as plain `&'
10386 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
10388         time_rz: port to pedantic memcpy
10389         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
10390         that reject memcpy (..., NULL, 0).
10392 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
10394         time_rz: port better to MinGW
10395         Don't change tzname, as this makes MinGW dump core (Bug#21020).
10396         Instead, store the tzname copy in the struct tm_zone object.
10397         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
10398         * lib/strftime.c [!_LIBC]:
10399         * lib/time_rz.c: Include time-internal.h.
10400         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
10401         name from *TZ rather than from TZNAME, doable because *TZ now has
10402         a tzname_copy member.
10403         * lib/time-internal.h: New file, with contents taken from
10404         lib/time_rz.c.  It's separate because strftime.c now accesses
10405         struct tm_zone members.
10406         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
10407         New member tzname_copy.
10408         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
10409         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
10410         Initialize tzname_copy member.
10411         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
10412         in tzname_copy member.
10413         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
10414         (restore_tzname): Remove; no longer needed.  All calls removed.
10415         * modules/time_rz (Files): Add lib/time-internal.h.
10417         time: port __need_time_t to MinGW
10418         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
10419         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
10421 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10423         strftime: fix newly-introduced bug on Solaris
10424         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
10425         consistently at the start, rather than doing some of the setup at
10426         the start and some in the %Z format spec.  This is cleaner, and
10427         works better with time_rz on platforms like Solaris where struct
10428         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
10429         mktime_z and localtime_rz can mess up the tzname cache.
10431         test-strftime: test for Solaris bug
10432         * modules/strftime-tests (Depends-on): Add strerror.
10433         * tests/test-strftime.c: Include <errno.h>.
10434         (posixtm_test): New function, containing the old 'main'.
10435         (struct tzalloc_test, struct localtime_rz_test): New types.
10436         (TZ, LT): New static vars.
10437         (tzalloc_test): New function.
10438         (main): Rewrite in terms of posixtm_test and tzalloc_test.
10440         time_rz: port to Solaris etc.
10441         Works around a tzname problem on platforms like Solaris that have
10442         tzname but not tm_zone, by setting tzname at the appropriate time
10443         and restoring it later.
10444         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
10445         New static vars.
10446         (save_abbr) [HAVE_TZNAME]: Set them.
10447         (revert_tz) [HAVE_TZNAME]: Clear or use them.
10448         (restore_tzname): New function.
10449         (localtime_rz, mktime_z): Use it.
10451         time_rz: now LGPL
10452         * modules/time_rz (License): Now LGPL, because strftime depends on it.
10454         time_rz: make a constant 'const'
10455         * lib/time_rz.c (local_tz): Now const.
10457         time_rz: fix off-by-one typo
10458         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
10460 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
10462         fprintftime, strftime: use timezone_t args
10463         * NEWS: Document the change.
10464         * lib/fprintftime.h (fprintftime):
10465         * lib/strftime.c (extra_args) [my_strftime]:
10466         * lib/strftime.h (nstrftime):
10467         Time zone arg is now of type timezone_t, not int.
10468         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
10469         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
10470         (my_strftime) [emacs && !my_strftime]:
10471         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
10472         Remove; Emacs doesn't need this any more.
10473         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
10474         fprintftime and nstrftime to call tzset.
10475         (ut) [!my_strftime]: Remove, replacing with ...
10476         (tz) [!my_stftime]: ... this new macro.  All uses changed.
10477         (strftime_case_): Use localtime_rz and mktime_z instead
10478         of localtime_r and mktime.
10479         * modules/fprintftime (Depends-on): Add time_rz.
10480         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
10481         * tests/test-strftime.c (main): Adjust to new nstrftime API.
10483         time_rz: new module
10484         * MODULES.html.sh: Add time_rz.
10485         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
10486         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
10487         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
10488         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
10489         New var HAVE_TIMEZONE_T (default 0).
10490         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
10491         New var GNULIB_TIME_RZ (default 0).
10492         * modules/time (time.h): Substitute the new vars.
10494         flexmember: license is now unlimited
10495         * modules/flexmember (License): Change to unlimited,
10496         since its only source file gives an unlimited license.
10498 2015-07-15  Eric Blake  <eblake@redhat.com>
10500         maint: update copyright paper procedures
10501         * config/srclist.txt: Drop outdated files.
10502         * doc/Copyright/conditions.txt: Update to latest.
10503         * doc/Copyright/assign.changes.manual: Delete.
10504         * doc/Copyright/assign.future.manual: Likewise.
10505         * doc/Copyright/assign.manual: Likewise.
10506         * doc/Copyright/assign.translation.manual: Likewise.
10507         * doc/Copyright/disclaim.changes.manual: Likewise.
10508         * doc/Copyright/disclaim.manual: Likewise.
10509         * doc/Copyright/disclaim.program: Likewise.
10511 2015-07-07  Daiki Ueno  <ueno@gnu.org>
10513         localename: fix link error on Illumos
10514         Illumos defines __sun, but does not have getlocalename_l nor the
10515         equivalent.  This partially reverts commit 387c214.
10516         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
10517         available, as well as uselocale.
10518         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
10519         use getlocalename_l if it is not available.
10521 2015-07-07  Daiki Ueno  <ueno@gnu.org>
10523         unistr/uN-strtok-tests: avoid a trivial leak
10524         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
10525         input and delim after the multibyte delimiter tests.
10527 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
10529         file-has-acl, acl-permissions: fix HP-UX typos
10530         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
10531         * lib/file-has-acl.c (file_has_acl):
10532         * lib/set-permissions.c (context_acl_from_mode)
10533         (context_aclv_from_mode, set_acls):
10534         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
10535         They were introduced by the recent ACL changes.
10537         regex: match current GNU grep behavior
10538         These symbols have not matched GNU grep behavior for quite some time.
10539         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
10540         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
10541         Change to match current GNU behavior.
10542         Simplify by expressing it as differences from POSIX BREs and EREs.
10543         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
10545 2015-07-03  Jim Meyering  <meyering@fb.com>
10547         set-permissions.c: adjust acl_from_mode's cpp guard
10548         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
10549         directives identical to those guarding the sole use.
10550         Otherwise, on some systems, we'd get a warning about
10551         the function being defined but not used.
10552         Also, filter through cppi to correct misleading indentation
10553         of cpp directives.
10555 2015-07-03  Pádraig Brady  <P@draigBrady.com>
10557         tests: restrict shells to those that support 'local'
10558         The local keyword is very widely supported and used
10559         in tests in coreutils and grep at least.  Therefore
10560         restrict to testing with shells that support it.
10561         This mainly excludes /bin/sh on Solaris.
10562         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
10564 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
10565         and Daiki Ueno  <ueno@gnu.org>
10567         unistr/uN-strtok: handle multibyte delimiters
10568         Previously, uN_strtok moved PTR to the next unit to the token end.
10569         When DELIM contained a multibyte character, the new position could
10570         be a middle of a multibyte character.
10571         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
10572         after the token.
10573         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
10574         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
10575         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
10576         * modules/unistr/u8-strtok (Depends-on): Depend on
10577         unistr/u8-strmblen.
10578         * modules/unistr/u16-strtok (Depends-on): Depend on
10579         unistr/u16-strmblen.
10580         * modules/unistr/u32-strtok (Depends-on): Depend on
10581         unistr/u32-strmblen.
10582         * tests/unistr/test-u-strtok.h: New file.
10583         * tests/unistr/test-u8-strtok.c: New file.
10584         * tests/unistr/test-u16-strtok.c: New file.
10585         * tests/unistr/test-u32-strtok.c: New file.
10586         * modules/unistr/u8-strtok-tests: New file.
10587         * modules/unistr/u32-strtok-tests: New file.
10588         * modules/unistr/u16-strtok-tests: New file.
10590 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
10592         update-copyright: fix test failure with perl >= 5.22 (trivial)
10593         * build-aux/update-copyright: Escape a literal left curly bracket,
10594         required with perl >= 5.22
10596 2015-07-02  Daiki Ueno  <ueno@gnu.org>
10598         u{16,32}-strstr-tests: relax timeout condition
10599         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
10600         tests can take longer than 5 seconds to complete.
10601         Reported by Dagobert Michelsen in:
10602         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
10603         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
10604         seconds to 10 seconds.
10605         * tests/unistr/test-u32-strstr.c (main): Likewise.
10607 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
10609         gnulib-common.m4: change the ARFLAGS default to 'cr'
10610         In some GNU/Linux distributions people started to compile 'ar'
10611         binary with --enable-deterministic-archives (binutils project).
10612         That, however, in combination with previous autotools long time
10613         working default AR{_,}FLAGS=cru causes warnings on such
10614         installations:
10615         ar: `u' modifier ignored since `D' is the default (see `U')
10616         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
10617         set already.
10619 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
10621         selinux-h: avoid double free after *getfilecon()
10622         Originally reported by Ben Shelton on bug-tar:
10623         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
10624         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
10625         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
10626         param should be freed by freecon(3) (regardless the return value).
10628 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
10630         fix pty related tests issues on Windows (trivial)
10631         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
10632         however it's still present in tests/ subdirectory of the final project.
10633         Therefore avoid it to pass `make check`.
10634         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
10635         will just return -ENOSYS, so avoid this non applicable test allowing
10636         the build to proceed.
10638 2015-07-01  Pádraig Brady  <P@draigBrady.com>
10640         acl: fix definition of acl_from_mode on FreeBSD
10641         This was causing basic coreutils copy operations to fail
10642         with ENOTSUP or ENOENT error messages.
10643         * lib/acl-internal.h (acl_from_mode): Only define when
10644         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
10645         of acl_from_mode() defined in lib/set-permissions.c to
10646         be used on FreeBSD at least.
10647         * lib/set-permissions.c: Fix up comment spelling,
10648         and a redundant variable assignment; noticed in passing.
10650 2015-06-30  Pádraig Brady  <P@draigBrady.com>
10652         readutmp: port to FreeBSD >= 9
10653         * lib/readutmp.h: Map utmpxname() to setutxdb().
10654         With that coreutils who(1) and pinky(1) tests pass.
10656 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
10658         mgetgroups: port to strict OS X
10659         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
10660         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
10661         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
10662         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
10664 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
10666         mgetgroups: port to strict OS X
10667         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
10668         Document the getgrouplist problem.
10669         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
10670         New macro.
10671         (mgetgroups): Use it.
10672         * m4/mgetgroups.m4 (gl_MGETGROUPS):
10673         Check for OS X signature for getgrouplist.
10675 2015-06-29  Jim Meyering  <meyering@fb.com>
10677         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
10678         It started like this when building coreutils' latest on OS X,
10679         invoking ./configure with a nonempty --cache=.cache:
10681           lib/linkat.c:46:42: error: operator '||' has no right operand
10682           lib/linkat.c: In function 'rpl_linkat':
10683           lib/linkat.c:330:27: error: #if with no expression
10685         Here's linkat.c's line 46:
10687           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
10689         Here's some context:
10691           $ grep linkat_nofoll .cache
10692           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
10693           $ grep LINKAT_SYM lib/config.h
10694           #define LINKAT_SYMLINK_NOTSUP
10696         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
10697         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
10698         but that violates a tenet of AC_CACHE_CHECK: it must
10699         have no side effect other than setting its cache variable.
10701         What happens is that when the cache is set, we'd skip the
10702         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
10703         defined to whatever value it happened to have in configure's
10704         environment.  In my case, it was not defined, so this later code:
10706           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
10707             [Define to 1 if linkat can create hardlinks to symlinks])
10709         would emit code with an empty RHS.
10711         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
10712         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
10714 2015-06-28  Jim Meyering  <meyering@fb.com>
10716         mountlist: avoid an unused-label warning on OS X
10717         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
10718         Building on OS X, I saw a warning about the "free_then_fail" label
10719         being unused.  Give it the _GL_UNUSED_LABEL attribute.
10721         error.c: correct printf-style format: %d -> %u
10722         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
10723         rather than %d, to match the type of "line_number", unsigned int.
10725 2015-06-25  Pádraig Brady  <P@draigBrady.com>
10727         fts: avoid reading beyond the heap allocation
10728         GCC 5.1.1 with -O2 and -fsanitize=address reports
10729         a read of size 4 from a heap object of size 3 is indeed invalid,
10730         though this may be due to incorrect padding assumptions by GCC, see:
10731         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
10732         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
10733         * modules/fts: Depend on stdalign.
10735 2015-06-24  Pádraig Brady  <P@draigBrady.com>
10737         savedir: avoid undefined behavior in qsort call
10738         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
10739         "runtime error: null pointer passed as argument 1,
10740          which is declared to never be null"
10741         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
10743 2015-06-24  Pádraig Brady  <P@draigBrady.com>
10745         userspec: avoid undefined behavior in gettext call
10746         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
10747         "runtime error: null pointer passed as argument 2,
10748          which is declared to never be null"
10749         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
10751 2015-06-20  Glenn Morris  <rgm@gnu.org>
10753         gitlog-to-changelog: improve gitmerge.el commits
10754         Let the Emacs ChangeLog generation process exclude "skipped"
10755         messages from merge commits (Bug#20717).
10756         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
10758 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
10760         wchar: fix MinGW compilation warnings
10761         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
10762         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
10763         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
10765 2015-06-20  Daiki Ueno  <ueno@gnu.org>
10767         uniname/uniname-tests: use pristine data files
10768         For copyright and maintenance reasons, use the data files from UCD
10769         without modification.
10770         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
10771         (getfield): Remove.
10772         (aliases_count): New global variable.
10773         (fill_names): Skip comments and empty lines in the input.  Don't
10774         use getfield.
10775         (fill_aliases): Likewise.
10776         (main): Change the expected command line arguments to:
10777         NAMES... ["--" ALIASES...].
10778         * tests/uniname/test-uninames.sh: Adjust to the change in
10779         test-uninames.c.
10780         * tests/uniname/UnicodeDataNames.txt: Remove.
10781         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
10782         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
10783         file from Unicode 8.0.0.
10785 2015-06-19  Pádraig Brady  <P@draigBrady.com>
10787         linked-list, linkedhash-list: avoid compiler warnings
10788         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
10789         -Werror=suggest-attribute=pure (from GCC 5.1.1).
10791 2015-06-19  Daiki Ueno  <ueno@gnu.org>
10793         libunistring: bump minimum version to 0.9.6
10794         * all modules depending on updated Unicode data: Regenerate.
10795         The modules are listed by a script that does:
10796         - for each file listed by: git show --oneline --name-only 705f4efc
10797           - deduce the containing modules, based on "Files:"
10798         - deduce the modules which depend on the containing modules, based
10799           on "Depends-on:"
10801 2015-06-18  Daiki Ueno  <ueno@gnu.org>
10803         uniname/uniname: update to Unicode 8.0.0
10804         * lib/uniname/uninames.h: Regenerate.
10805         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
10806         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
10808 2015-06-18  Daiki Ueno  <ueno@gnu.org>
10810         libunistring: update to Unicode 8.0.0
10811         * lib/gen-uni-tables.c (SIZEOF): New macro.
10812         (output_numeric): Increase the maximum number of fractions from
10813         128 to 160.  Increase the level3 value width from 7 bits to 8
10814         bits.  Use SIZEOF instead of a hard-coded integer.
10815         (output_blocks): Decrease the cut-off threshold from 0x30000 to
10816         0x28000.
10817         (fill_blocks): Increase the maximum number of blocks from 256 to
10818         384.  Use SIZEOF instead of a hard-coded integer.
10819         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
10820         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
10821         value width.
10822         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
10823         a new case added to LBP22.
10824         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
10825         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
10826         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
10827         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
10828         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
10829         * tests/uniwidth/test-uc_width2.sh: Same updates as in
10830         lib/uniwidth/width.c.
10831         * all generated files under lib/uni* and tests/uni*: Regenerate.
10833 2015-06-16  Pádraig Brady  <P@draigBrady.com>
10835         gnu-web-doc-update: add --mirror to remove stale files
10836         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
10837         out of date files from the CVS server.  Since this is usually
10838         appropriate, a prompt is given when the option is not specified,
10839         along with the `cvs remove` command that would be run.
10841 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
10843         acl-permissions: pacify -Wsuggest-attribute=const
10844         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
10845         * lib/acl-internal.h (free_permission_context):
10846         Declare with attribute const if ! (defined USE_ACL &&
10847         (HAVE_ACL_GET_FILE || defined GETACL)).
10849         fsync: document AIX misbehavior
10850         * doc/posix-functions/fsync.texi (fsync):
10851         Document failure on AIX with read-only file descriptor.
10853 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
10855         stdio: Don't redefine gets when using C++
10856         * lib/stdio.in.h (gets): Disable warning on C++.
10858 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
10860         acl-permissions: port to AIX, C89 HP-UX
10861         Problems reported by Michael Felt.
10862         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
10863         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
10864         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
10865         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
10866         Add cast for AIX, whose system calls are declared to accept
10867         char * even though the arguments are really char const *.
10868         * lib/get-permissions.c (get_permissions):
10869         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
10870         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
10871         that broke a build.
10872         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
10873         Rework types to pacify xlc.
10875 2015-06-03  Pádraig Brady  <P@draigBrady.com>
10877         vasprintf-posix: avoid compiling vasnprintf where possible
10878         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
10879         module where not required.  For example on a GNU/Linux system
10880         when gnulib-tool is run with the --conditional-dependencies option.
10882 2015-06-02  Pádraig Brady  <P@draigBrady.com>
10884         file-has-acl: fix build on Mac OS X 10
10885         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
10886         which has an incompatible 6 parameter getxattr() call.
10887         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
10888         call on Mac OS X >= 10.4.
10889         * doc/glibc-functions/fgetxattr.texi: Likewise.
10890         * lib/file-has-acl.c: Revert to more complete combined check.
10891         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
10892         Reported by Jack Howarth.
10894 2015-06-02  Pádraig Brady  <P@draigBrady.com>
10896         prefix-gnulib-mk: remove no longer needed special case
10897         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
10898         continued lib_SOURCES lines are no longer present,
10899         so special case handling of such entries is not required.
10901 2015-06-01  Pádraig Brady  <P@draigBrady.com>
10903         acl: don't depend on the deprecated qacl module
10904         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
10906 2015-06-01  Pádraig Brady  <P@draigBrady.com>
10908         gnulib-tool: concatenate lib_SOURCES to a single line
10909         * gnulib-tool: Refactor the line merging sed logic,
10910         and use that to output a single lib_SOURCES line for each module.
10911         gnulib using projects often postprocess this output to prepend
10912         subdir paths to each item, and having a single line simplifies this
10913         processing allowing better decoupling from the gnulib-tool output.
10915 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
10917         pthread_sigmask: discount system version if a simple macro (trivial)
10918         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
10919         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
10920         function to ensure it's available.
10922 2015-05-31  Pádraig Brady  <P@draigBrady.com>
10924         readlinkat: avoid OS X 10.10 trailing slash bug
10925         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
10926         has this bug.
10927         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
10928         that OS X 10.10 has this function.
10929         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
10930         as done for readlink().
10931         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
10932         trailing slash bug, and assume readlinkat() has the same issue.
10933         Also fix a typo where $gl_cv_decl_readlink_works was tested,
10934         rather than the correct $gl_cv_decl_readlinkat_works.
10936 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
10938         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
10939         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
10940         module rewrite.
10942         acl-permissions: Fix build on Solaris and Cygwin
10943         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
10944         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
10945         ace_entries variables have moved into struct permission_context but
10946         they were still accessed as local variables here.
10948 2015-05-29  Pádraig Brady  <P@draigBrady.com>
10950         linkat: avoid OS X 10.10 trailing slash with symlink bug
10951         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
10952         causes the symlink to be dereferenced, and if it points
10953         to a non existent file, that file will be created as
10954         a hard link to "path1".
10955         This fixes a test failure in test-linkat.c.
10956         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
10957         this case.  The existing workaround in linkat.c for
10958         trailing slash issues, suffices for this case.
10959         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
10960         the list of platforms with trailing slash issues.
10962 2015-05-28  Pádraig Brady  <P@draigBrady.com>
10964         unlinkat: handle ignoring of ".." on Darwin 14
10965         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
10966         on Mac OS X 10.10, where it ignores paths with a trailing "..",
10967         so handle in the same manner.
10968         * m4/unlinkat.m4: Comment on this Darwin issue.
10969         * doc/posix-functions/unlink.texi: Update the latest version
10970         where the issue was seen.
10971         * doc/posix-functions/unlinkat.texi: Mention this issue.
10972         Fixes a test failure in test-unlinkat.c.
10974 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
10976         qacl: split into qcopy-acl and qset-acl
10977         Emacs needs the former, but not the latter.
10978         * modules/acl-permissions: New file, containing most of the old qacl.
10979         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
10980         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
10981         * modules/qcopy-acl, modules/qset-acl: New files.
10982         * MODULES.html.sh (File system functions):
10983         Mention the new modules, and mention qacl while we're at it.
10985 2015-05-27  Glenn Morris  <rgm@gnu.org>
10987         gitlog-to-changelog: new option --ignore-line
10988         (This patch is imported from the GNU Emacs master.)
10989         This option ignores individual commit lines matching a pattern.
10990         * build-aux/gitlog-to-changelog: Add --ignore-line option.
10992 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
10994         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
10995         Implement get_permissions and set_permissions primitives for getting all
10996         the permissions of a file, storing them, and later setting them. (In the
10997         minimal case, the permissions consist only of a file mode.) Reimplement
10998         qset_acl and qcopy_acl based on these new primitives: this avoids code
10999         duplication and makes error handling more consistent.
11000         The Solaris and Cygwin code still uses duplicate code paths for setting
11001         a file mode while making sure that no acls exist and setting an explicit
11002         acl; this is no worse than before, but could be cleaned up.  The AIX
11003         code still doesn't read ACLs, it only makes sure that acls don't get in
11004         the way when setting a file mode.
11005         * lib/acl-internal.h (struct permission_context): New data structure.
11006         (get_permissions, set_permissions, free_permission_context): Declare.
11007         * lib/acl-internal.c (free_permission_context): New helper function.
11008         * lib/get-permissions.c (get_permissions): New helper function split off
11009         from qcopy_acl.
11010         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
11011         AIX, set a file's permissions based only on a file mode.
11012         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
11013         other platforms construct a temporary acl from the file mode and set
11014         that acl in the same way as setting an acl read from the source file.
11015         This should help avoid code duplication and inconsistent / buggy
11016         behavior.
11017         (set_acls): New helper function Split off from qcopy_acl.
11018         (chmod_or_fchmod): Moved here from qset-acl.c.
11019         (set_permissions): New helper function.
11020         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
11021         set_permissions.
11022         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
11023         * modules/qacl: Add get-permissions.c and set-permissions.c.
11025         file-has-acl: Split feature tests again (Bug#20667)
11026         * lib/file-has-acl.c: Instead of testing for
11027         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
11028         define them when needed.
11029         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
11030         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
11032 2015-05-27  Pádraig Brady  <P@draigBrady.com>
11034         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
11035         This avoids a conflict with "FORTIFY_SOURCE" variants
11036         of the string functions when they're replaced on NetBSD-6.0.1
11037         and Darwin-14.3.0 at least.
11038         * lib/string.in.h: Avoid including our "lib/string.h" while
11039         including the system <string.h>.
11041 2015-05-26  Eric Blake  <eblake@redhat.com>
11043         stdio: limit __gnu_printf__ witness to gcc 4.4+
11044         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
11045         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
11047         error: use correct printf attributes on mingw
11048         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
11050         inttypes: force correct mingw PRIdMAX even without <stdio.h>
11051         * modules/inttypes (Depends-on): Require extensions, so that mingw
11052         always uses GNU style inttypes.
11053         * lib/inttypes.in.h: On mingw, include <stdio.h>.
11055         stdio: fix probe on mingw under gcc 5.1
11056         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
11057         around new gcc preprocessor rules.
11059 2015-05-07  Glenn Morris  <rgm@gnu.org>
11061         gitlog-to-changelog: parse "Tiny-change"
11062         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
11063         "Copyright-paperwork-exempt".  (Bug#20324)
11065 2015-05-06  Pádraig Brady  <P@draigBrady.com>
11067         doc: document glibc posix_fallocate() issues
11068         * doc/posix-functions/posix_fallocate.texi: Mention the
11069         glibc efficiency problems and issues with NFS.
11071 2015-05-05  Karl Berry  <karl@freefriends.org>
11073         * build-aux/gendocs.sh (usage): document new css default
11074         for HTML (--htmlarg).
11076 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
11078         extern-inline: no need for workaround in GCC 5.1
11079         * doc/extern-inline.texi (extern inline):
11080         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
11081         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
11082         around these bugs in GCC 5.1 and later.  Maybe in a decade or
11083         two we can remove these workarounds.
11085 2015-04-28  Pádraig Brady  <P@draigBrady.com>
11087         eealloc, pagealign_alloc, xalloc: avoid clang warnings
11088         Avoid [-Wunknown-attributes] warnings like:
11089         warning: unknown attribute '__alloc_size__' ignored
11090         * lib/xalloc.h: Don't use the __alloc_size__  attribute
11091         with clang, as support has been fully removed as of clang 3.5:
11092         https://github.com/llvm-mirror/clang/commit/c047507a
11093         * lib/eealloc.h: Likewise.
11094         * lib/pagealign_alloc.h: Likewise.
11096 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
11098         tests: pacify GCC 5.1's stricter printf checking
11099         * tests/test-dirname.c (main):
11100         * tests/test-getaddrinfo.c (simple):
11101         * tests/test-getlogin.c (main):
11102         * tests/test-getndelim2.c (main):
11103         * tests/test-inttostr.c (CK):
11104         * tests/test-md5.c (main):
11105         * tests/test-read-file.c (main):
11106         * tests/test-sha1.c (main):
11107         Fix mismatches between printf format and value signedness.
11108         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
11109         Remove, as CAST_VAL always returned a value of type uintmax_t.
11111         fts: port to GCC 5.1 with --enable-gcc-warnings
11112         Without this fix, GCC 5.1 (correctly) warns about a subscript
11113         error on the fts_name component of FTSENT.  It's actually a
11114         flexible member, so define it that way on C99 or later hosts.
11115         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
11116         structure that now has a flexible array member.
11117         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
11118         (FTSENT): fts_name is now flexible on C99-or-later platforms.
11119         * modules/fts (Depends-on): Add flexmember.
11121 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
11123         file-has-acl: port to CentOS 6
11124         Problem reported by Tom G. Christensen in:
11125         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
11126         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
11127         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
11128         HAVE_GETXATTR.
11129         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
11130         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
11131         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
11132         file-has-acl.c actually needs.
11134 2015-04-26  Pádraig Brady  <P@draigBrady.com>
11136         file-has-acl: always return false when ACLs aren't supported
11137         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
11138         change the GNU/Linux getxattr path, to transform "not supported"
11139         errors to a false return rather than an error.  This is handled
11140         within file_has_acl() due to the platform specific tests to
11141         determine if ACLs are not supported.
11143 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
11145         gettext: propagate po/Makefile.in.in too
11146         * build-aux/po/Makefile.in.in: Copy from latest gettext.
11147         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
11148         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
11149         between Makefile.in.in and the gettext-runtime m4 files.
11151 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
11153         file-has-acl: new module, split from acl
11154         And add a new module file-has-acl-tests to match.
11155         I ran into a problem with the recent changes to the acl module,
11156         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
11157         When using the fixed version with Emacs, I discovered that
11158         file-has-acl wasn't separated out well enough for Emacs (e.g., it
11159         had multiple libraries, but needed only one), so I fixed that too.
11160         * NEWS: Document this incompatible change.
11161         * modules/file-has-acl, modules/file-has-acl-tests: New files.
11162         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
11163         Initialize gl_need_lib_has_acl.
11164         (gl_FUNC_ACL): Require it.
11165         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
11166         Move the file-has-acl.c-relevant stuff to ...
11167         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
11168         use_xattrs = 0' typo, and omit some needless work.  Set
11169         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
11170         when gl_FUNC_ACL is called.
11171         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
11172         (Link): Remove $(LIB_HAS_ACL).
11173         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
11174         (check_PROGRAMS): Move stuff relevant to file-has-acl to
11175         modules/file-has-acl-tests.
11176         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
11178         manywarnings: add GCC 5.1 warnings
11179         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
11180         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
11181         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
11182         -Wsuggest-override, -Wuse-without-only.  Change
11183         -Wnormalized=... operands to match 5.1.
11184         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
11185         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
11186         -Wdiscarded-qualifiers, -Wformat-signedness,
11187         -Wincompatible-pointer-types, -Wint-conversion,
11188         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
11189         -Wshift-count-negative, -Wshift-count-overflow,
11190         -Wsizeof-array-argument, -Wsuggest-final-methods,
11191         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
11192         and add -Warray-bounds=2 as a special case.
11194 2015-04-21  Simon Josefsson  <simon@josefsson.org>
11196         doc: update FDL template to match FDL examples.
11197         * doc/alloca-opt.texi:
11198         * doc/alloca.texi:
11199         * doc/c-ctype.texi:
11200         * doc/c-strcase.texi:
11201         * doc/c-strcaseeq.texi:
11202         * doc/c-strcasestr.texi:
11203         * doc/c-strstr.texi:
11204         * doc/c-strtod.texi:
11205         * doc/c-strtold.texi:
11206         * doc/ctime.texi:
11207         * doc/error.texi:
11208         * doc/gcd.texi:
11209         * doc/gnulib-tool.texi:
11210         * doc/inet_ntoa.texi:
11211         * doc/intprops.texi:
11212         * doc/lib-symbol-visibility.texi:
11213         * doc/maintain.texi:
11214         * doc/parse-datetime.texi:
11215         * doc/quote.texi:
11216         * doc/regexprops-generic.texi:
11217         * doc/standards.texi: Remove spurious 'with' in FDL license
11218         template.
11220 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
11222         lstat: fix cross-compilation 'ln -s' problem
11223         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
11224         Have the test program call 'symlink' rather than a separate
11225         script run 'ln -s'; this is more likely to work in
11226         cross-compilation environments.  Reported by Pavel Fedin in:
11227         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
11229 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
11231         gendocs.sh: default to a common CSS style sheet for HTML output
11232         * build-aux/gendocs.sh (htmlarg): Change default value.
11234 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
11236         gnulib-tool: output bold attribute more portably
11237         * gnulib-tool (func_show_module_list): Change hexadecimal
11238         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
11239         encoded numbers as arguments to `printf' is not portable,
11240         and is not claimed by POSIX.  This is the case with FreeBSD.
11242 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
11244         qacl: Simplify HP-UX acl_nontrivial check
11245         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
11246         acl_nontrivial. Check if the acl has at most three entries instead (it must
11247         have exactly three entries according to the HP-UX documentation). Ignore
11248         uids and gids as long as an entry is either for a user (i.e., the owner),
11249         a group (i.e., the owning group), or others.
11250         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
11251         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
11253 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
11255         acl: On Linux, check for acls without libacl
11256         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
11257         library function to check for the presence of acls, avoiding a library.
11258         * lib/file-has-acl.c: Include xattr headers if we have them.
11259         (file_has_acl): On Linux, use getxattr().
11260         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
11261         file_has_acl(). Check for xattr headers and getxattr().
11263 2015-04-14  Ángel González  <keisial@gmail.com>
11265         tempname: avoid unused parameter warnings (trivial)
11266         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
11267         (try_nocreate): Likewise.
11269 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
11271         fseeko: fix build failure on NetBSD >= 6 (trivial)
11272         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
11273         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
11275 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
11277         gitlog-to-changelog: port to MS-Windows
11278         * build-aux/gitlog-to-changelog (git_dir_option):
11279         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
11280         MS-Windows Perl.  Reported by Eli Zaretskii in:
11281         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
11283 2015-04-07  Karl Berry  <karl@gnu.org>
11285         gendocs: new option --tex for passing args to texi2dvi.
11286         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
11287         (TEXI2DVI): cut to just command name.
11288         (usage): mention new option, and update copyright.
11289         <generate_tex>: use it.
11291 2015-04-07  Karl Berry  <karl@gnu.org>
11293         * config/srclistvars.sh (GETTEXT): new definition.
11294         * config/srclist.txt: use it for gettext .m4 files.
11295         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
11296         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
11297         and continuing into April.
11299 2015-04-07  Daiki Ueno  <ueno@gnu.org>
11301         uniname/uniname-tests: fix failure due to alias
11302         Reported by Jack Howarth in:
11303         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
11304         * tests/uniname/test-uninames.c (name_has_alias): New function.
11305         (test_inverse_lookup): Exclude character name with valid alias,
11306         from randomly generated character names.
11307         (main): Fill unicode_aliases before calling test functions.
11309 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
11311         hash: remove deprecated hash_insert0 function
11312         * lib/hash.h (hash_insert0): Remove deprecated function.
11313         * lib/hash.c (hash_insert0): Likewise.
11315 2015-04-02  Pádraig Brady  <P@draigBrady.com>
11317         mountlist: remove dependency on libmount
11318         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
11319         directly, rather than depending on libmount, which has many
11320         dependencies due to its dependence on libselinux, as detailed at:
11321         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
11322         Note we restrict this to __linux__ as that's probably where this
11323         interface will remain.  If ever porting, it would be best
11324         to first pull the makedev() wrapper from coreutils to a gnulib module.
11325         Note also we don't add a getline dependency to the mountlist module,
11326         as all Linux versions are sufficient.
11328 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
11330         stddef: port to pre-C11 GCC on x86
11331         On this platform, max_align_t should have an alignment of 8 even
11332         though the storage alignments of double, long, etc. max out at 4.
11333         Inspired by a comment of Andreas Schwab's here:
11334         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
11335         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
11336         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
11337         * tests/test-stddef.c: Test __alignof__ too, if available.
11339 2015-03-24  Pádraig Brady  <P@draigBrady.com>
11341         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
11342         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
11344 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
11346         yesno: make EOL optional in ENABLE_NLS case also (trival)
11347         * lib/yesno.c (yesno): Check for EOL before replacing.
11348         * tests/test-yesno.sh: Add a test case (test along with gettext).
11350 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
11352         fdopendir-tests: test it does not close its arg
11353         * tests/test-fdopendir.c (main): Test that fdopendir does not
11354         close its argument.  From a suggestion by David Grayson in:
11355         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
11357 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
11359         gitlog-to-changelog: trim trailing white space
11360         * build-aux/gitlog-to-changelog (main):
11361         Trim trailing white space from commit message lines.
11362         This is helpful for processing the GNU Emacs repository,
11363         which dates back to 1985 and contains a lot of such lines.
11365         gitlog-to-changelog: new option --ignore-matching
11366         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
11367         Support new option --ignore-matching=PAT, which ignores all
11368         commit messages whose first line matches PAT.
11370 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
11372         fdopendir: port better to MinGW
11373         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
11374         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
11375         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
11376         * modules/fdopendir (Depends-on): Add dirfd.
11378 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
11380         fdopendir: fix typo in comment
11381         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
11383 2015-03-09  Eric Blake  <eblake@redhat.com>
11385         error: document all entry points provided
11386         * doc/glibc-functions/error_print_progname.texi
11387         (error_print_progname): Mention the error module.
11388         * doc/glibc-functions/error_at_line.texi (error_at_line):
11389         Likewise.
11390         * doc/glibc-functions/error_message_count.texi
11391         (error_message_count): Likewise.
11392         * doc/glibc-functions/error_one_per_line.texi
11393         (error_one_per_line): Likewise.
11395 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
11397         vasnprintf: pacify clang 3.5.0
11398         Problem reported by Werner Lemberg in:
11399         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
11400         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
11401         The casts aren't needed, since the characters in question are ASCII.
11403 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
11405         glob, etc.: port to MSVC v18 on MS-Windows 8.1
11406         * lib/dirent--.h (GNULIB_defined_opendir):
11407         * lib/dirent.in.h (GNULIB_defined_opendir)
11408         (GNULIB_defined_closedir):
11409         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
11410         #undef only if Gnulib defined it.
11412         poll: port to MSVC v18 on MS-Windows 8.1
11413         Problem reported by Gisle Vanem in:
11414         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
11415         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
11416         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
11417         Add sys_socket.
11419 2015-02-24  Pádraig Brady  <P@draigBrady.com>
11421         tests: support stderr verification with returns_()
11422         * tests/init.sh (returns_): Disable tracing for this wrapper
11423         function, so that stderr of the wrapped command is unchanged,
11424         allowing for verification of the contents.
11426 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
11428         passfd: avoid valgrind uninitalised data warning
11429         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
11430         to include just the fd we've initialized, rather than including
11431         the extra space used for alignment.
11433 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
11435         uniwbrk/u32-wordbreaks-tests: fix copyright
11436         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
11438         dup2: doc and test for Android bug
11439         Reported by Kevin Cernekee in:
11440         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
11441         * doc/posix-functions/dup2.texi (dup2): Document the bug.
11442         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
11444 2015-02-23  Kevin Cernekee  <cernekee@google.com>
11446         Replace dup2() on Android
11447         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
11448         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
11449         fails.  Using rpl_dup2() fixes this because it has an explicit test
11450         for this condition.
11452 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
11454         Android doesn't define RLIM_SAVED_*
11455         Portability problem reported by Kevin Cernekee in:
11456         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
11457         * doc/posix-headers/sys_resource.texi (sys/resource.h):
11458         Mention the portability problem.
11459         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
11460         Define if not defined.
11461         * m4/dup2.m4 (gl_FUNC_DUP2):
11462         * m4/fcntl.m4 (gl_FUNC_FCNTL):
11463         Likewise.
11465 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
11467         vasnprintf-posix-tests: use consistent test
11468         * tests/test-vasnprintf-posix.c (test_function):
11469         Use "<" in assert instead of "<=", for consistency with other tests.
11471 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
11473         printf, isinf, etc.: noncanonical != NaN
11474         Do not require that isinf, printf, etc. treat noncanonical
11475         values as NaNs.  Instead, require only that they do not crash.
11476         Problem reported by Joseph Myers in:
11477         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
11478         * doc/posix-functions/dprintf.texi (dprintf):
11479         * doc/posix-functions/fprintf.texi (fprintf):
11480         * doc/posix-functions/isfinite.texi (isfinite):
11481         * doc/posix-functions/isinf.texi (isinf):
11482         * doc/posix-functions/isnan.texi (isnan):
11483         * doc/posix-functions/printf.texi (printf):
11484         * doc/posix-functions/snprintf.texi (snprintf):
11485         * doc/posix-functions/sprintf.texi (sprintf):
11486         * doc/posix-functions/vdprintf.texi (vdprintf):
11487         * doc/posix-functions/vfprintf.texi (vfprintf):
11488         * doc/posix-functions/vprintf.texi (vprintf):
11489         * doc/posix-functions/vsnprintf.texi (vsnprintf):
11490         * doc/posix-functions/vsprintf.texi (vsprintf):
11491         Document this.
11492         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
11493         * m4/isinf.m4 (gl_ISINFL_WORKS):
11494         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
11495         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
11496         * tests/test-isfinite.c (test_isfinitel):
11497         * tests/test-isinf.c (test_isinfl):
11498         * tests/test-isnan.c (test_long_double):
11499         * tests/test-isnanl.h (main):
11500         * tests/test-snprintf-posix.h (test_function):
11501         * tests/test-sprintf-posix.h (test_function):
11502         * tests/test-vasnprintf-posix.c (test_function):
11503         * tests/test-vasprintf-posix.c (test_function):
11504 o       Test only that noncanonical values do not cause crashes, not that
11505         they are treated as NaNs.  In some cases this means a larger
11506         output buffer is needed.
11508 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
11510         fts: remove redundant close() (trivial)
11511         * lib/fts.c (fts_read): Remove redundant call to close().
11512         Spotted by coverity.
11514 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
11516         getdtablesize: port better for Android
11517         Problem reported by Kevin Cernekee in:
11518         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
11519         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
11520         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
11521         Instead, just use getrlimit, taking care to avoid Cygwin bug.
11523         poll: fixes for large fds
11524         * lib/poll.c (poll): Don't check directly for NFD too large.
11525         Don't rely on undefined behavior in FD_SET when an arg exceeds
11526         FD_SETSIZE.  Always set revents afterwards, even if to zero.
11527         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
11528         as that makes the test a bit stricter.
11530 2015-02-19  Kevin Cernekee  <cernekee@google.com>
11532         fcntl: Fix cross compiling
11533         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
11534         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
11536 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
11538         dup2, fcntl: cross-compile better for Android
11539         Problem reported by Kevin Cernekee in:
11540         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
11541         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
11542         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
11543         there's little need to cross-compile for older kernels nowadays.
11544         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
11545         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
11547 2015-02-18  Pádraig Brady  <P@draigBrady.com>
11549         getopt: don't crash on memory exhaustion
11550         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
11551         memory exhaustion.  In the _LIBC case we use alloca() as is
11552         already done in glibc, so we don't need to consider the separate
11553         error path in that awkward case.  Also fix a memory leak when
11554         ambiguous options are present.
11555         Reported by Tobias Stoeckmann
11557 2015-02-17  Mike Miller  <mtmiller@ieee.org>
11559         tempname: allow compilation with C++ (trivial)
11560         * lib/tempname.h [C++]: Specify extern "C" linkage.
11561         * lib/tempname.h (try_tempname):
11562         * lib/tempname.c (__try_tempname, __gen_tempname):
11563         Rename 'try' to 'tryfunc'.
11565 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
11567         dup2, fcntl: port to AIX
11568         * m4/dup2.m4 (gl_FUNC_DUP2):
11569         * m4/fcntl.m4 (gl_FUNC_FCNTL):
11570         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
11571         The former works on AIX 7.1 but the latter does not.
11572         Also, this may work better with Android; see:
11573         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
11575 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
11577         getdtablesize, dup2, fcntl: port to Android
11578         Problem reported by Kevin Cernekee in:
11579         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
11580         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
11581         Mention that getdtablesize doesn't work on Android.
11582         * lib/getdtablesize.c: Use getrlimit substitute only if
11583         getdtablesize is declared.  This should suffice for Cygwin
11584         while not breaking Android.
11585         * m4/dup2.m4 (gl_FUNC_DUP2):
11586         * m4/fcntl.m4 (gl_FUNC_FCNTL):
11587         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
11588         standardized but the latter is not, and sysconf works on Android.
11589         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
11590         Also check that getdtablesize is declared.
11591         This removes the need for a special case for Android.
11593 2015-02-16  Kevin Cernekee  <cernekee@google.com>
11595         localename: Implement gl_locale_name_thread_unsafe for Android
11596         * lib/localename.c: Android API level >= 21 supports two hardcoded
11597         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
11598         the internal __locale_t struct.
11600 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
11602         fts: avoid crash when a cycle is added while traversing
11603         This could be triggered by auto-mounting a recursive bind mount.
11604         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
11605         * lib/fts.c (fts_read): Avoid removing the original hash table item
11606         when leaving a directory that caused a cycle, and preserve the FTS_DC
11607         flag.
11609 2015-02-16  Daiki Ueno  <ueno@gnu.org>
11611         uniname/uniname: support character alias
11612         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
11613         Generate one-way mapping from aliases to codepoints in the
11614         generated tables.  Special case variation selectors to reduce
11615         table size.
11616         * lib/uniname/uniname.c (unicode_character_name): Special case
11617         variation selectors.
11618         (unicode_name_character): Special case variation selectors and
11619         their aliases.
11620         * lib/uniname/uninames.h: Regenerate.
11621         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
11622         * modules/uniname/uniname-tests (Files): Add
11623         tests/uniname/NameAliases.txt.
11624         * tests/uniname/test-uninames.c: Mark as static.
11625         (ALIASLEN): Define.
11626         (struct unicode_alias): New struct.
11627         (unicode_aliases): New variable.
11628         (fill_aliases): New function.
11629         (test_alias_lookup): New test function.
11630         (main): Run the 'test_alias_lookup' test if the second argument is
11631         given.
11632         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
11633         second argument.
11635 2015-02-11  Kevin Cernekee  <cernekee@google.com>
11637         Fix FILE struct compatibility with Android API level >= 21
11638         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
11639         __sferror.  Recent versions of Bionic's stdio.h no longer define
11640         __sferror.
11641         * lib/fbufmode.c: Likewise.
11642         * lib/fflush.c: Likewise.
11643         * lib/fpurge.c: Likewise.
11644         * lib/freadable.c: Likewise.
11645         * lib/freadahead.c: Likewise.
11646         * lib/freading.c: Likewise.
11647         * lib/freadptr.c: Likewise.
11648         * lib/freadseek.c: Likewise.
11649         * lib/fseeko.c: Likewise.
11650         * lib/fseterr.c: Likewise.
11651         * lib/fwritable.c: Likewise.
11653         Assume unbroken ungetc() on Android
11654         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
11655         test case passed when running on an Android host, and the code
11656         hasn't really changed since 2009.
11658         getdtablesize: Fix Android build
11659         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
11660         versions have this symbol in the .so library (at least 32-bit
11661         platforms) but are missing the declaration in the header file,
11662         causing the m4 logic to guess incorrectly.
11664         localename: Fix Android build
11665         * modules/localename (Depends-on): Add langinfo.
11667         getugroups: Fix Android build
11668         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
11669         functions.
11671         euidaccess: Fix Android build
11672         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
11673         AT_EACCESS gets declared.
11675         linkat_nofollow: Add fallback case for cross compiling
11676         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
11678         net_if: Handle content-free <net/if.h> system headers
11679         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
11680         struct if_nameindex.  If not, enable the replacement header.
11682         signal_h: Fix Android build
11683         * lib/signal.in.h: Add Android to the list of platforms that declare
11684         pthread_sigmask() in <pthread.h> instead of <signal.h>.
11686         duplocale: Fix Android build of duplocale-tests
11687         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
11688         is included by test-duplocale.c (but not by duplocale.c).
11689         * modules/duplocale-tests (configure.ac): Check for monetary.h.
11690         * tests/test-duplocale.c: Skip test if monetary.h is absent.
11691         * doc/posix-headers/monetary.texi: Add Android to the list of
11692         platforms missing monetary.h.
11694 2015-02-11  Pádraig Brady  <P@draigBrady.com>
11696         tests: avoid recent -Werror=unused-variable regression in test-locale
11697         * tests/test-locale.c (main): Reference the variable to avoid the
11698         "unused variable" warning.
11700 2015-02-11  Pádraig Brady  <P@draigBrady.com>
11702         maint: various whitespace cleanups in tempname
11703         * lib/tempname.c: Normalize spacing and line length.
11704         * lib/tempname.h: Likewise.
11705         * modules/tempname: Likewise.
11707 2015-02-11  Pádraig Brady  <P@draigBrady.com>
11709         tests: provide returns_() to simplify exit status checking
11710         * tests/init.sh (returns_): A new function for use in tests,
11711         to allow for easier checking of return values, where you expect
11712         a command to exit with failure status.  By checking for a particular
11713         exit code, you don't hide any crashes for example.
11715 2015-02-11  Pádraig Brady  <P@draigBrady.com>
11717         mountlist: only use libmount when specified
11718         There are currently many shared libs dependencies introduced by
11719         libmount with associated runtime and virt mem overhead.
11720         Therefore don't enable by default.
11721         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
11723 2015-02-08  Daiki Ueno  <ueno@gnu.org>
11725         uniname/unimame-tests: don't link with -lunistring
11726         * modules/uniname/uniname-tests (Makefile.am): Don't link against
11727         $(LIBUNISTRING).  Document the rationale why we need to
11728         conditionalize the test.
11730 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
11732         fstrcmp: don't assume strlen < INT_MAX
11733         * lib/fstrcmp.c: Include stddef.h and stdint.h.
11734         (uintptr_t): Remove, as we're now assuming stdint.
11735         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
11736         Prefer ptrdiff_t to int when the value could exceed INT_MAX
11737         if the input string is long.
11738         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
11739         uintptr_t to size_t when the underlying value is a pointer casted
11740         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
11741         * modules/fstrcmp (Depends-on): Add stdint.
11743         diffseq: prefer ptrdiff_t to ssize_t
11744         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
11745         ptrdiff_t is the natural type for signed indexes.
11746         On a few older platforms, ssize_t is narrower than size_t.
11748         xalloc: fix typo that suppressed warnings
11749         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
11750         This typo, introduced a couple of years ago, mistakenly suppressed
11751         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
11752         -Wmissing-declarations warnings.
11754         full-read: fix license notice typo
11755         * lib/full-read.h: Remove a stray line in the license notice.
11756         Reported by Sam Ellis in: http://bugs.gnu.org/19808
11758         crypto/gc: fix a -Wswitch warning
11759         Reported by Bruce Korb in:
11760         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
11761         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
11763 2015-02-03  Pádraig Brady  <P@draigBrady.com>
11765         gnulib-tool: fix handling of patch(1) diagnostics
11766         * gnulib-tool: Send diagnostics from patch(1) to stderr,
11767         as otherwise gnulib-tool will reparse that output and attempt
11768         to lookup modules.
11770 2015-02-03  Pádraig Brady  <P@draigBrady.com>
11772         bootstrap: exit immediately upon gnulib-tool failure
11773         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
11774         This was noticed when gnulib-tool exited early due to failure
11775         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
11776         but various confusing errors were then given as the build proceeded.
11778 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
11780         symlinkat: include all required header files
11781         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
11782         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
11783         Reported at https://savannah.gnu.org/bugs/index.php?44151
11784         and by Jack Howarth.
11786 2015-01-29  Pádraig Brady  <P@draigBrady.com>
11788         localename: support Solaris 12 and illumos
11789         * lib/localename.c (gl_locale_name_thread_unsafe): call
11790         getlocalename_l() on newer __sun platforms.
11791         Reported by Alexander Pyhalov.
11792         Fix suggested by Rich Burridge.
11794 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
11796         locale: fix tests on illumos (trivial)
11797         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
11798         so move from global scope to main().
11800 2015-01-24  Daiki Ueno  <ueno@gnu.org>
11802         unictype: avoid undefined left-shift behavior
11803         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
11804         gcc's -fsanitize=shift and running its tests triggered:
11805           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
11806             places cannot be represented in type 'int'
11807         Cast LHS to 'unsigned int' after integer promotion.
11808         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
11809         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
11811 2015-01-20  Daiki Ueno  <ueno@gnu.org>
11813         libunistring: bump version of unitypes dependants
11814         Due to the header file search order, all the headers which depend
11815         on unitypes.h need to be generated, when the preinstalled
11816         libunistring is older.
11817         * modules/unicase/base (configure.ac): Bump minimum version to
11818         0.9.4.
11819         * modules/uniconv/base (configure.ac): Likewise.
11820         * modules/unilbrk/base (configure.ac): Likewise.
11821         * modules/uninorm/base (configure.ac): Likewise.
11822         * modules/unistdio/base (configure.ac): Likewise.
11823         * modules/unistr/base (configure.ac): Likewise.
11824         * modules/uniwbrk/base (configure.ac): Likewise.
11825         * modules/uniwidth/base (configure.ac): Likewise.
11827 2015-01-20  Daiki Ueno  <ueno@gnu.org>
11829         unictype/category-none: fix link with libunistring
11830         Since _UC_CATEGORY_NONE is not a public symbol, it will be
11831         prefixed with "libstring_" when compiled as part of libunistring.
11832         To avoid undefined symbol at link time, increase the minimum
11833         version when the dependant modules are updated.
11834         * modules/unictype/category-none (configure.ac): Bump minimum
11835         version to 0.9.5.
11837 2015-01-20  Daiki Ueno  <ueno@gnu.org>
11839         unitypes: fix build with installed libunistring
11840         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
11841         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
11842         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
11844 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
11846         time: port to MinGW32 3.21
11847         Problem reported by Eli Zaretskii in:
11848         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
11849         * lib/time.in.h:
11850         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
11851         * modules/time (Depends-on):
11852         Fall back on unistd.h if the other include files don't define
11853         struct timespec.
11855         update-copyright: apply to self
11856         * build-aux/update-copyright: Fix copyright date.  How ironic!
11858 2015-01-15  Daiki Ueno  <ueno@gnu.org>
11860         libunistring: update to Unicode 7.0.0
11861         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
11862         Manichaean names.
11863         * lib/unictype/joininggroup_name.h: Likewise.
11864         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
11865         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
11866         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
11867         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
11868         (fill_arabicshaping, joining_group_as_c_identifier): Support those
11869         enum values.
11870         (is_property_alphabetic): Accept newly added characters to
11871         cuneiform numeric signs.
11872         (is_property_default_ignorable_code_point): Reject U+0605.
11873         (FIELDLEN): Increase from 120 to 160.
11874         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
11875         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
11876         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
11877         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
11878         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
11879         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
11880         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
11881         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
11882         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
11883         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
11884         U+1E8D0..U+1E8D6.
11885         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
11886         * tests/uniwidth/test-uc_width2.sh: Same updates as in
11887         lib/uniwidth/width.c.
11888         * all generated files under lib/uni* and tests/uni*: Regenerate.
11890 2015-01-14  Daiki Ueno  <ueno@gnu.org>
11892         libunistring: update to Unicode 6.3.0
11893         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
11894         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
11895         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
11896         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
11897         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
11898         Update WB5, WB9, WB10, WB13a, and WB13b.
11899         * tests/uniwbrk/test-uc-wordbreaks.c
11900         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
11901         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
11902         (UC_BIDI_PDI): New enumeration values.
11903         (bidi_category_byname): Support those enum values.
11904         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
11905         dedicated property assigned.
11906         (is_property_case_ignorable): Check 0x0027.
11907         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
11908         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
11909         (output_wbp): Support those enum values.
11910         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
11911         (UC_BIDI_PDI): New enumeration values.
11912         * lib/unictype/bidi_byname.gperf: Add those property names.
11913         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
11914         U+180E, U+1A1B, and U+2066..U+2069.
11915         * tests/uniwidth/test-uc_width2.sh: Same updates as in
11916         lib/uniwidth/width.c.
11917         * all generated files under lib/uni* and tests/uni*: Regenerate.
11919 2015-01-14  Daiki Ueno  <ueno@gnu.org>
11921         libunistring: update to Unicode 6.2.0
11922         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
11923         (unilbrk_table): Adjust table size.
11924         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
11925         for LBP_RI.
11926         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
11927         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
11928         Normalize table index skipping ignored properties.
11929         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
11930         WBP_EXTEND and WBP_FORMAT, which are now computed without using
11931         the table.
11932         * lib/uniwbrk/wbrktable.h: Adjust table size.
11933         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
11934         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
11935         Support rule GB8a.
11936         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
11937         * tests/unigbrk/test-uc-is-grapheme-break.c
11938         (graphemebreakproperty_to_string): Support GBP_RI.
11939         * tests/uniwbrk/test-uc-wordbreaks.c
11940         (wordbreakproperty_to_string): Support WBP_RI.
11941         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
11942         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
11943         (output_lbp): Support LBP_RI.  Adjust some characters changed from
11944         LBP_AL to LBP_ID.
11945         (output_lbp): Support LBP_RI.
11946         (WBP_RI): New enumeration value.
11947         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
11948         (output_wbp): Support WBP_RI.
11949         (GBP_RI): New enumeration value.
11950         (output_gbp_test, fill_org_gbp): Support GBP_RI.
11951         * all generated files under lib/uni* and tests/uni*: Regenerate.
11953 2015-01-14  Daiki Ueno  <ueno@gnu.org>
11955         libunistring: update to Unicode 6.1.0
11956         * lib/gen-uni-tables.c (output_joining_group): Switch to
11957         3-level table to accommodate joining groups defined with higher
11958         codepoint value.  Since there are only 88 groups defined in
11959         Unicode 7.0.0, use 7-bit packed format for level3 entries.
11960         (get_lbp): Update for Unicode 6.1.0.
11961         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
11962         3-level table.
11963         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
11964         joining group name.
11965         * lib/unictype/joininggroup_name.h: Likewise.
11966         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
11967         (unilbrk_table): Adjust table size.
11968         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
11969         for LBP_HL.
11970         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
11971         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
11972         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
11973         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
11974         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
11975         U+302E..U+302F.
11976         * tests/uniwidth/test-uc_width2.sh: Same updates as in
11977         lib/uniwidth/width.c.
11978         * all generated files under lib/uni* and tests/uni*: Regenerate.
11979         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
11981 2015-01-15  Daiki Ueno  <ueno@gnu.org>
11983         uniwbrk/u32-wordbreaks-tests: add conformance test
11984         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
11985         tests/uniwbrk/test-uc-wordbreaks.c,
11986         tests/uniwbrk/test-uc-wordbreaks.sh, and
11987         tests/uniwbrk/WordBreakTest.txt.
11988         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
11989         test-uc-wordbreaks to $(check_PROGRAMS), and define
11990         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
11991         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
11992         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
11994 2015-01-15  Daiki Ueno  <ueno@gnu.org>
11996         uniwbrk: ignore Extended/Format characters at BOL not BOS
11997         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
11998         characters if the previous character property is one of
11999         WBP_NEWLINE, WBP_CR, and WBP_LF.
12001 2015-01-11  Jim Meyering  <meyering@fb.com>
12003         test-strstr.c: avoid a trivial leak
12004         * tests/test-strstr.c (main): Free haystack.
12006         update-copyright: recognize groff's \(co marker
12007         * build-aux/update-copyright (circle_c_re): Also accept
12008         uses of \(co, as found in gzip.1.
12010 2015-01-08  Pádraig Brady  <P@draigBrady.com>
12012         maint.mk: fix compatibility with OS X nm
12013         * top/maint.mk (_gl_tight_scope): Use the -g option to
12014         show exported items rather than the -e option which is
12015         ignored on all platforms except OS X where it gives an error.
12016         Reported by Assaf Gordon.
12018 2015-01-07  KO Myung-Hun  <komh@chollian.net>
12020         localcharset: improve charset detection on OS/2
12021         Use system codepage when appropriate.  Map OS/2 codepages to
12022         GNU canonical charset names if possible.
12023         * lib/config.charset: Don't output aliases if "$os" is os2*.
12024         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
12025         result for OS/2.
12026         (locale_charset) [OS2]: Use system codepage if codeset is omitted
12027         from the locale name which is neither "C" nor "POSIX".
12029 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
12031         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
12032         This reverts the last patch but one, as it shouldn't be needed now
12033         that the typo is fixed.
12034         * lib/count-leading-zeros.h (count_leading_zeros_ll):
12035         * lib/count-trailing-zeros.h:
12036         * lib/count-one-bits.h:
12037         Go back to using 64-bit intrinsics.
12039         count-leading-zeros: fix pragma typos
12040         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
12041         Fix typos in declaration of intrinsics when _MSC_VER.
12043 2015-01-06  Pádraig Brady  <P@draigBrady.com>
12045         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
12046         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
12047         intrinsics in this case.
12048         * lib/count-trailing-zeros.h: Likewise.
12049         * lib/count-one-bits.h: Likewise.
12051 2015-01-06  Daiki Ueno  <ueno@gnu.org>
12053         uniname/uniname: update to Unicode 7.0.0
12054         To accommodate new characters added since Unicode 5.1.0, this
12055         changes the internal representation of codepoint ranges.
12056         Previously, we grouped codepoint ranges by manually assigned 4-bit
12057         tag, which only allowed 16 groups.  This removes the limitation by
12058         switching to binary search on a table.  For the detail rationale
12059         and the benchmark results, see:
12060         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
12061         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
12062         to INDEX, as it no longer represents a codepoint.
12063         (range): New struct.
12064         (main): Switch to intervals list from a bit-pattern based
12065         classification.
12066         * lib/uniname/uninames.h: Regenerate.
12067         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
12068         * modules/uniname/base (configure.ac): Bump minimum version to
12069         0.9.5.
12070         * modules/uniname/uniname (configure.ac): Bump minimum version to
12071         0.9.5.
12073 2015-01-05  Eric Blake  <eblake@redhat.com>
12075         doc: update INSTALL from autoconf
12076         * doc/install.texi: Resync from autoconf.
12077         * doc/INSTALL: Reflect recent autoconf update.
12078         * doc/INSTALL.ISO: Likewise.
12079         * doc/INSTALL.UTF-8: Likewise.
12081         stdio: fix use of PRIdMAX on modern mingw
12082         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
12083         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
12084         to work with modern mingw.
12086 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
12088         pthread: detect git mingw builds with only partial pollution
12089         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
12090         pollution, as seen temporarily in Fedora 21.
12092 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
12094         lib-symbol-versions: cache script check
12095         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
12096         Cache the check for linker version scripts.
12097         From a suggestion by Christophe Curis in:
12098         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
12100 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
12102         maint: fix grammar nits in propername (trivial change)
12103         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
12104         and use an adequate verb and tense.
12106 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
12108         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
12109         * module/gendocs: Add 'doc/gendocs_template_min'.
12111         * build-aux/gendocs.sh: Change email addresses and upstream URLs
12112         from to Gnulib's.
12113         (scripturl, templateurl): Adjust accordingly.
12115 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
12117         gendocs: copyright date and version fix
12118         Reported by Karl Berry in:
12119         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
12120         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
12121         Fix copyright date.
12122         * build-aux/gendocs.sh (scriptversion): Update.
12124 2015-01-01  Karl Berry  <karl@gnu.org>
12126         * doc/install.texi,
12127         * build-aux/mdate-sh,
12128         * build-aux/depcomp,
12129         * build-aux/config.guess,
12130         * build-aux/config.sub,
12131         * build-aux/ar-lib,
12132         * build-aux/compile: revert copyright updates (some from last
12133         year) in slaved files.
12135 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
12137         version-etc: new year
12138         * doc/gnulib.texi:
12139         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
12140         * all files: Run 'make update-copyright'.
12142 2014-12-30  Pádraig Brady  <P@draigBrady.com>
12144         xstrtol: ensure errno is reset
12145         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
12146         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
12148         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
12150 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
12152         utimens: fix dependency typo
12153         * modules/utimens (Depends-on): Remove 'assure'.
12154         This bug was introduced in the recent 'assure' patch.
12156 2014-12-22  Eric Blake  <eblake@redhat.com>
12158         docs: mention why libgen.h is bad
12159         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
12161 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
12163         assure: new module
12164         This works better than 'assert' when compiling with -DNDEBUG,
12165         as it avoids some compiler diagnostics in that case.
12166         Reported by Norihiro Tanaka in:
12167         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
12168         * MODULES.html.sh (func_all_modules): Add 'assure'.
12169         * lib/assure.h, modules/assure: New files.
12170         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
12171         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
12172         Prefer 'assure' to 'assert'.
12173         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
12174         * modules/chdir-long, modules/cycle-check, modules/fchdir:
12175         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
12176         Depend on 'assure'.
12178 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
12180         stdalign: port better to HP compilers
12181         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
12182         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
12184         stdalign: work around Apple GCC 4.0 bug
12185         Reported by David Fang in:
12186         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
12187         * lib/stdalign.in.h (_Alignas):
12188         * m4/stdalign.m4 (gl_STDALIGN_H):
12189         Do not use aligned attribute with GCC 4.0 on Apple.
12191 2014-12-16  Pádraig Brady  <P@draigBrady.com>
12193         getcwd: fix test failure on OS X 10.9
12194         * m4/getcwd-path-max.m4: Avoid the replacement if it
12195         won't be effective due to the PATH_MAX limitation of lstat().
12196         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
12197         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
12198         for this case for use in tests, and also exclude this
12199         case when setting REPLACE_GETCWD.
12200         * tests/test-getcwd.c (test_long_name): Restrict the
12201         tested path length so that lstat() will not be passed
12202         a path greater than PATH_MAX.
12203         Also key a test condition on HAVE_OPENAT_SUPPORT rather
12204         than AT_FDCWD, since the latter is set unconditionally
12205         since Sep 2009 in commit 52c658e9.
12207 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
12209         parse-datetime: avoid a compiler warning with byacc (trivial)
12210         * lib/parse-datetime.y (yylex): Use the same prototype in the
12211         function definition as the declaration, to avoid a -Wstrict-prototypes
12212         warning seen when using byacc.
12214 2014-12-12  Daiki Ueno  <ueno@gnu.org>
12216         unicase/locale-language-tests: fix LOCALE_FR test
12217         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
12218         a French locale with traditional encoding.
12219         Reported by umerqayam in:
12220         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
12222 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
12224         stddef: support C11's max_align_t
12225         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
12226         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
12227         Do not undef, as that might cause max_align_t to be defined twice.
12228         Instead, change use to check for _GL_STDDEF_WINT_T too.
12229         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
12230         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
12231         Check for max_align_t.
12232         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
12233         * modules/stddef-tests (Depends-on): Add stdalign.
12234         * tests/test-stddef.c: Test max_align_t.
12236 2014-12-11  Daiki Ueno  <ueno@gnu.org>
12238         unistd: fix iOS check conditional
12239         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
12240         as 0 or 1 in <TargetConditionals.h>, and the previous check always
12241         yielded true on non-iOS environment.
12242         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
12243         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
12244         they are defined.
12246 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
12248         posixtm: avoid compiler warning in a better way
12249         * lib/posixtm.c (IF_LINT): Remove.
12250         (year, posix_time_parse):
12251         Return true (not 0) if successful.  All callers changed.
12252         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
12254 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
12256         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
12257         started with '/' on EMX.
12259 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
12261         freopen: workaround freopen() on OS/2 kLIBC
12262         * lib/freopen.c (rpl_freopen): Workaround.
12263         * m4/freopen.m4: Add os2* case.
12265         get_shared_library_fullname: port to EMX
12266         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
12267         on EMX, respectively.
12268         (_DLL_InitTerm): New on EMX.
12269         (get_shared_library_fullname): Implement on EMX.
12271         find_executable: port to EMX
12272         * lib/progreloc.c (find_executable): Implement on EMX.
12274         sched: check struct sched_param in spawn.h as well
12275         * lib/sched.in.h: Include spawn.h on kLIBC.
12276         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
12278 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
12280         bootstrap: Allow perl modules in $buildreq
12281         * build-aux/bootstrap: Add case for perl modules.
12283 2014-12-08  Pádraig Brady  <P@draigBrady.com>
12285         apply _GL_ATTRIBUTE_PURE to some inline functions
12286         clang 3.4.2 flagged these inline functions as pure
12287         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
12288         * lib/sig-handler.h (get_handler): Likewise.
12289         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
12290         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
12292 2014-12-06  Pádraig Brady  <P@draigBrady.com>
12294         vasnprintf: fix potential use after free
12295         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
12296         flagged by clang-analyzer 3.4.2.
12298 2014-12-05  Pádraig Brady  <P@draigBrady.com>
12300         filevercmp, posixtm: avoid compiler warnings with -O3
12301         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
12302         * lib/posixtm.c: (IF_LINT): Define.
12303         (posix_time_parse): Use it to void a "may be used uninitialized"
12304         warning, seen only with -O3.
12306 2014-12-05  Bruno Haible  <bruno@clisp.org>
12308         Fix LDBL80_WORDS macro on big endian platforms.
12309         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
12310         LDBL80_WORDS macro.
12311         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
12312         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
12313         * tests/test-isfinite.c (test_isfinitel): Likewise.
12314         * tests/test-isinf.c (test_isinfl): Likewise.
12315         * tests/test-isnan.c (test_long_double): Likewise.
12316         * tests/test-isnanl.h (main): Likewise.
12317         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
12318         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
12319         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
12320         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
12321         Reported by Pádraig Brady.
12323 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
12325         git-version-gen: do not print new line characters
12326         * build-aux/git-version-gen: Use printf instead of echo and tr.
12328         gnulib-tool: recognize x:* as an absolute path
12329         * gnulib-tool (func_gnulib_dir): Add ?:* case.
12330         (func_relconcat): Likewise.
12332 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
12334         argp: avoid extraneous translation and mem leak with empty pre doc
12335         * lib/argp-help.c (argp_doc): Never translate the empty string,
12336         when "\v" is the first or last character of the string, as that
12337         has a reserved meaning to return the header info from a po file.
12338         This also fixes a small memory leak in the !post case.
12339         The issue can be seen with this command for example:
12340         LC_MESSAGES=en_US grub2-mknetdir --help
12342 2014-11-27  Daiki Ueno  <ueno@gnu.org>
12344         uniname/uniname-tests: skip if system's libunistring is used
12345         * modules/uniname/uniname-tests (Makefile.am): Skip test if
12346         uniname/uniname module is not compiled.
12348 2014-11-27  Pádraig Brady  <P@draigBrady.com>
12350         printf: fix configure check on big endian systems
12351         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
12353 2014-11-22  Daiki Ueno  <ueno@gnu.org>
12355         pipe-filter-gi, pipe-filter-ii: port to AIX
12356         On AIX 7.1, 'select' is defined as static and cannot be referred
12357         to from inline function.
12358         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
12359         the definition...
12360         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
12361         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
12363 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
12365         gitlog-to-changelog: add --until
12366         * build-aux/gitlog-to-changelog: Support new --until option.
12367         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
12369 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
12371         extern-inline: update commentary about GCC bugs
12372         * m4/extern-inline.m4: Add another GCC bug number to comments.
12374 2014-11-13  Daiki Ueno  <ueno@gnu.org>
12376         gen-uni-tables: untabify
12377         * lib/gen-uni-tables.c: Untabify.
12379 2014-11-13  Daiki Ueno  <ueno@gnu.org>
12381         gen-uni-tables: check out-of-range values added to 3-level tables
12382         * lib/gen-uni-tables.c (output_category, output_bidi_category)
12383         (output_joining_type, output_ident_category): Check out-of-range
12384         values added to 3-level tables.
12386 2014-11-13  Daiki Ueno  <ueno@gnu.org>
12388         gen-uni-tables: utilize 'assert'
12389         * lib/gen-uni-tables.c: Include <assert.h>.
12390         (output_category, output_combclass, output_decimal_digit_test)
12391         (output_decimal_digit, output_digit_test, output_digit)
12392         (output_numeric, get_mirror_value, fill_properties)
12393         (fill_property30, is_property_alphabetic)
12394         (is_property_default_ignorable_code_point)
12395         (is_property_uppercase, is_property_lowercase)
12396         (is_property_cased, is_property_case_ignorable)
12397         (is_property_changes_when_lowercased, is_property_iso_control)
12398         (is_property_math, fill_arabicshaping, output_joining_group)
12399         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
12400         (output_wbp, fill_org_gbp, get_decomposition)
12401         (output_decomposition, fill_composition_exclusions)
12402         (debug_output_composition_tables, output_composition_tables)
12403         (redistribute_casefolding_rules, output_casing_rules): Use
12404         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
12405         reporting.
12407 2014-11-13  Daiki Ueno  <ueno@gnu.org>
12409         gen-uni-tables: cosmetic improvements
12410         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
12411         variables specification.
12412         (is_outdigit): Remove unused function.
12414 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
12416         fcntl-h-tests: port to PA-RISC GNU/Linux
12417         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
12419 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
12421         fts: port to C89
12422         Problem reported for MSVC 16 by Gisle Vanem in:
12423         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
12424         * lib/fts.c (fts_build): Avoid declaration before statement.
12426 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
12428         unistd: port to iOS
12429         Problem reported by André Klitzing in:
12430         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
12431         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
12433 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
12435         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
12436         Problem reported by Alan Modra in:
12437         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
12438         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
12439         Always cast the function arg, reverting this part of the previous
12440         change.
12442 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
12444         obstack: avoid potentially-nonportable function casts
12445         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
12446         Remove, replacing with ...
12447         (call_chunkfun, call_freefun): New static functions.
12448         All uses changed.  Avoid potentially-nonportable casts.
12449         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
12450         (_obstack_begin_worker): Omit last two args, since they
12451         rely on potentially-nonportable casts.  All callers changed.
12452         * lib/obstack.h (_OBSTACK_CAST): New macro.
12453         Use it everywhere the old API used a potentially-nonportable cast.
12454         The new API doesn't cast.
12455         (struct obstack): Use unions rather than requiring
12456         potentially-nonportable casts.
12457         (obstack_chunkfun, obstack_freefun): Return void.
12459 2014-11-03  Alan Modra  <amodra@gmail.com>
12461         obstack: fix macro return values
12462         * lib/obstack.h (obstack_next_free): Return void *.
12463         (obstack_1grow_fast, obstack_blank_fast): Return void.
12464         For __GNUC__ macros:
12465         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
12466         For !__GNUC__ macros:
12467         (obstack_make_room, obstack_grow, obstack_grow0)
12468         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
12470 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
12472         obstack: do not assume system-supplied obstack is size_t safe
12473         * m4/obstack.m4: New file.
12474         * modules/obstack (Files): Add it.
12476         obstack: port to platforms that #define __alignof__
12477         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
12478         not if !_LIBC.  We don't know of any platforms that #define
12479         __alignof__, but it might be useful in tests.  Conversely,
12480         glibc assumes GCC.
12482 2014-11-03  Pádraig Brady  <P@draigBrady.com>
12484         linkat: don't unconditionally replace on GNU/Linux
12485         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
12486         was redundant for a few reasons.  It was present to support compiling
12487         on new systems but running on the old narrow window of Linux 2.6.1[67].
12488         It setup and cleaned up test files which weren't actually used.
12489         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
12490         implicit in the following check.
12492 2014-11-03  Pádraig Brady  <P@draigBrady.com>
12494         linkat: wrap to handle symlinks on OS X 10.10
12495         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
12496         but not usable because it doesn't support creating hardlinks
12497         to symlinks.  Therefore add a generic test for this capability
12498         and fallback to our emulation if linkat() fails with ENOTSUP.
12500 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
12502         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
12503         * doc/posix-functions/open.texi (open):
12504         * doc/posix-functions/openat.texi (openat):
12505         Document that these functions do not set errno to ELOOP when
12506         a symlink is opened with O_NOFOLLOW.
12508 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
12510         obstack: add NEWS entry for recent incompatible changes
12511         * NEWS: Describe recent changes.
12513 2014-10-30  Pádraig Brady  <P@draigBrady.com>
12515         mountlist: don't use libmount to decide on dummy/remote
12516         * lib/mountlist.c (read_file_system_list): Don't use the libmount
12517         routines to determine whether a file system is dummy or remote,
12518         as they're not currently compatible.  For example the remoteness
12519         is determined on file system type (for which the list seems incomplete),
12520         rather than simply checking for a ':' in the device name.
12521         Also libmount currently determines that 'tmpfs' is a dummy file system
12522         even though it has associated storage.
12524 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
12526         obstack: prefer __alignof__ to alignof
12527         This is for portability to pre-4.7 GCC when compiling glibc.
12528         See Joseph S. Myers in:
12529         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
12530         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
12531         New macro, defined by including and using <alignof.h>.
12532         (MAX): New macro.
12533         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
12534         Do not use enums as they are not portable to some broken compilers.
12535         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
12537         obstack: prefer alignof to calculating alignments by hand
12538         * lib/obstack.c: Include <stdalign.h>.
12539         (struct fooalign): Remove.
12540         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
12541         * modules/obstack (Depends-on): Add stdalign.
12543 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
12545         obstack: use size_t alignments and check for overflow
12546         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
12547         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
12548         * lib/obstack.h (struct obstack.alignment_mask):
12549         Use _OBSTACK_SIZE_T, not int, for alignments.
12550         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
12551         overflows, e.g., when adding the alignment.
12553 2014-10-29  Alan Modra  <amodra@gmail.com>
12555         obstack: 64-bit obstack support, part 3
12556         This finally enables full 64-bit obstack support.  The glibc
12557         shared library specific code is removed from obstack.c too, and
12558         the error handling code conditionally compiled under control of
12559         another macro, _OBSTACK_NO_ERROR_HANDLER.
12560         * lib/obstack.h: Include string.h earlier.
12561         (_OBSTACK_INTERFACE_VERSION): Define.
12562         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
12563         * lib/obstack.c: Don't include shlib-compat.h.
12564         (OBSTACK_INTERFACE_VERSION): Delete.
12565         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
12566         glibc code is compatible with version 2.  Don't include stdio.h for
12567         __GNU_LIBRARY.
12568         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
12569         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
12570         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
12571         glibc shared library specific source.
12573         obstack: 64-bit obstack support, part 2
12574         This gets us 4G obstack support, without changing ABI
12575         compatibility, apart from possibly introducing some
12576         signed/unsigned comparison warnings in code that uses obstack.h.
12577         a) Replace "int" size parameters, return values, and macro local vars
12578            with _OBSTACK_SIZE_T, an "unsigned int" for now.
12579         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
12580         c) Make all obstack macros checking available room use obstack_room.
12581            "next_free + desired > chunk_limit" may wrap the lhs for chunks
12582            allocated near the top of memory.
12583         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
12584         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
12585         in place of "int" size parameters, return values and local vars.
12586         (_CHUNK_SIZE_T): Define.
12587         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
12588         union use an _OBSTACK_SIZE_T integer type.
12589         For __GNUC__ versions of the following macros...
12590         (obstack_room): Rename local var.
12591         (obstack_make_room): Use obstack_room.
12592         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
12593         obstack_int_grow, obstack_blank): Likewise.
12594         (obstack_finish): Use unsigned comparison when comparing aligned
12595         next_free against chunk_limit.
12596         (obstack_free): Cast OBJ to remove possible const qualifier.
12597         For !__GNUC__ versions of the following macros...
12598         (obstack_make_room): Use obstack_room.
12599         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
12600         obstack_int_grow, obstack_blank): Likewise.
12601         (obstack_finish): Use unsigned comparision when comparing aligned
12602         next_free against chunk_limit.
12603         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
12604         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
12605         _OBSTACK_SIZE_T.
12606         (_obstack_begin, _obstack_begin_1): Likewise.
12607         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
12608         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
12610         obstack: 64-bit obstack support, part 1
12611         a) Correct calls to alloc function, to use a size_t arg.  "long" is
12612            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
12613            and "size_t" 64 bits.
12614         b) Consolidate _obstack_begin and _obstack_begin1 code.
12615         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
12616         use "size_t" rather than "long".
12617         (_obstack_begin, _obstack_begin1): Likewise.
12618         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
12619         obstack_chunkfun): Update alloc function casts.
12620         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
12621         (chunkfun_type, freefun_type): New typdefs.
12622         (_obstack_begin_worker): Split out from ..
12623         (_obstack_begin, _obstack_begin_1): ..here.
12625         obstack: tidy part 2
12626         a) Don't be concerned about "not polluting the namespace with stddef.h
12627            symbols" in obstack.h, since gnulib string.h includes stddef.h
12628            anyway, and it seems unlikely that anyone would care.
12629         b) Don't roll our own slow memcpy in _obstack_newchunk.
12630         c) Rename obstack_free to _obstack_free.  This makes the naming
12631            consistent with other obstack functions and obviates the need for
12632            __obstack_free.  Ancient obstack.c defined both obstack_free and
12633            _obstack_free.  We continue to do that for _LIBC via an alias.
12634         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
12635            is clever, but nowadays gcc warns on undefined macros.  You'll get
12636            an undefined macro warning if simulating an old gcc with -U__GNUC__
12637            -U__GNUC_MINOR__ -D__GNUC__=1.
12638         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
12639         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
12640         (__obstack_free): Delete, update refs.
12641         (_obstack_free): Rename from obstack_free.
12642         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
12643         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
12644         * lib/obstack.c: Don't include stddef.h.
12645         (COPYING_UNIT): Delete.
12646         (_obstack_begin): Formatting fix.
12647         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
12648         (_obstack_free): Rename from __obstack_free, update alias.  Move
12649         undef of obstack_free to where it is needed.
12651         obstack: tidy part 1
12652         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
12653            to me, and result in overlong lines after later patches.
12654         b) Move error handling code, to avoid a forward declaration and to
12655            simplify later patches in this series.
12656         * lib/obstack.h (struct obstack <temp>): Rename fields of union
12657         and update all uses.
12658         * lib/obstack.c: Include stdlib.h earlier.
12659         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
12660         in file.
12661         (print_and_abort): Remove now redundant forward declaration.
12663 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
12665         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
12666         Without this change, in bleeding-edge fileutils Autoconf complains
12667         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
12668         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
12669         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
12670         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
12672 2014-10-24  Daiki Ueno  <ueno@gnu.org>
12674         iconv: avoid false detection of non-working iconv
12675         The INBUF arguments of iconv can be either 'const char **'
12676         or 'char **'.  If CC is g++, the difference causes a compile error
12677         and thus leads to a false detection of non-working iconv.
12678         Reported by Eli Zaretskii and Werner LEMBERG in:
12679         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
12680         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
12681         iconv.  Bump serial number.
12683 2014-10-23  Pádraig Brady  <P@draigBrady.com>
12685         bootstrap: print more diagnostics for missing programs
12686         * build-aux/bootstrap: only suppress stderr when checking for
12687         alternative program names.  This supports programs issuing non
12688         standard error messages.
12690 2014-10-23  Pádraig Brady  <P@draigBrady.com>
12692         bootstrap: only update the gnulib submodule
12693         * build-aux/bootstrap: Restrict the "submodule update" command
12694         to the gnulib path.
12696 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
12698         symlinkat: port to AIX 7.1
12699         * doc/posix-functions/symlinkat.texi (symlinkat):
12700         Mention AIX porting problem.
12701         * lib/symlinkat.c: Always include errno.h.
12702         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
12703         * lib/unistd.in.h (symlinkat): Add replacement machinery.
12704         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
12705         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
12706         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
12707         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
12708         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
12710         readlinkat: port to AIX 7.1
12711         * doc/posix-functions/readlink.texi (readlink):
12712         * doc/posix-functions/readlinkat.texi (readlinkat):
12713         Mention AIX porting problem.
12714         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
12715         New function.
12716         * lib/unistd.in.h (readlinkat): Add replacement machinery.
12717         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
12718         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
12719         * modules/readlinkat (configure.ac): Also compile replacement
12720         if REPLACE_READLINKAT.
12721         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
12723 2014-10-12  Karl Berry  <karl@gnu.org>
12725         * doc/posix-functions/dirname.texi: remove spurious {.
12727 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
12729         basename, dirname: Improve documentation.
12730         * doc/posix-functions/basename.texi: Mention dirname module and
12731         base_name() function.
12732         * doc/posix-functions/dirname.texi: Mention dir_name() and
12733         mdir_name() functions.
12734         Suggested by Werner LEMBERG <wl@gnu.org>.
12736 2014-09-24  Jim Meyering  <meyering@fb.com>
12738         exclude: declare exclude_patopts static
12739         * lib/exclude.c (exclude_patopts): Declare static,
12740         to avoid triggering a -Wmissing-prototypes warning.
12741         The alternative (declaring it in the .h file) would
12742         require publicizing the private "struct patopts".
12744 2014-09-21  Werner Lemberg  <wl@gnu.org>
12746         dirname: support compilation with C++
12747         * lib/dirname.h: Add necessary C linkage declarations.
12749 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
12751         qsort_r: include <config.h>
12752         Problem reported by Tom G. Christensen in:
12753         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
12754         * lib/qsort.c [!_LIBC]: Include <config.h> first.
12756 2014-09-16  Dylan Cali  <calid1984@gmail.com>
12758         avltree-list: avoid compiler warnings (trivial)
12759         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
12760         -Werror=suggest-attribute=pure.
12761         * lib/gl_array_list.c: Likewise.
12762         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
12763         declaration to avoid -Werror=missing-prototypes.  This is not added
12764         to a header as only exported for tests.  Add (void) to the
12765         check_invariants() call to indicate we're discarding the result
12766         in this context which avoids -Werror=unused-value.  Note we don't
12767         use ignore_value here to avoid a dependency as we know we'll not
12768         be adding __attribute__((warn_unused_result)) to check_invariants().
12769         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
12771 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
12773         qsort_r: new module, for GNU-style qsort_r
12774         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
12776 2014-09-15  Werner LEMBERG  <wl@gnu.org>
12778         strerror_r-posix: support compilation with C++
12779         * lib/strerror_r.c: Add necessary C linkage declarations.
12781 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
12783         fcntl-h: fix compilation with Intel C++ compiler (trivial)
12784         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
12786 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
12788         mountlist: use /proc/self/mountinfo when available
12789         Use libmount to propagate device IDs provided by Linux in
12790         /proc/self/mountinfo.  This will give more accurate output when
12791         using df in chroot'ed environments as the device IDs are not
12792         determined by stat() which may be inaccurate within the chroot.
12793         * lib/mountlist.c (read_file_system_list): Use the libmount routines
12794         from util-linux to parse "/proc/self/mountinfo" or fall back to
12795         standard getmntent() processing.
12796         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
12797         getmntent() is used, as is the case on GNU/Linux.
12799 2014-09-07  Eric Wong  <normalperson@yhbt.net>
12801         users.txt: add cmogstored
12802         cmogstored has used gnulib since the beginning in 2012 to support
12803         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
12805 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
12807         Trivial change.
12808         * gnulib-tool: Use same options as build-aux/bootstrap to download
12809         PO files.
12811 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
12813         Trivial change.
12814         * gnulib-tool: Fallback to wget when rsync of PO files fails.
12816 2014-09-04  Eric Blake  <eblake@redhat.com>
12818         maintainer-makefile: add syntax check for useless ';;'
12819         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
12821 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
12823         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
12824         Problem reported by Assaf Gordon in:
12825         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
12826         Apparently Ubuntu is doing some fancy link-time optimization
12827         that doesn't work with -lpthread but does work with -pthread.
12828         Work around the bug by preferring -pthread to -lpthread.
12829         * m4/pthread.m4 (gl_PTHREAD_CHECK):
12830         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
12831         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
12832         Treat -pthread like -lpthread.
12834 2014-09-04  Eric Blake  <eblake@redhat.com>
12836         error: drop spurious semicolon
12837         * lib/error.c (__error_at_line): Fix ';;'.
12839 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
12841         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
12842         * m4/gnulib-common.m4 (AC_C_RESTRICT):
12843         Override AC_C_RESTRICT unconditionally.
12844         Update from autoconf, incorporating:
12845         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
12846         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
12848 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
12850         manywarnings: add GCC 4.9 warnings
12851         Also, make it easier to maintain this in the future.
12852         * build-aux/gcc-warning.spec: Add -Wabi-tag,
12853         -Wconditionally-supported, -Wdelete-incomplete,
12854         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
12855         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
12856         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
12857         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
12858         only for older GCC versions that need them.  Handle
12859         -Wnormalized=nfc specially, so that the 'comm' command used
12860         for maintenance doesn't get confused.
12862 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
12864         vasnprintf: fix bugs in width computation
12865         * lib/vasnprintf.c (VASNPRINTF):
12866         Rework previous change, which introduced a bug,
12867         to avoid the warning in a different way.
12868         Avoid undefined behavior if the width arg is less than -INT_MAX.
12869         Avoid unnecessary use of HAS_WIDTH local.
12871 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
12873         vasnprintf: Avoid signed/unsigned comparison warning.
12874         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
12875         compare end addr of generated string w/ maximum end addr.
12877 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
12879         parse-datetime: Avoid pointer difference.
12880         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
12881         instead of calculating difference of pointers.  This removes an
12882         annoying warning, devoid of any use.
12884 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
12886         qsort_r: new module, for GNU-style qsort_r
12887         This works even on FreeBSD, which has an incompatible qsort_r API.
12888         * MODULES.html.sh: Add it.
12889         * doc/glibc-functions/qsort_r.texi: It's now supported.
12890         * lib/qsort.c: New file, taken from glibc with minor changes
12891         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
12892         removed.
12893         * lib/qsort_r.c: New file, compiled only on FreeBSD.
12894         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
12895         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
12896         * modules/qsort_r, modules/qsort_r-tests: New files.
12897         * modules/stdlib (Makefile): Set up its defaults.
12898         * tests/test-qsort_r.c: New file.
12900 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
12902         vla: new module
12903         GNU RCS can use this, mostly for documentation I expect.  See:
12904         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
12905         * MODULES.html.sh: Add vla.
12906         * lib/vla.h, modules/vla: New files.
12908 2014-08-07  Daiki Ueno  <ueno@gnu.org>
12910         localename: make gl_locale_name_thread really thread-safe on Windows
12911         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
12912         "glthread/lock.h".
12913         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
12914         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
12916 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
12918         getpass: don't assume struct termios
12919         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
12920         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
12921         * lib/getpass.c (getpass): Port to systems lacking struct termios.
12923         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
12924         Problem reported by Jonas 'Sortie' Termansen in:
12925         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
12926         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
12927         Implement via sysconf for platforms that lack getdtablesize.
12929         vararrays: modernize AC_C_VARARRAYS for C11
12930         This backports a change I recently made to Autoconf.
12931         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
12932         VLAs are not supported, as this is what C11 does.  The old macro
12933         HAVE_C_VARARRAYS is still defined if they are supported, but is
12934         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
12936 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
12938         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
12939         * build-aux/install-reloc (func_create_wrapper): Also wrap
12940         strerror-override, stat, stat.
12942 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
12944         sys_select: fix FD_ZERO problem on Solaris 10
12945         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
12946         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
12947         to expand to an expression that invoked memset without necessarily
12948         including <string.h>.  The problem was that the first include
12949         defined _SYS_TIME_H, causing the second include to short-circuit.
12950         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
12951         Also, fix what appears to be a cut-and-paste typo, by replacing
12952         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
12953         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
12955         accept: document Solaris 10 type glitch
12956         * doc/posix-functions/accept.texi (accept): Mention that
12957         Solaris 10 'accept' takes void * last arg, not socklen_t *.
12959 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
12961         extern-inline: port to FreeBSD, DragonFly
12962         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
12963         is present if either __DragonFly__ or __FreeBSD__ is defined.
12964         FreeBSD problem reported by Andrey Borzenkov in:
12965         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
12966         Also, worry about __APPLE__ only if __MACH__ is also defined,
12967         as this is more consistent with the rest of gnulib.
12968         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
12969         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
12971 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
12973         regex: Make #if/#ifdef usage consistent for DEBUG
12974         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
12975         of the inconsistent usage of #if and #ifdef as that works with
12976         both Glibc and Gnulib's style.
12978 2014-07-31  Eric Blake  <eblake@redhat.com>
12980         openat-die: use _Noreturn markup
12981         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
12982         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
12983         _Noreturn.
12985 2014-07-30  Eric Blake  <eblake@redhat.com>
12987         test-open: port to cygwin, which lacks Fortify
12988         * tests/test-open.h (ALWAYS_INLINE): New macro.
12989         (__always_inline): Don't abuse internal symbol on non-glibc.
12991 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
12993         localename: Enforce declarations before statements.
12994         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
12995         first statement.
12997 2014-07-18  Jim Meyering  <meyering@fb.com>
12999         test-userspec: don't look up numeric user names
13000         * tests/test-userspec.c: I found a system for which getpwnam("0")
13001         returned a pointer to a non-root user's entry, and that made the
13002         test fail.
13003         (T): Prefix each numeric input with "+", to inhibit lookup.
13005 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
13007         localcharset, localename: MS-Windows support for non-default locales
13008         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
13009         falling back on the default system codepage, try extracting
13010         the codepage from what 'setlocale' returns.  This allows to
13011         take into account changes of the codeset due to non-default
13012         locale set by a previous call to 'setlocale'.
13013         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
13014         Define if not already defined.
13015         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
13016         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
13017         current locale by calling 'setlocale', then converting the
13018         locale name into LCID by calling 'get_lcid'.  This allows to
13019         take into account changes in the current locale from the
13020         default one, in contrast to GetThreadLocale.
13022 2014-07-14  Daiki Ueno  <ueno@gnu.org>
13024         announce-gen: avoid failure when Digest::SHA is installed
13025         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
13026         Digest::SHA1->new in print_checksums fails.
13027         * build-aux/announce-gen (digest_classes): New associative array
13028         for available message digest implementations.
13029         (print_locations): Use it.
13031 2014-07-13  Pádraig Brady  <P@draigBrady.com>
13033         gettext: revert "update macros to version 0.19"
13034         This reverts commit 9b9370ca, as it currently requires that
13035         developers of any project that explicitly uses the gettext module
13036         or implicitly uses it through the utimens-tests or
13037         futimens-tests modules, use gettext >= 0.19.
13038         However there are some stability and availablity issues with
13039         that version at present.  We can reinstate this soon, when stability
13040         is addressed and packages are more readily available.
13042 2014-07-12  Jim Meyering  <meyering@fb.com>
13044         regex: don't deref NULL upon heap allocation failure
13045         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
13046         failure in one more place.
13047         To trigger the segfault, configure grep -with-included-regex,
13048         build it, and run these commands:
13049         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
13050         I discovered this while replying to a private report from
13051         Jens Schleusener about excessive memory consumption by grep
13052         when using a regular expression like the one above.
13054 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
13056         regex: fix memory leak in compiler
13057         Fix by Andreas Schwab in:
13058         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
13059         * lib/regcomp.c (parse_reg_exp): Deallocate partially
13060         constructed tree before returning error.
13062 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
13064         announce-gen: avoid perl warnings
13065         * build-aux/announce-gen: add two minor checks to avoid
13066         "use of uninitialized value" warnings when command-line parameters are
13067         missing.
13069 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
13071         localename: avoid -Wsuggest-attribute={const,pure} warnings
13072         * lib/localename.c (string_has): Tag internal function as pure.
13073         * lib/localename.h (gl_locale_name_default): Tag extern declaration
13074         as const when appropriate.
13076 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
13078         nl_langinfo: Fix last change.
13079         * lib/nl_langinfo.c (includes): Drop redundant include.
13081 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
13083         error: Fix -Wundef warnings in glibc
13084         * lib/error.c [_LIBC]: Define default macros for
13085         glibc.
13086         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
13087         Check _LIBC before STRERROR_R_CHAR_P.
13089         error: Sync from glibc master
13090         * lib/error.c [_LIBC]: Remove INTUSE usage.
13091         (error_tail): Remove unused macro ALLOCA_LIMIT.
13092         Fix potential buffer overflow.  Fix potential NULL dereference
13093         in strcmp.
13095 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
13097         nl_langinfo: fix build under mingw
13098         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
13100 2014-07-09  Andrew D Warshall  <warshall@99main.com>
13102         mountlist: do not classify a bind-mounted dir entry as "dummy"
13103         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
13104         1-argument getmntent() (instead of assuming absence).
13106 2014-07-08  Eric Blake  <eblake@redhat.com>
13108         maint.mk: less syntax-check noise when SIGPIPE is ignored
13109         * top/maint.mk (_sc_header_without_use)
13110         (sc_require_config_h_first): Parse full list.
13112 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
13113             Paul Eggert  <eggert@cs.ucla.edu>
13115         nl_langinfo: CODESET on MS-Windows and more items from localeconv
13116         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
13117         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
13118         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
13119         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
13120         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
13121         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
13122         Include <stdio.h> if Microsoft Windows.
13123         Include <time.h> if !REPLACE_NL_LANGINFO.
13124         (ctype_codeset): New function, taken from rpl_nl_langinfo,
13125         and with improvements for Microsoft Windows.
13126         (rpl_nl_langinfo): Use it.
13127         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
13128         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
13129         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
13130         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
13131         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
13132         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
13133         corresponding values returned by 'localeconv'.  Compute the values
13134         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
13135         'strftime' with a suitable struct tm value.
13137 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
13139         Bruno Haible has stepped down as maintainer.
13140         See Karl Berry in:
13141         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
13142         Daiki Ueno has volunteered to maintain libunistring; see:
13143         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
13144         * modules/gen-uni-tables, modules/libunistring:
13145         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
13146         * modules/unicase/base, modules/unicase/cased:
13147         * modules/unicase/empty-prefix-context:
13148         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
13149         * modules/unicase/locale-language, modules/unicase/special-casing:
13150         * modules/unicase/tocasefold, modules/unicase/tolower:
13151         * modules/unicase/totitle, modules/unicase/toupper:
13152         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
13153         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
13154         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
13155         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
13156         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
13157         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
13158         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
13159         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
13160         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
13161         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
13162         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
13163         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
13164         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
13165         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
13166         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
13167         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
13168         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
13169         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
13170         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
13171         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
13172         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
13173         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
13174         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
13175         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
13176         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
13177         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
13178         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
13179         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
13180         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
13181         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
13182         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
13183         * modules/unicase/ulc-casexfrm, modules/unicodeio:
13184         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
13185         * modules/uniconv/u16-conv-to-enc:
13186         * modules/uniconv/u16-strconv-from-enc:
13187         * modules/uniconv/u16-strconv-from-locale:
13188         * modules/uniconv/u16-strconv-to-enc:
13189         * modules/uniconv/u16-strconv-to-locale:
13190         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
13191         * modules/uniconv/u32-strconv-from-enc:
13192         * modules/uniconv/u32-strconv-from-locale:
13193         * modules/uniconv/u32-strconv-to-enc:
13194         * modules/uniconv/u32-strconv-to-locale:
13195         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
13196         * modules/uniconv/u8-strconv-from-enc:
13197         * modules/uniconv/u8-strconv-from-locale:
13198         * modules/uniconv/u8-strconv-to-enc:
13199         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
13200         * modules/unictype/bidicategory-all:
13201         * modules/unictype/bidicategory-byname:
13202         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
13203         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
13204         * modules/unictype/bidiclass-byname:
13205         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
13206         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
13207         * modules/unictype/block-all, modules/unictype/block-list:
13208         * modules/unictype/block-of, modules/unictype/block-test:
13209         * modules/unictype/category-C, modules/unictype/category-Cc:
13210         * modules/unictype/category-Cf, modules/unictype/category-Cn:
13211         * modules/unictype/category-Co, modules/unictype/category-Cs:
13212         * modules/unictype/category-L, modules/unictype/category-LC:
13213         * modules/unictype/category-Ll, modules/unictype/category-Lm:
13214         * modules/unictype/category-Lo, modules/unictype/category-Lt:
13215         * modules/unictype/category-Lu, modules/unictype/category-M:
13216         * modules/unictype/category-Mc, modules/unictype/category-Me:
13217         * modules/unictype/category-Mn, modules/unictype/category-N:
13218         * modules/unictype/category-Nd, modules/unictype/category-Nl:
13219         * modules/unictype/category-No, modules/unictype/category-P:
13220         * modules/unictype/category-Pc, modules/unictype/category-Pd:
13221         * modules/unictype/category-Pe, modules/unictype/category-Pf:
13222         * modules/unictype/category-Pi, modules/unictype/category-Po:
13223         * modules/unictype/category-Ps, modules/unictype/category-S:
13224         * modules/unictype/category-Sc, modules/unictype/category-Sk:
13225         * modules/unictype/category-Sm, modules/unictype/category-So:
13226         * modules/unictype/category-Z, modules/unictype/category-Zl:
13227         * modules/unictype/category-Zp, modules/unictype/category-Zs:
13228         * modules/unictype/category-all, modules/unictype/category-and:
13229         * modules/unictype/category-and-not, modules/unictype/category-byname:
13230         * modules/unictype/category-longname, modules/unictype/category-name:
13231         * modules/unictype/category-none, modules/unictype/category-of:
13232         * modules/unictype/category-or, modules/unictype/category-test:
13233         * modules/unictype/category-test-withtable:
13234         * modules/unictype/combining-class:
13235         * modules/unictype/combining-class-all:
13236         * modules/unictype/combining-class-byname:
13237         * modules/unictype/combining-class-longname:
13238         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
13239         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
13240         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
13241         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
13242         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
13243         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
13244         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
13245         * modules/unictype/digit, modules/unictype/joininggroup-all:
13246         * modules/unictype/joininggroup-byname:
13247         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
13248         * modules/unictype/joiningtype-all:
13249         * modules/unictype/joiningtype-byname:
13250         * modules/unictype/joiningtype-longname:
13251         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
13252         * modules/unictype/mirror, modules/unictype/numeric:
13253         * modules/unictype/property-all, modules/unictype/property-alphabetic:
13254         * modules/unictype/property-ascii-hex-digit:
13255         * modules/unictype/property-bidi-arabic-digit:
13256         * modules/unictype/property-bidi-arabic-right-to-left:
13257         * modules/unictype/property-bidi-block-separator:
13258         * modules/unictype/property-bidi-boundary-neutral:
13259         * modules/unictype/property-bidi-common-separator:
13260         * modules/unictype/property-bidi-control:
13261         * modules/unictype/property-bidi-embedding-or-override:
13262         * modules/unictype/property-bidi-eur-num-separator:
13263         * modules/unictype/property-bidi-eur-num-terminator:
13264         * modules/unictype/property-bidi-european-digit:
13265         * modules/unictype/property-bidi-hebrew-right-to-left:
13266         * modules/unictype/property-bidi-left-to-right:
13267         * modules/unictype/property-bidi-non-spacing-mark:
13268         * modules/unictype/property-bidi-other-neutral:
13269         * modules/unictype/property-bidi-pdf:
13270         * modules/unictype/property-bidi-segment-separator:
13271         * modules/unictype/property-bidi-whitespace:
13272         * modules/unictype/property-byname:
13273         * modules/unictype/property-case-ignorable:
13274         * modules/unictype/property-cased:
13275         * modules/unictype/property-changes-when-casefolded:
13276         * modules/unictype/property-changes-when-casemapped:
13277         * modules/unictype/property-changes-when-lowercased:
13278         * modules/unictype/property-changes-when-titlecased:
13279         * modules/unictype/property-changes-when-uppercased:
13280         * modules/unictype/property-combining:
13281         * modules/unictype/property-composite:
13282         * modules/unictype/property-currency-symbol:
13283         * modules/unictype/property-dash:
13284         * modules/unictype/property-decimal-digit:
13285         * modules/unictype/property-default-ignorable-code-point:
13286         * modules/unictype/property-deprecated:
13287         * modules/unictype/property-diacritic:
13288         * modules/unictype/property-extender:
13289         * modules/unictype/property-format-control:
13290         * modules/unictype/property-grapheme-base:
13291         * modules/unictype/property-grapheme-extend:
13292         * modules/unictype/property-grapheme-link:
13293         * modules/unictype/property-hex-digit:
13294         * modules/unictype/property-hyphen:
13295         * modules/unictype/property-id-continue:
13296         * modules/unictype/property-id-start:
13297         * modules/unictype/property-ideographic:
13298         * modules/unictype/property-ids-binary-operator:
13299         * modules/unictype/property-ids-trinary-operator:
13300         * modules/unictype/property-ignorable-control:
13301         * modules/unictype/property-iso-control:
13302         * modules/unictype/property-join-control:
13303         * modules/unictype/property-left-of-pair:
13304         * modules/unictype/property-line-separator:
13305         * modules/unictype/property-logical-order-exception:
13306         * modules/unictype/property-lowercase, modules/unictype/property-math:
13307         * modules/unictype/property-non-break:
13308         * modules/unictype/property-not-a-character:
13309         * modules/unictype/property-numeric:
13310         * modules/unictype/property-other-alphabetic:
13311         * modules/unictype/property-other-default-ignorable-code-point:
13312         * modules/unictype/property-other-grapheme-extend:
13313         * modules/unictype/property-other-id-continue:
13314         * modules/unictype/property-other-id-start:
13315         * modules/unictype/property-other-lowercase:
13316         * modules/unictype/property-other-math:
13317         * modules/unictype/property-other-uppercase:
13318         * modules/unictype/property-paired-punctuation:
13319         * modules/unictype/property-paragraph-separator:
13320         * modules/unictype/property-pattern-syntax:
13321         * modules/unictype/property-pattern-white-space:
13322         * modules/unictype/property-private-use:
13323         * modules/unictype/property-punctuation:
13324         * modules/unictype/property-quotation-mark:
13325         * modules/unictype/property-radical:
13326         * modules/unictype/property-sentence-terminal:
13327         * modules/unictype/property-soft-dotted:
13328         * modules/unictype/property-space:
13329         * modules/unictype/property-terminal-punctuation:
13330         * modules/unictype/property-test, modules/unictype/property-titlecase:
13331         * modules/unictype/property-unassigned-code-value:
13332         * modules/unictype/property-unified-ideograph:
13333         * modules/unictype/property-uppercase:
13334         * modules/unictype/property-variation-selector:
13335         * modules/unictype/property-white-space:
13336         * modules/unictype/property-xid-continue:
13337         * modules/unictype/property-xid-start:
13338         * modules/unictype/property-zero-width, modules/unictype/scripts:
13339         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
13340         * modules/unictype/syntax-c-whitespace:
13341         * modules/unictype/syntax-java-ident:
13342         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
13343         * modules/unigbrk/u16-grapheme-breaks:
13344         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
13345         * modules/unigbrk/u32-grapheme-breaks:
13346         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
13347         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
13348         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
13349         * modules/unigbrk/uc-is-grapheme-break:
13350         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
13351         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
13352         * modules/unilbrk/u16-width-linebreaks:
13353         * modules/unilbrk/u32-possible-linebreaks:
13354         * modules/unilbrk/u32-width-linebreaks:
13355         * modules/unilbrk/u8-possible-linebreaks:
13356         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
13357         * modules/unilbrk/ulc-possible-linebreaks:
13358         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
13359         * modules/uniname/uniname, modules/uninorm/base:
13360         * modules/uninorm/canonical-decomposition:
13361         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
13362         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
13363         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
13364         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
13365         * modules/uninorm/nfkc, modules/uninorm/nfkd:
13366         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
13367         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
13368         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
13369         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
13370         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
13371         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
13372         * modules/unistdio/base, modules/unistdio/u-printf-args:
13373         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
13374         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
13375         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
13376         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
13377         * modules/unistdio/u16-u16-sprintf:
13378         * modules/unistdio/u16-u16-vasnprintf:
13379         * modules/unistdio/u16-u16-vasprintf:
13380         * modules/unistdio/u16-u16-vsnprintf:
13381         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
13382         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
13383         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
13384         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
13385         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
13386         * modules/unistdio/u32-u32-asnprintf:
13387         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
13388         * modules/unistdio/u32-u32-sprintf:
13389         * modules/unistdio/u32-u32-vasnprintf:
13390         * modules/unistdio/u32-u32-vasprintf:
13391         * modules/unistdio/u32-u32-vsnprintf:
13392         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
13393         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
13394         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
13395         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
13396         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
13397         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
13398         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
13399         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
13400         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
13401         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
13402         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
13403         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
13404         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
13405         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
13406         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
13407         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
13408         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
13409         * modules/unistr/u16-check, modules/unistr/u16-chr:
13410         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
13411         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
13412         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
13413         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
13414         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
13415         * modules/unistr/u16-move, modules/unistr/u16-next:
13416         * modules/unistr/u16-prev, modules/unistr/u16-set:
13417         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
13418         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
13419         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
13420         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
13421         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
13422         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
13423         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
13424         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
13425         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
13426         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
13427         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
13428         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
13429         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
13430         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
13431         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
13432         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
13433         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
13434         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
13435         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
13436         * modules/unistr/u32-next, modules/unistr/u32-prev:
13437         * modules/unistr/u32-set, modules/unistr/u32-startswith:
13438         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
13439         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
13440         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
13441         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
13442         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
13443         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
13444         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
13445         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
13446         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
13447         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
13448         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
13449         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
13450         * modules/unistr/u8-check, modules/unistr/u8-chr:
13451         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
13452         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
13453         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
13454         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
13455         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
13456         * modules/unistr/u8-next, modules/unistr/u8-prev:
13457         * modules/unistr/u8-set, modules/unistr/u8-startswith:
13458         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
13459         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
13460         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
13461         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
13462         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
13463         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
13464         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
13465         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
13466         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
13467         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
13468         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
13469         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
13470         * modules/uniwbrk/base, modules/uniwbrk/table:
13471         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
13472         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
13473         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
13474         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
13475         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
13476         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
13477         * modules/uniwidth/width, modules/utf16-ucs4:
13478         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
13479         * modules/utf8-ucs4-unsafe:
13480         Change maintainer from Bruno Haible to Daiki Ueno.
13481         This is my guess at the libunistring modules; please feel free
13482         to fix if I guessed incorrectly.
13483         * modules/accept4, modules/acl, modules/acos, modules/acosf:
13484         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
13485         * modules/areadlink, modules/array-list, modules/array-mergesort:
13486         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
13487         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
13488         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
13489         * modules/binary-io, modules/bison-i18n, modules/btowc:
13490         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
13491         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
13492         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
13493         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
13494         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
13495         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
13496         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
13497         * modules/closedir, modules/concat-filename, modules/copy-file:
13498         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
13499         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
13500         * modules/csharpcomp-script, modules/csharpexec:
13501         * modules/csharpexec-script, modules/ctype, modules/diffseq:
13502         * modules/dprintf, modules/dprintf-posix, modules/dup:
13503         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
13504         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
13505         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
13506         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
13507         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
13508         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
13509         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
13510         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
13511         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
13512         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
13513         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
13514         * modules/findprog, modules/findprog-lgpl, modules/floor:
13515         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
13516         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
13517         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
13518         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
13519         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
13520         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
13521         * modules/freadable, modules/freadahead, modules/freadptr:
13522         * modules/freadseek, modules/freopen, modules/frexp:
13523         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
13524         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
13525         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
13526         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
13527         * modules/ftello, modules/full-read, modules/full-write:
13528         * modules/fwritable, modules/fwriteerror, modules/gcd:
13529         * modules/get-rusage-as, modules/get-rusage-data:
13530         * modules/getdtablesize, modules/getrusage, modules/gettext:
13531         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
13532         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
13533         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
13534         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
13535         * modules/iconv, modules/iconv-h, modules/iconv_open:
13536         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
13537         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
13538         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
13539         * modules/integer_length_ll, modules/ioctl, modules/isatty:
13540         * modules/isblank, modules/isnand, modules/isnand-nolibm:
13541         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
13542         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
13543         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
13544         * modules/javaexec, modules/javaexec-script, modules/javaversion:
13545         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
13546         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
13547         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
13548         * modules/lib-symbol-visibility, modules/libsigsegv:
13549         * modules/linked-list, modules/linkedhash-list, modules/list:
13550         * modules/localcharset, modules/locale, modules/localeconv:
13551         * modules/localename, modules/lock, modules/log, modules/log-ieee:
13552         * modules/log10, modules/log10-ieee, modules/log10f:
13553         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
13554         * modules/log1p, modules/log1p-ieee, modules/log1pf:
13555         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
13556         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
13557         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
13558         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
13559         * modules/logf, modules/logf-ieee, modules/login_tty:
13560         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
13561         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
13562         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
13563         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
13564         * modules/mbscspn, modules/mbsinit, modules/mbslen:
13565         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
13566         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
13567         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
13568         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
13569         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
13570         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
13571         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
13572         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
13573         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
13574         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
13575         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
13576         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
13577         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
13578         * modules/posix_spawn, modules/posix_spawn-internal:
13579         * modules/posix_spawn_file_actions_addclose:
13580         * modules/posix_spawn_file_actions_adddup2:
13581         * modules/posix_spawn_file_actions_addopen:
13582         * modules/posix_spawn_file_actions_destroy:
13583         * modules/posix_spawn_file_actions_init:
13584         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
13585         * modules/posix_spawnattr_getpgroup:
13586         * modules/posix_spawnattr_getschedparam:
13587         * modules/posix_spawnattr_getschedpolicy:
13588         * modules/posix_spawnattr_getsigdefault:
13589         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
13590         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
13591         * modules/posix_spawnattr_setschedparam:
13592         * modules/posix_spawnattr_setschedpolicy:
13593         * modules/posix_spawnattr_setsigdefault:
13594         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
13595         * modules/pow, modules/powf, modules/printf-frexp:
13596         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
13597         * modules/progname, modules/propername, modules/pselect:
13598         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
13599         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
13600         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
13601         * modules/read, modules/readdir, modules/readlink:
13602         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
13603         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
13604         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
13605         * modules/relocatable-script, modules/remainder:
13606         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
13607         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
13608         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
13609         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
13610         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
13611         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
13612         * modules/setlocale, modules/sh-quote, modules/shutdown:
13613         * modules/signal, modules/signbit, modules/sigpipe:
13614         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
13615         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
13616         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
13617         * modules/snippet/link-warning, modules/snippet/unused-parameter:
13618         * modules/snprintf, modules/snprintf-posix, modules/spawn:
13619         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
13620         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
13621         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
13622         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
13623         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
13624         * modules/streq, modules/strerror_r-posix, modules/striconv:
13625         * modules/striconveh, modules/striconveha, modules/strncat:
13626         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
13627         * modules/sublist, modules/sys_resource, modules/sys_utsname:
13628         * modules/sys_wait, modules/system-posix, modules/system-quote:
13629         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
13630         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
13631         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
13632         * modules/truncf, modules/truncf-ieee, modules/truncl:
13633         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
13634         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
13635         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
13636         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
13637         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
13638         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
13639         * modules/wait-process, modules/waitpid, modules/wcpcpy:
13640         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
13641         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
13642         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
13643         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
13644         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
13645         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
13646         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
13647         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
13648         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
13649         * modules/write, modules/xconcat-filename, modules/xlist:
13650         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
13651         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
13652         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
13653         * modules/y0, modules/y1, modules/yn:
13654         Remove Bruno Haible as maintainer; if he's the sole maintainer,
13655         change the maintainer to 'all'.  Let's hope someone volunteers.
13657 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
13659         mktime: merge #if/#ifdef usage from glibc
13660         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
13661         as that works with both Glibc's and Gnulib's style.
13662         See thread starting at Siddhesh Poyarekar's bug report at:
13663         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
13665 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
13667         git-version-gen: improve option descriptions
13668         * build-aux/git-version-gen: Mention that --prefix and --fallback
13669         have a mandatory argument.
13671 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
13673         regex: fix memory leak in compiler
13674         Fix by Andreas Schwab in:
13675         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
13676         * lib/regcomp.c (parse_expression): Deallocate partially
13677         constructed tree before returning error.
13679         regex: merge patch from libc
13680         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
13681         Combine __USE_BSD and __USE_SVID into __USE_MISC.
13682         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
13684 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
13686         acl: port to gcc -Wredundant-decls
13687         From a request by Dmitry Antipov in:
13688         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
13689         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
13690         "#ifndef _GL_ACL_H".
13692 2014-06-11  Bruce Korb  <bkorb@gnu.org>
13693         Jim Meyering  <meyering@fb.com>
13695         parse-duration: eliminate 68-year duration limit
13696         * lib/parse-duration.c: Include "intprops.h".
13697         (TIME_MAX): Rename to MAX_DURATION and define to
13698         TYPE_MAXIMUM(time_t).
13699         * modules/parse-duration (Depends-on): Add intprops.
13700         Reported by Jonas 'Sortie' Termansen.
13702 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
13704         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
13705         * modules/pthread (Depends-on): Add 'extensions', as it defines
13706         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
13707         (configure.ac-early): New section.
13708         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
13709         it is no longer needed.
13711 2014-06-14  Pádraig Brady  <P@draigBrady.com>
13713         pthread: define thread-safe macros on some platforms
13714         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
13715         for thread-safe operation on some platforms.
13717 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
13719         regex: don't be multithreaded if USE_UNLOCKED_IO.
13720         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
13721         * lib/regex_internal.h: Do not use multithreaded version if
13722         USE_UNLOCKED_IO is defined.  This is a hack, but it works
13723         around a porting bug with coreutils 8.22 on AIX 7.1.
13725 2014-06-11  Daiki Ueno  <ueno@gnu.org>
13727         gettext: update macros to version 0.19
13728         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
13729         depend on gl_EXTERN_INLINE and drop support for older Bison
13730         versions.
13732 2014-06-10  Pádraig Brady  <P@draigBrady.com>
13734         select,poll: fix console handle check on windows 8
13735         lib/poll.c (IsConsoleHandle): Change from testing the lower
13736         2 bits of the handle to the more expensive but accurate syscall.
13737         lib/select.c: Likewise.
13739 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
13741         select: fix waiting on anonymous pipes on MS-Windows
13742         * lib/select.c (rpl_select): Fall back to polling when select()
13743         indicates there is nothing to check, while due to the timeout not
13744         expiring, activity is indicated on one of the handles.
13745         Also clear the TIMEOUT argument if the timer does expire.
13747 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
13749         times: fix to return non constant value on MS-Windows
13750         * lib/times.c (times): Don't use the process creation time,
13751         rather clock() which on windows returns the number of
13752         clock ticks since the process started.
13754 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
13756         isatty: fix to work on windows 8
13757         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
13758         2 bits of the handle to the more expensive but accurate syscall.
13760 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
13762         maint: fix typo in fdl.texi
13763         * doc/fdl.texi: Fix typo (missing '@').
13764         Somehow this was in fdl.texi but not fdl-1.3.texi.
13766 2014-06-06  Ben Walton  <bdwalton@gmail.com>
13768         mountlist: avoid hasmntopt const type warning on solaris
13769         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
13770         with char * instead of const char *.  Passing the constant string
13771         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
13772         to avoid the warning.
13774 2014-06-04  Eric Blake  <eblake@redhat.com>
13776         maintainer-makefile: delete obsolete code
13777         * top/maint.mk (build_aux): Drop old code, as threatened.
13779         maintainer-makefile: avoid spurious error messages
13780         * top/maint.mk (syntax-check): Guard definition and use of
13781         $(shell) by whether Makefile is present.
13783 2014-06-03  Ben Walton  <bdwalton@gmail.com>
13785         rename: avoid unused-but-set-variable compiler warning
13786         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
13787         it is possible that dst_exists may be set but not used.  Mark it with
13788         the unused attribute to avoid compiler warnings.
13790 2014-06-02  Ben Walton  <bdwalton@gmail.com>
13792         rename: mark a label as potentially unused
13793         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
13794         by marking the out label as potentially unused.
13795         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
13797 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
13799         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
13800         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
13802 2014-06-02  Ben Walton  <bdwalton@gmail.com>
13804         acl: apply pure attribute to two functions
13805         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
13806         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
13808 2014-06-01  Pádraig Brady  <P@draigBrady.com>
13810         gnulib-common.m4: add _GL_UNUSED_LABEL
13811         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
13812         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
13814 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
13816         dup2, fcntl, fcntl-h: port to AIX 7.1
13817         This fixes some porting problems discovered when testing the latest
13818         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
13819         in grep but it could be important for other applications.
13820         * doc/posix-functions/dup2.texi:
13821         * doc/posix-functions/fcntl.texi:
13822         * doc/posix-headers/fcntl.texi:
13823         Document AIX bugs.
13824         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
13825         Define to 0 if outside 'int' range.
13826         * m4/dup2.m4 (gl_FUNC_DUP2):
13827         * m4/fcntl.m4 (gl_FUNC_FCNTL):
13828         Check for getdtablesize.  If it's available, test a value just
13829         outside its range instead of testing 1000000.  When cross-compiling,
13830         guess that AIX will fail this improved test.
13832 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
13834         printf, config.rpath: Port to FreeBSD 10.
13835         Problem reported by Tijl Coosemans in:
13836         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
13837         * build-aux/config.rpath (hardcode_libdir_flag_spec)
13838         (hardcode_direct): Simplify FreeBSD configuration.
13839         (library_names_spec): Don't mishandle FreeBSD 10+.
13840         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
13841         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
13842         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
13843         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
13844         Don't mishandle FreeBSD 10+ when cross-compiling.
13846         ftoastr: work around compiler bug in IBM xlc 12.1
13847         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
13848         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
13849         around a compiler bug in IBM xlc 12.1.0.0: it complains
13850         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
13851         _GL_FLT_PREC_BOUND.'
13853 2014-05-30  Kieran Colford  <colfordk@gmail.com>
13855         valgrind-tests: fixed misleading help message
13856         * m4/valgrind-tests.m4: The help message generated by configure
13857         implied that valgrind was disabled by default, which it wasn't.
13858         Adjusted the help message using s/enable/disable/ to clarify.
13860 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
13862         isfinite, isinf, isnan tests: fix for little-endian PowerPC
13863         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
13864         first double of a PowerPC "double double" pair.
13865         * tests/test-isinf.c (test_isinfl): Likewise.
13866         * tests/test-isnan.c (test_long_double): Likewise.
13867         * tests/test-isnanl.h (main): Likewise.
13868         * tests/test-signbit.c (test_signbitl): Likewise.
13870 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
13872         exclude-tests: port to AIX 7.1
13873         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
13874         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
13875         the regex code uses locks.
13877 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
13879         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
13880         Without this fix, Emacs would sometimes call sigprocmask instead
13881         of pthread_sigmask, which is a no-no in multithreaded applications.
13882         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
13883         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
13884         Suppress check for pthread_sigmask working without -lpthread if
13885         the application always links with -lpthread.  Do not link with
13886         $LIBMULTITHREAD if gl_THREADLIB is not defined.
13887         * m4/timer_time.m4 (gl_TIMER_TIME):
13888         Require gl_THREADLIB only if it is defined.  Do not append
13889         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
13891 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
13893         gnulib-tool: wget translations using --no-verbose rather than --quiet
13894         This allows the user to see error messages if any (--quiet hides them)
13895         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
13897 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
13899         gnulib-tool: adjust translation wget to avoid a https redirection
13900         Context: http://translationproject.org/latest/gnulib redirects to
13901            https://translationproject.org/latest/gnulib/
13902         Rationale: if the user falls back to wget, she doesn't have rsync and
13903         is probably in a minimal build environment, where packages such as
13904         'ca-certificates' are missing as well, resulting in a failed (and
13905         difficult to detect since ignored) translation initial fetch.
13906         Consequently let's avoid https if possible, and add the missing
13907         trailing slash.  This also avoids an unnecessary 302 redirection.
13908         * gnulib-tool: Add trailing slash to gnulib URL.
13910 2014-05-22  Pádraig Brady  <P@draigBrady.com>
13912         getlogin_r-tests: check return value rather than errno
13913         * tests/test-getlogin_r.c (main): As per POSIX we should be
13914         verifying the return value from getlogin_r() rather than errno.
13916 2014-05-22  Pádraig Brady  <P@draigBrady.com>
13918         getlogin_r-tests: fix various issues in recent change
13919         * tests/test-getlogin_r.c: Include required headers that were
13920         missed in recent commit eec20b4e.
13921         Also consistently check the errno rather than the return value from
13922         getlogin_r as POSIX only specifies that non zero is returned on error.
13923         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
13925 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
13927         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
13928         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
13929         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
13930         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
13931         * lib/spawn-pipe.c:
13932         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
13933         and then 'int open64(const char *, int, ...);', which means the
13934         declaration for 'open' gets lost if we later '#undef open'.
13935         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
13936         where the compilation reported the non-fatal error "In function
13937         'openat_proc_name' ... warning: implicit declaration of function
13938         'open'".  In this case the error is relatively harmless, but in
13939         other cases it might not be so minor.
13941 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
13943         xalloc: don't potentially generate invalid code for xmemdup calls
13944         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
13945         this function can initialize the newly-allocated storage with new
13946         pointers, which means this function is not malloc-like.  See:
13947         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
13949 2014-05-19  Pádraig Brady  <P@draigBrady.com>
13951         getlogin_r-tests: avoid false failure under sudo/ssh etc.
13952         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
13953         changes from commit 97249cf29 to not depend on environment variables.
13955 2014-05-18  Pádraig Brady  <P@draigBrady.com>
13957         getlogin-tests: avoid false failure under cron
13958         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
13959         since that's not what's under test.  Centos 6 was seen to return
13960         EINVAL for ttyname() when run from cron.
13962 2014-05-16  Jim Meyering  <meyering@fb.com>
13964         mbrtowc.m4: fix a comment typo
13965         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
13966         emitted documentation string.
13968 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
13970         mbrlen, mbrtowc: fix bug with empty input
13971         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
13972         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
13973         so this is mainly for documentation.
13974         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
13975         (gl_FUNC_MBRTOWC): Use it.
13976         * tests/test-mbrtowc.c (main): Test for the bug.
13978 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
13980         doc: document mbrtowc and mbrlen problem with empty input
13981         * doc/posix-functions/mbrlen.texi (mbrlen):
13982         * doc/posix-functions/mbrtowc.texi (mbrtowc):
13983         Document portability problem when the input string is empty.  See:
13984         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
13986         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
13987         Problem reported by Eli Zaretskii in:
13988         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
13989         * doc/posix-functions/execl.texi (execl):
13990         * doc/posix-functions/execle.texi (execle):
13991         * doc/posix-functions/execlp.texi (execlp):
13992         * doc/posix-functions/execv.texi (execv):
13993         * doc/posix-functions/execve.texi (execve):
13994         * doc/posix-functions/execvp.texi (execvp):
13995         Mention spawn+exit problem on non-Cygwin Windows platforms.
13997 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
13999         getlogin-tests: avoid false failure under sudo/ssh etc.
14000         * modules/getlogin-tests (configure.ac): Check for ttyname().
14001         * tests/test-getlogin.c (main): Don't depend on environment variables
14002         to correlate with getlogin(), since sudo and ssh etc. can tamper
14003         with the LOGNAME and USER env vars.  Instead lookup the name from
14004         the uid associated with the stdin tty.
14006 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
14008         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
14009         These were found when building the latest grep snapshot on IRIX 6.5.
14010         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
14011         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
14012         never used later.
14013         * lib/quotearg.c (quoting_options_from_style):
14014         * lib/xstrtol.c (__xstrtol):
14015         Use enum instead of 0, to pacify IRIX 6.5 cc.
14017 2014-04-18  Pádraig Brady  <P@draigBrady.com>
14019         gitlog-to-changelog: revert inclusion of git-log-fix file
14020         * build-aux/git-log-fix: Delete dummy file.
14021         * modules/gitlog-to-changelog: Don't reference (overwrite)
14022         the project specific git-log-fix file.
14024 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
14026         maint.mk: Relax the copyright check to cater for non FSF projects
14027         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
14028         to not require the "Free" suffix after the copyright years.
14030 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
14032         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
14033         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
14034         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
14035         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
14036         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
14038 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
14040         exclude: port to strict C99
14041         Strict C does not allow converting a function pointer to void *
14042         and vice versa.  Pass a pointer to a function pointer instead.
14043         * lib/exclude.c (add_exclude_file):
14044         Pass the address of the function pointer.
14045         (call_addfn): And deference the address here, to match.
14047 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
14049         regex: do not depend on malloc-gnu
14050         * modules/regex (Depends-on): Remove malloc-gnu.
14051         It's no longer needed, because of the 2012-12-29 patch
14052         "regex: port to hosts where malloc (0) == NULL".
14053         Reported by Nathan Kennedy in:
14054         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
14056 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
14058         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
14059         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
14060         * doc/posix-functions/expl.texi: Mention the workaround.
14062 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
14064         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
14065         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
14066         size to be zero even when the pointer is nonnull.  This
14067         accommodates the use case where P is malloc (0) and *PN is 0 on a
14068         host where malloc (0) yields nonnull.
14070 2014-04-09  Eric Blake  <eblake@redhat.com>
14072         fts: avoid unnecessary strlen calls
14073         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
14075 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
14077         fts: avoid unnecessary strlen calls
14078         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
14079         when that can be faster than strlen.
14081 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
14083         fts: avoid unnecessary strlen calls
14084         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
14085         (fts_build): Store the length of the dp->d_name entry in a local variable
14086         instead of calling strlen() several times via the above, removed macro.
14087         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
14088         run by ~4%, yet this reduces the execution time by about a third if run
14089         via "ltrace -c rm -rf some-dir".
14091 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
14093         obstack: Remove ancient NeXTSTEP gcc support conditional
14094         This change will ease merging with glibc.  The "#if ... __NEXT__"
14095         causes a warning with -Wundef which glibc now enables by default.
14096         Problem reported by Will Newton in
14097         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
14098         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
14099         so go with that.
14100         * lib/obstack.h (__extension__):
14102 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
14104         obstack: merge with glibc changes
14105         * lib/obstack.c, lib/obstack.h: Merge from glibc.
14106         This is mostly indenting and commentary changes.
14107         Instances of 'register' have been removed.
14109 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
14111         strftime: wrap macros in "do {...} while(0)"
14112         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
14113         this macro in "do {...} while(0)" to prevent false use as a
14114         single statement, e.g., in an un-braced "{}" else-block.
14115         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
14116         (strftime_case_): Remove 'else' after 'goto' - which was the
14117         only non-fatal, un-braced use of one of the above macros.
14118         Spotted by coverity (NESTING_INDENT_MISMATCH).
14120 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
14122         modechange: avoid memory leaks for invalid octal modes
14123         * lib/modechange.c (mode_compile): During the parsing of
14124         notations like +40, free the 'mc' buffer for invalid mode
14125         strings like +17777 (greater than the maximum octal mode),
14126         =18 (bad octal mode characters) or u=1 ('affected' with
14127         octal modes).
14128         Reproducer, e.g.:
14129             $ valgrind --leak-check=full chmod +17777 file
14130         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
14131         add notations +40, 00440, etc.".
14132         Spotted by coverity (RESOURCE_LEAK).
14134 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
14136         gitlog-to-changelog: include a dummy git-log-fix file
14137         Problem reported by Nathan Stratton Treadway in:
14138         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
14139         * build-aux/git-log-fix: New file.
14141 2014-03-13  Jim Meyering  <meyering@fb.com>
14143         gitlog-to-changelog: also include the file, git-log-fix
14144         * modules/gitlog-to-changelog (Files): Add git-log-fix.
14145         Reported by Assaf Gordon.
14147 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
14149         regex: port to OS X 10.8.5 en_US.UTF-8 locale
14150         This fixes a bug when ignoring case and when comparing the
14151         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
14152         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
14153         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
14154         titlecase letter is neither lowercase nor uppercase, but
14155         uppercasing the titlecase letter (via towupper) yields the
14156         uppercase letter, so the two letters should match when ignoring case.
14157         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
14158         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
14159         Don't test whether a character is lowercase before uppercasing it.
14161 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
14163         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
14164         This is basically one of the options Bruno Haible proposed in:
14165         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
14166         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
14167         * lib/stdint.in.h: Use it.
14168         * modules/stdint (Depends-on): Add sys_types.
14170 2014-02-26  Pádraig Brady  <P@draigBrady.com>
14172         parse-datetime: fix crash or infloop in TZ="" parsing
14173         * lib/parse-datetime.y (parse_datetime): Break out of the
14174         TZ="" parsing loop once the second significant " is found.
14175         Also skip over any subsequent whitespace to be consistent
14176         with the non TZ= case.
14177         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
14179 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
14181         savedir: new symbol for fast-read version
14182         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
14183         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
14184         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
14185         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
14187 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
14189         unistd: port readlink to Mac OS X 10.3.9
14190         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
14191         around self-include problem in Mac OS X 10.3.9 when combined with
14192         readlink module.  Problem reported by Klaus Zietler in
14193         <http://bugs.gnu.org/16825>.
14195 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
14197         diffseq: remove TOO_EXPENSIVE heuristic
14198         Problem with diffutils reported by Vincent Lefevre in
14199         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
14200         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
14201         Although appropriate for circa-1993 hardware, these days the heuristic
14202         seems to be more trouble than it's worth.
14203         * lib/diffseq.h: Modernize citations.
14204         (struct context): Remove member too_expensive.
14205         All uses changed.
14206         (struct partition): Remove members lo_minimal, hi_minimal.
14207         All uses changed.
14208         (diag, compareseq): Remove arg find_minimal.  All uses changed.
14209         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
14210         1993 to make 'diff' run faster (but not as well) on large inputs.
14211         These days, computers are fast enough that it's typically better
14212         to run slower but more accurately.
14213         * lib/fstrcmp.c: Remove duplicate comment.
14214         * lib/fstrcmp.c (strcmp_bounded):
14215         * lib/git-merge-changelog.c (compute_differences):
14216         Adjust to diffseq.h changes.
14217         * NEWS: Document the change.
14219         savedir: simplify by using stpcpy
14220         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
14221         (streamsavedir): Use stpcpy instead.
14222         * modules/savedir (Depends-on): Add stpcpy.
14224 2014-02-21  Pádraig Brady  <P@draigBrady.com>
14226         spawn: fix link error on uclibc
14227         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
14228         to incorporate -lrt if needed (on uclibc for example).
14229         * modules/posix_spawn: Reference the substituted LIB.
14231 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
14232         timer: fix uClibc detection of threading
14233         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
14234         enabled in uClibc.
14236 2014-02-21  Eric Blake  <eblake@redhat.com>
14238         maintainer-makefiles: provide AC_PROG_SED for older autoconf
14239         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
14241 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
14243         exclude: add support for posix regexps
14245         This commit adds support for POSIX extended regular expressions
14246         and fixes a long-standing memory leak (pattern buffer was never
14247         freed).  It also implements a new interface function to read
14248         exclude patterns from a FILE, which passes an additional parameter
14249         to its callback function, thereby allowing to preserve its state
14250         between invocations.
14252         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
14253         (pattern_buffer): New struct.
14254         (exclude): New member patbuf.
14255         (exclude_add_pattern_buffer): New function.
14256         (free_exclude_segment): Free regexps.
14257         (free_exclude): Free allocated pattern buffers.
14258         (exclude_patopts): New function.
14259         (file_pattern_matches): Use exclude_patopts.
14260         (add_exclude): support regexps.
14261         (add_exclude_fp): New function.
14262         (add_exclude_file): Rewrite using add_exclude_fp.
14263         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
14264         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
14265         (add_exclude_fp)
14266         (add_exclude_file): Rewrite using add_exclude_fp.
14267         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
14268         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
14269         (add_exclude_fp)
14270         (exclude_add_pattern_buffer): New prototypes.
14271         * modules/exclude: Depends on regex and filename.
14273 2014-02-20  Eric Blake  <eblake@redhat.com>
14275         maintainer-makefiles: use $(SED) for syntax check
14276         * modules/maintainer-makefile (configure.ac): Check for sane sed.
14277         * top/maint.mk: Change sed to $(SED).
14279 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
14280             Paul Eggert  <eggert@cs.ucla.edu>
14282         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
14283         Patch based on an idea by Dick Streefland in
14284         <https://savannah.gnu.org/patch/?7892>.
14285         * NEWS: Document this.
14286         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
14287         (direntry_t, comparison_function): New types.
14288         (direntry_cmp_name): New function.
14289         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
14290         (streamsavedir, savedir): New arg OPTION.
14291         (streamsavedir): Simplify memory allocation.
14292         (fdsavedir): Remove.
14293         * lib/savedir.h (enum savedir_option): New type.
14294         (streamsavedir, savedir): New arg OPTION.
14295         (fdsavedir): Remove.
14297 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
14299         file-type: add support for doors and other less-common file types
14300         Problem with S_ISDOOR reported by Rich Burridge.
14301         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
14302         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
14303         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
14305 2014-01-23  Eric Blake  <eblake@redhat.com>
14307         pthread: work around winpthread header pollution on mingw
14308         * lib/time.in.h: Move pthread workarounds...
14309         * lib/pthread.in.h: ...here.
14310         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
14311         detect macro pollution on mingw.
14312         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
14314 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
14316         qacl: check for fchmod
14317         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
14318         and qset-acl.c both use HAVE_FCHMOD.
14320 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
14322         fdopen-tests: port to Tru64
14323         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
14324         descriptor that is not open, as POSIX doesn't specify the
14325         resulting behavior and the test does not work on Tru64.
14326         Problem reported by Steven M. Schweda in:
14327         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
14329         stdalign: port to HP-UX compilers
14330         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
14331         if __HP_cc or __HP_aCC are nonzero.
14333 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
14335         strtoimax: port to platforms lacking 'long long'
14336         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
14337         check whether strtoll is declared, which causes the C file to
14338         wrongly report an error.  Problem reported by Steven M. Schweda in:
14339         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
14340         * lib/strtoimax.c (strtoull):
14341         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
14342         (strtoll): Declare only if HAVE_LONG_LONG_INT.
14344 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
14346         relocatable-perl: fix texi syntax
14347         * doc/relocatable-maint.texi: Escape braces.
14349 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
14351         relocatable-perl: like relocatable-script, but for Perl scripts
14352         * build-aux/relocatable.pl.in: Add.
14353         * doc/relocatable-maint.texi: Add documentation.
14354         * modules/relocatable-perl: Add.
14356 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
14358         tests: fix export bug in previous patch
14359         Problem reported by Jim Meyering.
14360         * tests/init.sh (re_shell): New var, which is exported instead of
14361         re_shell_.
14363         tests: simplify porting to Solaris 10 /bin/sh
14364         Some test cases in 'grep' need a shell that groks '$(';
14365         export re_shell_ for their benefit.  Problem reported for 'grep'
14366         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
14367         * tests/init.sh (re_shell_): Export if it's used.
14369 2014-01-06  Eric Blake  <eblake@redhat.com>
14371         md5, sha1, sha256, sha512: support older autoconf
14372         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
14373         for autoconf < 2.63b.
14375         include_next: port to autoconf 2.63
14376         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
14378 2014-01-04  Jim Meyering  <meyering@fb.com>
14380         maint: add a gnulib-local rule to keep non-ascii out of .texi files
14381         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
14382         so that "make sc_maint" will ding anyone who puts non-ascii
14383         in any of gnulib's .texi files.
14385 2014-01-03  Jim Meyering  <meyering@fb.com>
14387         freadable, fwritable, fwriting: declare with the "pure" attribute
14388         * lib/freadable.h (freadable): Declare with the "pure" attribute.
14389         * lib/fwritable.h (fwritable): Likewise.
14390         * lib/fwriting.h (fwriting): Likewise.
14391         Suggested by Bruno Haible.
14393         maint.mk: adapt openat.h-include-without-use test
14394         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
14395         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
14396         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
14397         With this change, running "make sc_maint" in gnulib's top-level
14398         directory now passes for me.
14400 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
14402         doc: use ASCII in .texi files where UTF-8 isn't needed
14403         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
14404         * doc/posix-functions/setkey.texi, doc/regex.texi:
14405         Use ASCII input, not UTF-8.
14407 2014-01-02  Jim Meyering  <meyering@fb.com>
14409         freading: declare with the "pure" attribute
14410         * lib/freading.h (freading): Declare with the "pure" attribute.
14412         manywarnings: remove -Wmudflap
14413         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
14414         it is no longer supported in gcc-4.9-to-be.
14416 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
14418         relocatable-script: remove unused code
14419         Problem reported by Reuben Thomas in:
14420         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
14421         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
14423 2014-01-01  Jim Meyering  <meyering@fb.com>
14425         maint: fix public-submodule-commit to work with newer git
14426         * top/maint.mk (public-submodule-commit): Remove excess quoting.
14427         We were over-quoting the test arguments, and somewhere prior to
14428         version 1.8.5.2.229, git stopped removing those excess quotes,
14429         which made the test fail, since the unexpanded strings would
14430         always differ; using GIT_TRACE=1 confirmed that the git merge-base
14431         command wasn't even being run.
14433 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
14435         doc: update main copyright year
14436         * doc/gnulib.texi: Update copyright date.
14438 2014-01-01  Eric Blake  <eblake@redhat.com>
14440         version-etc: new year
14441         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
14442         * all files: run 'make update-copyright'
14444 2013-12-24  Eric Blake  <eblake@redhat.com>
14446         passfd: give nicer error for recvfd at eof
14447         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
14448         * tests/test-passfd.c (main): Enhance test to cover this.
14450 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
14452         gettimeofday: port recent C++ fix to Emacs
14453         Without this further patch, Emacs won't build due to
14454         the portcheck failing.  Also, this simplifies the patch a bit.
14455         * lib/time.in.h (localtime, gmtime): Don't replace unless
14456         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
14457         * lib/time.in.h (localtime, gmtime):
14458         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
14459         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
14460         * modules/time (time.h):
14461         Don't worry about the possibility of localtime and gmtime
14462         being absent; they're present in all C libraries we know about.
14463         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
14464         Don't assume sys_time is present and has been initialized.
14465         Instead, use a hack that should work even if it hasn't been.
14466         Don't use a portcheck for gmtime or localtime; this supports
14467         the hack.
14468         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
14470 2013-12-17  John W. Eaton  <jwe@gnu.org>
14472         gettimeofday: fix C++ crosscompilation
14474         Never replace gmtime and localtime by macros when compiling with
14475         C++, this prevents <ctime> from being included.
14477         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
14478         define gmtime and localtime as preprocessor macros.  Instead
14479         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
14480         REPLACE_LOCALTIME substitutions.
14481         * lib/time.in.h: Declare gmtime and localtime when needed.
14482         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
14483         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
14484         * modules/time: Depend on gettimeofday, and substitute the above
14485         variables in time.h.
14487 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
14489         qacl: port to Windows better
14490         See Eli Zaretskii in
14491         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
14492         * lib/file-has-acl.c (acl_access_nontrivial):
14493         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
14494         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
14496 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
14498         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
14499         * lib/gl_openssl.h: Cast void pointers to a specific type.
14501 2013-12-07  Pádraig Brady  <P@draigBrady.com>
14503         open-tests: fix build failure with -Werror=old-style-declaration
14504         * tests/test-open.h: Reorder the inline to avoid the issue.
14506 2013-12-07  Pádraig Brady  <P@draigBrady.com>
14508         md5, sha1, sha256, sha512: fix link error with partial libcrypto
14509         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
14510         init time, so that if early checks find crypto routines,
14511         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
14512         avoiding link failures.
14514 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
14516         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
14517         This provides a new way to specify the default for
14518         gl_CRYPTO_CHECK, one that is reflected in the --help message.
14519         Emacs uses this, as well as the old way.
14520         This attempts to implement a suggestion by Pádraig Brady in
14521         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
14522         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
14523         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
14525         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
14526         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
14527         Add support for a new option, --with-openssl=auto, which causes
14528         the library to be used if available and silently ignored if not.
14529         Add support to allow configure.ac to specify its own
14530         default, by setting with_openssl_default before invoking gl_INIT.
14532 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
14534         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
14535         Problem reported by Daiki Ueno in:
14536         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
14537         * tests/test-open.h (__always_inline):
14538         New macro, if not already defined.
14539         (test_open): Use it.
14541 2013-12-04  Eric Blake  <eblake@redhat.com>
14543         include_next: minimize code duplication
14544         * modules/include_next (Depends-on): Add absolute-header.
14545         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
14546         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
14548 2013-12-04  Pádraig Brady  <P@draigBrady.com>
14550         getcwd: fix compile error in configure check
14551         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
14553 2013-12-04  Pádraig Brady  <P@draigBrady.com>
14555         regex: suppress core dumps from detection code
14556         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
14557         to suppress core dumps that may well occur on glibc systems.
14558         These core dumps might not be cleaned up automatically, or could
14559         trigger some system core dump handling logic.
14561 2013-12-03  Pádraig Brady  <P@draigBrady.com>
14563         md5, sha1, sha256, sha512: support mandating use of openssl
14564         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
14565         description, to list the now 3 separate options.  also don't
14566         mention the default=no, since this is implicit given the option
14567         is described as --with-openssl rather than --without-openssl.
14568         If projects change the default they're free to document that.
14569         with --with-openssl[=yes] we now error out when the specified
14570         hash algorithm is not available in libcrypto.
14572 2013-12-03  Ivailo  <xakepa10@gmail.com>
14574         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
14575         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
14576         -Wformat-nonliteral checks, as these edge cases are part of the test.
14578 2013-12-03  Eric Blake  <eblake@redhat.com>
14580         regex: avoid glibc deadlock during configure
14581         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
14582         glibc bug 15078 in turn triggers bug 16159.
14583         Reported by Michal Privoznik.
14585 2013-12-02  Pádraig Brady  <P@draigBrady.com>
14587         md5, sha1, sha256, sha512: use openssl routines if available.
14588         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
14589         routines will be used if available, requiring apps to link @LIB_CRYPTO@
14590         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
14591         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
14592         in the standard system location.
14593         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
14594         * m4/sha256.m4: Likewise with SHA256.
14595         * m4/sha512.m4: Likewise with SHA512.
14596         * m4/md5.m4: Likewise with MD5.
14597         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
14598         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
14599         * lib/sha256.h: Likewise with SHA256.
14600         * lib/sha512.h: Likewise with SHA512.
14601         * lib/md5.h: Likewise with MD5.
14602         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
14603         * lib/sha256.c: Likewise with SHA256.
14604         * lib/sha512.c: Likewise with SHA512.
14605         * lib/md5.c: Likewise with MD5.
14606         * modules/crypto/sha1 (Link:): Add the new optional lib.
14607         (Depends-on:): Add dependency on extern-inline.
14608         * modules/crypto/sha256: Likewise.
14609         * modules/crypto/sha512: Likewise.
14610         * modules/crypto/md5: Likewise.
14611         * modules/crypto/sha1-tests: Reference the lib here too.
14612         * modules/crypto/md5-tests: Likewise.
14613         * modules/crypto/gc-des-tests: Likewise.
14614         * modules/crypto/gc-hmac-md5-tests: Likewise.
14615         * modules/crypto/gc-hmac-sha1-tests: Likewise.
14616         * modules/crypto/gc-hmac-sha256-tests: Likewise.
14617         * modules/crypto/gc-hmac-sha512-tests: Likewise.
14618         * modules/crypto/gc-md5-tests: Likewise.
14619         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
14620         * modules/crypto/gc-sha1-tests: Likewise.
14621         * modules/crypto/gc-tests: Likewise.
14622         * modules/crypto/hmac-md5-tests: Likewise.
14623         * modules/crypto/hmac-sha1-tests: Likewise.
14624         * modules/crypto/hmac-sha256-tests: Likewise.
14625         * modules/crypto/hmac-sha512-tests: Likewise.
14627 2013-11-29  RV1971  <rv1971@web.de>
14629         base64: (trivial) fix compilation regression on some compilers
14630         * lib/base64.c: Don't return the void function,
14631         instead split to a separate return statement.
14633 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
14635         ignore-value: revert previous code change
14636         * lib/ignore-value.h (ignore_value): Use __extension__ and
14637         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
14638         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
14639         Change the comment to try to explain this better.
14641 2013-11-27  Pádraig Brady  <P@draigBrady.com>
14643         selinux-h: improve stub types and add more stub functions
14645         * lib/se-selinux.in.h: Change security_context_t to a typedef
14646         rather than a define, as it's a pointer type and so is better
14647         as a typedef to avoid issues declaring multiple variables
14648         with the comma operator.  Also add stub for string_to_security_class().
14649         * lib/se-context.in.h: Add stub functions for
14650         context_{type,range,role,user}_get().
14652 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
14654         ignore-value: prefer GCC version back through 2.0
14655         The code didn't match the comments, so I did a bit of software
14656         archaeology.  GCC 2.0 seems to support __extension__ and
14657         __typeof__, so fix both code and comments to use 2.0.
14658         * lib/ignore-value.h (ignore_value): Use __extension__ and
14659         __typeof__ for GCC 2.0 through 3.3, too.
14661 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
14663         pty: Activate the signature wrapper of forkpty.
14664         The intended preprocessor macro HAVE_FORKPTY is
14665         never defined, yet `lib/forkpty.c' depends on it.
14667         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
14668         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
14669         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
14671 2013-11-18  Jim Meyering  <meyering@fb.com>
14672         and Paul Eggert  <eggert@cs.ucla.edu>
14674         quotearg: don't attempt to store 1 << 31 into an "int"
14675         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
14676         gcc's new -fsanitize=undefined and running its tests triggered some
14677         new test failures due to undefined behavior, all with this diagnostic:
14678           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
14679             cannot be represented in type int
14680         Rather than shifting "1" left to form a mask, shift the bits right and
14681         simply use "1" as the mask.
14683 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
14685         error: depend on stdio
14686         Problem reported by Nikos Mavrogiannopoulos in
14687         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
14688         * modules/error (Depends-on): Add stdio.
14690 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
14692         * doc/relocatable-maint.texi (Supporting Relocation): Improve
14693         wording.
14694         Reported by Reuben Thomas <rrt@sc3d.org>.
14696 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
14698         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
14699         New function and macro, to work around _DARWIN_C_SOURCE problem.
14700         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
14702 2013-11-11  Pádraig Brady  <P@draigBrady.com>
14704         base64: provide a fast path for encoding well sized buffers
14705         Avoid conditionals in the base64 encoding loop,
14706         which was seen to give 60% better throughput.
14707         * lib/base64.c (base64_encode_fast): A new function to be called
14708         when we don't want to NUL terminate, and we have enough space
14709         in the output to encode the given input.
14710         (base64_encode): Call the _fast() version when appropriate.
14711         Also remove a redundant mask with 0x3F on the first encoded byte.
14713 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
14715         extern-inline: port better to OS X 10.9
14716         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
14717         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
14718         OS X 10.9, except for g++ where the bug is still present.
14719         See <http://trac.macports.org/ticket/41033>.
14721 2013-11-08  Eric Blake  <eblake@redhat.com>
14723         fpending: fix regression on DragonFly BSD
14724         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
14725         * lib/fpending.h (__fpending): Don't declare twice.
14726         Reported by GW in
14727         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
14729 2013-11-05  Jim Meyering  <meyering@fb.com>
14731         hash: relax license to LGPLv2+, for libguestfs
14732         * modules/hash (License): Change from GPL to LGPLv2+.
14734 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
14736         intprops: port to Oracle Studio c99
14737         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
14738         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
14740 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
14742         obstack: pacify HP C
14743         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
14744         warning "conversion from pointer to smaller integer" from HP
14745         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
14746         C89 or later nowadays, so cast to void instead of int.  Privately
14747         reported by H.Merijn Brand.  Also, change header to match glibc's,
14748         to make checking against glibc easier.
14750 2013-10-29  Jim Meyering  <meyering@fb.com>
14752         maint.mk: prefer gpgv2 over gpgv
14753         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
14754         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
14755         Reported by Gary Vaughan.
14757 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
14759         isnan: port to VAX
14760         Reported by John Klos for NetBSD-5/VAX in
14761         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
14762         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
14763         (FUNC): Use it.
14765 2013-10-28  Jim Meyering  <meyering@fb.com>
14767         gnulib-tool: protect against CDPATH
14768         * gnulib-tool: Many "cd" built-in functions print a directory name
14769         to stdout when CDPATH is set, e.g.,
14770           $ bash -c 'CDPATH=/; cd tmp'
14771           /tmp
14772         Unset it, when possible.  Prompted by a comment from Bruce Korb.
14774         maint.mk: restore functionality removed by recent change...
14775         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
14776         the context of a shallow-cloned gnulib repository: "git describe"
14777         would fail in such a directory.  However, that change made it so
14778         the reported gnulib revision no longer includes the version number
14779         or a commit count, even when run from a full clone.
14780         * top/maint.mk (gnulib-version): Use the full "git describe"
14781         output when possible, e.g., the form above, rather than the
14782         abbreviated, no-tag, no-commit-count string, and fall back to
14783         using a 10-byte hash, rather than the default minimal-length
14784         hash prefix, since while the minimal-length one may be fine today,
14785         it is likely not to be unique for very long.
14787 2013-10-26  Jim Meyering  <meyering@fb.com>
14789         maint.mk: fix "release" target to build _version
14790         This fixes a bug in README-release whereby following the outlined
14791         steps, one would publish a tarball whose programs would report
14792         --version output not consistent with the package version number.
14793         This bug caused grep-2.15 to produce a grep program whose
14794         --version option made it print 2.14.56-1e3d rather than 2.15.
14795         * top/maint.mk (release): Making this target build "_version"
14796         ensures that the new version number is reflected in configure.
14798 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
14800         install-reloc: Support multi-binary installation.
14801         * build-aux/install-reloc: Support installing multiple programs in
14802         one invocation, as done by Automake starting with commit
14803         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
14804         Haible <bruno@clisp.org>, archived at
14805         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
14806         Reported by Sylvain <beuc@gnu.org>.
14808 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
14810         selinux-h: Really build without selinux when library is missing.
14811         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
14812         continue without selinux, as already told in the warning message.
14814 2013-10-21  Jim Meyering  <meyering@fb.com>
14816         regex: also remove dependency on HAVE_WCSCOLL
14817         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
14819 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
14821         xfreopen: Fix typo. s/frepoen/freopen/
14822         * lib/xfreopen.c: Fix description.
14823         * modules/xfreopen: Likewise.
14825 2013-10-21  Jim Meyering  <meyering@fb.com>
14827         regex: don't depend on wcscoll
14828         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
14829         It is no longer used.
14831 2013-10-20  Jim Meyering  <meyering@fb.com>
14833         error: add the printf attribute to a static function
14834         * lib/error.c (error_tail): Add the printf attribute, to placate
14835         gcc's -Werror=suggest-attribute=format option.
14837 2013-09-30  Jim Meyering  <meyering@fb.com>
14839         fpending, obstack, strerror-override: use pure+const function attrs
14840         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
14841         * lib/obstack.c (_obstack_allocated_p): Likewise.
14842         * lib/obstack.h (_obstack_memory_used): Likewise.
14843         (_obstack_memory_used): Likewise.
14844         * lib/strerror-override.h (strerror_override): Declare with
14845         the "const" attribute.
14847 2013-10-18  Eric Blake  <eblake@redhat.com>
14849         extern-inline: make safe for -Wundef usage
14850         Reported by Vladimir 'phcoder' Serbinenko in
14851         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
14852         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
14854 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
14856         mkfifo-tests, etc.: allow HP-UX 11.11 bug
14857         Problem reported by Daniel Richard G. in
14858         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
14859         * doc/posix-functions/mkfifo.texi (mkfifo):
14860         * doc/posix-functions/mkfifoat.texi (mkfifoat):
14861         * doc/posix-functions/mknod.texi (mknod):
14862         * doc/posix-functions/mknodat.texi (mknodat):
14863         Document the HP-UX 11.11 bug.
14864         * tests/test-mkfifo.h (test_mkfifo):
14865         Allow the HP-UX 11.11 bug.
14867 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
14869         acl: allow cross-compilation to Gentoo
14870         Problem reported by Gabriel Marcano in
14871         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
14872         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
14873         test only whether it links.
14875 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
14877         mgetgroups: remove dependency on realloc-gnu
14878         The dependency violates the comment in realloc-gnu, which
14879         says that tests can't depend on realloc-gnu; some tests depend
14880         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
14881         Problem reported by Daniel Richard G. in
14882         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
14883         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
14884         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
14885         not realloc-gnu.
14887 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
14889         regex-tests: port to HP-UX 11.11
14890         Problem reported by Daniel Richard G. in
14891         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
14892         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
14894 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
14896         verify: document some 'assume' pitfalls
14897         * doc/verify.texi (Compile-time Assertions):
14898         Mention that 'assume (E)' can sometimes slow things down.
14899         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
14901 2013-10-10  Eric Blake  <eblake@redhat.com>
14903         strtoumax: fix typo in previous commit.
14904         * modules/strtoumax (Depends-on): Fix typo.
14905         * modules/strtoimax (Depends-on): Likewise.
14907 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
14909         strtoumax: port to Solaris 8
14910         This problem was introduced in the recent HP-UX patch.
14911         Reported by Tom G. Christensen in
14912         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
14913         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
14914         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
14916 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
14918         strtoimax, strtoumax: port to HP-UX 11.11
14919         Problem reported by Daniel Richard G. in
14920         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
14921         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
14922         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
14923         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
14924         REPLACE_STRTOUMAX.
14925         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
14926         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
14927         Replace the function if defined as a macro but not as a function.
14928         * modules/inttypes-incomplete (inttypes.h): Substitute
14929         REPLACE_STRTOUMAX.
14930         * modules/strtoumax (configure.ac): Replace strtoumax if
14931         REPLACE_STRTOUMAX.
14933 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
14935         strtoimax: port to HP-UX 11.11
14936         Problem reported by Daniel Richard G.
14937         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
14938         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
14939         they might clash with inttypes.h.
14941 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
14943         New module 'count-trailing-zeros'.
14944         * MODULES.html.sh: Mention it.
14945         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
14946         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
14947         * modules/count-trailing-zeros-tests:
14948         * tests/test-count-trailing-zeros.c:
14949         New files.
14951         count-leading-zeros: port to MSC; support types wider than 64 bits
14952         The ideas behind the MSC port are stolen from Emacs.
14953         * lib/count-leading-zeros.h:
14954         Don't include verify.h: it's no longer needed, as types wider than
14955         64 bits are now supported.
14956         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
14957         performance with MSC.  All uses changed.  Do not assume that TYPE
14958         has at most 64 bits.
14959         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
14960         All uses changed.  Fold the subtraction from 31 into the table.
14962         count-one-bits: port to MSC; support types wider than 64 bits
14963         The ideas behind the MSC port are stolen from Emacs.
14964         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
14965         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
14966         Don't include verify.h: it's no longer needed, as types wider than
14967         64 bits are now supported.
14968         (COUNT_ONE_BITS_GENERIC): New macro.
14969         (popcount_supported) [_MSC_VER]: New inline function.
14970         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
14971         performance with MSC.  All uses changed.  Do not assume that TYPE
14972         has at most 64 bits.
14973         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
14975 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
14977         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
14978         * lib/mountlist.c (read_file_system_list): fix leak of directory
14979         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
14981 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
14983         tests: improve diagnostic when an assertion fails
14984         * tests/macros.h (ASSERT): Report the assertion that failed.
14986 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
14988         verify: new macro 'assume'
14989         This is taken from Emacs, and should be generally useful.
14990         * doc/verify.texi (assume): Document it.
14991         * lib/verify.h (assume): New macro.
14992         (__has_builtin): Expand to 0 if not defined.
14994 2013-09-26  Eric Blake  <eblake@redhat.com>
14996         dup2, dup3: work around another cygwin crasher
14997         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
14998         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
14999         * tests/test-dup2.c (main): Likewise.
15000         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
15001         * lib/dup3.c (dup3): Likewise.
15002         * doc/posix-functions/dup2.texi (dup2): Document it.
15003         * doc/glibc-functions/dup3.texi (dup3): Likewise.
15005         getdtablesize: work around cygwin issue
15006         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
15007         * modules/getdtablesize (configure.ac): Build replacement.
15008         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
15009         * modules/unistd (Makefile.am): Expose the witness.
15010         * lib/unistd.in.h (getdtablesize): Declare replacement.
15011         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
15012         * tests/test-getdtablesize.c (main): Test it.
15013         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
15015 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
15017         pmccabe2html: escaping of special characters
15018         Escape all '<', '>', and '&' in HTML output.
15019         * build-aux/pmccabe2html (html_fnc): Call gsub()
15020         instead of sub() to capture all '<', '>', and '&'.
15021         Neither of '<' and '>' is special in a regexp,
15022         so first arguments to gsub() are corrected. Also,
15023         in replacement strings, ampersand must be escaped.
15024         Finally, '&' must be handled first, then '<' and '>'.
15026 2013-09-24  Eric Blake  <eblake@redhat.com>
15028         manywarnings: enable nicer gcc warning messages
15029         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
15030         some -f options for optimal warnings.
15032 2013-09-21  Jim Meyering  <meyering@fb.com>
15034         timespec: use the new TIMESPEC_RESOLUTION in a few more places
15035         * lib/timespec-add.c (timespec_add): Also replace 999999999
15036         with TIMESPEC_RESOLUTION - 1.
15037         * lib/timespec-sub.c (timespec_sub): Likewise.
15039 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
15041         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
15042         Problem reported by Dagobert Michelsen via Eric Blake in
15043         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
15044         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
15045         not AC_COMPILE_IFELSE.
15047 2013-09-23  Eric Blake  <eblake@redhat.com>
15049         configmake: support new --runstatedir option
15050         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
15051         even if autoconf was too old to provide the command line option.
15052         * modules/configmake (Makefile.am): Propagate it to .h file.
15054 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
15056         ctype, string: depend on extern-inline
15057         This is needed to complete the recent OS X fixes.
15058         Also, fix related documentation as suggested by Eric Blake.
15059         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
15060         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
15061         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
15062         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
15063         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
15064         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
15065         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
15066         * doc/posix-functions/toupper.texi:
15067         List the 'ctype' gnulib module.
15068         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
15069         * doc/posix-functions/strncpy.texi:
15070         List the 'string' gnulib module.
15071         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
15072         Add string.
15073         * modules/ctype, modules/string (Depends-on): Add extern-inline.
15075 2013-09-19  Pádraig Brady  <P@draigBrady.com>
15077         userspec: support optional parameters to parse_user_spec()
15078         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
15079         then avoid group processing and treat the full spec as a user.
15080         (parse_with_separator): Allow the USERNAME and GROUPNAME to
15081         be optional params (NULL), in which case they're ignored.
15083 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
15085         timespec: new function make_timespec, and new constants
15086         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
15087         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
15088         (make_timespec): New function.
15089         * lib/dtotimespec.c (dtotimespec):
15090         * lib/timespec-add.c (timespec_add):
15091         * lib/timespec-sub.c (timespec_sub):
15092         * lib/utimens.c (validate_timespec):
15093         * lib/utimensat.c (rpl_utimensat):
15094         Use these new constants and functions.
15096         stdio: OS X port of putc_unlocked + extern inline
15097         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
15098         * doc/posix-functions/putc_unlocked.texi:
15099         * doc/posix-functions/putchar_unlocked.texi:
15100         Document this portability problem.
15102         signal: OS X port of sigaddset etc. + extern inline
15103         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
15104         (sigismember): #undef on problematic Apple platforms.
15105         * doc/posix-functions/sigaddset.texi:
15106         * doc/posix-functions/sigdelset.texi:
15107         * doc/posix-functions/sigemptyset.texi:
15108         * doc/posix-functions/sigfillset.texi:
15109         * doc/posix-functions/sigismember.texi:
15110         Document this portability problem.
15112         extern-inline: do not always suppress extern inline on OS X
15113         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
15114         extern inline on Apple only if the particular compile-time
15115         configuration is known to have the problem.
15116         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
15117         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
15118         other Gnulib modules.
15120         extern-inline: document fixes for ctype and wctype macros
15121         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
15122         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
15123         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
15124         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
15125         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
15126         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
15127         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
15128         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
15129         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
15130         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
15131         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
15132         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
15133         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
15134         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
15135         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
15136         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
15137         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
15138         * doc/posix-functions/strncpy.texi:
15139         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
15140         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
15141         Document that Gnulib fixes portability problems with these
15142         functions on OS X 10.8 and earlier when called from plain inline
15143         or extern inline functions.
15145 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
15147         fflush, freadahead, fseeko: Fix for Android
15148         Suggested by Bruno Haible in:
15149         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
15150         * lib/stdio-impl.h: Use local __sfileext definition.
15152 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
15154         pmccabe2html: Portability to other awk versions.
15155         The functions systime() and strftime() are available
15156         in Gawk only.  Properly close two HTML-tags 'style'
15157         and 'span'.
15158         * build-aux/pmccabe2html (BEGIN): Store timing
15159         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
15160         systime() in HTML_COMMENT.
15161         (html_header): Correctly close tag 'style'.
15162         (END): Replace strftime() by CHRONOS_TIME.  Close
15163         tag 'span' correctly, not as 'div'.
15165 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
15167         getgroups: statement without effect
15168         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
15169         Change equality conditional to expected assignment.
15171 2013-09-09  Eric Blake  <eblake@redhat.com>
15173         glob: fix compilation
15174         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
15176 2013-09-07  Eric Blake  <eblake@redhat.com>
15178         glob: fix build for platforms without __THROW
15179         * lib/glob.in.h (__THROW): Add definition again.
15181 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
15183         regex-quote: fix buffer access out of bounds
15184         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
15185         * lib/regex-quote.c (regex_quote_spec_pcre):
15186         Fix typo that resulted in an out-of-bounds read.
15188 2013-09-04  Eric Blake  <eblake@redhat.com>
15190         glob: avoid -Wattribute warnings on glibc
15191         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
15192         __THROWNL, not __THROW, on static functions.
15193         * lib/glob.in.h (__THROW): Adjust...
15194         (__THROWNL): ...accordingly.
15196 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
15198         headers: check that _GL_INLINE_HEADER_BEGIN is defined
15199         Suggested by Bruce Korb in:
15200         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
15201         * doc/extern-inline.texi (extern inline):
15202         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
15203         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
15204         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
15205         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
15206         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
15207         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
15208         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
15209         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
15210         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
15211         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
15212         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
15213         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
15214         * lib/xtime.h:
15215         Check that _GL_INLINE_HEADER_BEGIN is defined.
15217 2013-08-29  Pádraig Brady  <P@draigBrady.com>
15219         bootstrap: remove the --version requirement from ancillary tools
15220         * build-aux/bootstrap (check_exists): A new refactored function to
15221         determine if a command exists.
15222         (find_tool): Use the new function which does not require the
15223         --version option to be supported.
15224         (check_versions): Use the new function.
15226 2013-08-26  Simon Josefsson  <simon@josefsson.org>
15228         gc: support HMAC-SHA256 and HMAC-SHA512.
15229         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
15230         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
15231         functions.
15232         (gc_hmac_md5): Use symbolic constant.
15233         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
15234         (gc_hmac_sha256, gc_hmac_sha512): New functions.
15235         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
15236         * m4/sha256.m4: Protect against empty expansion.
15237         * m4/sha512.m4: Likewise.
15238         * lib/hmac-sha256.c: New file.
15239         * lib/hmac-sha512.c: Likewise.
15240         * m4/gc-hmac-sha256.m4: Likewise.
15241         * m4/gc-hmac-sha512.m4: Likewise.
15242         * m4/gc-sha256.m4: Likewise.
15243         * m4/gc-sha512.m4: Likewise.
15244         * modules/crypto/gc-hmac-sha256: Likewise.
15245         * modules/crypto/gc-hmac-sha256-tests: Likewise.
15246         * modules/crypto/gc-hmac-sha512: Likewise.
15247         * modules/crypto/gc-hmac-sha512-tests: Likewise.
15248         * modules/crypto/hmac-sha256: Likewise.
15249         * modules/crypto/hmac-sha256-tests: Likewise.
15250         * modules/crypto/hmac-sha512: Likewise.
15251         * modules/crypto/hmac-sha512-tests: Likewise.
15252         * tests/test-gc-hmac-sha256.c: Likewise.
15253         * tests/test-gc-hmac-sha512.c: Likewise
15254         * tests/test-hmac-sha256.c: Likewise.
15255         * tests/test-hmac-sha512.c: Likewise
15257 2013-08-24  Daiki Ueno  <ueno@gnu.org>
15259         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
15260         of AC_CHECK_DECLS.
15262 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
15264         selinux-at: omit unnecessary include
15265         * lib/selinux-at.c: Don't include dosname.h; not needed, since
15266         this source file doesn't use its macros, and subsidiary files that
15267         use the macros already include it.
15269 2013-08-21  Eric Blake  <eblake@redhat.com>
15271         d-ino: avoid false negative on symlink
15272         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
15273         Reported by Stephane Chazelas.
15275 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
15277         bootstrap: port to OpenBSD sed
15278         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
15279         does not interpret `-' as a file argument to mean stdin.
15281 2013-08-15  Eric Blake  <eblake@redhat.com>
15283         warnings: minor optimization
15284         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
15286         warnings: check -Wfoo rather than -Wno-foo
15287         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
15288         -Wno-, test if the compiler recognizes the positive form instead.
15290 2013-08-15  Karl Berry  <karl@gnu.org>
15292         * config/srclist-update: add option "doclicense" to placate
15293         pulling *.texi files from Emacs.  Write terse usage
15294         documentation at the top.
15296 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
15298         xvasprintf-tests: port to GCC with hardening flags
15299         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
15300         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
15301         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
15303 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
15305         fpending: port to recent Cygwin change to stdio_ext.h
15306         Reported by LRN in
15307         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
15308         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
15309         just declare __fpending unless it's a macro.
15310         A duplicate decl shouldn't hurt.
15311         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
15312         call compiles and links, instead of separately checking for
15313         decl and lib function.
15314         * modules/fpending (configure-ac):
15315         Adjust to fpending.m4's renaming of shell variable.
15317 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
15319         sys_time: port to OpenBSD
15320         * lib/sys_time.in.h: Simply delegate to the system's header
15321         in the BSDish cases as well.  Problem reported by Mike Miller in
15322         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
15323         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
15324         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
15325         wider than time_t.
15327 2013-08-09  Pádraig Brady  <P@draigBrady.com>
15329         bootstrap: support checksum utils having -c but not --status
15330         * build-aux/bootstrap: Only look for sha1sum if updating po files.
15331         Add sha1 to the list of supported checksum utils since it's now
15332         supported through adjustments below.
15333         (update_po_files): Remove the use of --status
15334         in a way that will suppress all error messages, but since this is
15335         only used to minimize updates, it shouldn't cause an issue.
15336         Exit early if there is a problem updating the po file checksums.
15337         (find_tool): Remove the check for --version support as this
15338         is optional as per commit 86186b17.  Don't even check for the
15339         presence of the command as if that is needed, it's supported
15340         through configuring prerequisites in bootstrap.conf.
15341         Prompt that when a tool isn't found, one can define an environment
15342         variable to add to the hardcoded search list.
15344 2013-08-05  Jim Meyering  <meyering@fb.com>
15346         regex: port to non-glibc/lock-using systems
15347         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
15348         system with GNULIB_LOCK would fail due to absence of the
15349         included "glthread/lock.h".  This would affect any package
15350         for which the "lock" module is used only by the regex module,
15351         and not explicitly used.
15352         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
15353         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
15354         Add a dependency on the "lock" module.
15356 2013-07-20  Daiki Ueno  <ueno@gnu.org>
15358         localecharset: make locale_charset thread-safe on Mac OS X
15359         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
15360         instead of MB_CUR_MAX.
15362 2013-07-20  Daiki Ueno  <ueno@gnu.org>
15364         gettext: update to version 0.18.3
15365         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
15366         require AC_PROG_SED to allow user to specify custom sed command when
15367         generating en@quot PO file.
15369 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
15371         bootstrap: use correct source when copying build-aux files
15372         * build-aux/bootstrap (gnulib_extra_files): This variable is
15373         relative to upstream gnulib layout, not downstream.
15375 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
15377         tmpdir: fix bug in VMS port
15378         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
15379         See Steven M. Schweda in
15380         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
15382 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
15384         tmpdir: port to VMS, to // != /, and to long dirs
15385         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
15386         __secure_getenv, so that we're more like the glibc version.
15387         All uses changed.
15388         (path_search): Don't put slash after directory if __VMS.
15389         Problem reported by Steven M. Schweda in
15390         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
15391         Simplify code to add slash; no need for a loop.
15392         Do not remove trailing slash from "//".
15393         Do not assume dlen <= INT_MAX.
15395 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
15397         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
15398         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
15399         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
15400         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
15402         accept4, dup3, pipe2: port to Cygwin
15403         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
15404         * lib/accept4.c (accept4) [O_BINARY]:
15405         * lib/dup3.c (dup3) [O_BINARY]:
15406         * lib/pipe2.c (pipe2) [O_BINARY]:
15407         Use set_binary_mode, not setmode.
15408         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
15409         * modules/binary-io (Depends-on): Remove module indicator.
15410         These last two bits undo the previous change to pipe2 and binary-io.
15412 2013-07-09  Pádraig Brady  <P@draigBrady.com>
15414         mountlist: add support for deallocating returned list entries
15415         * lib/mountlist.c (free_mount_entry): A new exported function
15416         to deallocate a mount list entry.
15417         (read_file_system_list): Refactor to use the new deallocation function.
15418         Suggested by Anton Ovchinnikov.
15420 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
15422         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
15423         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
15424         * lib/stdalign.in.h (_Alignas, _Alignof):
15425         Port to FreeBSD 9.1, and to C11 and C++11.
15426         (_Alignas): Also support ICC.
15427         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
15428         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
15430 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15432         fnmatch: don't goto over declaration
15433         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
15434         undefined behavior for goto over a declaration.
15435         Problem reported by Charlie Brown in
15436         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
15438         pipe2: decouple from binary-io a bit
15439         This is for Emacs, which needs pipe2 but not binary-io.
15440         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
15441         * modules/binary-io (Depends-on): Add module indicator.
15443 2013-07-03  Eric Blake  <eblake@redhat.com>
15445         mgetgroups: relax license to LGPLv2+
15446         * modules/getugroups (License): Change from GPLv3+.
15447         * modules/mgetgroups (License): Likewise.
15448         * modules/getgroups (License): Change from LGPLv3+.
15450         xalloc-oversized: relax license to LGPLv2+
15451         * modules/xalloc-oversized (License): Change from GPLv3+.
15453         nproc: relax license to LGPLv2+
15454         * modules/nproc (License): Change from LGPLv3+.
15456         bootstrap: honor --no-git
15457         * build-aux/bootstrap: Don't even try to use git when user is
15458         pointing to a static checkout.
15460 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
15462         ignore-value: port to gcc -pedantic
15463         * lib/ignore-value.h (ignore_value):
15464         Port to gcc -pedantic, by using __extension__.
15465         Reindent as per usual gnulib style nowadays.
15466         Simplify GCC version check.
15468 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
15470         extern-inline: port to gcc -std=c89
15471         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
15472         Do not use __gnu_inline__ if pedantic and pre-C99.
15474 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
15476         doc: document extern-inline
15477         * doc/extern-inline.texi: New file.
15478         * doc/gnulib.texi (alloca-opt): Include it.
15479         * m4/extern-inline.m4: Move some comments to documentation,
15480         and others closer to what they describe.
15482         doc: chatter less
15483         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
15484         (updated-stamp): Use it.  This causes 'make' to output just
15485         one file name rather than zillions.
15487         fflush, fseeko: port to musl cross-compiles
15488         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
15489         on some implementation that (1) is not known to be buggy,
15490         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
15491         cross-compiled to so we can't easily check for lack of
15492         conformance.  This is for cross-compiling to musl.
15493         Reported by Rich Felker in
15494         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
15495         * m4/fclose.m4 (gl_FUNC_FCLOSE):
15496         * m4/fflush.m4 (gl_FUNC_FFLUSH):
15497         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
15498         Adjust to above change.
15499         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
15500         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
15501         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
15502         known not to work, or unknown.
15504 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
15506         msvc-inval: port to mingw-w64
15507         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
15508         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
15509         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
15511 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
15513         getcwd-lgpl: port to Tru64
15514         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
15515         Problem reported by Steven M. Schweda in
15516         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
15518         tests: port large-fd POSIX spawn tests to OS X
15519         Problem reported by Daiki Ueno in
15520         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
15521         * tests/test-posix_spawn_file_actions_addclose.c:
15522         * tests/test-posix_spawn_file_actions_adddup2.c:
15523         * tests/test-posix_spawn_file_actions_addopen.c:
15524         Include <limits.h>, for OPEN_MAX, if available.
15525         (big_fd): New static function.
15526         (main): Use it.
15528 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
15530         tests/nap.h: use an adaptive delay to avoid ctime update issues
15531         The recent change in nap.h (5191133e) decreased the probability of lost
15532         races to about a third, however such problems could still be observed
15533         in virtual machines and openSUSE's OBS.
15534         Before, nap() detected the needed time once empirically and then used
15535         that delay (together with a small correction multiplier) in further
15536         calls.  This problem has been reported and discussed several times,
15537         including guesses about possible kernel issues:
15538         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
15539         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
15540         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
15541         http://bugs.gnu.org/12820
15542         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
15543         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
15544         Now, nap() avoids the race alltogether by verifying on a reference
15545         file whether a timestamp difference has happened.
15546         * tests/nap.h (nap_fd): Define file descriptor variable for the
15547         witness file.
15548         (nap_works): Change return value to bool.  Change passing
15549         the old file's status by value instead of by reference as this function
15550         does no longer update that timestamp; rename the function argument from
15551         st to old_st.  Remove the local variables cdiff and mdiff because that
15552         function now returns true/false instead of the precise delay.
15553         (guess_delay): Remove function.
15554         (clear_tmp_file): Add new function to close and unlink the witness file.
15555         (nap): Instead of re-using the delay which has been calculated during
15556         the first call, avoid the race by actually verifying that a timestamp
15557         difference can be observed on the current file system.  Use an adaptive
15558         approach for the delay to minimize execution time.  Assert that the
15559         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
15560         = 2^31 - 1 = 2.1s.
15561         Use atexit to call clear_tmp_file when the process terminates.
15563 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
15565         sig2str: port to C++
15566         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
15567         Reported by Daniel J Sebald in
15568         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
15570 2013-05-30  Eric Blake  <eblake@redhat.com>
15572         docs: mention cygwin shortcoming in <sys/un.h>
15573         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
15575         vasnprintf: silence mingw compiler warning
15576         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
15578 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
15580         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
15581         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
15582         This fixes a porting bug I recently reintroduced in regex, and
15583         some other instances that I discovered while testing the fix.
15584         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
15585         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
15586         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
15587         with an empty argument if this is a pedantic pre-C99 GCC.
15588         * lib/verify.h: Do not use _Static_assert if this is a pedantic
15589         pre-C11 GCC.
15591         regex: adapt to locking regime instead of depending on pthread
15592         Instead of depending on pthread, adapt to whatever thread
15593         modules are in use.  Problem reported by Ludovic Courtès in
15594         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
15595         and by Mats Erik Andersson in
15596         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
15597         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
15598         Support either the 'lock' module, or the 'pthread' module, or
15599         no module.
15600         (lock_lock, lock_unlock): New macros.
15601         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
15602         * modules/lock, modules/pthread (configure.ac): Add module indicator.
15603         * modules/regex (Depends-on): Remove pthread.
15605 2013-05-22  Eric Blake  <eblake@redhat.com>
15607         getgroups: document portability issues
15608         * doc/glibc-functions/initgroups.texi (initgroups): Mention
15609         multithread safety.
15610         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
15611         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
15612         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
15613         getugroups.
15614         * doc/posix-functions/getgroups.texi (getgroups): Mention
15615         multithread safety and mgetgroups.
15617 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
15619         test-lchown, test-chown: also skip test if chown fails with EPERM
15620         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
15621         skip this test, to handle FAT file systems.
15622         * tests/test-chown.h (test_chown): Likewise.
15624 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15626         regex: fix dfa race in multithreaded uses
15627         Problem reported by Ludovic Courtès in
15628         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
15629         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
15630         New macros.  All uses of __libc_lock_define, __libc_lock_init
15631         changed to use the first two of these.
15632         (__libc_lock_lock, __libc_lock_unlock): New macros, for
15633         non-glibc platforms.
15634         (struct re_dfa_t): Define the lock unconditionally.
15635         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
15636         '#ifdef _LIBC"s.
15637         * modules/regex (Depends-on): Add pthread, if we use the
15638         included regex.
15640         * lib/regcomp.c: Do actions that are not needed for glibc,
15641         but may be needed elsewhere.
15642         (regfree, re_compile_internal): Destroy the lock.
15643         (re_compile_internal): Check for lock-initialization failure.
15645         malloca: port to compilers that reject size-zero arrays
15646         This fixes a bug introduced in my previous patch.
15647         * lib/malloca.c (struct preliminary_header): Use an int
15648         rather than a character array of size int; that's simpler.
15649         (struct header): Remove, replacing with ...
15650         (union header): New type.  This avoids the need for declaring a
15651         character array of size zero, which is not allowed on some platforms.
15652         All uses changed.
15654 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
15656         parse-datetime, tests: don't use "string" + int
15657         Recent versions of 'clang' complain about C source code that
15658         uses expressions of the form '"string literal" + integer',
15659         I guess on the theory that it's confusing for readers who are
15660         used to C++.  On those grounds I suppose it's OK to make this
15661         minor style change.
15662         * lib/parse-datetime.y (parse_datetime):
15663         * tests/test-fchdir.c (main):
15664         * tests/test-snprintf-posix.h (test_function):
15665         * tests/test-snprintf.c (main):
15666         * tests/test-vasnprintf-posix.c (test_function):
15667         * tests/test-vasnprintf.c (test_function):
15668         * tests/test-vsnprintf.c (main):
15669         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
15670         Rewrite '"str" + E' to '&"str"[E]'.
15672 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
15674         argmatch: port to C++
15675         * lib/argmatch.h [__cplusplus]: Add extern "C".
15677         argp: typo fix
15678         * lib/argp-help.c: Typo in comment.
15680 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
15682         manywarnings: update for GCC 4.8.0
15683         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
15684         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
15685         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
15686         -Wmissing-noreturn, as they are duplicates of other warnings.
15687         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
15688         was documented to be flaky in earlier versions of GCC.
15690         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
15691         * tests/test-spawn.c (main):
15692         * tests/test-sys_socket.c (main):
15693         * tests/test-sys_wait.c (main):
15694         Don't have a switch value that isn't covered by a case.
15696         getaddrinfo-tests: port --enable-gcc-warnings to clang
15697         * tests/test-getaddrinfo.c (simple):
15698         Avoid casts from looser to stricter-aligned pointers.
15700         thread: port --enable-gcc-warnings to clang
15701         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
15702         Include <signal.h>, to pacify a warning about pthread_sigmask.
15704         stdio: use __REDIRECT for fwrite, fwrite_unlocked
15705         * lib/stdio.in.h (fwrite):
15706         When working around bug 11959, use __REDIRECT rather than '#define
15707         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
15708         fix the -Wunused-value issue with clang, and it works with GCC too.
15709         Problem with targeting reported by Eric Blake in
15710         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
15711         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
15712         debugging the fwrite issue.
15714         stdio: port --enable-gcc-warnings to clang
15715         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
15716         since the GCC workaround for fwrite does not pacify clang.
15718         sig2str: port --enable-gcc-warnings to clang
15719         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
15721         obstack: port --enable-gcc-warnings to clang
15722         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
15723         Avoid casts from looser to stricter-aligned pointers.
15725         memchr2: port --enable-gcc-warnings to clang
15726         * lib/memchr2.c (memchr2):
15727         Avoid casts from looser to stricter-aligned pointers.
15729         mbsstr: port --enable-gcc-warnings to clang
15730         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
15731         Avoid casts from looser to stricter-aligned pointers.
15733         malloca: port --enable-gcc-warnings to clang
15734         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
15735         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
15737         inttostr: port --enable-gcc-warnings to clang
15738         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
15740         warnings: port to clang
15741         Problem reported by Daniel P. Berrange via Eric Blake in
15742         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
15743         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
15744         (gl_WARN_ADD): Use it.
15746 2013-05-11  Jim Meyering  <meyering@fb.com>
15748         quotearg: do not read beyond end of buffer
15749         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
15750         end of an ARG for which no length was specified.  With an N-byte
15751         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
15752         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
15753         via coreutils' misc/sort-debug-keys.sh test and detected by running
15754         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
15755         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
15756         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
15757         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
15758         characters correctly."
15760 2013-05-11  Daiki Ueno  <ueno@gnu.org>
15762         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
15763         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
15764         compilation target is Mac OS X 10.6.
15765         Problem reported by parafin and Andoni Morales in
15766         <http://savannah.gnu.org/bugs/?37844> and
15767         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
15769 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
15771         mkdir-p: remove assumptions about umask and mode
15772         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
15773         umask is 0, or that MODE is a subset of MODE_BITS.
15775 2013-05-10  Eric Blake  <eblake@redhat.com>
15777         maint.mk: catch more abuse of HAVE_DECL in syntax-check
15778         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
15780 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
15782         deps: require Automake >= 1.9.6 in generated Makefile fragments
15784         That is the same minimal version required in the DEPENDENCIES file.
15785         Moreover, the old code generated a requirement of Automake >= 1.5,
15786         and that is an insanely outdated version.
15788         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
15789         * tests/havelib/rpathlx/Makefile.am: Likewise.
15790         * tests/havelib/rpathly/Makefile.am: Likewise.
15791         * tests/havelib/rpathlyx/Makefile.am: Likewise.
15792         * tests/havelib/rpathlz/Makefile.am: Likewise.
15793         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
15794         * tests/havelib/rpathx/Makefile.am: Likewise.
15795         * tests/havelib/rpathy/Makefile.am: Likewise.
15796         * tests/havelib/rpathz/Makefile.am: Likewise.
15798 2013-05-08  Eric Blake  <eblake@redhat.com>
15800         bootstrap: AC_INIT may have more than four parameters
15801         * build-aux/bootstrap (extract_package_name): Correctly extract
15802         non-empty tarname field.  Avoid range in regex.
15803         Based on a report by Sami Kerola <kerolasa@iki.fi>.
15805 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
15807         qacl: port to MS-Windows port of GNU Emacs
15808         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
15809         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
15810         port of GNU Emacs.  Problem reported by Eli Zaretskii in
15811         <http://bugs.gnu.org/14295#14>.
15813 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
15815         acl: include quote.h
15816         * lib/copy-acl.c: Include quote.h.
15817         * lib/set-acl.c: Likewise.
15819 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
15821         fchownat, renameat, unlinkat: update statat dependencies
15822         These modules use statat and lstatat, not fstatat; so depend on
15823         the statat module, which was split out recently from fstatat.
15824         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
15825         * modules/renameat: Likewise.  Also delete fstat.
15826         URL: http://bugs.gentoo.org/468790
15828 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
15830         Assume gnulib is checked out from Git, not CVS
15832         In fact, access to the gnulib repository through CVS has been
15833         disabled, or more precisely, got broken and was never restored; see:
15834         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
15836         Note that support for CVS is not removed completely and unthinkingly
15837         by this change: only support for CVS checkouts of gnulib itself is
15838         removed.  For example, the 'bootstrap' script still cater to .cvsingore
15839         files and CVS directories, for the benefit of those poor gnulib clients
15840         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
15842         * gnulib-tool: Simplify accordingly.
15843         * posix-modules: Likewise.
15844         * MODULES.html.sh: Likewise.
15845         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
15846         repository.
15847         * doc/gnulib-intro.texi: Likewise.
15848         * doc/gnulib-readme.texi: Likewise.
15849         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
15850         sample '.gitignore' file rather than a sample '.cvsignore'.
15851         * NEWS: Update.
15852         * m4/extensions.m4: While at it, remove a comment mistakenly referring
15853         to "CVS Autoconf" rather than "git Autoconf".
15855 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
15857         utimensat-tests, etc.: try to fix some races
15858         Problem reported by Bernhard Voelker in
15859         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
15860         I don't know whether this patch fixes that race condition, but it
15861         fixes *some* race conditions, so it should be a win.
15862         * modules/chown-tests (Depends-on):
15863         * modules/fchownat-tests (Depends-on):
15864         * modules/fdutimensat-tests (Depends-on):
15865         * modules/futimens-tests (Depends-on):
15866         * modules/lchown-tests (Depends-on):
15867         * modules/stat-time-tests (Depends-on):
15868         * modules/utimens-tests (Depends-on):
15869         * modules/utimensat-tests (Depends-on):
15870         Depend on nanosleep, not usleep.
15871         * modules/chown-tests (test_chown_LDADD):
15872         * modules/lchown-tests (test_lchown_LDADD):
15873         * modules/stat-time-tests (test_stat_time_LDADD):
15874         New macro.
15875         * modules/fchownat-tests (test_fchownat_LDADD):
15876         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
15877         * modules/futimens-tests (test_futimens_LDADD):
15878         * modules/utimens-tests (test_utimens_LDADD):
15879         * modules/utimensat-tests (test_utimensat_LDADD):
15880         Add $(LIB_NANOSLEEP).
15881         * modules/stat-time-tests (Files): Add tests/nap.h.
15882         * tests/nap.h: Include <limits.h>, for INT_MAX.
15883         (lt_mtime): Remove.
15884         (diff_timespec): New function.
15885         (get_stat): Rename from get_mtime.  All callers changed.
15886         (nap_works): Determine the needed delay by inspecting the
15887         file system's timestamp jumps; this should be more reliable.
15888         Look at both mtime and ctime, and take the maximum of the two jumps.
15889         (nap_works, guess_delay):
15890         Return a nanosecond count, not a microsecond count.
15891         All callers changed.
15892         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
15893         failure.
15894         (nap): Multiply the guess by 1.125, to accommodate the case where
15895         the file system's clock is a bit slower than nanosleep's clock.
15896         * tests/test-stat-time.c (BASE): New macro.
15897         Include nap.h.
15898         (nap): Remove; nap.h now defines this.  This removes a duplicate
15899         implementation of 'nap'.
15901         utimens, utimensat: work around Solaris UTIME_OMIT bug
15902         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
15903         Linux kernel 2.6.32 does.  Work around it in the same way.
15904         * doc/posix-functions/futimens.texi (futimens):
15905         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
15906         * lib/utimens.c (fdutimens, lutimens):
15907         * lib/utimensat.c (rpl_utimensat): Work around the bug.
15909         gettext: now it's your responsibility to add -I$(top_builddir)/intl
15910         Formerly, it was your responsibility to do this for all Makefile.ams
15911         other than Gnulib's.  Now it's your responsibility to do it for
15912         Gnulib's Makefile.am, too.
15913         * NEWS: Document this.
15914         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
15916         acl: include errno.h to get errno
15917         Reported by Daiki Ueno in
15918         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
15919         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
15921 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
15923         tests: don't assume getdtablesize () <= 10000000
15924         * modules/cloexec-tests:
15925         * modules/dup2-tests:
15926         * modules/dup3-tests:
15927         * modules/nonblocking-tests:
15928         * modules/posix_spawn_file_actions_addclose-tests:
15929         * modules/posix_spawn_file_actions_adddup2-tests:
15930         * modules/posix_spawn_file_actions_addopen-tests:
15931         * modules/unistd-safer-tests:
15932         Depend on the getdtablesize module.
15933         * tests/test-cloexec.c:
15934         * tests/test-dup-safer.c:
15935         * tests/test-dup2.c:
15936         * tests/test-dup3.c:
15937         * tests/test-fcntl.c:
15938         * tests/test-nonblocking.c:
15939         * tests/test-posix_spawn_file_actions_addclose.c:
15940         * tests/test-posix_spawn_file_actions_adddup2.c:
15941         * tests/test-posix_spawn_file_actions_addopen.c:
15942         Don't assume getdtablesize () <= 10000000.
15944 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
15946         extern-inline: work around bug in Sun c99
15947         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
15948         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
15950 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
15952         qacl: new module, broken out from the acl module
15953         This is for GNU Emacs, which wants the acl functions but does
15954         not want 'error' invoked when they fail.
15955         * lib/acl-internal.h: Do not include error.h, quote.h.
15956         (ENOSYS, ENOTSUP): Remove; no longer needed.
15957         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
15958         * lib/acl.h: Include <stdbool.h>.
15959         (acl_errno_valid): New function.
15960         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
15961         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
15962         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
15963         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
15964         (ACL_INTERNAL_INLINE): Remove; no longer needed.
15965         * lib/file-has-acl.c (file_has_acl):
15966         * lib/qcopy-acl.c (qcopy_acl):
15967         * lib/qset-acl.c (qset_acl):
15968         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
15969         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
15970         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
15971         lib/file-has-acl.c, m4/acl.m4 to qacl module.
15972         Add lib/set-acl.c.
15973         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
15974         Add qacl.
15975         (configure.ac): Move gl_FUNC_ACL to qacl module.
15976         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
15977         Rename set-mode-acl.c to set-acl.c.
15978         * lib/acl-errno-valid.c: New file.
15979         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
15980         copy_acl function remains in copy-acl.c.
15981         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
15982         (_): Remove; not needed.
15983         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
15984         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
15985         * modules/qacl: New file, moved from the old modules/acl.
15986         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
15987         Remove set-mode-acl.c, copy-acl.c.
15988         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
15990         alignof, intprops, malloca: port better to IBM's C compiler
15991         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
15992         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
15993         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
15995 2013-04-25  Daiki Ueno  <ueno@gnu.org>
15997         wctype-h: fix gettext link error on mingw
15998         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
15999         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
16000         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
16001         rpl_towupper and rpl_towupper.
16003 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
16005         regex-tests, regex: allow glibc re_search behavior
16006         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
16007         re_search input data to make the multi-character collating element
16008         in it clearly visible, and treat re_search return code 0 as valid.
16009         * m4/regex.m4 (gl_REGEX): Likewise.
16011 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
16013         stdalign: doc fix
16014         * doc/posix-headers/stdalign.texi (stdalign.h):
16015         Gnulib doesn't support '_Alignof expr'.
16017 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
16019         stdalign: port to stricter ISO C11
16020         ISO C11 says that _Alignof's operand must be a parenthesized type.
16021         Problem reported by Eli Zaretskii in
16022         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
16023         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
16024         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
16026 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
16028         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
16029         Problem reported by Marco Atzeri in
16030         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
16031         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
16032         Simply delegate to the system <sys/select.h> in this case too.
16033         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
16034         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
16035         be needed on Solaris either.
16036         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
16037         Simply delegate to the system <sys/time.h> in this case.
16039 2013-03-19  Karl Berry  <karl@gnu.org>
16041         * build-aux/gnupload: check for erroneous (with gnupload) use of
16042         ftp-upload.gnu.org, tweak help.
16044 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
16046         copy-file, rpmatch: fix problems found by cppcheck
16047         Reported by Arno Onken in
16048         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
16049         * lib/rpmatch.c (try): Fix memory leak.
16050         * lib/copy-file.c: Include "ignore-value.h".
16051         (qcopy_file_preserving): Ignore chown value.
16052         * modules/copy-file (Depends-on): Add ignore-value.
16054 2013-01-27  Jim Meyering  <jim@meyering.net>
16056         prefix-gnulib-mk: give better diagnostics
16057         * build-aux/prefix-gnulib-mk: Don't just "die".
16058         Give better diagnostics upon failure.
16060 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
16062         putenv: port to Solaris 10
16063         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
16064         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
16065         is not what is wanted here.
16066         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
16067         declaration, not for its existence.
16069 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
16071         mktime: fix configure typo
16072         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
16074 2013-03-12  Eric Blake  <eblake@redhat.com>
16076         regex-tests: skip UTF-8 test on mingw
16077         * modules/regex-tests (Depends-on): Add localcharset.
16078         * tests/test-regex.c (main): Use it to skip test on mingw.
16080 2013-03-11  Eric Blake  <eblake@redhat.com>
16082         tests: make it easier to bypass alarm time in debugger
16083         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
16084         * tests/test-memmem.c (main): Likewise.
16085         * tests/test-passfd.c (main): Likewise.
16086         * tests/test-ptsname.c (main): Likewise.
16087         * tests/test-ptsname_r.c (main): Likewise.
16088         * tests/test-strcasestr.c (main): Likewise.
16089         * tests/test-strstr.c (main): Likewise.
16091         regex: port to mingw's recent addition of undeclared alarm
16092         * doc/posix-functions/alarm.texi (alarm): Document that alarm
16093         exists but still doesn't work in newer mingw.
16094         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
16095         not existence.  Ensure SIGALRM is not trapped.
16096         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
16097         * m4/regex.m4 (gl_REGEX): Likewise.
16098         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
16099         * tests/test-regex.c (main): Use correct probe for alarm.
16101         putenv: avoid compilation warning on mingw
16102         * lib/putenv.c (_unsetenv): Protect variable declaration.
16103         (putenv): Fix indentation.
16105 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
16107         unistd: don't prevent Tru64 Unix from using gnulib strtod.
16108         * lib/unistd.in.h: be careful not to include un-needed system
16109         stdlib.h from here, because that prevents gnulib stdlib.h from
16110         defining rpl_strtod correctly.
16112 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
16114         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
16115         changesets, but for the 'precision 0' test.
16116         * tests/test-vasprintf-posix.c (test_function): Don't insist on
16117         round-to-even, since POSIX says rounding is implementation-defined
16118         and OS X 10.8.2 rounds 1.51 to 1 here.
16120         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
16121         changeset.
16122         * tests/test-vasprintf-posix.c (test_function): Don't insist on
16123         round-to-even, since POSIX says rounding is implementation-defined
16124         and OS X 10.8.2 rounds 1.5 to 1 here.
16126 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
16128         vasnprintf-posix-tests: allow rounding 1.5 to 1
16129         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
16130         round-to-even, since POSIX says rounding is implementation-defined
16131         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
16132         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
16134         bootstrap: port to FreeBSD
16135         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
16136         that treat '--' differently.  Reported by Mats Erik Andersson in
16137         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
16139 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
16141         regex: rename remaining __attribute calls to __attribute__.
16142         2012-02-25 changed definition of __attribute, but left some uses
16143         unchanged, preventing compilation of regex module on most non-gcc
16144         environments.
16145         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
16146         (lookup_collation_sequence_value, build_range_exp)
16147         (build_collating_symbol): Set attributes with newly renamed
16148         __attribute__ decorator.
16149         * lib/regex_internal.c (re_string_peek_byte_case)
16150         (re_node_set_compare, re_node_set_contains): Likewise.
16151         * lib/regexec.c (acquire_init_state_context): Likewise.
16153 2013-03-06  Bruno Haible  <bruno@clisp.org>
16155         execute: Revert last change, but use a different condition.
16156         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
16157         on Windows.
16159 2013-03-05  Eric Blake  <eblake@redhat.com>
16161         execute: drop dead code
16162         * lib/execute.c (nonintr_close, nonintr_open): Delete.
16164 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
16166         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
16167         * m4/non-recursive-gnulib-prefix-hack.m4
16168         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
16169         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
16170         <http://bugs.gnu.org/10305#237>.
16172 2013-03-04  Eric Blake  <eblake@redhat.com>
16174         test-getsockopt: avoid compiler warning
16175         * tests/test-getsockopt.c (includes): Ensure close is declared.
16177 2013-03-02  Bruno Haible  <bruno@clisp.org>
16179         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
16180         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
16182 2013-03-02  Bruno Haible  <bruno@clisp.org>
16184         gettext: Update to version 0.18.2.
16185         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
16186         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
16187                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
16189 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
16191         regex: merge patches from libc
16193         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
16194         * lib/regex_internal.h (__attribute__): Rename from __attribute.
16195         All uses changed.
16196         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
16197         (re_string_wchar_at, re_string_elem_size_at):
16198         Mark function as possibly unused.
16200         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
16201         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
16202         elements compare against the byte sequence of it, not its name.
16204 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
16206         putenv: port better to native Windows
16207         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
16208         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
16209         (_unsetenv): Use _putenv if available.
16210         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
16211         a bit less likely to cause damage.
16212         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
16213         Fix the wrong value with SetEnvironmentVariable.
16214         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
16215         code better.
16217 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
16219         regex: ignore old-style-definition warnings
16220         * lib/regex.c: Add pragma to ignore these warnings.
16221         Problem reported for GNU tar by Pavel Raiskup.
16223 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
16225         getcwd: support coreutils better
16226         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
16227         but this might not be correct in coreutils, which disables
16228         the raw decl checks.  Problem reported by Nagendra in
16229         <http://bugs.gnu.org/10305#192>.
16230         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
16231         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
16232         Test the getcwd function, not any macro, since getcwd.c wants the
16233         function.
16234         * m4/getcwd.m4 (gl_FUNC_GETCWD):
16235         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
16236         compile, as might happen if there's a macro but no function.
16238         strtod: support coreutils better
16239         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
16240         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
16241         disables the raw decl checks.  This assumes there is an underlying
16242         strtod, but that's a safe assumption these days.
16243         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
16245         mountlist: port to HP NonStop
16246         Reported by Joachim Schmitz in
16247         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
16248         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
16249         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
16251 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
16253         extern-inline: avoid compilation error with HP-UX cc
16254         Reported by Richard Lloyd in
16255         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
16256         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
16257         Suppress extern inline with HP-UX cc.  This should be safe,
16258         though it may hurt performance.  Perhaps someone with some HP-UX
16259         experience can come up with a higher-performance fix.
16261 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
16263         putenv: fix heap corruption with mixed putenv/_putenv
16264         Problem reported by Michael Goffioul in
16265         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
16266         * lib/putenv.c (putenv) [HAVE__PUTENV]:
16267         Rely on _putenv to allocate the new environment.
16268         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
16269         * modules/putenv (configure.ac): Use it.
16271 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
16273         unsetenv etc.: port to Solaris 11 + GNU Emacs
16274         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
16275         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
16276         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
16277         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
16278         idea but is too painful to fix right now), and without this gnulib
16279         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
16280         compiling unsetenv.c on Solaris 11.  Fix the problem for
16281         unsetenv.c, and fix other similar occurrences.
16283 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
16285         secure_getenv: fix C++ declaration typo
16286         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
16287         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
16288         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
16290 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
16292         careadlinkat: stop exporting careadlinkatcwd
16293         Only Emacs used it directly, and Emacs no longer needs it.
16294         * NEWS: Document this simplification.
16295         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
16296         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
16297         for readlink.
16298         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
16299         Don't include stdlib.h; no longer needed.
16300         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
16301         * lib/relocwrapper.c: Adjust comment to match new dependencies.
16302         * modules/areadlink (Depends-on): Add readlink.
16303         (Maintainer): Add self.
16304         * modules/careadlinkat (Depends-on): Remove readlink.
16306         extensions: port better to HP-UX
16307         This is merged from git Autoconf.
16308         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
16309         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
16310         so that it's compatible with the value used when compiling.
16312         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
16313         Problem reported by Mats Erik Andersson in
16314         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
16315         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
16316         openpty function exists, not merely when we intend to replace it.
16317         This corrects the 2013-01-31 patch, which mistakenly defined
16318         HAVE_OPENPTY even on hosts that lacked it.
16320 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
16322         secure_getenv: fix include typo
16323         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
16325         secure_getenv: port better to FreeBSD and Solaris
16326         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
16327         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
16328         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
16329         This works better on BSDish platforms.
16330         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
16331         Test for issetugid if __secure_getenv is missing.
16333 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
16335         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
16336         Some of these changes are merged in from git Autoconf.
16337         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
16338         When deciding whether to define _XOPEN_SOURCE, inspect the
16339         preprocessor macro __hpux instead of the more-heavyweight
16340         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
16341         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
16342         as the key for __EXTENSIONS__.
16344         unistd: avoid namespace pollution on non-glibc systems
16345         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
16346         This avoids namespace pollution on non-glibc systems, by causing
16347         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
16348         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
16349         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
16351 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
16353         tmpdir: use secure_getenv
16354         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
16355         Define to secure_getenv, not getenv.
16356         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
16357         as that's now secure_getenv's job.
16358         * modules/tmpdir (Depends-on): Add secure_getenv.
16360         tempname: use secure_getenv
16361         * lib/tempname.c (__secure_getenv) [!_LIBC]:
16362         Define to secure_getenv, not getenv.
16363         * modules/tempname (Depends-on):
16364         Add secure_getenv.
16366         secure_getenv: new module
16367         * MODULES.html.sh (Extra functions based on ANSI C 89):
16368         Add secure_getenv.
16369         * doc/glibc-functions/secure_getenv.texi: New file.
16370         * doc/gnulib.texi: Include it.
16371         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
16372         New files.
16373         * lib/stdlib.in.h (secure_getenv): New decl.
16374         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
16375         * modules/stdlib (stdlib.h):
16376         Add secure_getenv checks.
16378 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
16380         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
16381         Reported for OS X 10.8.2 by Assaf Gordon in
16382         <http://bugs.gnu.org/13516>.
16383         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
16384         !HAVE_OPENAT && !HAVE_FDOPENDIR.
16385         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
16386         so that they can be kept in sync more easily.  Avoid PATH_MAX
16387         test on the Hurd.  Sync from test-getcwd.c for errno tests after
16388         mkdir or chdir failure.
16389         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
16390         lib/getcwd.c.
16391         (test_abort_bug): Do not test for the deep directory bug unless we
16392         have openat support.  Avoid PATH_MAX test on the Hurd.
16394         regex-tests, regex: fix bug: memset undeclared
16395         * tests/test-regex.c: Don't include regex.h twice.  Include
16396         string.h, to declare memset.  Christensen's report also mentioned
16397         this issue.
16398         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
16399         test-regex.c, to avoid future problems like this.  Remove
16400         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
16401         twice.
16403         regex-tests: fix link errors on older Solaris
16404         These need to link with @LIBINTL@ to get libintl_gettext.
16405         Problem reported by Tom G. Christensen in
16406         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
16407         * modules/regex-tests (test_regex_LDADD): New macro.
16409 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
16411         regex-tests: new module
16412         * modules/regex-tests, tests/test-regex.c: New files.
16414         regex: fix off-by-one error in configure test
16415         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
16417 2013-01-31  Eric Blake  <eblake@redhat.com>
16419         regex: avoid infinite configure test
16420         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
16422 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
16424         openpty: fix bug where HAVE_OPENPTY wasn't defined
16425         See the thread starting at:
16426         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
16427         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
16428         openpty function exists, not merely when we intend to replace it.
16430 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
16432         sys_time: port to Solaris 2.6
16433         There is a circularity problem on Solaris 2.6, where <time.h> includes
16434         <sys/time.h> for struct timespec.  The include nesting is gnulib
16435         <time.h>, system <time.h>, gnulib <sys/time.h>, system
16436         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
16437         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
16438         <sys/siginfo.h>; the last, innermost file needs struct
16439         timestruc_t, which is defined in <sys/time.h>, which has not been
16440         fully parsed.  Problem reported by Tom G. Christensen in
16441         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
16442         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
16443         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
16444         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
16445         uses split double-inclusion guards.
16447 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
16449         regex: test for buffer overrun
16450         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
16451         for the just-fixed regex bug.
16453 2013-01-29  Andreas Schwab  <schwab@suse.de>
16455         regex: fix buffer overrun in regexp matcher [BZ #15078]
16456         * lib/regexec.c (extend_buffers): Add parameter min_len.
16457         (check_matching): Pass minimum needed length.
16458         (clean_state_log_if_needed): Likewise.
16459         (get_subexp): Likewise.
16461 2013-01-28  Pádraig Brady  <P@draigBrady.com>
16463         mountlist: don't consider "devtmpfs" as dummy
16464         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
16465         as there is storage associcated with it.
16467 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
16469         futimens-tests, utimens-tests: Depend on gettext.
16470         This works around a problem introduced in my 2013-01-12 patch,
16471         which added @LIBINTL@ to these modules.
16472         * modules/futimens-tests (Depends-on):
16473         * modules/utimens-tests (Depends-on): Add gettext.
16475 2013-01-26  Eric Blake  <eblake@redhat.com>
16477         test-getpeername: fix typo
16478         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
16480 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
16482         bootstrap: remove the need for a sorted .gitignore file
16483         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
16484         rename to insert_if_absent(), so that we don't need or generate
16485         a sorted .gitignore file.  We do require a .gitignore with no
16486         existing duplicate entries and enforce that.
16487         (sort_patterns): Remove this function as we now use the simpler
16488         technigue of inserting blacklist entries at the top of the file,
16489         assuming gnulib won't be inserting !whitelist entries.
16491 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
16493         readlinkat: don't depend on gl_FUNC_OPENAT
16494         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
16495         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
16496         renameat.m4, symlinkat.m4; but one thing at a time.
16498         statat: new module, split out from fstatat
16499         GNU Emacs needs the POSIX-specified fstatat, but not the
16500         gnulib-specified statat and lstat.  Split the latter two into a
16501         new module 'statat'.
16502         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
16503         * lib/openat.h, lib/statat.c (STATAT_INLINE):
16504         Rename from FSTATAT_INLINE. All uses changed.
16505         * modules/fstatat (Files): Remove lib/statat.c.
16506         (gl_MODULE_INDICATOR([fstatat])): Remove.
16507         (lib_SOURCES): Remove.
16508         (Maintainer): Add self.
16509         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
16510         * tests/test-fstatat.c (BASE): Don't define if already defined.
16511         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
16513 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
16515         tests: don't assume fd 99 is closed
16516         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
16517         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
16518         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
16519         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
16520         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
16521         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
16522         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
16523         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
16524         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
16525         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
16526         * tests/test-fwrite.c, tests/test-getpeername.c:
16527         * tests/test-getsockname.c, tests/test-getsockopt.c:
16528         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
16529         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
16530         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
16531         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
16532         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
16533         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
16534         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
16535         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
16536         * tests/test-unlinkat.c, tests/test-unlockpt.c:
16537         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
16538         Close file descriptor 99, instead of assuming it's already closed.
16540 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
16542         stpncpy: port to OS X 10.8
16543         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
16544         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
16546 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
16548         unistd: port to recent mingw
16549         * lib/unistd.in.h: Remove special invocation convention for mingw,
16550         which breaks for the latest mingw version.  See John W. Eaton in
16551         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
16553         largefile: port better to Mac OS X 10.5
16554         This patch is backported from Autoconf git.
16555         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
16556         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
16557         with ino_t size being different for configuration time versus
16558         build/run time.  Problem reported by PHO in
16559         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
16561 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
16563         doc: clarify -Werror
16564         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
16565         clarify that it's intended for developers, not for ordinary builds,
16566         and mention --enable-gcc-warnings as one possible use.
16568 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
16570         stdint: fix build with Android's Bionic fox x86
16571         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
16572         was already included as _SSIZE_T_DEFINED_ might also be defined
16573         in include/machine/_types.h, which is included by stdio.h
16575 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
16577         net_if-tests: port to Solaris 7 + GCC 3.4.6
16578         Problem reported by Tom G. Christensen in
16579         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
16580         * tests/test-net_if.c (ni): Move to next the code that uses it,
16581         so that it's declared only if needed.
16583 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
16585         net_if-tests: port to older Solaris
16586         Problem reported by Tom G. Christensen in
16587         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
16588         * modules/net_if-tests (NET_IF_LIB): New substitution.
16589         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
16590         (HAVE_IF_NAMEINDEX): New C macro.
16591         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
16593         system-quote-tests: port to older Solaris
16594         Problem reported by Tom G. Christensen in
16595         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
16596         * tests/test-system-quote-child.c (fopen, fread): Undef.
16598         c-xvasprintf etc.: fix link errors on older Solaris
16599         These need to link with @LIBINTL@ to get libintl_gettext.
16600         Problem reported by Tom G. Christensen in
16601         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
16602         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
16603         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
16604         * modules/futimens-tests (test_futimens_LDADD):
16605         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
16607 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
16609         locale: port to Solaris 2.6 and 7 + GNU gettext
16610         * lib/locale.in.h: Just include_next <locale.h> when
16611         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
16612         when combining the localename module with GNU gettext 0.18.2.
16613         Problem reported by Tom G. Christensen in
16614         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
16616 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
16618         stdlib: port to Solaris 2.6
16619         Also, the code worked on Solaris 7 through 9 only by accident.
16620         Problem reported by Tom G. Christensen in
16621         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
16622         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
16623         simply include the system stdlib.h.
16624         * lib/getopt.in.h (__need_system_stdlib_h):
16625         * lib/pthread.in.h (__need_system_stdlib_h):
16626         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
16627         Define when including <stdlib.h>, to avoid problems at least for
16628         the pthread case on Solaris 2.6 and 7.  These .h files can get by
16629         with the system stdlib.h.
16631 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
16633         doc: update main copyright year
16634         * doc/gnulib.texi: Update copyright date.
16636         doc: improve ISO 8601 discussion
16637         * doc/parse-datetime.texi (Combined date and time of day items):
16638         Specify more carefully what formats are supported and what is
16639         done with excess precision.
16641 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
16643         doc: avoid small caps
16644         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
16645         they're more trouble than they're worth.  Suggested by Karl Berry
16646         in <http://bugs.gnu.org/13360>.
16648         regex: conform to strict C
16649         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
16650         From Aharon Robbins.
16652         gnulib-tool: fix incompatibility with autopoint 0.18.2
16653         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
16654         Problem reported by Tom G. Christensen in
16655         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
16657 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
16659         fprintftime: bring back and reword fwrite comment
16660         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
16662         stdio: remove now-unnecessary stdio.c
16663         Since stdio.in.h no longer uses inline functions, we no longer
16664         need to compile the extern versions.
16665         * lib/stdio.c: Remove.
16666         * modules/stdio (Files): Remove lib/stdio.c.
16667         (lib_SOURCES): Remove.
16669         unicodeio: depend on stdio, not ignore-value
16670         * lib/unicodeio.c: Do not include ignore-value.h.
16671         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
16672         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
16674         fprintftime: depend on stdio, not ignore-value
16675         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
16676         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
16677         since the stdio module arranges to silence that warning now.
16678         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
16680 2012-10-04  Simon Josefsson  <simon@josefsson.org>
16682         stdint-tests: Fix expanded-before-required-warning.
16683         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
16685 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
16687         fwrite: silence __wur only for older glibc versions
16688         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
16689         This will help us remove this workaround some time in the far future.
16691 2013-01-03  Eric Blake  <eblake@redhat.com>
16693         fwrite: silence __wur without using inline
16694         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
16695         just gcc, and in a way that avoids inline issues.
16696         * modules/stdio (Depends-on): Drop extern-inline.
16698 2013-01-03  Jim Meyering  <jim@meyering.net>
16700         update-copyright: avoid copyright notice date corruption
16701         Given a sequence of copyright year numbers in which the final
16702         one was a two-digit number that happened to be a substring of
16703         a preceding four-digit year number, we would mistakenly update
16704         the substring (from two- to four-digit) rather than the two-digit
16705         number at the end, which, combined with the addition of the current
16706         4-digit year number would yield two 5-digit year numbers, e.g.,
16707         here, it would convert the first "99" to "1999, 2013" rather than
16708         the final one:
16709           1991, 99
16710           11999, 20131, 1999
16711         * build-aux/update-copyright: Tighten a regexp.
16712         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
16713         Reported by Joseph Myers in
16714         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
16716 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
16718         regex: omit needless signed-pointer casts
16719         * lib/regcomp.c (build_charclass, build_charclass_op):
16720         Use char *, not unsigned char *, for class name and extra.
16721         The char values are always nonnegative so there's no need to
16722         insist on unsigned char * here, and using char * removes the need
16723         for casts.  Reported by Aharon Robbins in
16724         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
16726         regex: support Gawk, which never uses alloca
16727         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
16728         Do not include in this case.  Gawk doesn't supply a substitute
16729         alloca.h and doesn't need one.
16731         regex: port __libc_lock_define usage to C89
16732         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
16733         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
16734         does not conform to C89, as it has an empty macro argument.
16735         Reported by Aharon Robbins in
16736         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
16738 2013-01-01  Eric Blake  <eblake@redhat.com>
16740         maint: update all copyright year number ranges
16741         Run "make update-copyright".
16743         version-etc: bump copyright year reported in --version
16744         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
16746 2012-12-31  Eric Blake  <eblake@redhat.com>
16748         sigprocmask-tests: skip test if pid is unexpectedly large
16749         * tests/test-sigprocmask.c (main): Add range check.
16751         git-version-gen: avoid test -z portability glitch
16752         * build-aux/git-version-gen: Prefer portable test spelling, since
16753         git-version-gen is run on more than just developer machines.
16755 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
16757         git-version-gen: add --fallback option to use if git is not present
16758         * build-aux/git-version-gen: Add support for the new option --fallback,
16759         which comes into play when there is no $tarball_version_file and
16760         git is not working.
16761         (scriptversion): Update.
16763         maint.mk: handle missing git with more grace
16764         * top/maint.mk (no-submodule-changes, public-submodule-commit):
16765         Quietly proceed if git is not present.
16767 2012-12-31  Eric Blake  <eblake@redhat.com>
16769         dup2: work around cygwin bug
16770         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
16771         * lib/dup2.c (rpl_dup2): Work around it.
16772         * doc/posix-functions/dup2.texi (dup2): Document it.
16774 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
16776         regex: remove unnecessary dependency on localcharset.h
16777         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
16778         hasn't been needed for years.
16779         * modules/regex (Depends-on): Remove localcharset.
16781         regex: revert single-byte change
16782         * lib/regexec.c (check_node_accept_bytes): Revert previous change
16783         to this function.  This was alredy fixed in a different way, at
16784         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
16785         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
16786         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
16788         regex: simplify based on Gawk version
16789         * lib/regex_internal.c (re_dfa_add_node): Simplify.
16790         Reported by Aharon Robbins in
16791         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
16793 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
16795         regex: check that pattern char is single-byte
16796         Reported by Aharon Robbins in
16797         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
16798         * lib/regexec.c (check_node_accept_bytes):
16799         Return 0 if the pattern string has a multibyte character here.
16801         regex: implement rational ranges
16802         Reported by Aharon Robbins in
16803         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
16804         * lib/regcomp.c (build_range_exp) [!_LIBC]:
16805         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
16806         Implement rational ranges.
16808         regex: avoid redefining __wctype
16809         Reported by Aharon Robbins in
16810         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
16811         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
16812         #undef before defining.
16814         regex: port to hosts where malloc (0) == NULL
16815         Reported by Aharon Robbins in
16816         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
16817         * lib/regex_internal.c (re_node_set_alloc):
16818         Don't assume that malloc (0) yields nonnull.
16819         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
16820         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
16821         * modules/regex (Files): Add m4/eealloc.m4.
16823         regex: port to C89
16824         Reported by Aharon Robbins in
16825         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
16826         * lib/regcomp.c (init_word_char): Declaration before statement.
16828         regex: merge glibc changes
16829         Also, copy the license wording from glibc.  This simplifies
16830         merging changes.  gnulib-tool will change the wording to GPL as
16831         appropriate, when importing it to other packages.  The only
16832         glibc change made since the last merge, which needs merging, is:
16833         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
16834         * lib/regex_internal.h (gettext): Remove use of INTUSE.
16836         * users.txt: Add Emacs.
16838         doc: omit mention of version when not needed
16839         * doc/gnulib-intro.texi (Portability and Application Code):
16840         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
16841         Don't mention particular dates or versions when not necessary, so
16842         that the documentation won't go out of date so quickly.
16844         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
16846 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
16848         bootstrap: pass --force to autoreconf.
16849         * build-aux/bootstrap (AUTORECONFFLAGS): New.
16850         Add "--force" so that Automake's ylwrap and other such tools
16851         be updated at each bootstrap invocation.
16852         Use it.
16854 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16856         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
16857         The earlier patch forgot to update one of the #if conditions, causing
16858         a problem on Debian testing i386 reported by Mats Erik Andersson
16859         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
16860         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
16861         (__argp_fmtstream_puts, argp_fmtstream_puts)
16862         (__argp_fmtstream_write, argp_fmtstream_write)
16863         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
16865         * doc/gnulib-readme.texi: Minor fixups.
16866         (Portability guidelines): Modernize URLs.  Remove some repetition.
16867         (Indent with spaces not TABs): Reword to avoid too-long lines.
16868         Remove some '@ifset standalone' stuff that isn't used.
16870         * doc/gnulib-readme.texi (Portability guidelines):
16871         ctype.h, not ctime.h.
16873         Correct name of POSIX.1-2001.
16874         * doc/posix-functions/fgetc.texi (fgetc):
16875         * doc/posix-functions/fgets.texi (fgets):
16876         * doc/posix-functions/fread.texi (fread):
16877         * doc/posix-functions/fscanf.texi (fscanf):
16878         * doc/posix-functions/getc.texi (getc):
16879         * doc/posix-functions/getchar.texi (getchar):
16880         * doc/posix-functions/scanf.texi (scanf):
16881         POSIX.1-2001, not POSIX-2001.
16883         doc: move README into manual
16884         * README: Move contents to new file doc/gnulib-readme.texi.
16885         Replace with a one-line summary.
16886         * doc/gnulib.texi (Brief Overview): New section,
16887         with old intro preface.  Include gnulib-readme.texi for contents.
16888         (Philosophy): Rename from "Introduction", since this
16889         section no longer introduces the rest.  Write a new preface.
16890         * doc/gnulib-readme.texi: New file, with the old contents of
16891         README texinfo-ized.  This way, the README info appears
16892         in the online and printed manual.
16894 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
16896         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
16897         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
16898         c_vasprintf() prototype.
16900 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
16902         c-vasprintf: Fix "empty declaration" warning reported by GCC.
16903         * lib/c-vasprintf.h: Remove stray semicolon.
16905 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
16907         gettext: avoid obsolete macro AM_PROG_MKDIR_P
16908         It is obsolete and is planned to be removed from Automake 1.14; see
16909         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
16910         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
16911         (installdirs-data, installdirs-data-yes):
16912         Use $(MKDIR_P), not $(mkdir_p).
16913         * m4/intl.m4 (AM_INTL_SUBDIR):
16914         * m4/po.m4 (AM_PO_SUBDIRS):
16915         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
16917 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
16919         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
16920         On this platform, we are not optimizing but we are using
16921         the substitute for extern inlines, so compile as if
16922         C99-style extern inline, or a substitute, is available.
16923         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
16924         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
16925         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
16926         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
16927         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
16928         Declare as ARGP_FS_EI, not as extern.
16929         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
16930         (__option_is_short, _option_is_end, __option_is_end)
16931         [!_LIBC && __USE_EXTERN_INLINES]:
16932         Declare as ARGP_EI, not as extern.
16934 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
16936         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
16937         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
16938         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
16939         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
16940         ...), as the latter is fatal with older Autoconfs.
16941         Problem reported and fix suggested by Eric Blake in thread starting at
16942         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
16944 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
16946         AC_PROG_MKDIR_P: don't workaround if not buggy
16947         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
16948         Define only for Autoconf versions before 2.62.
16949         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
16950         undocumented m4_PACKAGE_VERSION, for consistency with the
16951         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
16952         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
16953         was introduced in 2.62.
16955 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
16957         New 'c-*printf' modules for formatted output in C locale.
16959         New module 'c-vasnprintf'.
16960         * modules/c-vasnprintf: New file.
16961         * lib/c-vasnprintf.c: New file.
16962         * lib/c-vasnprintf.h: New file.
16964         New module 'c-snprintf'.
16965         * modules/c-snprintf: New file.
16966         * modules/c-snprintf-tests: New file.
16967         * lib/c-snprintf.c: New file.
16968         * lib/c-snprintf.h: New file.
16969         * tests/test-c-snprintf.c: New file.
16970         * tests/test-c-snprintf.sh: New file.
16972         New module 'c-vsnprintf'.
16973         * modules/c-vsnprintf: New file.
16974         * modules/c-vsnprintf-tests: New file.
16975         * lib/c-vsnprintf.c: New file.
16976         * lib/c-vsnprintf.h: New file.
16977         * tests/test-c-vsnprintf.c: New file.
16978         * tests/test-c-vsnprintf.sh: New file.
16980         New module 'c-vasprintf'.
16981         * modules/c-vasprintf: New file.
16982         * modules/c-vasprintf-tests: New file.
16983         * lib/c-asprintf.c: New file.
16984         * lib/c-vasprintf.c: New file.
16985         * lib/c-vasprintf.h: New file.
16986         * tests/test-c-vasprintf.c  +: New file.
16987         * tests/test-c-vasprintf.sh: New file.
16989         New module 'c-xvasprintf'.
16990         * modules/c-xvasprintf: New file.
16991         * modules/c-xvasprintf-tests: New file.
16992         * lib/c-xasprintf.c: New file.
16993         * lib/c-xvasprintf.c: New file.
16994         * lib/c-xvasprintf.h: New file.
16995         * tests/test-c-xvasprintf.c: New file.
16996         * tests/test-c-xvasprintf.sh: New file.
16998 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
17000         argp: better 'inline'
17001         Use extern-inline module to declare extern inline functions.
17002         This avoids some bogus warning diagnostics.  Problem discovered
17003         when modifying GNU tar to use the manywarnings module.
17004         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
17005         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
17006         Define based on extern-inline.
17007         * modules/argp (Depends-on): Add extern-inline.
17009 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
17011         filemode, sys_stat: Handle MPX files a la AIX.
17012         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
17013         * lib/sys_stat.in.h (S_ISMPX): New macro.
17014         * tests/test-sys_stat.c: Add tests for MPX files.
17016 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
17018         x-to-1: honor $PERL
17019         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
17020         a chance to use his preferred version of Perl.  This is typically
17021         required by Darwin users whose default /usr/bin/perl does not have all
17022         the libraries required by help2man, and who need to use their MacPorts
17023         installation of Perl instead.
17025 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
17027         gnu-web-doc-update: add all the new files, even in new directories
17028         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
17029         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
17030         Use it.
17031         (main): Don't use cvsutils to get the list of unknown files,
17032         just add all the existing files and directories.
17034 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
17036         gnu-web-doc-update: improve --help
17037         * build-aux/gnu-web-doc-update: Move comments into --help.
17039 2012-12-07  Eric Wong  <normalperson@yhbt.net>
17041         mountlist: recognize more "dummy" file systems
17042         * lib/mountlist.c (ME_DUMMY_0):
17043         Add these dummy FS names to the list:
17044         - "debugfs" virtual filesystem for kernel debugging
17045         - "devpts" PTY slave filesystem
17046         - "devtmpfs" device filesystem on top of tmpfs/ramfs
17047         - "fusectl" control filesystem for FUSE
17048         - "mqueue" enumerates POSIX message queues
17049         - "rpc_pipefs" kernel <-> userspace bridge for NFS
17050         - "sysfs" is for exporting kernel objects
17051         - "devfs" device filesystem for Linux 2.4 and FreeBSD
17053 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
17055         extern-inline: avoid incompatibility with Darwin Libc
17056         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
17057         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
17058         Problem reported by Akim Demaille in
17059         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
17061 2012-12-11  Simon Josefsson  <simon@josefsson.org>
17063         gnupload: Work with GnuPG using gpg-agent (for smartcards).
17064         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
17065         let it handle password prompting.
17067 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
17069         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
17070         * lib/canonicalize.c (canonicalize_filename_mode):
17071         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
17072         fetching the current directory.  Don't overrun the beginning of
17073         rpath if there's no slashes after the MS-Windows drive letter.
17075 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
17077         maint.mk: avoid extra forks
17078         * top/maint.mk (_cfg_mk): The GNU make manual documents that
17079         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
17080         So use that instead of "$(shell test -f FILE && echo FILE)".
17082 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
17084         vasnprintf: fix ASCII_ONLY typo
17085         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
17086         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
17087         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
17088         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
17089         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
17091 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
17093         list, oset, xlist, xoset: fix extern inline issue with C99
17094         This was introduced by my recent changes for 'inline'.
17095         Problem reported for gettext by Daiki Ueno in
17096         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
17097         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
17098         (gl_list_nx_create, gl_list_size, gl_list_node_value)
17099         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
17100         (gl_list_previous_node, gl_list_get_at)
17101         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
17102         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
17103         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
17104         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
17105         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
17106         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
17107         (gl_list_iterator_free, gl_sortedlist_search)
17108         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
17109         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
17110         (gl_sortedlist_remove):
17111         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
17112         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
17113         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
17114         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
17115         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
17116         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
17117         (gl_list_add_at, gl_sortedlist_add):
17118         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
17119         Wrap these extern decls inside "#if 0", because they are implemented
17120         as inline functions, and extern inline is not what's wanted here.
17121         It would simplify these .h files to remove the extern decls entirely,
17122         although a downside would be less-clear separation between
17123         specification and implementation.
17125 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
17127         sys_stat: no 'static inline'
17128         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
17129         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
17131         extern-inline: no 'static inline'
17132         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
17133         Do not require AC_C_INLINE.
17134         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
17135         'static inline', for older compilers.
17137         snippet/warn-on-use: no 'static inline'
17138         * build-aux/snippet/warn-on-use.h:
17139         Remove unnecessary 'inline' in comment.
17141         rbtree-list, rbtreehash-list: no 'static inline'
17142         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
17143         * lib/gl_anytree_list2.h (node_at):
17144         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
17145         (gl_oset_first, add_nodes_to_buckets):
17146         Now static, not static inline.
17148         regex: no 'static inline'
17149         * lib/regex_internal.c (calc_state_hash):
17150         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
17151         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
17152         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
17153         Now static, not static inline.
17154         (inline) [__GNUC__ < 3 && _LIBC]:
17155         Remove macro; no longer needed.
17157         xvasprintf: no 'static inline'
17158         * lib/xvasprintf.c (xstrcat):
17159         Now static, not static inline.
17160         * m4/xvasprintf.m4 (gl_XVASPRINTF):
17161         Do not require AC_C_INLINE.
17163         parse-datetime, parse-duration: no 'static inline'
17164         * lib/parse-datetime.y (to_uchar):
17165         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
17166         (scale_n_add):
17167         Now static, not static inline.
17168         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
17169         * modules/parse-duration (configure.ac):
17170         Do not require AC_C_INLINE.
17172         getaddrinfo: no 'static inline'
17173         * lib/getaddrinfo.c (validate_family):
17174         Now static, not static inline.
17175         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
17176         Do not require AC_C_INLINE.
17178         ftruncate, fts, lstat, openat, raise: no 'static inline'
17179         * lib/ftruncate.c (chsize_nothrow):
17180         * lib/fts.c (opendirat, diropen):
17181         * lib/lstat.c (orig_lstat):
17182         * lib/openat.c (orig_openat):
17183         * lib/raise.c (raise_nothrow):
17184         Now static, not static inline.
17185         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
17186         * m4/fts.m4 (gl_FUNC_FTS_CORE):
17187         * m4/lstat.m4 (gl_PREREQ_LSTAT):
17188         * m4/openat.m4 (gl_PREREQ_OPENAT):
17189         * m4/raise.m4 (gl_PREREQ_RAISE):
17190         Do not require AC_C_INLINE.
17192         fflush, stat: no 'static inline'
17193         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
17194         (clear_ungetc_buffer, disable_seek_optimization)
17195         (restore_seek_optimization, update_fpos_cache):
17196         * lib/stat.c (orig_stat):
17197         Now static, not static inline.
17198         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
17199         (update_fpos_cache):
17200         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
17201         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
17202         * m4/stat.m4 (gl_PREREQ_STAT):
17203         Do not require AC_C_INLINE.
17205         error, filevercmp: no 'static inline'
17206         * lib/error.c (is_open, flush_stdout):
17207         * lib/filevercmp.c (order):
17208         Now static, not static inline.
17209         * m4/error.m4 (gl_PREREQ_ERROR):
17210         * modules/filevercmp (configure.ac):
17211         Do not require AC_C_INLINE.
17213         dup, execute, fatal-signal, etc.: no 'static inline'
17214         * lib/dup.c (dup_nothrow):
17215         * lib/execute.c (nonintr_close, nonintr_open):
17216         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
17217         * lib/fopen.c (orig_fopen):
17218         * lib/freadseek.c (freadptrinc):
17219         * lib/freopen.c (orig_freopen):
17220         * lib/fstat.c (orig_fstat, fstat_nothrow):
17221         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
17222         (get_rusage_as_via_iterator):
17223         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
17224         * lib/getdtablesize.c (_setmaxstdio_nothrow):
17225         * lib/isatty.c (_isatty_nothrow):
17226         * lib/open.c (orig_open):
17227         * lib/read.c (read_nothrow):
17228         * lib/sigprocmask.c (signal_nothrow):
17229         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
17230         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
17231         * lib/wait-process.c (unregister_slave_subprocess):
17232         * lib/write.c (write_nothrow):
17233         Now static, not static inline.
17234         * lib/spawn-pipe.c (nonintr_open): Define only if
17235         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
17236         * m4/dup.m4 (gl_PREREQ_DUP):
17237         * m4/execute.m4 (gl_EXECUTE):
17238         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
17239         * m4/fopen.m4 (gl_PREREQ_FOPEN):
17240         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
17241         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
17242         * m4/fstat.m4 (gl_PREREQ_FSTAT):
17243         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
17244         * m4/isatty.m4 (gl_PREREQ_ISATTY):
17245         * m4/open.m4 (gl_PREREQ_OPEN):
17246         * m4/read.m4 (gl_PREREQ_READ):
17247         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
17248         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
17249         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
17250         * m4/wait-process.m4 (gl_WAIT_PROCESS):
17251         * m4/write.m4 (gl_PREREQ_WRITE):
17252         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
17253         Do not require AC_C_INLINE.
17255         c-strtod, memcoll, readutmp: no 'static inline'
17256         * lib/c-strtod.c (c_locale):
17257         * lib/memcoll.c (strcoll_loop):
17258         * lib/readutmp.c (desirable_utmp_entry):
17259         Now static, not static inline.
17260         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
17261         * m4/memcoll.m4 (gl_MEMCOLL):
17262         * m4/readutmp.m4 (gl_READUTMP):
17263         Do not require AC_C_INLINE.
17265         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
17266         * lib/arctwo.c (to_uchar):
17267         * lib/md4.c (set_uint32):
17268         * lib/md5.c (set_uint32):
17269         * lib/sha1.c (set_uint32):
17270         * lib/sha256.c (set_uint32):
17271         * lib/sha512.c (set_uint64):
17272         Now static, not static inline.  This is a bit simpler, and doesn't
17273         affect performance with GCC and default optimization.
17274         * m4/arctwo.m4 (gl_ARCTWO):
17275         * m4/md4.m4 (gl_MD4):
17276         * m4/md5.m4 (gl_MD5):
17277         * m4/sha1.m4 (gl_SHA1):
17278         * m4/sha256.m4 (gl_SHA256):
17279         * m4/sha512.m4 (gl_SHA512):
17280         Do not require AC_C_INLINE.
17282         cond, lock, thread: better 'inline'
17283         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
17284         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
17285         New macros.  Use them instead of static inline, for header functions.
17286         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
17287         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
17288         * lib/glthread/lock.c (gl_waitqueue_init)
17289         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
17290         * lib/glthread/thread.c (get_current_thread_handle):
17291         Change 'static inline' to 'inline'.
17292         * lib/glthread/cond.h, lib/glthread/thread.h:
17293         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17294         * m4/cond.m4 (gl_COND):
17295         * m4/lock.m4 (gl_PREREQ_LOCK):
17296         * m4/thread.m4 (gl_THREAD):
17297         Do not require AC_C_INLINE.
17298         * modules/cond, modules/thread (Depends-on): Add extern-inline.
17300         chdir-long, cycle-check, savewd: better 'inline'
17301         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
17302         (find_non_slash):
17303         * lib/cycle-check.c (is_zero_or_power_of_two):
17304         * lib/savewd.c (savewd_delegating):
17305         Change 'static inline' to 'inline'.
17306         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
17307         Replace all remaining uses of 'static inline' with it.
17308         * lib/savewd.h:
17309         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17310         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
17311         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
17312         * m4/savewd.m4 (gl_SAVEWD):
17313         Do not require AC_C_INLINE.
17314         * modules/savewd (Depends-on): Add extern-inline.
17316         base32, base64: no need for 'inline'
17317         * lib/base32.c (to_uchar, get_8, decode_8):
17318         * lib/base64.c (to_uchar, get_4, decode_4):
17319         Change 'static inline' to 'inline'.
17320         * m4/base32.m4 (gl_PREREQ_BASE32):
17321         * m4/base64.m4 (gl_PREREQ_BASE64):
17322         Do not require AC_C_INLINE.
17324         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
17325         * lib/gl_array_oset.c (gl_array_nx_add_at):
17326         (gl_array_remove_at):
17327         * lib/gl_linkedhash_list.c (hash_resize_after_add)
17328         (add_to_bucket, remove_from_bucket):
17329         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
17330         Change 'static inline' to 'static', as it's simpler to omit
17331         'inline' unless there's a significant performance advantage.
17333         list, oset, xlist, xoset, xsublist: simplify via extern inline
17334         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
17335         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
17336         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
17337         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
17338         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
17339         New macro.  Replace all uses of 'static inline' with it.
17340         [HAVE_INLINE]: Implement functions as *_INLINE functions,
17341         instead of as macros FOO that are defined to static inline
17342         functions FOO_inline.
17343         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
17344         * lib/gl_xsublist.c:
17345         Reimplement from scratch, by defining the corresponding *_INLINE
17346         macro and including the corresponding .h file.  This is simpler.
17347         * modules/list, modules/oset, modules/xlist, modules/xoset:
17348         (Files): Remove m4/gl_list.m4.
17349         (configure.ac): Remove gl_LIST.
17350         * m4/gl_list.m4: Remove.
17351         * modules/list, modules/oset, modules/xlist, modules/xoset:
17352         * modules/xsublist:
17353         (Depends-on): Depend on extern-inline, not inline.
17355         xalloc: better 'inline'
17356         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
17357         New macro.  Replace all uses of 'static inline' with it.
17358         (static_inline): Remove.
17359         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
17360         Let 'extern inline' do the work automatically, instead of doing
17361         it by hand.
17362         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
17363         Remove.  All uses removed.
17364         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
17366         gethrxtime: better 'inline'
17367         * lib/xtime.c: New file.
17368         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
17369         * lib/xtime.h (XTIME_INCLUDE):
17370         New macros.  Replace all uses of 'static inline' with them.
17371         * lib/gethrxtime.c (gethrxtime): Define only if
17372         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
17373         this source file is now always compiled, because of the extern inline.
17374         * lib/gethrxtime.h, lib/xtime.h:
17375         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17376         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
17377         if gethrtime works, as they're not needed in that case.
17378         (gl_XTIME): Do not require AC_C_INLINE.
17379         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
17380         compiled now.  Move the check into gl_GETHRXTIME.
17381         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
17382         (Depends-on): Add extern-inline.
17383         (configure.ac): gethrxtime is always compiled now.
17384         (lib_SOURCES): Add gethrxtime.c.
17386         wctype-h: better 'inline'
17387         * lib/wctype-h.c: New file.
17388         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
17389         New macro.  Replace all uses of 'static inline' with it.
17390         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17391         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
17392         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
17393         (Depends-on): Add extern-inline.
17395         unistd: better 'inline'
17396         * lib/unistd.c: New file.
17397         * lib/unistd.in.h (_GL_UNISTD_INLINE):
17398         New macro.  Replace all uses of 'static inline' with it.
17399         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17400         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
17401         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
17402         (Depends-on): Add extern-inline.
17404         sys_socket: better 'inline'
17405         * lib/sys_socket.c: New file.
17406         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
17407         New macro.  Replace all uses of 'static inline' with it.
17408         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17409         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
17410         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
17411         (Depends-on): Add extern-inline.
17413         stdio: better 'inline'
17414         * lib/stdio.c: New file.
17415         * lib/stdio.in.h (_GL_STDIO_INLINE):
17416         New macro.  Replace all uses of 'static inline' with it.
17417         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17418         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
17419         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
17420         (Depends-on): Add extern-inline.
17422         sigaction: better 'inline'
17423         * lib/sig-handler.c: New file.
17424         * lib/sig-handler.h (SIG_HANDLER_INLINE):
17425         New macro.  Replace all uses of 'static inline' with it.
17426         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17427         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
17428         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
17429         (Depends-on): Add extern-inline.
17431         selinux-h: better 'inline'
17432         * lib/se-context.c, lib/se-selinux.c: New files.
17433         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
17434         * lib/se-context.in.h (SE_CONTEXT_INLINE):
17435         New macro.  Replace all uses of 'static inline' with it.
17436         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17437         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
17438         New macro.  Replace all uses of 'static inline' with it.
17439         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17440         * modules/selinux-h (Files, lib_SOURCES):
17441         Add lib/se-context.c, lib/se-selinux.c.
17442         (Depends-on): Add extern-inline.
17443         (configure.ac): Do not require AC_C_INLINE.
17445         pthread: better 'inline'
17446         * lib/pthread.c: New file.
17447         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
17448         New macro.  Replace all uses of 'static inline' with it.
17449         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17450         * m4/pthread.m4 (gl_PTHREAD_CHECK):
17451         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
17452         * modules/pthread (Files): Add lib/pthread.c.
17453         (Depends-on): Add extern-inline.
17455         math: better 'inline'
17456         * lib/math.c: New file.
17457         * lib/math.in.h (_GL_MATH_INLINE):
17458         New macro.  Replace all uses of 'static inline' with it.
17459         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17460         * m4/math_h.m4 (gl_MATH_H):
17461         Do not require AC_C_INLINE.
17462         * modules/math (Files, lib_SOURCES):
17463         Add lib/math.c.
17464         (Depends-on): Add extern-inline.
17466         count-one-bits: better 'inline'
17467         * lib/count-one-bits.c: New file.
17468         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
17469         New macro.  Replace all uses of 'static inline' with it.
17470         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17471         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
17472         Do not require AC_C_INLINE.
17473         * modules/count-one-bits (Files, lib_SOURCES):
17474         Add lib/count-one-bits.c.
17475         (Depends-on): Add extern-inline.
17477         count-leading-zeros: better 'inline'
17478         * lib/count-leading-zeros.c: New file.
17479         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
17480         New macro.  Replace all uses of 'static inline' with it.
17481         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17482         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
17483         Do not require AC_C_INLINE.
17484         * modules/count-leading-zeros (Files, lib_SOURCES):
17485         Add lib/count-leading-zeros.c.
17486         (Depends-on): Add extern-inline.
17488         bitrotate: better 'inline'
17489         * lib/bitrotate.c: New file.
17490         * lib/bitrotate.h (BITROTATE_INLINE):
17491         New macros.
17492         Replace all uses of 'static inline' with them.
17493         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17494         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
17495         (Depends-on): Add extern-inline.
17496         (configure.ac): Do not require AC_C_INLINE.
17498 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
17500         maint.mk: avoid gratuitous failure
17501         Reported by Stefano Lattarini in
17502         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
17503         * top/maint.mk (public-submodule-commit): Quote more safely.
17505 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
17507         canonicalize, canonicalize-lgpl: support MS-Windows file names
17508         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
17509         for test cases, which it'd be nice to add at some point.
17510         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
17511         * lib/canonicalize.c (canonicalize_filename_mode):
17512         * lib/canonicalize-lgpl.c (__realpath):
17513         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
17514         slash is at the beginning of the file name.  Use ISSLASH, instead
17515         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
17516         the first character with '/'.  Test for
17517         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
17518         with a drive letter.
17519         * lib/canonicalize.c (SLASHES): New macro.
17520         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
17522 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
17524         fts: introduce FTS_VERBATIM
17525         * lib/fts_.h (FTS_VERBATIM): New bit flag.
17526         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
17527         * lib/fts.c (fts_open): Honor it.
17529 2012-11-09  Pádraig Brady  <P@draigBrady.com>
17531         getlogin-tests: allow errno == ENXIO
17532         * tests/test-getlogin.c (main): Skip tests if getlogin fails
17533         with errno == ENXIO (No controlling tty).
17534         getlogin_r-tests: Likewise. Also allow errno == ENOENT
17535         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
17536         with errno == ENOENT.  This was reported to happen in various
17537         situations on GNU/Linux.
17539 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
17541         getlogin-tests: allow errno == ENOENT
17542         * tests/test-getlogin.c (main): Skip tests if getlogin fails
17543         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
17544         when running a test in an Emacs shell buffer.
17546 2012-11-08  Jim Meyering  <jim@meyering.net>
17548         tests/nap.h: avoid warning about unused variable
17549         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
17551         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
17552         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
17553         white space before each of the special-cased file names, to avoid
17554         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
17555         in http://bugs.gnu.org/12830.
17557 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
17559         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
17560         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
17561         fails with errno == EBADF when fd is opened with O_PATH.
17562         Reported by Jim Meyering in
17563         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
17564         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
17565         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
17567 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
17569         test-utimens: speed up by taking shorter naps
17570         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
17571         New functions.
17572         (nap): Use them, to do a better job of guessing the delay.
17573         On Fedora 17 with ext4 atop md atop hard disks, this made
17574         test-utimens run 10x faster, because the test napped for
17575         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
17576         <http://bugs.gnu.org/12820#11>.
17578 2012-11-07  Jim Meyering  <jim@meyering.net>
17580         mountlist.c: fix a compilation failure
17581         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
17582         I introduced while transforming commit v0.0-7683-g613bcb6
17584 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
17586         errno: port to LynxOS 178 2.2.2
17587         Problem reported by Joel Brobecker in
17588         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
17589         * doc/posix-headers/errno.texi (errno.h): Document this.
17590         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
17591         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
17592         Supply a string for EILSEQ.
17593         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
17595 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
17597         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
17598         Linux kernel 2.6.39 introduced O_PATH (see
17599         <http://lwn.net/Articles/433854/>) and this is a better fallback
17600         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
17601         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
17602         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
17603         * lib/fcntl.in.h (O_ACCMODE):
17604         * tests/test-fcntl-h.c (main):
17605         Do not reject O_ACCMODE merely because it has more than the
17606         minimal number of bits, as POSIX allows extensions here.
17608 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
17610         mountlist: do not classify a bind-mounted dir entry as "dummy"
17611         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
17612         the "none"-testing clause.
17613         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
17614         exception for bind-mounted directories.
17616 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
17618         quote: provide a means to escape strings with nul characters
17619         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
17620         (quote, quote_n): Rename formal arguments for consistency with
17621         quotearg.
17623 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
17625         test-raise: don't assume 199 is an invalid signal
17626         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
17628         sh-quote-tests: port to Solaris 9
17629         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
17630         Problem reported by Dagobert Michelsen in
17631         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
17633 2012-10-28  Jim Meyering  <jim@meyering.net>
17635         maint.mk: rename a new configurable variable
17636         * top/maint.mk (_gl_translatable_string_re): Rename from
17637         translation-markers: _gl_ prefix to insulate from user Makefile code,
17638         and the _re suffix to inform that it's a regular expression.
17640 2012-10-26  Eric Blake  <eblake@redhat.com>
17642         maint.mk: let packages tweak sc_po_check pattern
17643         * top/maint.mk (sc_po_check): Add translation-markers, to allow
17644         finding files with other translation markers.
17646 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
17648         euidaccess: speed up 'configure' on GNU hosts
17649         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
17650         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
17651         it's needed only in this case.  Use AC_CHECK_DECLS, not
17652         AC_CHECK_DECLS_ONCE.
17653         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
17654         or AC_REQUIRE for AC_FUNC_GETGROUPS.
17656         * lib/regexec.c (re_search_internal): Fix grammar in comment.
17658 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
17660         fchmodat, fchownat, fstatat: port to non-inlining compilers
17661         Problem reported for FreeBSD 9 by Jim Meyering in
17662         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
17663         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
17664         New files, which define FCHMODAT_INLINE etc.
17665         * lib/fchmodat.c (FCHMODAT_INLINE):
17666         * lib/fchownat.c (FCHOWNAT_INLINE):
17667         * lib/fstatat.c (FSTATAT_INLINE):
17668         Remove, as chmodat.c etc. now do this.
17669         * modules/fchmodat (Files): Add lib/chmodat.c.
17670         * modules/fchownat (Files): Add lib/chownat.c.
17671         * modules/fstatat (Files): Add lib/statat.c.
17673 2012-10-15  Jim Meyering  <jim@meyering.net>
17675         fchmodat.c, fchownat.c: compile-impeding typos
17676         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
17677         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
17678         Introduced in commit v0.0-7636-gd202279.
17680 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
17682         fcntl-h: support GNU flags like O_IGNORE_CTTY
17683         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
17684         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
17685         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
17686         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
17687         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
17688         Define to 0 if not already defined.
17689         * tests/test-fcntl-h.c: Test these new flags.
17691 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
17693         faccessat, etc.: support AT_FDCWD-only use
17694         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
17695         this function only if its first argument is AT_FDCWD.
17696         Emacs wants faccessat for AT_EACCESS but not for any first-arg
17697         values other than AT_FDCWD, so it doesn't want all the openat
17698         machinery with fchdir etc.
17699         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
17700         * modules/fstatat, modules/mkdirat, modules/openat (Files):
17701         * modules/unlinkat (Files):
17702         Remove lib/openat-priv.h, as at-internal supplies this file.
17703         Removing this file here allows us to support programs like Emacs
17704         that avoid at-internal.
17706         faccessat: speed up 'configure' on mainstream hosts
17707         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
17708         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
17709         since it's only on unusual platforms that we need to check for
17710         'access', and it's better not to slow 'configure' down on all
17711         platforms.
17713         faccessat: port to Solaris 10
17714         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
17715         Needed on Solaris 10, which doesn't have AT_EACCESS,
17716         so we need the Gnulib fcntl.h, which defines it.
17718 2012-10-14  Pádraig Brady  <P@draigBrady.com>
17719         canonicalize: fix C89 compilation
17720         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
17721         declarations so C89 is supported.  Also remove the comment
17722         referencing memorty allocation as the suggested feature could
17723         not be implemented as suggested.
17724         Reported by Michael Goffioul.
17726 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
17728         group-member: omit unnecessary dependencies
17729         This is for Emacs, which has its own allocator and where we
17730         don't want to use xalloc.
17731         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
17732         since we no longer use xmalloc.  Do not include stdbool.h, since
17733         the changes below happen to remove the only use of bool.
17734         (GROUPBUF_SIZE): New constant.
17735         (struct group_info): Remove n_groups member.  Add groupbuf member.
17736         This lets us get the groups without using malloc, usually.
17737         (free_group_info, get_group_info): Adjust to this.
17738         (get_group_info): Return the number of groups found, or -1 on error.
17739         Use plain malloc not xmalloc, and treat its failure as if there
17740         are no groups, as the user already loses in case of error.
17741         (group_member): Simplify, based on changes to get_group_info.
17742         * modules/group-member (Depends-on): Remove dependencies on
17743         xalloc and stdbool.  Add dependency on xalloc-oversized.
17745 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
17747         gethrxtime: port to C++
17748         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
17750 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
17752         ptsname: fix macro-name typo
17753         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
17755 2012-10-03  Simon Josefsson  <simon@josefsson.org>
17757         inttostr: Relax license.
17758         * modules/inttostr (License): Change from LGPL to LGPLv2+.
17760 2012-10-03  Eric Blake  <eblake@redhat.com>
17762         ptsname_r: support ptys returned by FreeBSD posix_openpt
17763         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
17764         lives in /dev/pts/.
17766 2012-10-02  Eric Blake  <eblake@redhat.com>
17768         pselect: reject invalid file descriptors
17769         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
17770         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
17771         * modules/pselect (Depends-on): Add dup2.
17772         * doc/posix-functions/pselect.texi (pselect): Document this.
17774         select: reject invalid file descriptors
17775         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
17776         * lib/select.c (rpl_select) [!win32]: Work around it.
17777         * modules/select (Depends-on): Add dup2.
17778         * doc/posix-functions/select.texi (select): Document this.
17780         select: enhance test
17781         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
17782         New functions.
17783         (test_function): Enhance test.
17784         (do_select_bad_fd): Avoid any stale errno values.
17786         ptsname: reject invalid file descriptors
17787         http://www.austingroupbugs.net/view.php?id=503
17788         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
17789         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
17790         * modules/stdlib (Makefile.am): Replace witness.
17791         * lib/stdlib.in.h (ptsname): Allow for replacement.
17792         * modules/ptsname (configure.ac): Trigger replacement.
17793         * doc/posix-functions/ptsname.texi (ptsname): Document this.
17795 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
17797         hash-pjw-bare: new module
17798         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
17799         * lib/hash-pjw-bare.h: Likewise.
17800         * modules/hash-pjw-bare: New file.
17801         * MODULES.html.sh (Misc): Add it.
17803 2012-10-02  Eric Blake  <eblake@redhat.com>
17805         manywarnings: cater to more gcc infelicities
17806         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
17807         -Wuninitialized without -O.
17809 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
17811         select, poll tests: Make setsockopt invocation effective.
17812         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
17813         the bind() call.
17814         * tests/test-select.h (open_server_socket): Likewise.
17816 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
17818         sockets, sys_stat: restore AC_C_INLINE
17819         This undoes the 2012-09-22 patch.
17820         * m4/sockets.m4 (gl_SOCKETS):
17821         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
17822         Restore AC_C_INLINE, since MSVC requires __inline or _inline
17823         and does not support plain 'inline'.  Reported by Bruno Haible in
17824         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
17826 2012-09-30  Bruno Haible  <bruno@clisp.org>
17828         localeconv tests: Avoid test failure on OpenIndiana.
17829         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
17830         skip the 'grouping' and 'mon_grouping' tests.
17831         Reported by Jim Meyering.
17833 2012-09-30  Bruno Haible  <bruno@clisp.org>
17835         havelib: Follow libtool developments.
17836         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
17837         Suggested by Simon Josefsson.
17839 2012-09-29  Jim Meyering  <meyering@redhat.com>
17841         fstatat.c: fix a compile-impeding typo
17842         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
17843         Introduced in commit v0.0-7636-gd202279.
17844         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
17846 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
17848         extern-inline: provide a -Wundef safe config.h
17849         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
17850         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
17851         to produce a -Wundef warning free config.h.
17853 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
17855         hash-pjw: relax license to LGPLv2+
17856         * modules/hash-pjw (License): Relax, with consent of author.
17858 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
17860         maint.mk: fix strict vs. lazy variable issues with RELEASE
17861         * top/maint.mk (_equal): New function.
17862         (member_check): Strip the result to avoid spurious spaces.
17863         (url_dir_list): Do not use ifeq, which is strict, as it will
17864         require RELEASE_TYPE to be defined.
17865         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
17866         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
17867         (announcement_Cc_alpha,announcement_mail_headers_alpha)
17868         (announcement_Cc_beta,announcement_mail_headers_beta)
17869         (announcement_Cc_stable,announcement_mail_headers_stable): these.
17870         (release): Do not depend on $(release-type), as it forces its
17871         evaluation.  Bounce to it.
17873 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
17875         maint.mk: formatting changes
17876         * top/maint.mk: Indent bodies of if's.
17878 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
17880         maint.mk: factor the validation of RELEASE_TYPE
17881         With help from Jim Meyering.
17882         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
17883         * top/maint.mk (_empty, _sp): Move their definition earlier.
17884         (member-check, release-type): New.
17885         Use the latter instead of $(RELEASE_TYPE).
17886         Remove now useless local checks.
17888 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
17890         maint.mk: provide "make upload" to ease uploading
17891         See
17892         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
17893         Do not depend simply on the current $(VERSION), as there may have been
17894         new commits since the tarball generation.  Rather, rely on $(RELEASE),
17895         as "make release-commit" already does.
17897         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
17898         "make TYPE".
17900         * top/maint.mk (upload_command, upload, release): New.
17901         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
17902         (VERSION): first word of $(RELEASE) is always right.
17903         (emit_upload_commands): Adjust.
17904         * top/README-release: Update.
17906 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
17908         maint.mk: silent rules
17909         With help from Stefano Lattarini.
17910         * top/maint.mk (writable-files): Use $(AM_V_GEN).
17911         (announcement): Use $(AM_V_at).
17913 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
17915         localename: port gl_locale_name_thread_unsafe to FreeBSD
17916         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
17917         and use the simpler FreeBSD implementation on Mac OS X as well.
17918         Original idea suggested by Ed Maste in
17919         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
17921 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
17923         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
17924         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
17925         * lib/mbuiter.c, lib/xsize.c: New files.
17926         * lib/binary-io.h (BINARY_IO_INLINE):
17927         * lib/eealloc.h (EEALLOC_INLINE):
17928         * lib/mbfile.h (MBFILE_INLINE):
17929         * lib/mbiter.h (MBITER_INLINE):
17930         * lib/mbuiter.h (MBUITER_INLINE):
17931         * lib/xsize.h (XSIZE_INLINE):
17932         New macros.
17933         Replace all uses of 'static inline' with them.
17934         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17935         * m4/eealloc.m4 (gl_EEALLOC):
17936         * m4/mbfile.m4 (gl_MBFILE):
17937         * m4/mbiter.m4 (gl_MBITER):
17938         * m4/xsize.m4 (gl_XSIZE):
17939         Do not require AC_C_INLINE.
17940         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
17941         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
17942         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
17943         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
17944         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
17945         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
17946         * modules/binary-io, modules/eealloc, modules/mbfile:
17947         * modules/mbiter, modules/mbuiter:
17948         (Depends-on): Add extern-inline.
17950         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
17951         * lib/pipe-filter-aux.c: New file.
17952         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
17953         Replace all uses of 'static inline' with it.
17954         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17955         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
17956         (filter_retcode): No real need for inline here.
17957         * modules/pipe-filter-gi, modules/pipe-filter-ii:
17958         (Files): Add lib/pipe-filter-aux.c.
17959         (Depends-on): Add extern-inline.
17960         (configure.ac): Do not require AC_C_INLINE.
17961         (lib_SOURCES): Add pipe-filter-aux.c.
17963         fdutimensat: omit unnecessary AC_C_INLINE
17964         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
17966         fchmodat, fchownat, fstatat: use extern-inline
17967         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
17968         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
17969         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
17970         New macros.
17971         * lib/openat.h:
17972         Replace all uses of 'static inline' with them.
17973         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17974         * modules/fchmodat, modules/fchownat, modules/fstatat:
17975         * modules/openat-h:
17976         (Depends-on):
17977         Add extern-inline.
17978         (configure.ac): Remove AC_C_INLINE.
17980         acl, mbchar, priv-set: use extern-inline
17981         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
17982         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
17983         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
17984         New macros.
17985         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
17986         Replace all uses of 'static inline' with it.
17987         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17988         * m4/acl.m4 (gl_FUNC_ACL):
17989         * m4/mbchar.m4 (gl_MBCHAR):
17990         * m4/priv-set.m4 (gl_PRIV_SET):
17991         Remove AC_C_INLINE, since 'inline' is no longer used directly.
17992         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
17993         Add extern-inline.
17995         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
17996         * m4/sockets.m4 (gl_SOCKETS):
17997         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
17998         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
17999         environments where it's already guaranteed to work, so we needn't
18000         check for it at 'configure'-time.
18002         tls-tests: omit unnecessary 'inline'
18003         * tests/test-tls.c (perhaps_yield): No longer inline.
18004         Simplicity and portability trump efficiency in test cases.
18006         utimens-tests: avoid unnecessary 'inline'
18007         * modules/fdutimensat-tests (configure.ac):
18008         * modules/futimens-tests (configure.ac):
18009         * modules/utimens-tests (configure.ac):
18010         * modules/utimensat-tests (configure.ac):
18011         Remove AC_C_INLINE.
18012         * tests/test-utimens-common.h (ctime_compare):
18013         No longer inline.  Simplicity and portability trump efficiency here.
18015         misc: don't limit commentary to inline functions
18016         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
18017         * lib/xalloc-oversized.h, lib/xsize.h:
18018         Contrast macros to functions in general, not just to inline functions,
18019         when the commentary does not apply only to inline functions.
18021 2012-09-20  Jim Meyering  <meyering@redhat.com>
18023         non-recursive-gnulib-prefix-hack: new module
18024         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
18025         the file that originated in Bison.
18026         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
18027         largely copied from a snippet that resided in bison's configure.ac.
18028         * modules/non-recursive-gnulib-prefix-hack: New file.
18029         * MODULES.html.sh (Support for maintaining and releasing projects):
18030         Add it.
18032 2012-09-18  Jim Meyering  <meyering@redhat.com>
18034         maint.mk: generalize _gl_tight_scope for non-recursive make
18035         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
18036         that *.h would describe additional .h files in the directory
18037         specified by $(_gl_TS_dir).  I.e., add this...
18038         (_gl_TS_other_headers): New variable.
18040         maint.mk: exempt trailing blanks found in "binary" files
18041         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
18042         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
18043         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
18045 2012-09-17  Jim Meyering  <meyering@redhat.com>
18047         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
18048         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
18049         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
18050         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
18052 2012-09-17  Jim Meyering  <meyering@redhat.com>
18054         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
18055         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
18056         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
18057         It is not in the same category as "exit (0)" or "exit (1)", and
18058         besides, I know of no symbolic name for that 77.  Reported by
18059         Richard W.M. Jones in
18060         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
18062 2012-09-17  Jim Meyering  <meyering@redhat.com>
18064         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
18065         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
18066         all uses of #define, not just those that start in column 1.
18067         Richard W.M. Jones reported a false positive in
18068         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
18070 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
18072         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
18073         * lib/localcharset.c (locale_charset) [DARWIN7]:
18074         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
18075         as these two values are incompatible.  Problem reported by Max Horn.
18076         For more discussion, please see
18077         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
18079         doc: document sticky-EOF issue
18080         * doc/posix-functions/fgetc.texi (fgetc):
18081         * doc/posix-functions/fgets.texi (fgets):
18082         * doc/posix-functions/fread.texi (fread):
18083         * doc/posix-functions/fscanf.texi (fscanf):
18084         * doc/posix-functions/getc.texi (getc):
18085         * doc/posix-functions/getchar.texi (getchar):
18086         * doc/posix-functions/scanf.texi (scanf):
18087         Mention that glibc and default Solaris do not conform to
18088         C99 and POSIX-2001 or later, with respect to how getchar
18089         etc. behave when feof reports nonzero.
18091 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
18093         poll: fix poll(0, NULL, msec)
18094         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
18095         but nfd is 0.  In that case poll should behave like select.
18097 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
18098             Paolo Bonzini  <bonzini@gnu.org>
18100         poll: fix for systems that can't recv() on a non-socket
18101         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
18102         is readable.  In this case POLLHUP will not be supported.
18103         * doc/posix-functions/poll.texi: Document this.
18105 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
18107         poll/select: document portability problems not fixed by Gnulib.
18108         * doc/posix-functions/poll.texi: poll does not work well on
18109         pipes under Windows.  It has the same limitations as select on
18110         BeOS.
18111         * doc/posix-functions/select.texi: select does not work well
18112         on pipes under Windows.
18114 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
18116         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
18117         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
18118         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
18119         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
18121 2012-09-06  Eric Blake  <eblake@redhat.com>
18123         net_if: give more details about the bug being fixed
18124         * doc/posix-headers/net_if.texi: Add clarification.
18126 2012-09-05  Eric Blake  <eblake@redhat.com>
18128         net_if: new module
18129         * modules/net_if: New module, borrowing ideas from netinet_in.
18130         * m4/net_if_h.m4: New file.
18131         * lib/net_if.in.h: Likewise.
18132         * doc/posix-headers/net_if.texi (net/if.h): Document it.
18133         * MODULES.html.sh (lacking POSIX:2008): Likewise.
18134         * tests/test-net_if.c: Make function checks conditional.
18135         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
18137 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
18139         readutmp: fix non-portable UT_PID use
18140         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
18141         Use `UT_PID (u) > 0' as absolute condition.
18143 2012-09-04  Jim Meyering  <meyering@redhat.com>
18145         fts: reduce two or more trailing spaces to just one, usually
18146         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
18147         or more slashes, trim all but the final one.  But if a name consists
18148         solely of two slashes, don't modify it.  If it consists solely of
18149         three or more slashes, strip all but one.
18151         This is part of the solution to a minor problem with rm:
18152         it would print a bogus ELOOP diagnostic when failing to remove
18153         the slash-decorated name of a symlink-to-directory:
18155             $ mkdir d && ln -s d s && env rm -r s/
18156             rm: cannot remove 's': Too many levels of symbolic links
18158         With the change below and a trivial don't-trim-trailing-slashes
18159         adjustment to remove.c, it does this:
18161             $ env rm -r s/
18162             rm: cannot remove 's/': Not a directory
18164         Improved by: Eric Blake
18166         fts: when there is no risk of overlap, use memcpy, not memmove
18167         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
18169 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
18171         stdbool: be more compatible with mixed C/C++ compiles
18172         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
18173         Define to bool, true, false, respectively, as GCC's builtin
18174         stdbool.h does.  Problem reported by Michael Goffioul in
18175         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
18177 2012-08-28  Jim Meyering  <meyering@redhat.com>
18179         revert last change: it was not needed
18180         * tests/test-vc-list-files-git.sh: There's already a test for
18181         a working git, just below.
18183 2012-08-28  Jim Meyering  <meyering@redhat.com>
18185         tests: test-vc-list-files-git.sh: skip if git is not available
18186         * tests/test-vc-list-files-git.sh: Skip this test when git is
18187         not available.
18189 2012-08-26  Bruno Haible  <bruno@clisp.org>
18191         gnulib-tool: Remove no-op option --no-changelog.
18192         * gnulib-tool (func_usage): Don't mention --no-changelog.
18193         (do_changelog): Remove variable.
18194         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
18196 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
18198         doc: remove fdl-1.2.texi
18199         It is no longer used or maintained, and its use of @acronym
18200         is problematic.  See the thread containing
18201         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
18202         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
18203         * doc/old-licenses/fdl-1.2.texi: Remove.
18205         execinfo: port to FreeBSD
18206         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
18207         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
18208         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
18209         * modules/execinfo (Link): Add $(LIB_EXECINFO).
18211 2012-08-23  Jim Meyering  <meyering@redhat.com>
18213         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
18214         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
18215         to placate gcc's -Wold-style-declaration.
18217 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
18219         doc: do not use @acronym
18220         * doc/inet_ntoa.texi (inet_ntoa):
18221         * doc/parse-datetime.texi (Seconds since the Epoch)
18222         (Specifying time zone rules):
18223         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
18224         Don't use @acronym.  Problem reported by John Darlington in
18225         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
18227 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
18229         stdnoreturn: port to newer GCCs
18230         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
18231         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
18232         Problem reported by Jim Meyering in
18233         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
18234         Also, rename the 'test' function to a void a clash with the
18235         already-supplied 'main' function; this fixes a bug that incorrectly
18236         rejected GCC 4.7.1's <stdnoreturn.h>.
18237         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
18238         Document GCC problem.
18240 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
18242         pipe-filter: fix comment typo
18243         * lib/pipe-filter.h: Mention correct function.
18245 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
18247         execinfo: new module
18248         This is for Emacs.  Currently, it provides a no-effect stub
18249         on all platforms where it does not already work.
18250         It already works on glibc-based systems, and on Solaris 11.
18251         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
18252         New files.
18253         * doc/glibc-headers/execinfo.texi (execinfo.h):
18254         * MODULES.html.sh (Misc): Document it.
18256 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
18258         extern-inline: support old GCC 'inline'
18259         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
18260         if available.  This applies to GCC versions 2.7 through 4.2, or
18261         when newer GCC is using -fgnu89-inline.  The goal is to address
18262         some of the performance issues mentioned by Bruno Haible in
18263         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
18265 2012-08-20  Eric Blake  <eblake@redhat.com>
18267         maint.mk: avoid redundant file name in message
18268         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
18269         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
18270         (sc_makefile_path_separator_check): Remove bogus $(ME).
18272 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
18274         timer-time: fix link order when static linking on glibc
18275         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
18276         _after_ -lrt so that it's significant.
18278 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
18280         timespec: omit unnecessary AC_C_INLINE
18281         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
18283         stat-time: omit unnecessary AC_C_INLINE
18284         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
18285         Do not require AC_C_INLINE.
18287         ignore-value: omit unnecessary AC_C_INLINE
18288         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
18290         sys_select: avoid 'static inline'
18291         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
18293         mktime: avoid 'static inline'
18294         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
18295         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
18297 2012-08-19  Bruno Haible  <bruno@clisp.org>
18299         gnulib-tool: Improve coding style.
18300         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
18301         func_emit_lib_Makefile_am.
18302         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
18304 2012-08-19  Bruno Haible  <bruno@clisp.org>
18306         gnulib-tool: Fix indentation.
18307         * gnulib-tool (func_import): Fix indentation.
18309 2012-08-19  Bruno Haible  <bruno@clisp.org>
18311         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
18312         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
18313         on the list of removed files.
18315 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
18317         test-parse-datetime: avoid glibc leap-second glitch
18318         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
18319         with the 2012 rules.  Problem reported by Bruce Dubbs in
18320         <http://bugs.gnu.org/12206>.
18322 2012-08-14  Bruno Haible  <bruno@clisp.org>
18324         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
18325         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
18326         from argument.
18327         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
18329 2012-08-14  Eric Blake  <eblake@redhat.com>
18331         ldexp: relax license
18332         * modules/ldexp (License): Trivial relax, since the module only
18333         provides a permissively licensed m4 file.
18335 2012-08-13  Bruno Haible  <bruno@clisp.org>
18337         gnulib-tool: Fix persistence of --witness-c-macro option.
18338         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
18339         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
18341 2012-08-11  Eric Blake  <eblake@redhat.com>
18343         count-leading-zeros: use a lookup table on non-gcc compilers
18344         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
18345         alternate implementation, suggested by Jim Meyering.
18347 2012-08-10  Eric Blake  <eblake@redhat.com>
18349         count-leading-zeros: new module
18350         * modules/count-leading-zeros: New module.
18351         * m4/count-leading-zeros.m4: New file.
18352         * lib/count-leading-zeros.h: Likewise.
18353         * modules/count-leading-zeros-tests: New test.
18354         * tests/test-count-leading-zeros.c: New file.
18355         * MODULES.html.sh (Integer arithmetic functions): Document it.
18357 2012-08-07  Simon Josefsson  <simon@josefsson.org>
18358             Jim Meyering  <meyering@redhat.com>
18360         maintainer-makefile: Fix syntax error with dash.
18361         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
18362         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
18364 2012-08-05  Jim Meyering  <meyering@redhat.com>
18366         extern-inline: also ignore -Wmissing-declarations
18367         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
18368         required with gcc-4.8.0-to-be.
18370         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
18371         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
18372         for /error ?([^,]*)/.  This avoids false-positives for strings like
18373         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
18375 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
18377         gnumakefile: better interaction with Automake-NG
18378         * modules/gnumakefile [Makefile.am]: The makefiles generated by
18379         Automake-NG always contain a definition of VPATH, even in non-VPATH
18380         builds (its value being simply '.' in that case).  So, in the
18381         'clean-GNUmakefile' rule, to determine whether running under a
18382         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
18383         '$(VPATH)' expands to the empty string.
18385 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
18387         base64: Use extern C scope in header file, for C++.
18388         * lib/base64.h: Add C++ namespace protection.
18390 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
18392         stat-time, timespec, u64: support naive out-of-dir builds
18393         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
18394         Use '#include "foo.h"', not '#include <foo.h>', when including
18395         one's own interface.  This works better when configuring with
18396         out-of-directory builds, since packages need not add an
18397         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
18399 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
18401         utimens: use extern-inline
18402         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
18403         * lib/utimens.h: Add copyright notice, since this is now large enough
18404         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18405         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
18406         * modules/utimens (Depends-on): Add extern-inline.
18408         u64: use extern-inline
18409         * lib/u64.c: New file.
18410         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18411         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
18412         * modules/u64 (Files): Add lib/u64.c.
18413         (Depends-on): Add extern-inline.
18414         (configure.ac): No need to require AC_C_INLINE, since extern-inline
18415         does that now.
18416         (lib_SOURCES): Add u64.c.
18418         timespec: use extern-inline
18419         * lib/timespec.c: New file.
18420         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18421         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
18422         * modules/timespec (Files): Add lib/timespec.c.
18423         (Depends-on): Add extern-inline.
18424         (lib_SOURCES): Add timespec.c.
18426         stat-time: use extern-inline
18427         * lib/stat-time.c: New file.
18428         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18429         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
18430         * modules/stat-time (Files): Add lib/stat-time.c.
18431         (Depends-on): Add extern-inline.
18432         (lib_SOURCES): Add stat-time.c.
18434         extern-inline: new module
18435         * modules/extern-inline, m4/extern-inline.m4: New files.
18436         This is for better support of 'extern inline' a la ISO C99,
18437         with a portable alternative on compilers that do not support
18438         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
18439         of the Emacs executable, when compiled with debugging disabled,
18440         which is a typical way that Emacs is built while developing.
18442 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
18444         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
18445         * build-aux/do-release-commit-and-tag: Move variable definitions
18446         together.
18447         ($branch): Instead of defaulting to "master", default to the current
18448         branch (as gnu-web-doc-update does).
18449         (help): Display the current values of the option arguments.
18450         * top/maint.mk (release-commit): New.
18451         * top/README-release: Simplify the corresponding step.
18453 2012-07-30  Eric Blake  <eblake@redhat.com>
18455         passfd: fix comment on recvfd
18456         * lib/passfd.c (recvfd): Fix comment.
18457         Reported by Jann Horn <jannhorn@googlemail.com>.
18459 2012-07-30  Jim Meyering  <meyering@redhat.com>
18461         maint.mk: avoid a sub-shell
18462         * top/maint.mk (release-prep): Remove unneeded sub-shell.
18464 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
18466         maint.mk: use silent-rules support from Automake
18467         * top/maint.mk (news-check, vc-diff-check, announcement)
18468         (no-submodule-changes, alpha beta stable, release-prep)
18469         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
18471 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
18473         maint.mk: provide a web-manual-update target
18474         * top/maint.mk: here.
18475         * top/README-release: Use it to simplify the web manual update step.
18477 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
18479         README-release: shorten the circuit to post a news
18480         * top/README-release: Point directly to the news submission form.
18482 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
18484         gnu-web-doc-update: fix --help
18485         * build-aux/gnu-web-doc-update: The information "top level" was written
18486         twice.
18488 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
18490         maint.mk: absolute VPATH issue
18491         * top/maint.mk (release-prep): Help Git find .git/.
18492         From Jim Meyering.
18494 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
18496         gitlog-to-changelog: fix previous change
18497         * build-aux/gitlog-to-changelog: Fix condition.
18498         Add missing ";".
18500 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
18502         gitlog-to-changelog: don't expect .git to be in $srcdir
18503         Reported by Bruno Haible.
18504         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
18505         * build-aux/gitlog-to-changelog (&git_dir_option): New.
18506         Use it.
18508 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
18510         maint.mk: absolute VPATH build fix
18511         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
18512         $(srcdir) is not a parent of $(builddir).
18514 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
18516         clean-temp: Fix memory leak.
18517         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
18518         'files' members of tmpdir.
18520 2012-07-27  Jim Meyering  <meyering@redhat.com>
18522         maint.mk: new rule: refresh-gnulib-patches
18523         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
18524         Use this rule to refresh them.
18525         * top/maint.mk (refresh-gnulib-patches): New rule.
18527 2012-07-24  Bruno Haible  <bruno@clisp.org>
18529         gnulib-tool: Fix handling of inctests variable.
18530         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
18531         Reported by Nick Bowler <nbowler@elliptictech.com>.
18533 2012-07-22  Bruno Haible  <bruno@clisp.org>
18535         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
18536         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
18537         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
18538         Remove exemption for getpass.h.
18539         Suggested by Eric Blake.
18541 2012-07-20  Eric Blake  <eblake@redhat.com>
18543         verify: document conflict with -Wnested-externs
18544         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
18546         maint.mk: forbid exit(-1)
18547         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
18549 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
18551         fsusage: port back to Solaris
18552         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
18553         error (fsd not declared) on Solaris 10.  Reported privately by
18554         Andrew Borodin.
18556 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
18558         gnu-web-doc-update: fix error messages
18559         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
18561         gnu-web-doc-update: check the requirements.
18562         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
18563         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
18564         * build-aux/bootstrap (find_tool): Comment change.
18566 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
18568         maint.mk: minor simplication.
18569         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
18570         for default values.
18572 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
18574         gitlog-to-changelog: VPATH build issues
18575         If builddir is not a subdirectory of srcdir, running git from it will
18576         fail.
18577         * build-aux/gitlog-to-changelog (--srcdir): New option.
18579 2012-07-15  Bruno Haible  <bruno@clisp.org>
18581         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
18582         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
18583         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
18584         Remove exemption for fpending.h.
18585         Suggested by Eric Blake.
18587 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
18589         pthread_sigmask: fix bug on FreeBSD 9
18590         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
18591         Include string.h.
18592         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
18593         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
18594         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
18595         but pthread_sigmask (1729, NULL, NULL) returns zero.
18596         See <http://bugs.gnu.org/11884>.
18597         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
18598         by inspecting whether the main call changed the old mask.
18600 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
18602         README-release: make it more legible
18603         * top/README-release: Improve typography slightly.
18605 2012-07-15  Jim Meyering  <meyering@redhat.com>
18607         maint: require that each sc_... command start with "@"
18608         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
18609         "make sc_maint" helps us avoid this nit.
18611 2012-07-15  Jim Meyering  <meyering@redhat.com>
18613         maint.mk: add leading "@" to quiet new "make syntax-check" rule
18614         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
18616 2012-07-13  Eric Blake  <eblake@redhat.com>
18618         maint.mk: new syntax check for HAVE_DECL checks
18619         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
18620         * cfg.mk
18621         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
18622         Exempt some false positives.
18623         Based on a report by Karel Zak.
18625         argp: make HAVE_DECL usage consistent
18626         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
18627         macros, not whether they are defined.
18628         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
18629         convention with other declaration checks.
18630         Reported by Karel Zak, with suggestions from Paul Eggert.
18632         stat-time: relax license to LGPLv2+
18633         * modules/stat-time (License): Relax, with consent of all authors.
18635         strndup: fix m4 usage error
18636         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
18637         defined, to either 0 or 1.
18638         Reported by Karel Zak.
18640 2012-07-11  Jim Meyering  <meyering@redhat.com>
18642         maint: enable the sc_avoid_if_before_free syntax-check rule
18643         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
18644         (if_before_free_offenders_): Define.
18645         (if_before_free_basename_re_): Define.
18646         Exempt current files with useless if-before-free.
18648 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
18650         gettext: do not assume '#define ... defined ...' behavior
18651         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
18652         Do not use '#define FOO ... defined BAR ...', as the C standard says
18653         it's not portable to expect that this works after macro expansion.
18654         Problem reported for gzip by Steven M. Schweda in
18655         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
18657 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
18659         getloadavg: clean out old Emacs and Autoconf cruft
18660         See Glenn Morris in <http://bugs.gnu.org/11905>.
18661         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
18662         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
18663         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
18664         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
18666 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
18668         bootstrap: let warn be like tests/init.sh's warn_
18669         Reported by Jim Meyering.
18670         * build-aux/bootstrap (warn): Remove, replaced by...
18671         (warnf_, warn_): these.
18672         Adjust callers.
18673         Shorten messages that no longer fit in 80 columns.
18675 2012-07-09  Bruno Haible  <bruno@clisp.org>
18677         getopt: Simplify after Emacs changed.
18678         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
18679         (gl_GETOPT_IFELSE): Remove macro.
18681 2012-07-09  Jim Meyering  <meyering@redhat.com>
18683         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
18684         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
18686         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
18687         Bugs in both of those conspired to make the
18688         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
18689         _sc_search_regexp's handling of non-empty $in_files would filter
18690         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
18691         choice of in_files value meant there would be no match in most
18692         projects, due to the presence of two or more Makefile.in files.
18693         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
18694         Fix a bug in how a non-empty $$in_files was processed:
18695         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
18696         in spite of the name, it's a regexp, not a list of file names.
18698 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
18700         getloadavg, getopt: fix commentary re configure.in
18701         Autoconf is deprecating the name 'configure.in', so change it to
18702         to the new name 'configure.ac' in a couple of places.
18703         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
18704         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
18705         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
18706         Emacs has renamed it to configure.ac, and it no longer refers
18707         to these macros anyway.
18709         timespec: mark functions with const attributes
18710         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
18711         Mark with _GL_ATTRIBUTE_CONST.
18713 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
18715         canonicalize[-lgpl]: handle "guessing" values when cross-building
18716         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
18717         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
18718         matches "*yes" instead of just "yes".  Regression introduced in commit
18719         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
18721 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
18722             Bruno Haible  <bruno@clisp.org>
18724         canonicalize: make the right guess when cross-compiling to GNU
18725         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
18726         determine whether cross-compiling to glibc systems, so as to
18727         include GNU/Hurd.
18729 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
18731         timespec-sub: avoid duplicate include
18732         * lib/timespec-sub.c: Do not include <config.h> twice.
18733         Reported by Juanma Barranquero.
18735 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
18737         bootstrap: use a more consistent error reporting scheme
18738         * build-aux/bootstrap (warn, die): New.
18739         Use them.
18741 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
18743         sys_time: allow too-wide tv_sec
18744         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
18745         timeval even if tv_sec is wider than time_t.  This allows
18746         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
18747         as without this patch gnulib replaces struct timeval
18748         and OpenBSD futimes therefore has a type mismatch.
18749         * doc/posix-headers/sys_time.texi: Mention this.
18751         pthread: check for both pthread_create and pthread_join
18752         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
18753         alter the check so that it tests for both pthread_create and
18754         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
18755         Suggested by Bruno Haible and Richard Yao in
18756         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
18758         parse-datetime: doc tuneup
18759         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
18760         spacing issues.
18762 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
18764         do-release-commit-and-tag: fix the previous commit
18765         * build-aux/do-release-commit-and-tag: Actually the test was right,
18766         but the comment and the error message were misleading.
18767         Fix comment, and improve error message.
18768         Perform check first, so that NEWS is not modified uselessly.
18770         do-release-commit-and-tag: fix typo
18771         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
18772         _not_ start with a stub.
18774 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
18776         pthread: check for pthread_create, not pthread_join
18777         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
18778         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
18779         pthread_join in libc.  I hope this removes the need for all the
18780         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
18781         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
18783 2012-07-04  Jim Meyering  <meyering@redhat.com>
18785         parse-datetime: fix failure to diagnose invalid input
18786         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
18787         rather than diagnosing the invalid input.  Now it reports this:
18788         date: invalid date '\260'
18789         * lib/parse-datetime.y (to_uchar): Define.
18790         (yylex): Don't sign-extend "other" bytes.
18791         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
18792         Thanks to Bruno Haible for the patch to this file.
18793         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
18794         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
18796 2012-07-03  Jim Meyering  <meyering@redhat.com>
18798         bootstrap: do not require now-removed build-aux/missing
18799         Now that build-aux/missing is, er, missing, bootstrap would
18800         silently fail.
18801         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
18802         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
18803         no longer part of gnulib.
18804         Diagnose the failure.
18806 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
18808         alloca: add support for HP NonStop TNS/E native
18809         * lib/alloca.in.h (alloca): Support the new host.
18810         From a suggestion by Joachim Schmitz in
18811         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
18813 2012-07-02  Pádraig Brady  <P@draigBrady.com>
18815         fsusage: remove code not needed on non GNU/Linux systems.
18817         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
18818         Don't include headers no longer needed in this case.
18819         * lib/fsusage.c [STAT_STATVFS &&
18820         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
18821         STAT_STATFS2_FRSIZE to exclude code not used in this case.
18823 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
18825         fsusage: include files needed for glibc 2.6 fallback
18826         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
18827         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
18828         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
18829         Problem reported by Ludovic Courtès in
18830         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
18832         fsusage: avoid needless check on GNU/Linux
18833         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
18834         on GNU/Linux systems, since it can't possibly work.
18836 2012-07-01  Bruno Haible  <bruno@clisp.org>
18838         log: Fix an autoconf >= 2.64 warning.
18839         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
18840         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
18842 2012-06-28  Bruno Haible  <bruno@clisp.org>
18844         log10f: Fix possible configuration problem.
18845         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
18846         $LOGF_LIBM.
18847         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
18849 2012-06-28  Bruno Haible  <bruno@clisp.org>
18851         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
18852         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
18853         not gl_cv_func_unlink_works.
18854         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
18856 2012-06-27  Eric Blake  <eblake@redhat.com>
18858         config: drop scripts that automake says are not independent
18859         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
18860         * build-aux/elisp-comp: Delete.
18861         * build-aux/missing: Likewise.
18862         * build-aux/ylwrap: Likewise.
18863         * modules/elisp-comp: Likewise.
18864         * MODULES.html.sh: Drop mention of elisp-comp.
18865         * NEWS: Mention this.
18867 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
18869         root-uid: new module
18870         This is for portability to Tandem's NonStop Kernel.
18871         * lib/root-uid.h, modules/root-uid: New files.
18872         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
18873         * lib/write-any-file.c, tests/test-sethostname2.c:
18874         Include "root-uid.h".
18875         * lib/euidaccess.c (euidaccess):
18876         * lib/pt_chown.c (main):
18877         * lib/unlinkdir.c (cannot_unlink_dir):
18878         * lib/write-any-file.c (can_write_any_file):
18879         * m4/mknod.m4 (gl_FUNC_MKNOD):
18880         * tests/test-sethostname2.c (geteuid, main):
18881         Don't assume ROOT_UID == 0.
18882         * modules/euidaccess (Depends-on):
18883         * modules/pt_chown (Depends-on):
18884         * modules/sethostname-tests (Depends-on):
18885         * modules/unlinkdir (Depends-on):
18886         * modules/write-any-file (Depends-on):
18887         Add root-uid.
18889         regex: use locale-independent comparison for codeset name
18890         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
18891         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
18892         for codeset name.
18893         * lib/regex_internal.h: Do not include <strings.h>, since we
18894         no longer use strcasecmp.
18895         * modules/regex (Depends-on): Remove strcase.
18897 2012-06-23  Bruno Haible  <bruno@clisp.org>
18899         getopt-posix: No longer guarantee that option processing is resettable.
18900         * doc/posix-functions/getopt.texi: Drop description of problem with
18901         internal state. Fix info about mingw and msvc9.
18902         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
18903         option processing by getopt(). Run three test programs instead of one.
18904         Simplify cross-compilation guess.
18905         * NEWS: Mention the change.
18906         Reported by Rich Felker <dalias@aerifal.cx>.
18908 2012-06-26  Bruno Haible  <bruno@clisp.org>
18910         argp, regex: Ensure strcasecmp gets declared.
18911         * lib/argp-help.c: Include <strings.h>.
18912         * lib/regex_internal.h: Likewise.
18913         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
18915 2012-06-24  Bruno Haible  <bruno@clisp.org>
18917         ptsname_r: Make it consistent with ptsname on AIX.
18918         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
18919         implementation as for OSF/1.
18920         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
18921         a pty master.
18923         ptsname_r: Make it consistent with ptsname on OSF/1.
18924         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
18925         OSF/1.
18927 2012-06-24  Bruno Haible  <bruno@clisp.org>
18929         ttyname_r: Fix result on OSF/1, Solaris.
18930         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
18932 2012-06-24  Bruno Haible  <bruno@clisp.org>
18934         ptsname_r: Add support for Solaris.
18935         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
18936         Solaris.
18938         ptsname_r: Fix test failure on native Windows.
18939         * modules/ptsname_r (Depends-on): Add isatty.
18941         ptsname_r: Fix test failures on IRIX, Solaris.
18942         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
18943         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
18944         accordingly.
18945         * lib/ptsname_r.c: Include <fcntl.h>.
18946         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
18947         set errno if fd is invalid.
18948         * tests/test-isatty.c (main): Update comments.
18950 2012-06-24  Bruno Haible  <bruno@clisp.org>
18952         ptsname test: Extend test.
18953         * tests/test-ptsname.c: Include <errno.h>.
18954         (main): Test behaviour with invalid file descriptor.
18956 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
18958         time: fix obsolete comment
18959         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
18960         reference to HAVE_STRUCT_TIMESPEC in comment.
18962 2012-06-23  Bruno Haible  <bruno@clisp.org>
18964         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
18965         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
18966         does not handle abbreviated long options with equivalent
18967         disambiguations, set gl_replace_getopt to yes.
18968         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
18970 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
18972         time_r: fix typo that always overrode localtime_r decl
18973         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
18974         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
18975         not in a standard include.
18977 2012-06-22  Bruno Haible  <bruno@clisp.org>
18979         Write "Mac OS X" instead of "MacOS X".
18980         * README: Write "Mac OS X" instead of "MacOS X".
18981         * build-aux/bootstrap: Likewise.
18982         * build-aux/install-reloc: Likewise.
18983         * lib/acl-internal.h: Likewise.
18984         * lib/acl_entries.c: Likewise.
18985         * lib/argp-ba.c: Likewise.
18986         * lib/argp-pv.c: Likewise.
18987         * lib/config.charset: Likewise.
18988         * lib/copy-acl.c: Likewise.
18989         * lib/csharpexec.c: Likewise.
18990         * lib/euidaccess.c: Likewise.
18991         * lib/fbufmode.c: Likewise.
18992         * lib/fflush.c: Likewise.
18993         * lib/file-has-acl.c: Likewise.
18994         * lib/filemode.h: Likewise.
18995         * lib/fpurge.c: Likewise.
18996         * lib/freadable.c: Likewise.
18997         * lib/freadahead.c: Likewise.
18998         * lib/freading.c: Likewise.
18999         * lib/freadptr.c: Likewise.
19000         * lib/freadseek.c: Likewise.
19001         * lib/fseeko.c: Likewise.
19002         * lib/fseterr.c: Likewise.
19003         * lib/fsusage.c: Likewise.
19004         * lib/fwritable.c: Likewise.
19005         * lib/fwriting.c: Likewise.
19006         * lib/get-rusage-as.c: Likewise.
19007         * lib/get-rusage-data.c: Likewise.
19008         * lib/getdomainname.c: Likewise.
19009         * lib/idpriv-drop.c: Likewise.
19010         * lib/idpriv-droptemp.c: Likewise.
19011         * lib/localcharset.c: Likewise.
19012         * lib/locale.in.h: Likewise.
19013         * lib/localename.c: Likewise.
19014         * lib/mbsrtowcs-state.c: Likewise.
19015         * lib/nproc.c: Likewise.
19016         * lib/passfd.c: Likewise.
19017         * lib/posix_openpt.c: Likewise.
19018         * lib/printf-parse.c: Likewise.
19019         * lib/progreloc.c: Likewise.
19020         * lib/safe-read.h: Likewise.
19021         * lib/safe-write.h: Likewise.
19022         * lib/sched.in.h: Likewise.
19023         * lib/set-mode-acl.c: Likewise.
19024         * lib/signal.in.h: Likewise.
19025         * lib/stdint.in.h: Likewise.
19026         * lib/stdio-impl.h: Likewise.
19027         * lib/stdlib.in.h: Likewise.
19028         * lib/strtod.c: Likewise.
19029         * lib/sys_select.in.h: Likewise.
19030         * lib/tcgetsid.c: Likewise.
19031         * lib/unistd.in.h: Likewise.
19032         * lib/unlockpt.c: Likewise.
19033         * lib/vasnprintf.c: Likewise.
19034         * lib/vma-iter.c: Likewise.
19035         * lib/wcsrtombs-state.c: Likewise.
19036         * m4/acl.m4: Likewise.
19037         * m4/acosl.m4: Likewise.
19038         * m4/asinl.m4: Likewise.
19039         * m4/atanl.m4: Likewise.
19040         * m4/c-stack.m4: Likewise.
19041         * m4/cosl.m4: Likewise.
19042         * m4/expl.m4: Likewise.
19043         * m4/extensions.m4: Likewise.
19044         * m4/fdatasync.m4: Likewise.
19045         * m4/fmal.m4: Likewise.
19046         * m4/frexp.m4: Likewise.
19047         * m4/frexpf.m4: Likewise.
19048         * m4/frexpl.m4: Likewise.
19049         * m4/fsusage.m4: Likewise.
19050         * m4/getdomainname.m4: Likewise.
19051         * m4/getloadavg.m4: Likewise.
19052         * m4/getopt.m4: Likewise.
19053         * m4/gettext.m4: Likewise.
19054         * m4/gnulib-common.m4: Likewise.
19055         * m4/intdiv0.m4: Likewise.
19056         * m4/intlmacosx.m4: Likewise.
19057         * m4/largefile.m4: Likewise.
19058         * m4/ldexpl.m4: Likewise.
19059         * m4/link-follow.m4: Likewise.
19060         * m4/locale-ar.m4: Likewise.
19061         * m4/locale-fr.m4: Likewise.
19062         * m4/locale-ja.m4: Likewise.
19063         * m4/locale-tr.m4: Likewise.
19064         * m4/locale-zh.m4: Likewise.
19065         * m4/locale_h.m4: Likewise.
19066         * m4/lock.m4: Likewise.
19067         * m4/logl.m4: Likewise.
19068         * m4/mathfunc.m4: Likewise.
19069         * m4/minus-zero.m4: Likewise.
19070         * m4/mktime.m4: Likewise.
19071         * m4/mmap-anon.m4: Likewise.
19072         * m4/multiarch.m4: Likewise.
19073         * m4/nanosleep.m4: Likewise.
19074         * m4/nocrash.m4: Likewise.
19075         * m4/poll.m4: Likewise.
19076         * m4/printf-frexpl.m4: Likewise.
19077         * m4/printf.m4: Likewise.
19078         * m4/signbit.m4: Likewise.
19079         * m4/sinl.m4: Likewise.
19080         * m4/sqrtl.m4: Likewise.
19081         * m4/strerror_r.m4: Likewise.
19082         * m4/tanl.m4: Likewise.
19083         * m4/threadlib.m4: Likewise.
19084         * m4/ttyname_r.m4: Likewise.
19085         * m4/unlink.m4: Likewise.
19086         * m4/visibility.m4: Likewise.
19087         * m4/wcwidth.m4: Likewise.
19088         * tests/minus-zero.h: Likewise.
19089         * tests/test-alloca-opt.c: Likewise.
19090         * tests/test-copy-acl.sh: Likewise.
19091         * tests/test-copy-file.sh: Likewise.
19092         * tests/test-fdatasync.c: Likewise.
19093         * tests/test-file-has-acl.sh: Likewise.
19094         * tests/test-flock.c: Likewise.
19095         * tests/test-fsync.c: Likewise.
19096         * tests/test-localename.c: Likewise.
19097         * tests/test-malloca.c: Likewise.
19098         * tests/test-nonblocking-pipe.h: Likewise.
19099         * tests/test-nonblocking-socket.h: Likewise.
19100         * tests/test-openpty.c: Likewise.
19101         * tests/test-posix_openpt.c: Likewise.
19102         * tests/test-ptsname.c: Likewise.
19103         * tests/test-ptsname_r.c: Likewise.
19104         * tests/test-sameacls.c: Likewise.
19105         * tests/test-select.h: Likewise.
19106         * tests/test-set-mode-acl.sh: Likewise.
19107         * tests/test-snprintf-posix.h: Likewise.
19108         * tests/test-sprintf-posix.h: Likewise.
19109         * tests/test-strtod.c: Likewise.
19110         * tests/test-time.c: Likewise.
19111         * tests/test-vasnprintf-posix.c: Likewise.
19112         * tests/test-vasprintf-posix.c: Likewise.
19113         * doc/acl-resources.txt: Likewise.
19114         * doc/**/*.texi: Likewise.
19115         Reported by Max Horn <max@quendi.de>.
19117 2012-06-22  Bruno Haible  <bruno@clisp.org>
19119         grantpt: Relax requirement regarding invalid file descriptors.
19120         * lib/grantpt.c: Don't include <fcntl.h>.
19121         (grantpt): Don't verify the validity of the file descriptor.
19122         * modules/grantpt (Depends-on): Remove fcntl-h.
19123         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
19124         file descriptors.
19125         * doc/posix-functions/grantpt.texi: Document more platforms on which
19126         grantpt succeeds for invalid file descriptors.
19127         Reported by Rich Felker <dalias@aerifal.cx>.
19129 2012-06-22  Bruno Haible  <bruno@clisp.org>
19131         fbufmode test: Don't test unportable behaviour.
19132         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
19133         (main): Invoke it three times.
19134         Reported by Szabolcs Nagy <nsz@port70.net>
19135         and Rich Felker <dalias@aerifal.cx>.
19137 2012-06-21  Bruno Haible  <bruno@clisp.org>
19139         gnulib-tool: Refactor inctests variable.
19140         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
19141         (func_modules_transitive_closure,
19142         func_modules_transitive_closure_separately,
19143         func_import, func_create_testdir): Update.
19145         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
19146         * gnulib-tool: Accept option --without-tests.
19147         (func_usage): Document --without-tests option. Rearrange.
19148         (inctests): Normalize according to the mode.
19149         * NEWS: Mention the change.
19150         Suggested by Simon Josefsson.
19152 2012-06-21  Bruce Korb  <bkorb@gnu.org>
19154         parse-duration test: Avoid spurious output.
19155         * tests/test-parse-duration.sh: Reindent with leading tabs.
19157 2012-06-21  Jim Meyering  <meyering@redhat.com>
19159         maint: disable the strncpy prohibition
19160         * cfg.mk: Do not prohibit strncpy here.
19162 2012-06-21  Bruno Haible  <bruno@clisp.org>
19164         nonblocking: Avoid compilation error on mingw64.
19165         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
19166         fscanf.
19167         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
19168         * modules/vfscanf (configure.ac): Likewise.
19169         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
19170         definition only if stdio.h has prepared it.
19171         Reported by Daniel P. Berrange <berrange@redhat.com>.
19173 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
19175         gnulib-tool: Use readlink if it is available.
19176         * gnulib-tool (func_readlink): Choose function more appropriately.
19178 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
19180         posixtm-tests: port to buggy compiler
19181         Problem reported by Simon Josefsson in
19182         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
19183         * modules/posixtm-tests (Depends-on): Add stdint.
19184         * tests/test-posixtm.c (struct posixtm_test.t_expected):
19185         Now of type int_least64_t, not int64_t, both because that's
19186         what INT64_C returns and because int_least64_t works even
19187         on 72-bit hosts.
19188         (T): Use INT64_C on constants outside the traditional int range,
19189         to work around compiler bug noted by Simon.
19191         mktime: fix integer overflow in 'configure'-time test
19192         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
19193         after integer overflow.  Problem reported by Rich Felker in
19194         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
19195         Also, don't look for further instances of a bug if we've already
19196         found one instance; this helps 'configure' run faster.
19198 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
19200         tmpfile, clean-temp: Fix invocation of GetVersionEx.
19201         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
19202         GetVersionEx correctly.
19203         * lib/clean-temp.c (supports_delete_on_close): Likewise.
19205 2012-06-20  Bruno Haible  <bruno@clisp.org>
19207         fdopen: Allow implementations that don't reject invalid fd arguments.
19208         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
19209         succeeds.
19210         Reported by Rich Felker <dalias@aerifal.cx>.
19212 2012-06-20  Simon Josefsson  <simon@josefsson.org>
19214         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
19215         bring in LIBINTL.
19217 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
19219         init.sh: do not rely on autoupated PWD
19220         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
19221         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
19222         Although Nelson's bug was not necessarily fixed by this patch,
19223         it seems wise to make the change for safety.
19224         * tests/init.sh (path_prepend_): Do not rely on PWD updating
19225         automagically after 'cd'; this is not reliable on older shells.
19226         (setup_): Fail if we cannot cd to temporary directory.
19228 2012-06-19  Bruno Haible  <bruno@clisp.org>
19230         stat, fstat: Avoid warnings on mingw64.
19231         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
19232         redefining.
19233         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
19234         Reported by Daniel P. Berrange <berrange@redhat.com>.
19236 2012-06-19  Bruno Haible  <bruno@clisp.org>
19238         stdioext: Add support for musl libc.
19240         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
19241         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
19243         * m4/fseterr.m4: New file.
19244         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
19245         function exists.
19246         * modules/fseterr (Files): Add m4/fseterr.m4.
19247         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
19248         __fseterr does not exist.
19249         (Makefile.am): Remove fseterr.c from lib_SOURCES.
19251         * lib/freadable.h: Update comment.
19253         * lib/fwritable.h: Update comment.
19255         * lib/freading.h: Update comment.
19257         * lib/fwriting.h: Update comment.
19259         * m4/freadahead.m4: New file.
19260         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
19261         that function exists.
19262         * modules/freadahead (Files): Add m4/freadahead.m4.
19263         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
19264         __freadahead does not exist.
19265         (Makefile.am): Remove freadahead.c from lib_SOURCES.
19267         * m4/freadptr.m4: New file.
19268         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
19269         function exists.
19270         * modules/freadptr (Files): Add m4/freadptr.m4.
19271         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
19272         __freadptr does not exist.
19273         (Makefile.am): Remove freadptr.c from lib_SOURCES.
19275         * m4/freadseek.m4: New file.
19276         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
19277         exists.
19278         * modules/freadseek (Files): Add m4/freadseek.m4.
19279         (configure.ac): Invoke gl_FUNC_FREADSEEK.
19281         * lib/fpurge.c (fpurge): Update comment.
19283         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
19285 2012-06-19  Bruno Haible  <bruno@clisp.org>
19287         *printf-posix: Put more info into config.log.
19288         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
19289         exit code into config.log.
19291 2012-06-19  Bruno Haible  <bruno@clisp.org>
19293         getopt-gnu: Fix exit code overflow in autoconf test.
19294         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
19295         to keep them below < 128.
19297 2012-06-17  Jim Meyering  <meyering@redhat.com>
19299         maint.mk: fix typo in code to derive GPG key at release time
19300         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
19302 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
19304         regex: avoid warning when pointers are not long
19305         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
19306         and uintptr_t, not long, for portability to hosts where pointers and
19307         long have different sizes.  Issue noted by Daniel P. Berrange in
19308         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
19309         and fix suggested by Bruno Haible in
19310         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
19312 2012-06-17  Bruno Haible  <bruno@clisp.org>
19314         dummy: Relicense into the public domain.
19315         * modules/dummy (License): Set to "public domain".
19316         Suggested by Reuben Thomas.
19318 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
19320         announce-gen: VPATH issues
19321         * build-aux/announce-gen (--srcdir): New option, used to trim the
19322         $srcdir part of the path from $builddir to NEWS.
19323         * top/maint.mk (announcement): Adjust.
19325 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
19327         gnu-web-doc-update: VPATH builds
19328         * build-aux/gnu-web-doc-update (--builddir): New option.
19329         Revamp the handling of options.
19330         Prefer $(...) to `...`.
19331         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
19332         the template, and it is GNU mktemp specific.
19333         Prefer set -e to long series of &&.
19334         Restore the initial git branch, not "master".
19335         Properly initialize submodules (don't rely only on bootstrap).
19336         Do not reconfigure blindly, use config.status.
19337         * top/README-release: Update instructions for gnu-web-doc-update.
19339 2012-06-11  Jim Meyering  <meyering@redhat.com>
19341         maint.mk: revert most of the previous change re "all these"
19342         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
19343         For rationale, see the discussion at
19344         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
19346 2012-06-10  Karl Berry  <karl@gnu.org>
19348         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
19350         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
19352 2012-06-10  Bruce Korb  <bkorb@gnu.org>
19354         parse-duration: Relicense under LGPLv2+.
19355         * modules/parse-duration (License): Change to LGPLv2+.
19357 2012-06-10  Jim Meyering  <meyering@redhat.com>
19359         maint.mk: prohibit common grammar error: "all these"
19360         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
19361         the list of prohibited word sequences.  It should be "all of these".
19362         * lib/tempname.c (__gen_tempname): Fix one of them.
19364 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
19366         do-release-commit-and-tag: support VPATH builds
19367         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
19368         (noteworthy): Defined earlier to factor its value.
19369         (noteworthy_stub): New.
19370         Use it to factor.
19371         (help_version): Split into...
19372         (help, version): these.
19373         Adjust the option processing part.
19374         Support "--option=value" in addition to "--option value".
19375         (builddir): New.
19376         (--builddir): New option.
19377         * top/README-release: Document this.
19378         Reword slightly so that the reader cannot understand that he
19379         has to do these steps before calling do-release-commit-and-tag.
19381 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
19383         readme-release: also require announce-gen and maintainer-makefile
19384         * modules/readme-release (Depends-on): here.
19385         * modules/announce-gen, modules/do-release-commit-and-tag,
19386         modules/gnu-web-doc-update, modules/maintainer-makefile
19387         (Description): Point to readme-release.
19389 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
19391         maint.mk: fix VPATH issues.
19392         * top/maint.mk (news-check): GNU Make understand $< very well.
19393         (release-prep): NEWS is in $(srcdir).
19395 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
19397         readme-release: require the promoted modules.
19398         * modules/readme-release (Depends-on): Add
19399         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
19400         in this text.
19402 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
19403             Bruno Haible  <bruno@clisp.org>
19405         error, strerror-override: Support mingw64 from Fedora 17.
19406         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
19407         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
19408         EINPROGRESS.
19409         * lib/strerror-override.h (strerror_override): Test it.
19410         * lib/strerror-override.c (strerror_override): Likewise.
19411         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
19413 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
19414             Bruno Haible  <bruno@clisp.org>
19416         error, strerror-override: Support mingw64 from Fedora 17.
19417         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
19418         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
19419         * lib/strerror-override.h (strerror_override): Test it.
19420         * lib/strerror-override.c (strerror_override): Likewise.
19422 2012-06-03  Bruno Haible  <bruno@clisp.org>
19424         error, strerror-override: Support new errno values from POSIX:2008.
19425         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
19426         ENOTRECOVERABLE.
19427         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
19428         platforms.
19429         * lib/strerror-override.c (strerror_override): Conditionalize the
19430         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
19431         * lib/strerror-override.h (strerror_override): Declare also if
19432         GNULIB_defined_EOWNERDEAD is defined.
19433         * tests/test-errno.c (e130, e131): New variables.
19434         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
19435         ENOTRECOVERABLE.
19436         Reported by Paolo Bonzini.
19438 2012-05-31  Jim Meyering  <meyering@redhat.com>
19440         savewd: add missing dependency on sys_wait module
19441         * modules/savewd (Depends-on): Add sys_wait, needed at least
19442         for MSVC.  Report and suggested change by Michael Goffioul.
19444 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
19446         system-quote-tests: port to CentOS 5
19447         Problem reported by Tom G. Christensen in
19448         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
19449         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
19451 2012-05-29  Jim Meyering  <meyering@redhat.com>
19453         maint: fix typos in comments and ChangeLog
19454         Culprits identified and fixed mostly automatically using these commands:
19455         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
19456         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
19457         using http://github.com/lyda/misspell-check
19458         * ChangeLog: Fix typos.
19459         * doc/solaris-versions: Likewise.
19460         * lib/regexec.c (re_search_stub): Likewise.
19461         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
19463 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
19465         manywarnings: remove duplicate -Wmultichar entry
19466         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
19467         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
19468         so keep the entry marked as documented.
19470 2012-05-27  Karl Berry  <karl@gnu.org>
19472         * config/srclist.txt (mktime.c): remove last libc sync,
19473         perhaps just temporarily.
19475 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
19477         regex: don't assume uint64_t or uint32_t
19478         * lib/regcomp.c (init_word_char): Don't assume that the types
19479         uint64_t and uint32_t exist.  The C standard doesn't guarantee
19480         them, and on some 32-bit compilers there is no uint64_t.
19481         Problem reported by Gianluigi Tiesi in
19482         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
19484 2012-05-25  Jim Meyering  <meyering@redhat.com>
19486         maint.mk: add strncpy-prohibiting syntax-check rule
19487         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
19489 2012-05-24  Jim Meyering  <meyering@redhat.com>
19491         maint.mk: compute $(gpg_key_ID) more portably
19492         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
19493         That use of sed is not portable to some fringe systems.
19494         Reported by Paul Eggert in
19495         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
19497 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
19499         mktime: sync from glibc
19500         * config/srclist.txt: Uncomment mktime.c.
19501         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
19502         First, indent with tabs, since glibc uses tabs and doesn't want to
19503         change and we'd rather be identical to glibc.  Also, two small
19504         coding changes:
19505         (isdst_differ): Use &&, not &, as && is the usual style.
19506         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
19507         for clarity.
19509 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
19511         announce-gen: du -h is more portable than du --human
19512         * build-aux/announce-gen (sizes): Invoke du with -h instead
19513         of --human.  Accept leading white space in its output.
19515 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
19517         announce-gen: Improve diagnostics.
19518         * build-aux/announce-gen: When parsing command line options,
19519         prefer "announce-gen: option --release-type requires an argument"
19520         to "Option release-type requires an argument".
19522 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
19524         maint.mk: gpg_key_ID: use sed more portably
19525         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
19526         the closing brace.
19527         (refresh-po): Fuse two sed invocations into one.
19529 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
19531         gitlog-to-changelog: support the log message format used in Bison.
19532         * build-aux/gitlog-to-changelog: Support --strip-tab and
19533         --strip-cherry-picked.
19535 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
19537         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
19538         the rest of the current time slice to another thread in the current
19539         process. So if the thread that feeds the file decscriptor we're
19540         polling is not in the current process, we get busy-waiting.
19541         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
19542         Patch from Theodore Leblond.
19543         * lib/select.c: Split polling out of the loop that sets the output
19544         fd_sets.  Check for zero result and loop if the wait timeout is
19545         infinite.
19547 2012-05-21  Simon Josefsson  <simon@josefsson.org>
19549         select: Fix build error on IRIX 6.5.
19550         * lib/select.c: Include stddef.h for NULL.
19552 2012-05-21  Simon Josefsson  <simon@josefsson.org>
19554         gc: fix libgcrypt detection on older machines.
19555         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
19556         copyright years because the file has been distributed every year
19557         since it was created.
19559 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
19561         crypto: fix bug in large buffer handling
19562         Problem reported by Serge Belyshev for glibc in
19563         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
19564         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
19565         * lib/md4.c (md4_process_block):
19566         * lib/md5.c (md5_process_block):
19567         * lib/sha1.c (sha1_process_block):
19568         * lib/sha256.c (sha256_process_block):
19569         Don't assume the buffer length is less than 2**32.
19570         * lib/sha512.c (sha512_process_block): Likewise.
19571         Here, the bug is present only in the rare case where the host does
19572         not support uint64_t or where size_t is wider than 64 bits.
19573         Use u64size to work around the problems.
19574         * lib/u64.h (u64size): New macro.
19576 2012-05-15  Pádraig Brady  <P@draigBrady.com>
19578         fsusage: fix block size returned on older Linux 2.6
19580         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
19581         which is available since Linux 2.6.
19582         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
19583         when the member is available so it can be used as a fallback.
19584         * doc/posix-functions/statvfs.texi: Mention the hang issue
19585         on Linux < 2.6.36.
19587 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
19589         bootstrap: suppress stderr chatter
19590         * build-aux/bootstrap (insert_sorted_if_absent, main program):
19591         Omit unnecessary chatter to stderr.  The main program chatter
19592         was there only inadvertantly.
19594         bootstrap: .gitignore files created by autopoint, libtool
19595         I ran into this problem when bootstrapping the latest diffutils.
19596         After './bootstrap', 'git status' reported lots of untracked files
19597         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
19598         autopoint and do not need to be version-controlled.
19599         * build-aux/bootstrap: Put into .gitignore the files that
19600         autopoint and libtool create, by keeping track of files that exist
19601         after but not before these programs are run.
19602         (version_controlled_file): Move up.  2nd arg is now full file
19603         name, not base name; this is more convenient.  Put CVS at the end,
19604         as it's now somewhat deprecated.
19606 2012-05-14  Jim Meyering  <meyering@redhat.com>
19608         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
19609         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
19610         definition.  Reported by Bruno Haible.
19612 2012-05-13  Bruno Haible  <bruno@clisp.org>
19613             Paul Eggert  <eggert@cs.ucla.edu>
19615         binary-io: Define set_binary_mode function.
19616         * lib/binary-io.h (set_binary_mode): New function.
19617         (SET_BINARY): Define in terms of set_binary_mode.
19618         * modules/binary-io (configure.ac): Require AC_C_INLINE.
19619         * tests/test-binary-io.c (main): Accept an argument, and test either
19620         set_binary_mode or SET_BINARY depending on the argument.
19621         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
19622         argument. Clean up also t-bin-out0.tmp.
19624 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
19626         bootstrap: take advantage of POSIX shell features
19628         The 'bootstrap' script offered by Gnulib script already uses POSIX
19629         shell features (like $((...)) arithmetic expansions) that are not
19630         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
19631         means that bootstrap must already be run using a proper POSIX shell,
19632         which will thus provide more features, like ${var#pattern} parameter
19633         expansion or inversion of a command exit status with '!'.  We can
19634         thus use these features to improve the clarity and the performances
19635         of the bootstrap script.
19637         Suggested by Eric Blake.
19639         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
19640         of sed/expr plus command substitutions, to save some forks.  While
19641         we are at it, prefer the POSIX $(...) form of command substitution,
19642         rather than the legacy form `...` (since the former is visually
19643         clearer and interacts better with quoting), and prefer the idiom:
19644           "if ! CMD; then ACTION ..."
19645         over the idiom:
19646           "if CMD; then :; else ACTION ..."
19647         which was required by legacy Bourne shells not supporting '!'.
19649 2012-05-12  Bruno Haible  <bruno@clisp.org>
19651         system-quote: Add more comments.
19652         * lib/system-quote.h: Add more comments about wilcards and limitations.
19653         Suggested by Eli Zaretskii <eliz@gnu.org>.
19655         sh-quote, system-quote: Add comments about wildcards.
19656         * lib/sh-quote.h: Clarify what happens with wildcard characters.
19657         * lib/system-quote.h: Likewise.
19658         Reported by Eli Zaretskii <eliz@gnu.org>.
19660 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
19662         fsusage: check for GNU/Linux statvfs problem dynamically
19663         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
19664         Define STAT_STATFS2_BSIZE too, since in this case the code now
19665         checks dynamically whether statvfs is reliable, falling back on
19666         Linux-style statfs otherwise.
19667         (statvfs_works): New function, for dynamically testing statvfs.
19668         (get_fs_usage) [STAT_STATVFS]: Use it.
19669         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
19670         statvfs on GNU/Linux hosts, since it's now done dynamically.
19672 2012-05-10  Bruno Haible  <bruno@clisp.org>
19674         system-quote, execute, spawn-pipe: Escape '?' on Windows.
19675         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
19676         '?' character.
19677         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
19678         * tests/test-system-quote-main.c (check_all): Check also strings like
19679         "??????????".
19680         Reported by Eli Zaretskii <eliz@gnu.org>.
19682 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
19684         _Noreturn: port config.h to gcc -Wundef
19685         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
19686         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
19687         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
19689 2012-05-10  Bruno Haible  <bruno@clisp.org>
19691         system-quote: Refactor.
19692         * lib/system-quote.h (system_quote_copy): Fix comment.
19693         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
19694         New functions, extracted from system_quote_copy.
19695         (system_quote_length, system_quote_copy): Use these functions.
19696         Reported by Paul Eggert.
19698 2012-05-08  Bruno Haible  <bruno@clisp.org>
19700         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
19701         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
19703 2012-05-08  Bruno Haible  <bruno@clisp.org>
19705         Tests for module 'system-quote'.
19706         * modules/system-quote-tests: New file.
19707         * tests/test-system-quote.sh: New file.
19708         * tests/test-system-quote-main.c: New file.
19709         * tests/test-system-quote-child.c: New file.
19711         New module 'system-quote'.
19712         * lib/system-quote.h: New file.
19713         * lib/system-quote.c: New file.
19714         * modules/system-quote: New file.
19716 2012-05-08  Bruno Haible  <bruno@clisp.org>
19718         sh-quote: Make C++ safe and allow multiple inclusion.
19719         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
19720         declarations in extern "C".
19722 2012-05-08  Bruno Haible  <bruno@clisp.org>
19724         sh-quote tests: Make tests stricter.
19725         * tests/test-sh-quote.c (check_one): Check the return value of
19726         shell_quote_copy.
19727         (main): Check a string with a CR character. Check a string that
19728         contains UCHAR_MAX.
19730 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
19732         warnings.m4: provide a means to specify the program to compile.
19733         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
19734         (gl_WARN_ADD): here.
19735         Use gl_AS_VAR_APPEND.
19736         Support an argument to specify the program to compile.
19737         (gl_WARN_ADD): Accept an argument to specify the program to compile.
19738         AC_SUBST the WARN_CFLAGS when they are used.
19739         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
19740         leave this to gl_WARN_ADD.
19742 2012-05-08  Eric Blake  <eblake@redhat.com>
19744         doc: recommendations on gettext version
19745         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
19746         choice between versions.
19747         * DEPENDENCIES (gettext): Cover both approaches.
19749 2012-05-08  Jim Meyering  <meyering@redhat.com>
19751         init.sh: explain why EXEEXT support uses aliases rather than functions
19752         * tests/init.sh: Add a comment.
19754         init.sh: don't let bash aliases interfere with tests
19755         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
19756         is bash.  This avoids problems for those who alias standard commands to
19757         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
19758         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
19760 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
19762         stdint: be more consistent with glibc, SunOS libc
19763         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
19764         (gl_int_fast16_t, gl_uint_fast16_t)
19765         (gl_int_fast32_t, gl_uint_fast32_t)
19766         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
19767         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
19768         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
19769         Be consistent with glibc by default, and with SunOS 5.10 and later
19770         if __sun is defined.  This lessens the likelihood of clashes if
19771         code compiled for older hosts is combined with code compiled for
19772         newer ones.  Problem reported by Niels Möller in
19773         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
19775 2012-05-07  Eric Blake  <eblake@redhat.com>
19777         isatty: relax license to LGPLv2+
19778         * modules/isatty (License): Relax license.
19780 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
19782         stat-size: comment fix
19783         * lib/stat-size.h: Remove obsolete comment about indenting.
19785 2012-05-06  Bruno Haible  <bruno@clisp.org>
19787         Tests for module 'sh-quote'.
19788         * modules/sh-quote-tests: New file.
19789         * tests/test-sh-quote.c: New file.
19791 2012-05-06  Bruno Haible  <bruno@clisp.org>
19793         sh-quote: Improve shell_quote_argv's signature.
19794         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
19795         * lib/sh-quote.c (shell_quote_argv): Likewise.
19797 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
19799         stdint: document issues with int_fast8_t etc.
19800         * doc/posix-headers/stdint.texi (stdint.h): Say that other
19801         stdint.h substitutes may define these types differently.  See
19802         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
19804 2012-05-05  Bruno Haible  <bruno@clisp.org>
19806         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
19807         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
19808         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
19809         or 'guessing no (mishandles large arguments)'.
19811 2012-05-05  Bruno Haible  <bruno@clisp.org>
19813         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
19814         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
19815         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
19816         set gl_cv_func_link_follows_symlink to "guessing no".
19818 2012-05-05  Bruno Haible  <bruno@clisp.org>
19820         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
19821         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
19822         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
19823         "guessing no".
19824         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
19826 2012-05-05  Bruno Haible  <bruno@clisp.org>
19828         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
19829         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
19830         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
19831         set gl_cv_struct_dirent_d_ino to "guessing yes".
19833 2012-05-05  Bruno Haible  <bruno@clisp.org>
19835         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
19836         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
19837         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
19838         "guessing yes".
19840 2012-05-05  Bruno Haible  <bruno@clisp.org>
19842         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
19843         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
19844         compiling to a glibc system, set gl_cv_func_signbit and
19845         gl_cv_func_signbit_gcc to "guessing yes".
19847 2012-05-05  Bruno Haible  <bruno@clisp.org>
19849         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
19850         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
19851         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
19852         to "guessing yes".
19853         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
19854         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
19856 2012-05-05  Bruno Haible  <bruno@clisp.org>
19858         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
19859         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
19860         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
19861         gl_cv_func_realpath_works to "guessing yes".
19863 2012-05-05  Bruno Haible  <bruno@clisp.org>
19865         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
19866         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
19867         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
19869 2012-05-04  Bruno Haible  <bruno@clisp.org>
19871         Tweak last commit.
19872         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
19873         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19875 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
19877         unistd_h: make it easier to avoid sys_types_h
19878         This is useful for Emacs, which has its own method of porting to
19879         Windows, and which therefore does not need the sys_types_h module.
19880         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
19881         code moved here from gl_SYS_TYPES_H.
19882         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
19883         using the code directly.
19884         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
19885         gl_SYS_TYPES_H.
19886         * modules/sys_types (Files):
19887         * modules/unistd (Files): Add m4/off_t.m4.
19889 2012-05-03  Bruno Haible  <bruno@clisp.org>
19891         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
19892         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
19893         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
19894         "guessing yes" or "guessing no".
19895         (gl_FUNC_LSTAT): Update.
19896         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
19897         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
19898         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
19900 2012-05-03  Bruno Haible  <bruno@clisp.org>
19902         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
19903         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
19904         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
19905         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
19906         cross-compiling, choose the first alternative on glibc systems.
19907         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
19909 2012-05-03  Bruno Haible  <bruno@clisp.org>
19911         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
19912         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
19913         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
19915 2012-05-03  Bruno Haible  <bruno@clisp.org>
19917         chown: Avoid "guessing no" when cross-compiling to glibc systems.
19918         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
19920 2012-05-03  Bruno Haible  <bruno@clisp.org>
19922         Avoid "guessing no" guesses when cross-compiling to glibc systems.
19923         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
19924         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
19925         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
19926         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
19927         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
19928         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
19929         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
19930         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
19931         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
19932         compiling to glibc systems, set gl_cv_func_chown_slash_works,
19933         gl_cv_func_chown_ctime_works to "guessing yes".
19934         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
19935         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
19936         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
19937         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
19938         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
19939         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
19940         compiling to glibc systems, set gl_cv_func_open_directory_works to
19941         "guessing yes".
19942         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
19943         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
19944         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
19945         "guessing yes".
19946         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
19947         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
19948         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
19949         compiling to glibc systems, set gl_cv_func_floorf_ieee to
19950         "guessing yes".
19951         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
19952         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
19953         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
19954         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
19955         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
19956         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
19957         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
19958         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
19959         "guessing yes".
19960         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
19961         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
19962         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
19963         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
19964         "guessing yes".
19965         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
19966         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
19967         "guessing yes".
19968         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
19969         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
19970         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
19971         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
19972         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
19973         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
19974         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
19975         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
19976         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
19977         compiling to glibc systems, set gl_cv_func_log10f_ieee to
19978         "guessing yes".
19979         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
19980         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
19981         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
19982         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
19983         "guessing yes".
19984         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
19985         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
19986         "guessing yes".
19987         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
19988         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
19989         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
19990         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
19991         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
19992         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
19993         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
19994         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
19995         compiling to glibc systems, set gl_cv_func_mkfifo_works to
19996         "guessing yes".
19997         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
19998         compiling to glibc systems, set gl_cv_func_mknod_works to
19999         "guessing yes".
20000         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
20001         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
20002         "guessing yes".
20003         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
20004         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
20005         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
20006         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
20007         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
20008         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
20009         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
20010         compiling to glibc systems, set gl_cv_func_svid_putenv to
20011         "guessing yes".
20012         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
20013         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
20014         "guessing yes".
20015         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
20016         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
20017         "guessing yes".
20018         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
20019         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
20020         to "guessing yes".
20021         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
20022         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
20023         to "guessing yes".
20024         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
20025         compiling to glibc systems, set gl_cv_func_rmdir_works to
20026         "guessing yes".
20027         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
20028         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
20029         gl_cv_func_unlink_parent_fails to "guessing yes".
20030         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
20031         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
20032         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
20033         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
20034         gl_cv_func_rename_dest_works to "guessing yes".
20035         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
20036         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
20037         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
20038         compiling to glibc systems, set gl_cv_func_roundf_ieee to
20039         "guessing yes".
20040         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
20041         compiling to glibc systems, set gl_cv_func_roundl_ieee to
20042         "guessing yes".
20043         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
20044         compiling to glibc systems, set gl_cv_func_setenv_works to
20045         "guessing yes".
20046         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
20047         compiling to glibc systems, set gl_cv_func_unsetenv_works to
20048         "guessing yes".
20049         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
20050         compiling to glibc systems, set gl_cv_func_sleep_works to
20051         "guessing yes".
20052         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
20053         compiling to glibc systems, set gl_cv_func_stat_file_slash to
20054         "guessing yes".
20055         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
20056         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
20057         "guessing yes".
20058         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
20059         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
20060         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
20061         compiling to glibc systems, set gl_cv_func_truncf_ieee to
20062         "guessing yes".
20063         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
20064         compiling to glibc systems, set gl_cv_func_truncl_ieee to
20065         "guessing yes".
20066         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
20067         compiling to glibc systems, set gl_cv_func_usleep_works to
20068         "guessing yes".
20069         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
20070         compiling to glibc systems, set gl_cv_func_futimesat_works to
20071         "guessing yes".
20073 2012-05-03  Bruno Haible  <bruno@clisp.org>
20075         Say "guessing yes" or "guessing no" when cross-compiling.
20076         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
20077         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
20078         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
20079         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
20080         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
20081         am_cv_func_working_getline to "guessing yes" or "guessing no".
20082         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
20083         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
20084         (gl_FUNC_MEMMEM): When cross-compiling, set
20085         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
20086         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
20087         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
20088         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
20089         set gl_cv_func_strcasestr_works_always to "guessing yes" or
20090         "guessing no".
20091         (gl_FUNC_STRCASESTR): When cross-compiling, set
20092         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
20093         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
20094         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
20095         (gl_FUNC_STRSTR): When cross-compiling, set
20096         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
20097         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
20098         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
20099         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
20100         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
20102 2012-05-01  Bruno Haible  <bruno@clisp.org>
20104         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
20105         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
20106         * build-aux/reloc-ldflags: Likewise.
20107         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
20109 2012-05-01  Bruno Haible  <bruno@clisp.org>
20111         gnulib-tool: Remove transitional code.
20112         * gnulib-tool: Don't warn about --import with 0 arguments any more.
20113         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
20115 2012-05-01  Bruno Haible  <bruno@clisp.org>
20117         getcwd: Fix misindentation.
20118         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
20120 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
20122         exclude: process exclude and include directives in order
20123         This restores the pre-2009 behavior, and is part of a fix of a
20124         grep bug reported by Quentin Arce in
20125         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
20126         * lib/exclude.c (struct exclude): Remove 'tail' member.
20127         (new_exclude_segment): Prepend the new segment instead of appending.
20128         Return void, since that's now more convenient.
20129         (file_pattern_matches): Renamed from excluded_file_pattern_p.
20130         (file_name_matches): Renamed from excluded_file_name_p.
20131         (file_pattern_matches, file_name_matches):
20132         Return true if the pattern matches, not if it excludes.
20133         All callers changed.
20134         (excluded_file_name): Process the list in reverse order;
20135         since the list is now reversed this restores the pre-2009 behavior.
20136         (add_exclude): Adjust to new reversed-order list.  Use local var
20137         rather than macro, for clarity.
20138         * tests/test-exclude7.sh: Adjust to corrected behavior.
20140         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
20141         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
20142         it's not possible here.  Handle the case of \ at end of pattern
20143         without dumping core.
20144         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
20146         _Noreturn: future-proof non-GNU and non-MSVC compilers
20147         * build-aux/snippet/_Noreturn.h (_Noreturn):
20148         * m4/gnulib-common.m4 (gl_COMMON_BODY):
20149         Do not define _Noreturn if __STDC_VERSION__ indicates this is
20150         C11 or later.  This is more likely to work with random future C
20151         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
20152         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
20154         exclude: handle wildcards with FNM_EXTMATCH
20155         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
20156         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
20157         comment that "has wildcards" really means "has or may have
20158         wildcards".  Simplify by avoiding the need to call strcspn.
20160 2012-04-29  Bruno Haible  <bruno@clisp.org>
20162         gnulib-tool: Fix list of authors.
20163         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
20165 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
20167         bootstrap: support Automake-NG in $buildreq
20168         * bootstrap (check_versions): Handle automake and aclocal from
20169         Automake-NG specially.  They can be specified as respectively
20170         the "automake-ng" and "aclocal-ng" requirements.
20172 2012-04-25  Eric Blake  <eblake@redhat.com>
20174         bootstrap: only force latest Makefile.in.in for gettext module
20175         * build-aux/bootstrap (with_gettext): Only install latest
20176         Makefile.in.in for projects requesting bleeding edge gettext.
20178 2012-04-22  Bruno Haible  <bruno@clisp.org>
20180         doc: Mention reason for replacement on glibc/Linux systems.
20181         * doc/posix-functions/dprintf.texi: Mention the problem with special
20182         'long double' values.
20183         * doc/posix-functions/fprintf.texi: Likewise.
20184         * doc/posix-functions/printf.texi: Likewise.
20185         * doc/posix-functions/snprintf.texi: Likewise.
20186         * doc/posix-functions/sprintf.texi: Likewise.
20187         * doc/posix-functions/vdprintf.texi: Likewise.
20188         * doc/posix-functions/vfprintf.texi: Likewise.
20189         * doc/posix-functions/vprintf.texi: Likewise.
20190         * doc/posix-functions/vsnprintf.texi: Likewise.
20191         * doc/posix-functions/vsprintf.texi: Likewise.
20192         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
20193         platforms with F_DUPFD_CLOEXEC problems.
20194         * doc/posix-functions/glob.texi: Mention which platforms are affected
20195         by the problem with symbolic links.
20196         * doc/posix-functions/linkat.texi: Mention the problem with
20197         AT_SYMLINK_FOLLOW on Linux.
20199 2012-04-22  Bruno Haible  <bruno@clisp.org>
20201         pwrite: Don't replace on all platforms.
20202         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
20204 2012-04-22  Bruno Haible  <bruno@clisp.org>
20206         rint* tests: Avoid gcc warnings.
20207         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
20208         * tests/test-rintf.c (INFINITY, NAN): Likewise.
20209         * tests/test-rintl.c (INFINITY, NAN): Likewise.
20211 2012-04-21  Bruno Haible  <bruno@clisp.org>
20213         users.txt: Update.
20214         * users.txt: Add freedink, wdiff. Update URLs for projects that have
20215         switched from CVS to git, bzr, or svn.
20217 2012-04-21  Bruno Haible  <bruno@clisp.org>
20219         Large File Support for native Windows platforms.
20221         * m4/largefile.m4 (gl_LARGEFILE): New macro.
20222         * modules/largefile (configure.ac): Require gl_LARGEFILE.
20224         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
20225         type.
20226         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
20227         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
20228         * doc/posix-headers/sys_types.texi: Mention the effect of the
20229         'largefile' module.
20231         * lib/fcntl.in.h: Add comments about off_t.
20232         * modules/fcntl-h (Depends-on): Add sys_types.
20234         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
20235         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
20236         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
20237         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
20238         * modules/unistd (Depends-on): Add sys_types.
20239         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
20241         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
20242         instead of lseek.
20243         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
20244         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
20245         * modules/lseek (Depends-on): Add sys_types.
20247         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
20248         msvc-nothrow.h.
20249         (SetFileSize): New function.
20250         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
20251         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
20252         if Large File Support is requested.
20253         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
20254         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
20256         * lib/stdio.in.h: Add comments about off_t.
20257         * modules/stdio (Depends-on): Add sys_types.
20259         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
20260         instead of ftello.
20261         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
20262         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
20263         (gl_PREREQ_FTELLO): New macro.
20264         * modules/ftello (Depends-on): Add sys_types.
20265         (configure.ac): Incoke gl_PREREQ_FTELLO.
20267         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
20268         instead of fseeko.
20269         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
20270         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
20271         (gl_PREREQ_FSEEKO): New macro.
20272         * modules/fseeko (Depends-on): Add sys_types.
20273         (configure.ac): Invoke gl_PREREQ_FSEEKO.
20275         * lib/sys_stat.in.h: Add comments about off_t.
20276         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
20277         64-bit integer for st_size in 'struct stat'.
20278         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
20279         Define _GL_WINDOWS_64_BIT_ST_SIZE.
20280         * modules/sys_stat (Depends-on): Add sys_types.
20281         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
20283         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
20284         instead of stat or _stat.
20286         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
20287         'struct _stati64' instead of fstat and 'struct stat'.
20288         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
20289         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
20291         Reported by Ray Satiro <raysatiro@yahoo.com>.
20293 2012-04-19  Eric Blake  <eblake@redhat.com>
20295         bootstrap: accommodate older libtool
20296         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
20297         Reported by Daniel P. Berrange.
20299 2012-04-19  Jim Meyering  <meyering@redhat.com>
20301         announce-gen: avoid failure due to lack of Digest::SHA1
20302         Even with the preferred Digest::SHA available, this script
20303         would fail when the backup module, Digest::SHA1, was not installed.
20304         * build-aux/announce-gen: Quote the conditional use of "use".
20305         Reported by Reuben Thomas in:
20306         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
20308         bootstrap: don't let a user's CDPATH setting affect this script
20309         When CDPATH is set, cd will sometimes generate output.
20310         When "cd" is run in a subshell whose output matters, that
20311         surprising-to-some output can cause malfunction.
20312         Unsetting CDPATH turns off this shell "feature."
20313         * build-aux/bootstrap (CDPATH): Unset.
20314         Reported by Reuben Thomas in:
20315         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
20316         and inspired by his patch here:
20317         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
20319 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
20320         and Jim Meyering  <meyering@redhat.com>
20322         maint.mk: catch "see @xref{}" and similar
20323         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
20324         prohibit "See also @xref{", "Also see @pxref{", and similar.
20326 2012-04-16  Jim Meyering  <meyering@redhat.com>
20328         bootstrap: really use gnulib's po/Makefile.in.in
20329         * build-aux/bootstrap: Correct the source file name in previous change.
20330         Reported by Akim Demaille.
20332         configmake: correct minor inconsistency in Makefile rule
20333         * modules/configmake (Makefile.am): All other rules like this one
20334         run the final "mv -f ..." in the same backslash-continued command
20335         as the one that does everything else.  This one put the mv -f ...
20336         command on a separate, non-backslash-continued line.
20337         Make it like the others.
20339         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
20340         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
20341         the one from gettext.  Reported by Akim Demaille.
20343 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
20345         Fix recursion of install-* into po directories.
20346         Bison's install-pdf bug reported by Hans Aberg at
20347         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
20348         * build-aux/po/Makefile.in.in (install-dvi, install-html)
20349         (install-info, install-pdf, install-ps): New targets.
20351 2012-04-16  Jim Meyering  <meyering@redhat.com>
20353         maint: avoid spurious "make sc_maint" failure
20354         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
20355         exempt all *.class file names, for lib/javaversion.class.
20357 2012-04-15  Bruno Haible  <bruno@clisp.org>
20359         lseek: Make configure test independent of environment.
20360         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
20361         Windows, we know that lseek() on pipes is broken; skip the runtime
20362         test.
20364 2012-04-14  Bruno Haible  <bruno@clisp.org>
20366         stat: Bypass buggy override in mingw64.
20367         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
20368         * lib/stat.c (stat) [mingw64]: Define to _stat.
20369         * doc/posix-functions/stat.texi: Mention mingw64 bug.
20371 2012-04-14  Bruno Haible  <bruno@clisp.org>
20373         pathmax: Fix compilation error on MSVC 9.
20374         * modules/pathmax (Depends-on): Add unistd.
20376 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
20378         README: document pointer comparison assumption
20379         * README (Portability guidelines): Document assumption about
20380         pointer comparisons, in response to a recent bug-gnulib comment by
20381         Jeffrey Kegler.
20383 2012-04-12  Bruno Haible  <bruno@clisp.org>
20385         Tests for module 'getrusage'.
20386         * modules/getrusage-tests: New file.
20387         * tests/test-getrusage.c: New file.
20389         New module 'getrusage'.
20390         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
20391         warn-on-use.h.
20392         (getrusage): New declaration.
20393         * lib/getrusage.c: New file.
20394         * m4/getrusage.m4: New file.
20395         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
20396         is declared.
20397         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
20398         HAVE_GETRUSAGE.
20399         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
20400         snippet/c++defs, snippet/warn-on-use.
20401         (Makefile.am): Update generation of sys/resource.h. Substitute
20402         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
20403         * modules/getrusage: New file.
20404         * doc/posix-functions/getrusage.texi: Mention the new module.
20406 2012-04-12  Bruno Haible  <bruno@clisp.org>
20408         Tests for module 'sys_resource'.
20409         * modules/sys_resource-tests: New file.
20410         * tests/test-sys_resource.c: New file.
20412         New module 'sys_resource'.
20413         * lib/sys_resource.in.h: New file.
20414         * m4/sys_resource_h.m4: New file.
20415         * modules/sys_resource: New file.
20416         * doc/posix-headers/sys_resource.texi: Mention the new module.
20418 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
20420         ioctl: Fix compilation error on mingw.
20421         * lib/ioctl.c: Include <windows.h>.
20422         Also reported by Ray Satiro <raysatiro@yahoo.com>.
20424 2012-04-04  Jim Meyering  <meyering@redhat.com>
20426         regex: correct #pragma guard expression
20427         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
20428         not 4.3.  Correct its cpp guard expression.
20430 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
20432         regex: remove unnecessary type punning
20433         Problem reported by Vladimir Serbinenko in
20434         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
20435         * lib/regex.h (struct re_pattern_buffer): Change the type of
20436         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
20437         Fix comment to match code.
20438         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
20439         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
20440         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
20441         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
20442         (set_regs):
20443         Omit no-longer-necessary casts.
20445 2012-04-03  Bruno Haible  <bruno@clisp.org>
20447         Tests for module 'ilogbl'.
20448         * modules/ilogbl-tests: New file.
20449         * tests/test-ilogbl.c: New file.
20451         New module 'ilogbl'.
20452         * lib/math.in.h (ilogbl): New declaration.
20453         * lib/ilogbl.c: New file.
20454         * m4/ilogbl.m4: New file.
20455         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
20456         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
20457         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
20458         Split sed invocation, to avoid the limit of 100 substitutions of
20459         HP-UX 'sed'.
20460         * modules/ilogbl: New file.
20461         * tests/test-math-c++.cc: Check the declaration of ilogbl.
20462         * doc/posix-functions/ilogbl.texi: Mention the new module.
20464 2012-04-03  Bruno Haible  <bruno@clisp.org>
20466         Tests for module 'ilogbf'.
20467         * modules/ilogbf-tests: New file.
20468         * tests/test-ilogbf.c: New file.
20470         New module 'ilogbf'.
20471         * lib/math.in.h (ilogbf): New declaration.
20472         * lib/ilogbf.c: New file.
20473         * m4/ilogbf.m4: New file.
20474         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
20475         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
20476         REPLACE_ILOGBF.
20477         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
20478         REPLACE_ILOGBF.
20479         * modules/ilogbf: New file.
20480         * tests/test-math-c++.cc: Check the declaration of ilogbf.
20481         * doc/posix-functions/ilogbf.texi: Mention the new module.
20483 2012-04-03  Bruno Haible  <bruno@clisp.org>
20485         Tests for module 'ilogb'.
20486         * modules/ilogb-tests: New file.
20487         * tests/test-ilogb.c: New file.
20488         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
20489         tests/test-logb-ieee.h.
20491         New module 'ilogb'.
20492         * lib/math.in.h (ilogb): New declaration.
20493         * lib/ilogb.c: New file.
20494         * m4/ilogb.m4: New file.
20495         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
20496         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
20497         REPLACE_ILOGB.
20498         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
20499         REPLACE_ILOGB.
20500         * modules/ilogb: New file.
20501         * tests/test-math-c++.cc: Check the declaration of ilogb.
20502         * doc/posix-functions/ilogb.texi: Mention the new module.
20504 2012-04-03  Bruno Haible  <bruno@clisp.org>
20506         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
20507         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
20508         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
20509         (main): Check their values.
20510         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
20511         problem.
20513 2012-04-03  Bruno Haible  <bruno@clisp.org>
20515         Tests for module 'logbl-ieee'.
20516         * modules/logbl-ieee-tests: New file.
20517         * tests/test-logbl-ieee.c: New file.
20519         New module 'logbl-ieee'.
20520         * modules/logbl-ieee: New file.
20522         Tests for module 'logb-ieee'.
20523         * modules/logb-ieee-tests: New file.
20524         * tests/test-logb-ieee.c: New file.
20526         New module 'logb-ieee'.
20527         * modules/logb-ieee: New file.
20529         Tests for module 'logbf-ieee'.
20530         * modules/logbf-ieee-tests: New file.
20531         * tests/test-logbf-ieee.c: New file.
20532         * tests/test-logb-ieee.h: New file.
20534         New module 'logbf-ieee'.
20535         * modules/logbf-ieee: New file.
20537 2012-04-03  Bruno Haible  <bruno@clisp.org>
20539         Tests for module 'logbl'.
20540         * modules/logbl-tests: New file.
20541         * tests/test-logbl.c: New file.
20543         New module 'logbl'.
20544         * lib/math.in.h (logbl): New declaration.
20545         * lib/logbl.c: New file.
20546         * m4/logbl.m4: New file.
20547         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
20548         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
20549         REPLACE_LOGBL.
20550         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
20551         REPLACE_LOGBL.
20552         * modules/logbl: New file.
20553         * tests/test-math-c++.cc: Check the declaration of logbl.
20554         * doc/posix-functions/logbl.texi: Mention the new module.
20556 2012-04-02  Bruno Haible  <bruno@clisp.org>
20558         Tests for module 'logbf'.
20559         * modules/logbf-tests: New file.
20560         * tests/test-logbf.c: New file.
20562         New module 'logbf'.
20563         * lib/math.in.h (logbf): New declaration.
20564         * lib/logbf.c: New file.
20565         * m4/logbf.m4: New file.
20566         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
20567         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
20568         REPLACE_LOGBF.
20569         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
20570         REPLACE_LOGBF.
20571         * modules/logbf: New file.
20572         * tests/test-math-c++.cc: Check the declaration of logbf.
20573         * doc/posix-functions/logbf.texi: Mention the new module.
20575 2012-04-02  Bruno Haible  <bruno@clisp.org>
20577         logb tests: More tests.
20578         * tests/test-logb.h: New file, based on tests/test-logb.c and
20579         tests/test-frexp.h.
20580         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
20581         (main): Just invoke test_function.
20582         * modules/logb-tests (Files): Add tests/test-logb.h,
20583         tests/minus-zero.h, tests/randomd.c.
20584         (Makefile.am): Add randomd.c to test_logb_SOURCES.
20586         logb: Provide replacement and workarounds.
20587         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
20588         is 1.
20589         * lib/logb.c: New file.
20590         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
20591         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
20592         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
20593         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
20594         * modules/logb (Files): Add lib/logb.c.
20595         (Depends-on): Add isfinite, frexp, isnand.
20596         (configure.ac): Compile the replacement code logb.c if needed.
20597         * tests/test-math-c++.cc: Check the declaration of logb.
20598         * doc/posix-functions/logb.texi: Mention the replacement and the bug
20599         with subnormal numbers.
20601 2012-04-02  Bruno Haible  <bruno@clisp.org>
20603         log10* tests: Speed up.
20604         * tests/test-log10.h (test_function): Reduce amount of random numbers
20605         to test.
20607 2012-04-01  Bruno Haible  <bruno@clisp.org>
20609         logf-ieee: Fix test whether logf works.
20610         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
20612 2012-04-01  Bruno Haible  <bruno@clisp.org>
20614         log10l: Work around log10l-ieee test failure on IRIX 6.5.
20615         * lib/log10l.c: Include <float.h>
20616         (log10l): On IRIX, normalize the +Infinity value.
20617         * modules/log10l (Depends-on): Add 'float'.
20618         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
20619         +Infinity.
20621         log10f-ieee: Work around test failure on NetBSD 5.1.
20622         * m4/log10f-ieee.m4: New file.
20623         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
20624         test whether log10f works with a negative argument. Replace it if not.
20625         * lib/log10f.c (log10f): For negative arguments, return NaN.
20626         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
20627         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
20628         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
20630         log10f-ieee: Work around test failure on Solaris 9.
20631         * modules/log10f-ieee (Depends-on): Add log10-ieee.
20632         (configure.ac): Require gl_FUNC_LOG10F.
20634         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
20635         * m4/log10-ieee.m4: New file.
20636         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
20637         whether log10 works with a negative argument. Replace it if not.
20638         * lib/log10.c (log10): For negative arguments, return NaN.
20639         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
20640         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
20641         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
20643         Tests for module 'log10l-ieee'.
20644         * modules/log10l-ieee-tests: New file.
20645         * tests/test-log10l-ieee.c: New file.
20647         New module 'log10l-ieee'.
20648         * modules/log10l-ieee: New file.
20650         Tests for module 'log10-ieee'.
20651         * modules/log10-ieee-tests: New file.
20652         * tests/test-log10-ieee.c: New file.
20654         New module 'log10-ieee'.
20655         * modules/log10-ieee: New file.
20657         Tests for module 'log10f-ieee'.
20658         * modules/log10f-ieee-tests: New file.
20659         * tests/test-log10f-ieee.c: New file.
20660         * tests/test-log10-ieee.h: New file.
20662         New module 'log10f-ieee'.
20663         * modules/log10f-ieee: New file.
20665 2012-04-01  Bruno Haible  <bruno@clisp.org>
20667         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
20668         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
20669         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
20670         workaround.
20671         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
20672         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
20673         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
20674         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
20675         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
20676         (Depends-on): Update conditions.
20677         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
20678         IRIX 6.5, OSF/1 5.1 problems.
20680 2012-04-01  Bruno Haible  <bruno@clisp.org>
20682         log10f: Work around OSF/1 5.1 bug.
20683         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
20684         * lib/log10f.c (log10f): If logf exists, use it and provide just the
20685         workaround.
20686         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
20687         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
20688         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
20689         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
20690         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
20691         (Depends-on): Update conditions.
20692         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
20694 2012-04-01  Bruno Haible  <bruno@clisp.org>
20696         log10: Work around OSF/1 5.1 bug.
20697         * lib/math.in.h (log10): New declaration.
20698         * lib/log10.c: New file.
20699         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
20700         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
20701         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
20702         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
20703         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
20704         * modules/log10 (Files): Add lib/log10.c.
20705         (Depends-on): Add math.
20706         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
20707         * tests/test-math-c++.cc: Check the declaration of log10.
20708         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
20710 2012-03-31  Bruno Haible  <bruno@clisp.org>
20712         log10l tests: More tests.
20713         * modules/log10l-tests (Files): Add tests/test-log10l.h,
20714         tests/minus-zero.h, tests/randoml.c.
20715         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
20716         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
20717         (main): Invoke test_function.
20719         log10f tests: More tests.
20720         * modules/log10f-tests (Files): Add tests/test-log10.h,
20721         tests/minus-zero.h, tests/randomf.c.
20722         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
20723         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
20724         (main): Invoke test_function.
20726         log10 tests: More tests.
20727         * tests/test-log10.h: New file.
20728         * modules/log10-tests (Files): Add tests/test-log10.h,
20729         tests/minus-zero.h, tests/randomd.c.
20730         (Makefile.am): Add randomd.c to test_log10_SOURCES.
20731         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
20732         (main): Invoke test_function.
20734 2012-03-31  Simon Josefsson  <simon@josefsson.org>
20736         fflush: Fix syntax error.
20737         * lib/fflush.c: Include unused-parameter.h, needed for
20738         _GL_UNUSED_PARAMETER.
20739         * modules/fflush (Depends-on): Add snippet/unused-parameter.
20741 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
20743         regex: pacify GCC when compiling GRUB
20744         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
20745         a diagnostic.  Reported by Vladimir Serbinenko in
20746         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
20748 2012-03-29  Eric Blake  <eblake@redhat.com>
20750         stdio: don't assume gets any more
20751         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
20752         support.
20753         * modules/stdio (Makefile.am): Likewise.
20754         * lib/stdio-read.c (gets): Likewise.
20755         * tests/test-stdio-c++.cc: Likewise.
20756         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
20757         * lib/stdio.in.h (gets): Make warning occur in more places.
20758         * doc/posix-functions/gets.texi (gets): Update documentation.
20759         Reported by Christer Solskogen.
20761         maint.mk: fix syntax checks without exclusions
20762         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
20763         Reported by Daniel P. Berrange.
20765         strerror_r: avoid compiler warning
20766         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
20767         level.
20769         fflush: avoid compiler warning
20770         * lib/fflush.c (update_fpos_cache): Mark variables that are
20771         potentially unused.
20773 2012-03-25  Bruno Haible  <bruno@clisp.org>
20775         Tests for module 'localeconv'.
20776         * modules/localeconv-tests: New file.
20777         * tests/test-localeconv.c: New file.
20779         New module 'localeconv'.
20780         * lib/locale.in.h (localeconv): New declaration.
20781         * lib/localeconv.c: New file.
20782         * m4/localeconv.m4: New file.
20783         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
20784         REPLACE_LOCALECONV.
20785         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
20786         REPLACE_LOCALECONV.
20787         * modules/localeconv: New file.
20788         * modules/nl_langinfo (Depends-on): Add localeconv.
20789         * modules/human (Depends-on): Likewise.
20790         * doc/posix-functions/localeconv.texi: Mention the new module.
20792 2012-03-25  Bruno Haible  <bruno@clisp.org>
20794         locale: Provide a complete 'struct lconv'.
20795         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
20796         'struct lconv' does not contain int_p_cs_precedes.
20797         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
20798         * doc/posix-headers/locale.texi: Update.
20800         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
20801         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
20802         * doc/posix-headers/locale.texi: Update.
20804         locale: Provide a working 'struct lconv'.
20805         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
20806         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
20807         'struct lconv' does not even contain decimal_point.
20808         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
20809         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
20810         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
20811         * doc/posix-headers/locale.texi: Mention the problems with
20812         'struct lconv'.
20813         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
20815 2012-03-24  Bruno Haible  <bruno@clisp.org>
20817         Enable common subexpression optimization in GCC.
20818         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
20819         macros.
20820         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
20821         GCC attribute 'const'.
20822         (uc_locale_language): Declare with GCC attribute 'pure'.
20823         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
20824         with GCC attribute 'const'.
20825         * lib/unictype.in.h (uc_is_general_category_withtable,
20826         uc_combining_class, uc_combining_class_name,
20827         uc_combining_class_long_name, uc_bidi_class_name,
20828         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
20829         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
20830         uc_decimal_value, uc_digit_value, uc_numeric_value,
20831         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
20832         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
20833         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
20834         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
20835         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
20836         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
20837         Declare with GCC attribute 'const'.
20838         (uc_general_category_name, uc_general_category_long_name,
20839         uc_general_category_byname, uc_general_category,
20840         uc_is_general_category, uc_combining_class_byname,
20841         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
20842         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
20843         Declare with GCC attribute 'pure'.
20844         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
20845         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
20846         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
20847         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
20848         with GCC attribute 'pure'.
20849         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
20850         'const'.
20851         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
20852         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
20853         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
20854         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
20855         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
20856         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
20857         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
20858         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
20859         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
20860         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
20861         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
20862         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
20863         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
20864         GCC attribute 'pure'.
20865         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
20866         'const'.
20867         * lib/uniwidth.in.h (uc_width): Simplify declaration.
20868         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
20869         u32_strwidth): Declare with GCC attribute 'pure'.
20871         Enable common subexpression optimization in GCC.
20872         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
20873         (alphasort): Declare with GCC attribute 'pure'.
20874         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
20875         (atoll): Declare with GCC attribute 'pure'.
20876         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
20877         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
20878         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
20879         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
20880         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
20881         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
20882         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
20884 2012-03-24  Bruno Haible  <bruno@clisp.org>
20886         gnulib-tool: Avoid unintended error output from 'cmp'.
20887         * gnulib-tool (func_add_file, func_update_file, func_import): Use
20888         "cmp -s", not "cmp > /dev/null".
20890 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
20892         gnulib-tool: fix imprecise comments w.r.t. an automake bug
20894         It's not just Automake versions < 1.9b that creates an empty
20895         pkgdatadir at installation time if pkgdata_DATA is specified
20896         to empty; modern automake versions do this as well, at least
20897         until automake 1.11.4 (not yet released at the moment of writing,
20898         but soon to appear).  That behaviour was generally considered a
20899         feature rather than a bug, at least until this discussion:
20900         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
20902         See also automake bugs #10997 and #11030.
20904         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
20905         reference to relevant automake bug numbers.
20906         (func_emit_tests_Makefile_am): Likewise.
20908 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
20910         announce-gen: use Digest::SHA when possible
20911         * build-aux/announce-gen: Use Digest::SHA when possible, falling
20912         back to Digest::SHA1 if necessary.
20914 2012-03-20  Jim Meyering  <meyering@redhat.com>
20916         tests: avoid gcc warnings about argv vs. const initializers
20917         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
20918         warnings about discarding 'const' qualifier from pointer target type.
20919         * tests/test-posix_spawn2.c (main): Likewise.
20921 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
20923         README-release: simplify slightly
20924         * top/README-release: Run "git checkout master" only once.
20926 2012-03-15  Mark Wielaard  <mark@klomp.org>
20928         git-merge-changelog: add specific example on how to use with hg.
20929         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
20931 2012-03-18  Mark Wielaard  <mark@klomp.org>
20933         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
20935 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
20937         git-version-gen: don't let "prefix" envvar cause trouble
20938         * build-aux/git-version-gen (prefix): Initialize properly,
20939         so as not to use a value specified via the environment.
20940         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
20942 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
20944         regex: diagnose too-large repeat counts in EREs
20945         Previously, the code did not diagnose the too-large repeat count
20946         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
20947         as if it were 'b\{1000000000}', which is unexpected.
20948         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
20949         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
20950         is a reasonable one for this problem.  Another option would be to
20951         create a new REG_OVERFLOW error for repeat counts that are too large.
20952         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
20953         count is too large, so that the caller can distinguish the two cases.
20954         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
20955         "Too large" return code, and that repeat counts are one example of this.
20957 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
20959         doc: some glibc x32 integer width issues
20960         * doc/posix-headers/sys_types.texi (sys/types.h):
20961         * doc/posix-headers/time.texi (time.h):
20962         Mention that glibc x32 does not conform to POSIX in a couple of
20963         areas related to integer widths.
20965 2012-03-15  Bruno Haible  <bruno@clisp.org>
20967         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
20968         * lib/fma.c (VOLATILE): New macro.
20969         (FUNC): Use it to work around a GCC compiler bug.
20971 2012-03-13  Bruno Haible  <bruno@clisp.org>
20973         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
20974         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
20975         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
20976         REPLACE_HYPOTL to 1.
20977         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
20979 2012-03-13  Bruno Haible  <bruno@clisp.org>
20981         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
20982         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
20983         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
20984         REPLACE_REMAINDERL to 1.
20985         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
20986         bug.
20988 2012-03-13  Bruno Haible  <bruno@clisp.org>
20990         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
20991         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
20992         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
20993         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
20994         too big rounding errors.
20995         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
20996         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
20997         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
20998         (Depends-on): Update conditions.
20999         * tests/test-sqrtl.c (my_ldexpl): New function.
21000         (main): Add test of a particular value.
21001         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
21003 2012-03-13  Pádraig Brady  <P@draigBrady.com>
21005         doc: Update timer_* platform portability notes.
21006         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
21007         that always return ENOSYS.
21008         * doc/posix-functions/timer_delete.texi: Likewise.
21009         * doc/posix-functions/timer_gettime.texi: Likewise.
21010         * doc/posix-functions/timer_settime.texi: Likewise.
21012 2012-03-13  Bruno Haible  <bruno@clisp.org>
21014         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
21015         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
21016         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
21017         REPLACE_CBRTL to 1.
21018         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
21020 2012-03-13  Bruno Haible  <bruno@clisp.org>
21022         remainderl: Avoid compilation error on AIX >= 5.2.
21023         * lib/math.in.h (remainderl): Undefine macro from the system header.
21025 2012-03-13  Bruno Haible  <bruno@clisp.org>
21027         Avoid compilation errors with MSVC option -fp:strict.
21028         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
21029         * lib/cbrtf.c: Likewise.
21030         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
21032 2012-03-12  Bruno Haible  <bruno@clisp.org>
21034         uninorm: Don't crash in out-of-memory conditions.
21035         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
21036         gracefully.
21037         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
21038         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
21040 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
21042         quote: fix syntax-check
21043         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
21044         also exports quote_quoting_options.
21046 2012-03-12  Simon Josefsson  <simon@josefsson.org>
21048         Collapse list of copyright years to ranges.  See
21049         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
21050         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
21051         build-aux/csharpexec.sh.in, build-aux/gnupload,
21052         build-aux/install-reloc, build-aux/javacomp.sh.in,
21053         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
21054         build-aux/move-if-change, build-aux/reloc-ldflags,
21055         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
21057 2012-03-11  Bruno Haible  <bruno@clisp.org>
21059         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
21060         * m4/log2f-ieee.m4: New file.
21061         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
21062         whether log2f works with a minus zero argument. Replace it if not.
21063         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
21064         (Depends-on): Add log2-ieee.
21065         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
21066         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
21068         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
21069         * m4/log2-ieee.m4: New file.
21070         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
21071         whether log2 works with a minus zero argument. Replace it if not.
21072         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
21073         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
21074         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
21076         Tests for module 'log2l-ieee'.
21077         * modules/log2l-ieee-tests: New file.
21078         * tests/test-log2l-ieee.c: New file.
21080         New module 'log2l-ieee'.
21081         * modules/log2l-ieee: New file.
21083         Tests for module 'log2-ieee'.
21084         * modules/log2-ieee-tests: New file.
21085         * tests/test-log2-ieee.c: New file.
21087         New module 'log2-ieee'.
21088         * modules/log2-ieee: New file.
21090         Tests for module 'log2f-ieee'.
21091         * modules/log2f-ieee-tests: New file.
21092         * tests/test-log2f-ieee.c: New file.
21093         * tests/test-log2-ieee.h: New file.
21095         New module 'log2f-ieee'.
21096         * modules/log2f-ieee: New file.
21098 2012-03-11  Bruno Haible  <bruno@clisp.org>
21100         Tests for module 'log2l'.
21101         * modules/log2l-tests: New file.
21102         * tests/test-log2l.c: New file.
21104         New module 'log2l'.
21105         * lib/math.in.h (log2l): New declaration.
21106         * lib/log2l.c: New file.
21107         * m4/log2l.m4: New file.
21108         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
21109         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
21110         REPLACE_LOG2L.
21111         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
21112         REPLACE_LOG2L.
21113         * modules/log2l: New file.
21114         * tests/test-math-c++.cc: Check the declaration of log2l.
21115         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
21116         and OSF/1 problems.
21118 2012-03-11  Bruno Haible  <bruno@clisp.org>
21120         Tests for module 'log2f'.
21121         * modules/log2f-tests: New file.
21122         * tests/test-log2f.c: New file.
21124         New module 'log2f'.
21125         * lib/math.in.h (log2f): New declaration.
21126         * lib/log2f.c: New file.
21127         * m4/log2f.m4: New file.
21128         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
21129         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
21130         REPLACE_LOG2F.
21131         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
21132         REPLACE_LOG2F.
21133         * modules/log2f: New file.
21134         * tests/test-math-c++.cc: Check the declaration of log2f.
21135         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
21136         and OSF/1 and Cygwin problems.
21138 2012-03-11  Bruno Haible  <bruno@clisp.org>
21140         Tests for module 'log2'.
21141         * modules/log2-tests: New file.
21142         * tests/test-log2.c: New file.
21143         * tests/test-log2.h: New file.
21145         New module 'log2'.
21146         * lib/math.in.h (log2): New declaration.
21147         * lib/log2.c: New file.
21148         * m4/log2.m4: New file.
21149         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
21150         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
21151         REPLACE_LOG2.
21152         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
21153         REPLACE_LOG2.
21154         * modules/log2: New file.
21155         * tests/test-math-c++.cc: Check the declaration of log2.
21156         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
21157         and OSF/1 and Cygwin problems.
21159 2012-03-11  Bruno Haible  <bruno@clisp.org>
21161         exp2* tests: More tests.
21162         * tests/test-exp2.h (test_function): Test all integral arguments that
21163         don't need to overflow or denormalized numbers.
21164         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
21165         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
21166         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
21168 2012-03-10  Bruno Haible  <bruno@clisp.org>
21170         log1pl-ieee: Work around test failure on AIX 7.1.
21171         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
21173         log1pl-ieee: Work around test failure on IRIX 6.5.
21174         * m4/log1pl-ieee.m4: New file.
21175         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
21176         test whether log1pl works with a minus zero argument. Replace it if
21177         not.
21178         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
21179         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
21180         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
21181         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
21182         (Depends-on): Update conditions.
21183         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
21184         m4/signbit.m4.
21185         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
21186         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
21188         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
21189         * m4/log1pf-ieee.m4: New file.
21190         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
21191         test whether log1pf works with a minus zero argument. Replace it if
21192         not.
21193         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
21194         m4/signbit.m4.
21195         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
21196         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
21198         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
21199         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
21200         (configure.ac): Require gl_FUNC_LOG1PF.
21202         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
21203         * m4/log1p-ieee.m4: New file.
21204         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
21205         whether log1p works with a minus zero argument. Replace it if not.
21206         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
21207         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
21208         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
21209         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
21210         (Depends-on): Update conditions.
21211         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
21212         m4/signbit.m4.
21213         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
21214         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
21216         Tests for module 'log1pl-ieee'.
21217         * modules/log1pl-ieee-tests: New file.
21218         * tests/test-log1pl-ieee.c: New file.
21220         New module 'log1pl-ieee'.
21221         * modules/log1pl-ieee: New file.
21223         Tests for module 'log1p-ieee'.
21224         * modules/log1p-ieee-tests: New file.
21225         * tests/test-log1p-ieee.c: New file.
21227         New module 'log1p-ieee'.
21228         * modules/log1p-ieee: New file.
21230         Tests for module 'log1pf-ieee'.
21231         * modules/log1pf-ieee-tests: New file.
21232         * tests/test-log1pf-ieee.c: New file.
21233         * tests/test-log1p-ieee.h: New file.
21235         New module 'log1pf-ieee'.
21236         * modules/log1pf-ieee: New file.
21238 2012-03-10  Bruno Haible  <bruno@clisp.org>
21240         Tests for module 'log1pl'.
21241         * modules/log1pl-tests: New file.
21242         * tests/test-log1pl.c: New file.
21244         New module 'log1pl'.
21245         * lib/math.in.h (log1pl): New declaration.
21246         * lib/log1pl.c: New file.
21247         * m4/log1pl.m4: New file.
21248         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
21249         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
21250         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
21251         * modules/log1pl: New file.
21252         * tests/test-math-c++.cc: Check the declaration of log1pl.
21253         * doc/posix-functions/log1pl.texi: Mention the new module.
21255 2012-03-10  Bruno Haible  <bruno@clisp.org>
21257         Tests for module 'log1pf'.
21258         * modules/log1pf-tests: New file.
21259         * tests/test-log1pf.c: New file.
21261         New module 'log1pf'.
21262         * lib/math.in.h (log1pf): New declaration.
21263         * lib/log1pf.c: New file.
21264         * m4/log1pf.m4: New file.
21265         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
21266         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
21267         REPLACE_LOG1PF.
21268         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
21269         REPLACE_LOG1PF.
21270         * modules/log1pf: New file.
21271         * tests/test-math-c++.cc: Check the declaration of log1pf.
21272         * doc/posix-functions/log1pf.texi: Mention the new module.
21274 2012-03-10  Bruno Haible  <bruno@clisp.org>
21276         log1p tests: More tests.
21277         * tests/test-log1p.h: New file.
21278         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
21279         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
21280         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
21281         (main): Invoke test_function.
21283         log1p: Provide replacement for Minix and MSVC.
21284         * lib/math.in.h (log1p): New declaration.
21285         * lib/log1p.c: New file.
21286         * m4/log1p.m4: New file.
21287         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
21288         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
21289         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
21290         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
21291         (Depends-on): Add math, isnand, log, round.
21292         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
21293         HAVE_LOG1P is 0.
21294         * tests/test-math-c++.cc: Check the declaration of log1p.
21295         * doc/posix-functions/log1p.texi: Mention the replacement.
21297 2012-03-10  Bruno Haible  <bruno@clisp.org>
21299         math tests: Small simplification.
21300         * tests/test-exp.h (test_function): Use the same err_bound for
21301         'double' on platforms with sizeof (long double) == sizeof (double)
21302         than on platforms with sizeof (long double) > sizeof (double).
21303         * tests/test-exp2.h (test_function): Likewise.
21304         * tests/test-expm1.h (test_function): Likewise.
21305         * tests/test-log.h (test_function): Likewise.
21307 2012-03-10  Bruno Haible  <bruno@clisp.org>
21309         Fix some comments.
21310         * lib/expl.c: Fix an ambiguous comment.
21311         * lib/expm1.c: Likewise.
21312         * lib/expm1l.c: Likewise.
21313         * lib/exp2.c: Likewise.
21314         * lib/exp2l.c: Likewise.
21316 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
21318         regex: allow inclusion of <regex.h> before <limits.h>
21319         Without this patch, portable programs had to include <limits.h> before
21320         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
21321         I ran into this problem with a test version of GNU grep on Solaris 8.
21322         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
21323         This is done conditionally so that this change can be merged
21324         back to glibc.
21325         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
21326         using the included regex.
21328         fts: depend on fdopendir
21329         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
21330         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
21331         problem was introduced when fdopendir was split out.
21333 2012-03-10  Bruno Haible  <bruno@clisp.org>
21335         Remove unused variables.
21336         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
21337         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
21339 2012-03-10  Bruno Haible  <bruno@clisp.org>
21341         isnanf-nolibm: Fix last commit.
21342         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
21344         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
21345         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
21347 2012-03-10  Bruno Haible  <bruno@clisp.org>
21349         logf-ieee: Work around test failure on NetBSD 5.1.
21350         * m4/logf-ieee.m4: New file.
21351         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
21352         whether logf works with a negative argument. Replace it if not.
21353         * lib/logf.c (logf): For negative arguments, return NaN.
21354         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
21355         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
21356         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
21358         logf-ieee: Work around test failure on Solaris 9.
21359         * modules/logf-ieee (Depends-on): Add log-ieee.
21360         (configure.ac): Require gl_FUNC_LOGF.
21362         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
21363         * m4/log-ieee.m4: New file.
21364         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
21365         log works with a negative argument. Replace it if not.
21366         * lib/log.c (log): For negative arguments, return NaN.
21367         * modules/log-ieee (Files): Add m4/log-ieee.m4.
21368         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
21369         * doc/posix-functions/log.texi: Mention the log-ieee module.
21371         Tests for module 'logl-ieee'.
21372         * modules/logl-ieee-tests: New file.
21373         * tests/test-logl-ieee.c: New file.
21375         New module 'logl-ieee'.
21376         * modules/logl-ieee: New file.
21378         Tests for module 'log-ieee'.
21379         * modules/log-ieee-tests: New file.
21380         * tests/test-log-ieee.c: New file.
21382         New module 'log-ieee'.
21383         * modules/log-ieee: New file.
21385         Tests for module 'logf-ieee'.
21386         * modules/logf-ieee-tests: New file.
21387         * tests/test-logf-ieee.c: New file.
21388         * tests/test-log-ieee.h: New file.
21390         New module 'logf-ieee'.
21391         * modules/logf-ieee: New file.
21393 2012-03-10  Bruno Haible  <bruno@clisp.org>
21395         log: Fix bug introduced on 2012-03-09.
21396         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
21398 2012-03-10  Pádraig Brady  <P@draigBrady.com>
21400         timer-time: link explicitly with pthreads on glibc
21401         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
21402         to support static linking, when newer glibc is
21403         detected, as that contains pthread emulation of
21404         POSIX timer functions where required.
21405         * modules/timer-time: Depend on threadlib to
21406         pull in the appropriate library to link.
21408 2012-03-10  Bruno Haible  <bruno@clisp.org>
21410         log* tests: More tests.
21411         * tests/test-log.h: New file.
21412         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
21413         (main): Invoke test_function.
21414         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
21415         (main): Invoke test_function.
21416         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
21417         (main): Invoke test_function.
21418         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
21419         tests/randomd.c.
21420         (Makefile.am): Add randomd.c to test_log_SOURCES.
21421         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
21422         tests/randomf.c.
21423         (Makefile.am): Add randomf.c to test_logf_SOURCES.
21424         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
21425         tests/randoml.c.
21426         (Depends-on): Add 'float'.
21427         (Makefile.am): Add randoml.c to test_logl_SOURCES.
21429 2012-03-09  Bruno Haible  <bruno@clisp.org>
21431         logl: Work around OSF/1 5.1 bug.
21432         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
21433         * lib/logl.c (logl): If logl exists, use it and provide just the
21434         workaround.
21435         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
21436         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
21437         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
21438         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
21439         * modules/logl (configure.ac): Consider REPLACE_LOGL.
21440         (Depends-on): Update conditions.
21441         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
21443 2012-03-09  Bruno Haible  <bruno@clisp.org>
21445         logf: Work around OSF/1 5.1 bug.
21446         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
21447         * lib/logf.c (logf): If logf exists, use it and provide just the
21448         workaround.
21449         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
21450         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
21451         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
21452         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
21453         * modules/logf (configure.ac): Consider REPLACE_LOGF.
21454         (Depends-on): Update conditions.
21455         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
21457 2012-03-09  Bruno Haible  <bruno@clisp.org>
21459         log: Work around OSF/1 5.1 bug.
21460         * lib/math.in.h (log): New declaration.
21461         * lib/log.c: New file.
21462         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
21463         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
21464         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
21465         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
21466         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
21467         * modules/log (Files): Add lib/log.c.
21468         (Depends-on): Add math.
21469         (configure.ac): If REPLACE_LOG is 1, compile an override.
21470         * tests/test-math-c++.cc: Check the declaration of log.
21471         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
21473 2012-03-09  Jim Meyering  <meyering@redhat.com>
21475         readtokens.c: adjust wording in a comment
21476         * lib/readtokens.c: Insert omitted "that" in a comment.
21478 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
21480         modechange: add notations +40, 00440, etc.
21481         * lib/modechange.c (mode_compile): Support new notations
21482         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
21484 2012-03-08  Bruno Haible  <bruno@clisp.org>
21486         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
21487         * m4/exp2l-ieee.m4: New file.
21488         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
21489         test whether exp2l works with a NaN argument and with a negative
21490         infinity argument. Replace it if not.
21491         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
21492         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
21493         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
21494         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
21495         (Depends-on): Update conditions.
21496         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
21497         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
21498         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
21500         Tests for module 'exp2l-ieee'.
21501         * modules/exp2l-ieee-tests: New file.
21502         * tests/test-exp2l-ieee.c: New file.
21504         New module 'exp2l-ieee'.
21505         * modules/exp2l-ieee: New file.
21507         Tests for module 'exp2-ieee'.
21508         * modules/exp2-ieee-tests: New file.
21509         * tests/test-exp2-ieee.c: New file.
21511         New module 'exp2-ieee'.
21512         * modules/exp2-ieee: New file.
21514         Tests for module 'exp2f-ieee'.
21515         * modules/exp2f-ieee-tests: New file.
21516         * tests/test-exp2f-ieee.c: New file.
21517         * tests/test-exp2-ieee.h: New file.
21519         New module 'exp2f-ieee'.
21520         * modules/exp2f-ieee: New file.
21522 2012-03-08  Bruno Haible  <bruno@clisp.org>
21524         Tests for module 'exp2l'.
21525         * modules/exp2l-tests: New file.
21526         * tests/test-exp2l.c: New file.
21528         New module 'exp2l'.
21529         * lib/math.in.h (exp2l): New declaration.
21530         * lib/exp2l.c: New file.
21531         * lib/expl-table.c: New file, extracted from lib/expl.c.
21532         * lib/expl.c (gl_expl_table): New declaration.
21533         (expl): Remove expl_table. Update reference.
21534         * m4/exp2l.m4: New file.
21535         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
21536         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
21537         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
21538         * modules/exp2l: New file.
21539         * modules/expl (Files): Add lib/expl-table.c.
21540         (configure.ac): Compile also expl-table.c.
21541         * tests/test-math-c++.cc: Check the declaration of exp2l.
21542         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
21543         problem.
21545 2012-03-08  Bruno Haible  <bruno@clisp.org>
21547         Tests for module 'exp2f'.
21548         * modules/exp2f-tests: New file.
21549         * tests/test-exp2f.c: New file.
21551         New module 'exp2f'.
21552         * lib/math.in.h (exp2f): New declaration.
21553         * lib/exp2f.c: New file.
21554         * m4/exp2f.m4: New file.
21555         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
21556         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
21557         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
21558         * modules/exp2f: New file.
21559         * tests/test-math-c++.cc: Check the declaration of exp2f.
21560         * doc/posix-functions/exp2f.texi: Mention the new module and the
21561         IRIX problem.
21563 2012-03-08  Bruno Haible  <bruno@clisp.org>
21565         Tests for module 'exp2'.
21566         * modules/exp2-tests: New file.
21567         * tests/test-exp2.c: New file.
21568         * tests/test-exp2.h: New file.
21570         New module 'exp2'.
21571         * lib/math.in.h (exp2): New declaration.
21572         * lib/exp2.c: New file.
21573         * m4/exp2.m4: New file.
21574         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
21575         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
21576         REPLACE_EXP2.
21577         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
21578         REPLACE_EXP2.
21579         * modules/exp2: New file.
21580         * tests/test-math-c++.cc: Check the declaration of exp2.
21581         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
21582         and OpenBSD problems.
21584 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
21586         savedir: fix comment typo
21587         * lib/savedir.c (savedirstream): Fix typo in comment.
21589 2012-03-08  Bruno Haible  <bruno@clisp.org>
21591         test-readtokens.c: use const; remove unwarranted cast
21592         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
21594 2012-03-08  Bruno Haible  <bruno@clisp.org>
21596         fmal: Avoid compilation error on AIX.
21597         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
21598         AIX 5.2..7.1.
21600 2012-03-08  Bruno Haible  <bruno@clisp.org>
21602         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
21603         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
21604         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
21605         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
21606         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
21607         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
21608         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
21610 2012-03-08  Bruno Haible  <bruno@clisp.org>
21612         remainderf: Override buggy system function on IRIX 6.5.
21613         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
21614         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
21615         when it exists.
21616         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
21618 2012-03-08  Jim Meyering  <meyering@redhat.com>
21620         test-readtokens.c: avoid const-related compilation warnings
21621         * tests/test-readtokens.c: Avoid const-related compilation warnings.
21623 2012-03-07  Jim Meyering  <meyering@redhat.com>
21624             Bruno Haible  <bruno@clisp.org>
21626         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
21627         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
21628         tests/randomd.c.
21629         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
21630         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
21631         tests/randoml.c.
21632         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
21634 2012-03-07  Bruno Haible  <bruno@clisp.org>
21636         expm1l: Avoid compilation error on AIX.
21637         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
21638         AIX 5.2..7.1.
21640 2012-03-07  Bruno Haible  <bruno@clisp.org>
21642         expm1l: Don't override undeclared system function on IRIX 6.5.
21643         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
21644         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
21645         it exists. Set HAVE_DECL_EXPM1L.
21646         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
21647         HAVE_EXPM1L.
21648         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
21649         HAVE_EXPM1L.
21650         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
21652 2012-03-07  Bruno Haible  <bruno@clisp.org>
21654         remainderl: Don't override undeclared system function on IRIX 6.5.
21655         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
21656         HAVE_REMAINDERL.
21657         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
21658         declared when it exists. Set HAVE_DECL_REMAINDERL.
21659         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
21660         not HAVE_REMAINDERL.
21661         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
21662         HAVE_REMAINDERL.
21663         * doc/posix-functions/remainderl.texi: Mention missing declaration
21664         problem.
21666 2012-03-07  Bruno Haible  <bruno@clisp.org>
21668         rintf: Don't override undeclared system function on IRIX 6.5.
21669         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
21670         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
21671         exists. Set HAVE_DECL_RINTF.
21672         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
21673         HAVE_RINTF.
21674         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
21675         HAVE_RINTF.
21676         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
21678 2012-03-07  Bruno Haible  <bruno@clisp.org>
21680         roundl: Avoid compilation error on AIX.
21681         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
21682         AIX 5.2..7.1.
21684 2012-03-07  Bruno Haible  <bruno@clisp.org>
21686         roundl: Don't override undeclared system function on IRIX 6.5.
21687         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
21688         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
21689         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
21690         * modules/roundl (configure.ac): For replacement code, test
21691         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
21692         (Depends-on): Update conditions.
21693         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
21695 2012-03-07  Bruno Haible  <bruno@clisp.org>
21697         roundf: Don't override undeclared system function on IRIX 6.5.
21698         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
21699         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
21700         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
21701         * modules/roundf (configure.ac): For replacement code, test
21702         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
21703         (Depends-on): Update conditions.
21704         * modules/roundf-ieee (Depends-on): Update conditions.
21705         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
21707 2012-03-07  Bruno Haible  <bruno@clisp.org>
21709         round: Don't override undeclared system function on IRIX 6.5.
21710         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
21711         argument.
21712         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
21713         also when it is not declared. Set HAVE_ROUND. For replacement code,
21714         test HAVE_ROUND, not HAVE_DECL_ROUND.
21715         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
21716         not HAVE_DECL_ROUND.
21717         (Depends-on): Update conditions.
21718         * modules/round-ieee (Depends-on): Update conditions.
21719         * doc/posix-functions/round.texi: Mention the IRIX problem.
21721 2012-03-07  Bruno Haible  <bruno@clisp.org>
21723         copysignf: Don't override undeclared system function on IRIX 6.5.
21724         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
21725         HAVE_COPYSIGNF.
21726         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
21727         declared when it exists. Set HAVE_DECL_COPYSIGNF.
21728         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
21729         not HAVE_COPYSIGNF.
21730         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
21731         HAVE_COPYSIGNF.
21732         * doc/posix-functions/copysignf.texi: Mention missing declaration
21733         problem.
21735 2012-03-07  Jim Meyering  <meyering@redhat.com>
21737         readtokens: add tests
21738         * modules/readtokens-tests: New file.
21739         * tests/test-readtokens.c: New file.
21741 2012-03-07  Jim Meyering  <meyering@redhat.com>
21743         quotearg: the module must now include quote.h
21744         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
21745         So must the module.
21746         * modules/quotearg (Files): Add quote.h.
21748 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
21750         readtokens: avoid core dumps with unusual calling patterns
21751         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
21752         * lib/readtokens.c: Include limits.h.
21753         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
21754         (readtoken): Don't cache the delimiters; the cache code was buggy
21755         if !delim && saved_delim, or if the new n_delim differs from the old.
21756         Also, it wasn't thread-safe.
21758 2012-03-07  Bruno Haible  <bruno@clisp.org>
21760         quote: Adhere to common module description layout.
21761         * modules/quote (Makefile.am): Add back empty section.
21763 2012-03-06  Akim Demaille  <demaille@gostai.com>
21765         quote: fuse into quotearg
21766         This patch is made for the benefit of Bison.
21767         quote does not leave the choice of the quoting style to the user.
21768         quoting_style provides poor customizability, yet quoting_options,
21769         which is very rich, is hidden inside quotearg.c.  So in order to
21770         allow quote customization, move its implementation to quotearg.c.
21771         * lib/quote.c: Remove.
21772         * modules/quote: Adjust.
21773         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
21774         warning: provide all the members of literal structs.
21775         (quote_quoting_options): New.
21776         (quote, quote_n): Import implementation from quote.c.
21777         * lib/quote.h: Import the comments from quote.c.
21778         (quote_quoting_options): New.
21780 2012-03-06  Bruno Haible  <bruno@clisp.org>
21782         Tests for module 'expm1l-ieee'.
21783         * modules/expm1l-ieee-tests: New file.
21784         * tests/test-expm1l-ieee.c: New file.
21786         New module 'expm1l-ieee'.
21787         * modules/expm1l-ieee: New file.
21789         Tests for module 'expm1f-ieee'.
21790         * modules/expm1f-ieee-tests: New file.
21791         * tests/test-expm1f-ieee.c: New file.
21793         New module 'expm1f-ieee'.
21794         * modules/expm1f-ieee: New file.
21796         Tests for module 'expm1-ieee'.
21797         * modules/expm1-ieee-tests: New file.
21798         * tests/test-expm1-ieee.c: New file.
21799         * tests/test-expm1-ieee.h: New file.
21801         New module 'expm1-ieee'.
21802         * modules/expm1-ieee: New file.
21803         * m4/expm1-ieee.m4: New file.
21804         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
21805         whether expm1 works with a minus zero argument. Replace it if not.
21806         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
21807         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
21808         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
21809         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
21810         (Depends-on): Update conditions.
21811         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
21812         AIX problem.
21814 2012-03-06  Bruno Haible  <bruno@clisp.org>
21816         Work around expm1f bug on IRIX 6.5.
21817         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
21818         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
21819         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
21820         not work.
21821         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
21822         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
21823         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
21824         (Depends-on): Update conditions.
21825         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
21827 2012-03-06  Bruno Haible  <bruno@clisp.org>
21829         Tests for module 'expm1l'.
21830         * modules/expm1l-tests: New file.
21831         * tests/test-expm1l.c: New file.
21833         New module 'expm1l'.
21834         * lib/math.in.h (expm1l): New declaration.
21835         * lib/expm1l.c: New file.
21836         * m4/expm1l.m4: New file.
21837         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
21838         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
21839         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
21840         * modules/expm1l: New file.
21841         * tests/test-math-c++.cc: Check the declaration of expm1l.
21842         * doc/posix-functions/expm1l.texi: Mention the new module.
21844 2012-03-06  Bruno Haible  <bruno@clisp.org>
21846         Tests for module 'expm1f'.
21847         * modules/expm1f-tests: New file.
21848         * tests/test-expm1f.c: New file.
21850         New module 'expm1f'.
21851         * lib/math.in.h (expm1f): New declaration.
21852         * lib/expm1f.c: New file.
21853         * m4/expm1f.m4: New file.
21854         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
21855         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
21856         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
21857         * modules/expm1f: New file.
21858         * tests/test-math-c++.cc: Check the declaration of expm1f.
21859         * doc/posix-functions/expm1f.texi: Mention the new module.
21861 2012-03-06  Bruno Haible  <bruno@clisp.org>
21863         Tests for module 'expm1'.
21864         * modules/expm1-tests: New file.
21865         * tests/test-expm1.c: New file.
21866         * tests/test-expm1.h: New file.
21868         New module 'expm1'.
21869         * lib/math.in.h (expm1): New declaration.
21870         * lib/expm1.c: New file.
21871         * m4/expm1.m4: New file.
21872         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
21873         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
21874         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
21875         * modules/expm1: New file.
21876         * tests/test-math-c++.cc: Check the declaration of expm1.
21877         * doc/posix-functions/expm1.texi: Mention the new module.
21879 2012-03-06  Bruno Haible  <bruno@clisp.org>
21881         math: Ensure declarations of math functions.
21882         * modules/acosf (Depends-on): Add 'extensions'.
21883         * modules/asinf (Depends-on): Likewise.
21884         * modules/atan2f (Depends-on): Likewise.
21885         * modules/atanf (Depends-on): Likewise.
21886         * modules/cbrt (Depends-on): Likewise.
21887         * modules/cbrtf (Depends-on): Likewise.
21888         * modules/cbrtl (Depends-on): Likewise.
21889         * modules/copysignf (Depends-on): Likewise.
21890         * modules/copysignl (Depends-on): Likewise.
21891         * modules/cosf (Depends-on): Likewise.
21892         * modules/coshf (Depends-on): Likewise.
21893         * modules/expf (Depends-on): Likewise.
21894         * modules/fabsf (Depends-on): Likewise.
21895         * modules/fabsl (Depends-on): Likewise.
21896         * modules/fmaf (Depends-on): Likewise.
21897         * modules/fmal (Depends-on): Likewise.
21898         * modules/fmodf (Depends-on): Likewise.
21899         * modules/fmodl (Depends-on): Likewise.
21900         * modules/frexpf (Depends-on): Likewise.
21901         * modules/frexpl (Depends-on): Likewise.
21902         * modules/hypot (Depends-on): Likewise.
21903         * modules/hypotf (Depends-on): Likewise.
21904         * modules/hypotl (Depends-on): Likewise.
21905         * modules/ldexpf (Depends-on): Likewise.
21906         * modules/ldexpl (Depends-on): Likewise.
21907         * modules/log10f (Depends-on): Likewise.
21908         * modules/log10l (Depends-on): Likewise.
21909         * modules/log1p (Depends-on): Likewise.
21910         * modules/logb (Depends-on): Likewise.
21911         * modules/logf (Depends-on): Likewise.
21912         * modules/modff (Depends-on): Likewise.
21913         * modules/modfl (Depends-on): Likewise.
21914         * modules/powf (Depends-on): Likewise.
21915         * modules/remainderf (Depends-on): Likewise.
21916         * modules/remainderl (Depends-on): Likewise.
21917         * modules/rintf (Depends-on): Likewise.
21918         * modules/rintl (Depends-on): Likewise.
21919         * modules/sinf (Depends-on): Likewise.
21920         * modules/sinhf (Depends-on): Likewise.
21921         * modules/sqrtf (Depends-on): Likewise.
21922         * modules/tanf (Depends-on): Likewise.
21923         * modules/tanhf (Depends-on): Likewise.
21924         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
21925         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
21926         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
21927         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
21928         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
21929         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
21930         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
21931         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
21932         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
21933         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
21934         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
21935         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
21936         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
21937         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
21938         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
21939         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
21940         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
21941         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
21942         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
21943         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
21944         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
21945         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
21946         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
21947         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
21948         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
21949         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
21950         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
21951         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
21952         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
21953         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
21954         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
21955         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
21956         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
21957         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
21958         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
21959         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
21960         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
21961         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
21962         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
21963         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
21964         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
21966 2012-03-06  Bruno Haible  <bruno@clisp.org>
21968         math: Update module names in warnings.
21969         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
21970         tanl): Use specific module name in warn-on-use warning.
21972 2012-03-06  Bruno Haible  <bruno@clisp.org>
21974         expl: Simplify computation.
21975         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
21977 2012-03-05  Bruno Haible  <bruno@clisp.org>
21979         exp* tests: More tests.
21980         * tests/test-exp.h: New file.
21981         * tests/test-exp.c: Include <float.h> and test-exp.h.
21982         (main): Invoke test_function.
21983         * tests/test-expf.c: Include <float.h> and test-exp.h.
21984         (main): Invoke test_function.
21985         * tests/test-expl.c: Include <float.h> and test-exp.h.
21986         (main): Invoke test_function.
21987         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
21988         (Makefile.am): Add randomd.c to test_exp_SOURCES.
21989         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
21990         (Makefile.am): Add randomf.c to test_expf_SOURCES.
21991         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
21992         (Depends-on): Add 'float'.
21993         (Makefile.am): Add randoml.c to test_expl_SOURCES.
21995         expl: Fix precision of computed result.
21996         * lib/expl.c: Completely rewritten.
21997         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
21998         (Maintainer): Add me.
21999         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
22001 2012-03-05  Bruno Haible  <bruno@clisp.org>
22003         cbrt* tests: More tests.
22004         * tests/test-cbrt.h: New file.
22005         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
22006         (main): Invoke test_function.
22007         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
22008         (main): Invoke test_function.
22009         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
22010         (main): Invoke test_function.
22011         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
22012         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
22013         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
22014         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
22015         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
22016         (Depends-on): Add 'float'.
22017         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
22019 2012-03-05  Bruno Haible  <bruno@clisp.org>
22021         hypot* tests: More tests.
22022         * tests/test-hypot.h: New file, partially extracted from
22023         tests/test-hypotl.c.
22024         * tests/test-hypot.c: Include test-hypot.h.
22025         (main): Invoke test_function.
22026         * tests/test-hypotf.c: Include test-hypot.h.
22027         (main): Invoke test_function.
22028         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
22029         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
22030         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
22031         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
22032         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
22033         tests/randomf.c.
22034         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
22035         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
22036         tests/randoml.c.
22037         (Depends-on): Add 'fpucw', 'float'.
22038         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
22040 2012-03-05  Bruno Haible  <bruno@clisp.org>
22042         fpucw: Doc about FreeBSD.
22043         * lib/fpucw.h: Mention FreeBSD in comments.
22045 2012-03-04  Bruno Haible  <bruno@clisp.org>
22047         sqrt* tests: More tests.
22048         * tests/test-sqrt.h: New file.
22049         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
22050         (main): Invoke test_function.
22051         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
22052         (main): Invoke test_function.
22053         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
22054         (main): Invoke test_function.
22055         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
22056         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
22057         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
22058         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
22059         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
22060         (Depends-on): Add 'float'.
22061         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
22063 2012-03-04  Bruno Haible  <bruno@clisp.org>
22065         remainder* tests: More tests.
22066         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
22067         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
22068         (main): Invoke test_function.
22069         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
22070         (main): Invoke test_function.
22071         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
22072         (main): Invoke test_function.
22073         * modules/remainder-tests (Files): Add tests/test-remainder.h,
22074         tests/randomd.c.
22075         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
22076         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
22077         tests/randomf.c.
22078         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
22079         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
22080         tests/randoml.c.
22081         (Depends-on): Add 'float'.
22082         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
22084 2012-03-04  Bruno Haible  <bruno@clisp.org>
22086         remainder, remainderf, remainderl: Fix computation for large quotients.
22087         * lib/remainder.c: Completely rewritten.
22088         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
22089         USE_FLOAT.
22090         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
22091         USE_LONG_DOUBLE.
22092         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
22093         isnand, isinf. Remove round, fma.
22094         * modules/remainderf (Files): Add lib/remainder.c.
22095         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
22096         Remove roundf, fmaf.
22097         * modules/remainderl (Files): Add lib/remainder.c.
22098         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
22099         isinf. Remove roundl, fmal.
22100         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
22101         REMAINDER_LIBM.
22102         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
22103         REMAINDERF_LIBM.
22104         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
22105         REMAINDERL_LIBM.
22107 2012-03-04  Bruno Haible  <bruno@clisp.org>
22109         fmod* tests: More tests.
22110         * tests/test-fmod.h (my_ldexp): New function.
22111         (test_function): Reduce amount of random numbers to test. Add tests
22112         of very large quotients x / y.
22113         * tests/test-fmod.c (MAX_EXP): New macro.
22114         * tests/test-fmodf.c (MAX_EXP): Likewise.
22115         * tests/test-fmodl.c (MAX_EXP): Likewise.
22117 2012-03-04  Bruno Haible  <bruno@clisp.org>
22119         fmod, fmodl: Fix computation for large quotients x / y.
22120         * lib/fmod.c: Completely rewritten.
22121         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
22122         USE_LONG_DOUBLE.
22123         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
22124         isnand. Remove fma.
22125         * modules/fmodl (Files): Add lib/fmod.c.
22126         (Depends-on): Add float, isfinite, signbit, fabsl,
22127         frexpl, ldexpl, isnanl. Remove fma.
22128         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
22129         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
22131 2012-03-03  Bruno Haible  <bruno@clisp.org>
22133         fmod* tests: More tests.
22134         * tests/test-fmod.h: New file.
22135         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
22136         (main): Invoke test_function.
22137         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
22138         (main): Invoke test_function.
22139         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
22140         (main): Invoke test_function.
22141         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
22142         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
22143         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
22144         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
22145         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
22146         (Depends-on): Add 'float'.
22147         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
22149 2012-03-03  Bruno Haible  <bruno@clisp.org>
22151         rint* tests: More tests.
22152         * tests/test-rint.h: New file, partially extracted from
22153         tests/test-rintl.c.
22154         * tests/test-rint.c: Include test-rint.h.
22155         (main): Invoke test_function.
22156         * tests/test-rintf.c: Include test-rint.h.
22157         (main): Invoke test_function.
22158         * tests/test-rintl.c: Include test-rint.h.
22159         (main): Invoke test_function.
22160         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
22161         (Makefile.am): Add randomd.c to test_rint_SOURCES.
22162         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
22163         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
22164         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
22165         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
22167 2012-03-03  Bruno Haible  <bruno@clisp.org>
22169         modf* tests: More tests.
22170         * tests/test-modf.h: New file.
22171         * tests/test-modf.c: Include <float.h> and test-modf.h.
22172         (main): Invoke test_function.
22173         * tests/test-modff.c: Include <float.h> and test-modf.h.
22174         (main): Invoke test_function.
22175         * tests/test-modfl.c: Include <float.h> and test-modf.h.
22176         (main): Invoke test_function.
22177         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
22178         (Makefile.am): Add randomd.c to test_modf_SOURCES.
22179         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
22180         (Makefile.am): Add randomf.c to test_modff_SOURCES.
22181         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
22182         (Depends-on): Add 'float'.
22183         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
22185 2012-03-03  Bruno Haible  <bruno@clisp.org>
22187         fabs* tests: More tests.
22188         * tests/test-fabs.h: New file, partially extracted from
22189         tests/test-fabsl.c.
22190         * tests/test-fabs.c (RANDOM): New macro.
22191         * tests/test-fabsf.c (RANDOM): New macro.
22192         * tests/test-fabsl.c (RANDOM): New macro.
22193         * modules/fabs-tests (Files): Add tests/randomd.c.
22194         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
22195         * modules/fabsf-tests (Files): Add tests/randomf.c.
22196         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
22197         * modules/fabsl-tests (Files): Add tests/randoml.c.
22198         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
22200 2012-03-03  Bruno Haible  <bruno@clisp.org>
22202         ldexp* tests: More tests.
22203         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
22204         * tests/test-ldexp.c (RANDOM): New macro.
22205         * tests/test-ldexpf.c (RANDOM): New macro.
22206         * tests/test-ldexpl.c (RANDOM): New macro.
22207         * modules/ldexp-tests (Files): Add tests/randomd.c.
22208         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
22209         * modules/ldexpf-tests (Files): Add tests/randomf.c.
22210         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
22211         * modules/ldexpl-tests (Files): Add tests/randoml.c.
22212         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
22214 2012-03-03  Bruno Haible  <bruno@clisp.org>
22216         frexp* tests: More tests.
22217         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
22218         * tests/test-frexp.c (RANDOM): New macro.
22219         * tests/test-frexpf.c (RANDOM): New macro.
22220         * tests/test-frexpl.c (RANDOM): New macro.
22221         * modules/frexp-tests (Files): Add tests/randomd.c.
22222         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
22223         * modules/frexpf-tests (Files): Add tests/randomf.c.
22224         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
22225         * modules/frexpl-tests (Files): Add tests/randoml.c.
22226         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
22228 2012-03-03  Bruno Haible  <bruno@clisp.org>
22230         Support for pseudo-random numbers in tests.
22231         * tests/randomf.c: New file.
22232         * tests/randomd.c: New file.
22233         * tests/randoml.c: New file.
22234         * tests/macros.h (randomf, randomd, randoml): New declarations.
22236 2012-03-03  Bruno Haible  <bruno@clisp.org>
22238         frexp* tests: Refactor.
22239         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
22240         * tests/test-frexp.c: Include and use it.
22241         * tests/test-frexpf.c: Likewise.
22242         * tests/test-frexpl.c: Likewise.
22243         * modules/frexp-tests (Files): Add tests/test-frexp.h.
22244         * modules/frexpf-tests (Files): Likewise.
22245         * modules/frexpl-tests (Files): Likewise.
22247 2012-03-02  Jim Meyering  <meyering@redhat.com>
22249         maint: don't specify XZ_OPT=-9ev in dist-related rule
22250         Using xz's -9 option is warranted only if you have a very large
22251         tarball (see xz's documentation for the sizes vs. presets), and
22252         requires 64MiB of memory at decompression time.
22253         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
22254         Automake's default of just "-e" is fine.  Override on a
22255         per-package basis by setting XZ_OPT e.g., in cfg.mk.
22257 2012-03-01  Eric Blake  <eblake@redhat.com>
22259         maint.mk: allow announcement for non-gnulib project
22260         * maint.mk (announcement): Skip gnulib version if not used.
22262 2012-03-01  Jim Meyering  <meyering@redhat.com>
22264         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
22265         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
22266         envvar settings cannot interfere.  Otherwise, setting envvars like
22267         prohibit=foo require=bar, etc. would cause spurious test failures.
22269 2012-03-01  Eric Blake  <eblake@redhat.com>
22271         maint.mk: add per-line exclusions to prohibitions
22272         * maint.mk (_sc_search_regexp): Add $exclude parameter.
22273         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
22274         (sc_const_long_option): Use it.
22276 2012-03-01  Bruno Haible  <bruno@clisp.org>
22278         Tests for module 'expl-ieee'.
22279         * modules/expl-ieee-tests: New file.
22280         * tests/test-expl-ieee.c: New file.
22282         New module 'expl-ieee'.
22283         * modules/expl-ieee: New file.
22285         Tests for module 'exp-ieee'.
22286         * modules/exp-ieee-tests: New file.
22287         * tests/test-exp-ieee.c: New file.
22289         New module 'exp-ieee'.
22290         * modules/exp-ieee: New file.
22292         Tests for module 'expf-ieee'.
22293         * modules/expf-ieee-tests: New file.
22294         * tests/test-expf-ieee.c: New file.
22295         * tests/test-exp-ieee.h: New file.
22297         New module 'expf-ieee'.
22298         * modules/expf-ieee: New file.
22300 2012-02-29  Bruno Haible  <bruno@clisp.org>
22302         cbrtl-ieee: Work around test failure on IRIX 6.5.
22303         * m4/cbrtl-ieee.m4: New file.
22304         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
22305         test whether cbrtl works with a minus zero argument. Replace it if not.
22306         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
22307         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
22308         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
22309         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
22310         (Depends-on): Update conditions.
22311         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
22312         m4/signbit.m4.
22313         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
22314         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
22315         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
22317         Tests for module 'cbrtl-ieee'.
22318         * modules/cbrtl-ieee-tests: New file.
22319         * tests/test-cbrtl-ieee.c: New file.
22321         New module 'cbrtl-ieee'.
22322         * modules/cbrtl-ieee: New file.
22324         Tests for module 'cbrt-ieee'.
22325         * modules/cbrt-ieee-tests: New file.
22326         * tests/test-cbrt-ieee.c: New file.
22328         New module 'cbrt-ieee'.
22329         * modules/cbrt-ieee: New file.
22331         Tests for module 'cbrtf-ieee'.
22332         * modules/cbrtf-ieee-tests: New file.
22333         * tests/test-cbrtf-ieee.c: New file.
22334         * tests/test-cbrt-ieee.h: New file.
22336         New module 'cbrtf-ieee'.
22337         * modules/cbrtf-ieee: New file.
22339 2012-02-29  Bruno Haible  <bruno@clisp.org>
22341         cbrtf: Work around bug in IRIX 6.5 system function.
22342         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
22343         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
22344         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
22345         work.
22346         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
22347         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
22348         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
22349         (Depends-on): Update conditions.
22350         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
22352 2012-02-29  Bruno Haible  <bruno@clisp.org>
22354         Tests for module 'cbrtl'.
22355         * modules/cbrtl-tests: New file.
22356         * tests/test-cbrtl.c: New file.
22358         New module 'cbrtl'.
22359         * lib/math.in.h (cbrtl): New declaration.
22360         * lib/cbrtl.c: New file.
22361         * m4/cbrtl.m4: New file.
22362         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
22363         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
22364         HAVE_DECL_CBRTL.
22365         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
22366         HAVE_DECL_CBRTL.
22367         * modules/cbrtl: New file.
22368         * tests/test-math-c++.cc: Check the declaration of cbrtl.
22369         * doc/posix-functions/cbrtl.texi: Mention the new module.
22371 2012-02-29  Bruno Haible  <bruno@clisp.org>
22373         Tests for module 'cbrtf'.
22374         * modules/cbrtf-tests: New file.
22375         * tests/test-cbrtf.c: New file.
22377         New module 'cbrtf'.
22378         * lib/math.in.h (cbrtf): New declaration.
22379         * lib/cbrtf.c: New file.
22380         * m4/cbrtf.m4: New file.
22381         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
22382         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
22383         HAVE_DECL_CBRTF.
22384         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
22385         HAVE_DECL_CBRTF.
22386         * modules/cbrtf: New file.
22387         * tests/test-math-c++.cc: Check the declaration of cbrtf.
22388         * doc/posix-functions/cbrtf.texi: Mention the new module.
22390 2012-02-29  Bruno Haible  <bruno@clisp.org>
22392         cbrt: Provide replacement on MSVC and Minix.
22393         * lib/math.in.h (cbrt): New declaration.
22394         * lib/cbrt.c: New file.
22395         * m4/cbrt.m4: New file.
22396         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
22397         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
22398         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
22399         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
22400         (Depends-on): Add dependencies.
22401         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
22402         * tests/test-math-c++.cc: Check the declaration of cbrt.
22403         * doc/posix-functions/cbrt.texi: Mention that the module provides a
22404         replacement.
22406 2012-02-29  Bruno Haible  <bruno@clisp.org>
22408         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
22409         * m4/hypotl-ieee.m4: New file.
22410         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
22411         test whether hypotl works with mixed NaN and Infinity arguments.
22412         Replace it if not.
22413         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
22414         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
22415         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
22416         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
22417         (Depends-on): Update conditions.
22418         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
22419         (Depends-on): Add hypot-ieee.
22420         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
22421         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
22423         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
22424         * m4/hypotf-ieee.m4: New file.
22425         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
22426         test whether hypotf works with mixed NaN and Infinity arguments.
22427         Replace it if not.
22428         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
22429         (Depends-on): Add hypot-ieee.
22430         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
22431         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
22433         hypot-ieee: Work around test failure on OSF/1 and native Windows.
22434         * lib/math.in.h (hypot): New declaration.
22435         * lib/hypot.c: New file.
22436         * m4/hypot-ieee.m4: New file.
22437         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
22438         whether hypot works with mixed NaN and Infinity arguments. Replace it
22439         if not.
22440         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
22441         REPLACE_HYPOT.
22442         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
22443         * modules/hypot (Files): Add lib/hypot.c.
22444         (Depends-on): Add dependencies.
22445         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
22446         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
22447         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
22448         * tests/test-math-c++.cc: Check the declaration of hypot.
22449         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
22451         Tests for module 'hypotl-ieee'.
22452         * modules/hypotl-ieee-tests: New file.
22453         * tests/test-hypotl-ieee.c: New file.
22455         New module 'hypotl-ieee'.
22456         * modules/hypotl-ieee: New file.
22458         Tests for module 'hypot-ieee'.
22459         * modules/hypot-ieee-tests: New file.
22460         * tests/test-hypot-ieee.c: New file.
22462         New module 'hypot-ieee'.
22463         * modules/hypot-ieee: New file.
22465         Tests for module 'hypotf-ieee'.
22466         * modules/hypotf-ieee-tests: New file.
22467         * tests/test-hypotf-ieee.c: New file.
22468         * tests/test-hypot-ieee.h: New file.
22470         New module 'hypotf-ieee'.
22471         * modules/hypotf-ieee: New file.
22473 2012-02-29  Bruno Haible  <bruno@clisp.org>
22475         Remove unused variables.
22476         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
22477         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
22478         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
22479         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
22481 2012-02-29  Eric Blake  <eblake@redhat.com>
22483         termios: fix pid_t always, not just for tcgetsid
22484         * doc/posix-headers/termios.texi (termios.h): Mention problem.
22485         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
22486         just when building tcgetsid.
22488 2012-02-29  Bruno Haible  <bruno@clisp.org>
22490         Tests for module 'hypotl'.
22491         * modules/hypotl-tests: New file.
22492         * tests/test-hypotl.c: New file.
22494         New module 'hypotl'.
22495         * lib/math.in.h (hypotl): New declaration.
22496         * lib/hypotl.c: New file.
22497         * m4/hypotl.m4: New file.
22498         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
22499         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
22500         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
22501         * modules/hypotl: New file.
22502         * tests/test-math-c++.cc: Check the hypotl declaration.
22503         * doc/posix-functions/hypotl.texi: Mention the new module.
22505 2012-02-29  Eric Blake  <eblake@redhat.com>
22507         tcgetsid: fix cygwin header bug
22508         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
22510         docs: update cygwin progress
22511         * doc/posix-functions/llround.texi (llround): Added in cygwin
22512         1.7.8.
22513         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
22514         * doc/glibc-functions/program_invocation_name.texi
22515         (program_invocation_name): Likewise.
22516         * doc/glibc-functions/program_invocation_short_name.texi
22517         (program_invocation_short_name): Likewise.
22518         * doc/glibc-functions/madvise.texi (madvise): Likewise.
22519         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
22520         Likewise.
22521         * doc/posix-functions/pthread_spin_destroy.texi
22522         (pthread_spin_destroy): Added in cygwin 1.7.10.
22523         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
22524         Likewise.
22525         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
22526         Likewise.
22527         * doc/posix-functions/pthread_spin_trylock.texi
22528         (pthread_spin_trylock): Likewise.
22529         * doc/posix-functions/pthread_spin_unlock.texi
22530         (pthread_spin_unlock): Likewise.
22531         * doc/posix-functions/pthread_setschedprio.texi
22532         (pthread_setschedprio): Likewise.
22533         * doc/posix-functions/pthread_attr_getstack.texi
22534         (pthread_attr_getstack): Likewise.
22535         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
22536         (pthread_attr_getstackaddr): Likewise.
22537         * doc/glibc-functions/pthread_getattr_np.texi
22538         (pthread_getattr_np): Likewise.
22539         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
22540         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
22541         * doc/posix-functions/clock_settime.texi (clock_settime):
22542         Likewise.
22543         * doc/posix-functions/pthread_attr_getguardsize.texi
22544         (pthread_attr_getguardsize): Likewise.
22545         * doc/posix-functions/pthread_attr_setguardsize.texi
22546         (pthread_attr_setguardsize): Likewise.
22547         * doc/posix-functions/pthread_attr_setstack.texi
22548         (pthread_attr_setstack): Likewise.
22549         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
22550         (pthread_attr_setstackaddr): Likewise.
22551         * doc/posix-functions/clock_getcpuclockid.texi
22552         (clock_getcpuclockid): Likewise.
22553         * doc/posix-functions/pthread_getcpuclockid.texi
22554         (pthread_getcpuclockid): Likewise.
22555         * doc/glibc-functions/error.texi (error): Likewise.
22556         * doc/glibc-functions/error_at_line.texi (error_at_line):
22557         Likewise.
22558         * doc/glibc-functions/error_message_count.texi
22559         (error_message_count): Likewise.
22560         * doc/glibc-functions/error_one_per_line.texi
22561         (error_one_per_line): Likewise.
22562         * doc/glibc-functions/error_print_progname.texi
22563         (error_print_progname): Likewise.
22564         * doc/posix-functions/pthread_condattr_getclock.texi
22565         (pthread_condattr_getclock): Likewise.
22566         * doc/posix-functions/pthread_condattr_setclock.texi
22567         (pthread_condattr_setclock): Likewise.
22568         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
22569         Likewise.
22570         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
22571         * doc/glibc-functions/getpt.texi (getpt): Likewise.
22572         * doc/glibc-functions/get_current_dir_name.texi
22573         (get_current_dir_name): Likewise.
22574         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
22575         Likewise.
22576         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
22577         wrong return type.
22578         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
22579         1.7.11.
22581 2012-02-29  Bruno Haible  <bruno@clisp.org>
22583         Tests for module 'hypotf'.
22584         * modules/hypotf-tests: New file.
22585         * tests/test-hypotf.c: New file.
22587         New module 'hypotf'.
22588         * lib/math.in.h (hypotf): New declaration.
22589         * lib/hypotf.c: New file.
22590         * m4/hypotf.m4: New file.
22591         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
22592         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
22593         REPLACE_HYPOTF.
22594         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
22595         REPLACE_HYPOTF.
22596         * modules/hypotf: New file.
22597         * tests/test-math-c++.cc: Check the hypotf declaration.
22598         * doc/posix-functions/hypotf.texi: Mention the new module.
22600         hypot: Prepare for hypotf module.
22601         * m4/hypot.m4: New file.
22602         * modules/hypot (Files): Add m4/hypot.m4.
22603         (configure.ac): Invoke gl_FUNC_HYPOT.
22605 2012-02-29  Bruno Haible  <bruno@clisp.org>
22607         hypot tests: More tests.
22608         * tests/test-hypot.c: Include <float.h>.
22609         (main): Add tests about overflow and underflow.
22611 2012-02-29  Bruno Haible  <bruno@clisp.org>
22613         math code: Add comments.
22614         * lib/acosl.c: Add comment about related glibc source files.
22615         * lib/asinl.c: Likewise.
22616         * lib/atanl.c: Likewise.
22617         * lib/expl.c: Likewise.
22618         * lib/logl.c: Likewise.
22619         * lib/sincosl.c: Likewise.
22620         * lib/sinl.c: Likewise.
22621         * lib/tanl.c: Likewise.
22622         * lib/trigl.c: Likewise.
22623         * lib/cosl.c: Likewise. Fix comments.
22625 2012-02-28  Bruno Haible  <bruno@clisp.org>
22627         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
22628         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
22629         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
22630         HUGE_VALL are defined.
22631         (numeric_equald): Renamed from numeric_equal.
22632         (numeric_equalf, numeric_equall): New functions.
22633         (main): Check also HUGE_VALF, HUGE_VALL.
22634         * modules/math-tests (Files): Add tests/macros.h.
22635         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
22636         HUGE_VALL.
22638 2012-02-28  Bruno Haible  <bruno@clisp.org>
22640         doc: Move ISO C11 feature notes into POSIX chapters.
22641         * doc/posix-functions/aligned_alloc.texi: Renamed from
22642         doc/glibc-functions/aligned_alloc.texi.
22643         * doc/posix-functions/quick_exit.texi: Renamed from
22644         doc/glibc-functions/quick_exit.texi.
22645         * doc/posix-headers/uchar.texi: Renamed from
22646         doc/glibc-headers/uchar.texi.
22647         * doc/posix-functions/c16rtomb.texi: Renamed from
22648         doc/glibc-functions/c16rtomb.texi.
22649         * doc/posix-functions/c32rtomb.texi: Renamed from
22650         doc/glibc-functions/c32rtomb.texi.
22651         * doc/posix-functions/mbrtoc16.texi: Renamed from
22652         doc/glibc-functions/mbrtoc16.texi.
22653         * doc/posix-functions/mbrtoc32.texi: Renamed from
22654         doc/glibc-functions/mbrtoc32.texi.
22655         * doc/gnulib.texi: Update.
22656         (Glibc uchar.h): Remove section.
22657         Suggested by Eric Blake.
22659 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
22661         stdnoreturn: port to MSVC better
22662         MSVC standard headers use __declspec(noreturn), so #define noreturn
22663         to empty on that platform.  Reported by Bruno Haible in
22664         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
22665         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
22666         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
22668 2012-02-28  Bruno Haible  <bruno@clisp.org>
22670         doc: Mention new glibc headers and functions.
22671         * doc/glibc-headers/uchar.texi: New file.
22672         * doc/glibc-functions/aligned_alloc.texi: New file.
22673         * doc/glibc-functions/c16rtomb.texi: New file.
22674         * doc/glibc-functions/c32rtomb.texi: New file.
22675         * doc/glibc-functions/clock_adjtime.texi: New file.
22676         * doc/glibc-functions/fanotify_init.texi: New file.
22677         * doc/glibc-functions/fanotify_mark.texi: New file.
22678         * doc/glibc-functions/inet6_opt_append.texi: New file.
22679         * doc/glibc-functions/inet6_opt_find.texi: New file.
22680         * doc/glibc-functions/inet6_opt_finish.texi: New file.
22681         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
22682         * doc/glibc-functions/inet6_opt_init.texi: New file.
22683         * doc/glibc-functions/inet6_opt_next.texi: New file.
22684         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
22685         * doc/glibc-functions/inet6_rth_add.texi: New file.
22686         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
22687         * doc/glibc-functions/inet6_rth_init.texi: New file.
22688         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
22689         * doc/glibc-functions/inet6_rth_segments.texi: New file.
22690         * doc/glibc-functions/inet6_rth_space.texi: New file.
22691         * doc/glibc-functions/login.texi: New file.
22692         * doc/glibc-functions/mbrtoc16.texi: New file.
22693         * doc/glibc-functions/mbrtoc32.texi: New file.
22694         * doc/glibc-functions/name_to_handle_at.texi: New file.
22695         * doc/glibc-functions/ntp_gettimex.texi: New file.
22696         * doc/glibc-functions/open_by_handle_at.texi: New file.
22697         * doc/glibc-functions/prlimit.texi: New file.
22698         * doc/glibc-functions/process_vm_readv.texi: New file.
22699         * doc/glibc-functions/process_vm_writev.texi: New file.
22700         * doc/glibc-functions/recvmmsg.texi: New file.
22701         * doc/glibc-functions/scandirat.texi: New file.
22702         * doc/glibc-functions/sendmmsg.texi: New file.
22703         * doc/glibc-functions/setns.texi: New file.
22704         * doc/glibc-functions/timespec_get.texi: New file.
22705         * doc/gnulib.texi: Include them.
22706         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
22707         sections.
22708         Reported by Eric Blake.
22710 2012-02-28  Bruno Haible  <bruno@clisp.org>
22712         Avoid compilation errors with MSVC option -fp:strict.
22713         * lib/floor.c: Use MSVC specific pragma fenv_access.
22714         * lib/ceil.c: Likewise.
22715         * lib/trunc.c: Likewise.
22716         * lib/round.c: Likewise.
22717         * lib/rint.c: Likewise.
22718         * lib/fma.c: Likewise.
22719         * lib/integer_length.c: Likewise.
22720         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
22721         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
22722         * tests/test-floor2.c: Likewise.
22723         * tests/test-floorf2.c: Likewise.
22724         * tests/test-ceil2.c: Likewise.
22725         * tests/test-ceilf2.c: Likewise.
22726         * tests/test-trunc2.c: Likewise.
22727         * tests/test-truncf2.c: Likewise.
22728         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
22730 2012-02-27  Bruno Haible  <bruno@clisp.org>
22732         Tests for module 'sqrtl-ieee'.
22733         * modules/sqrtl-ieee-tests: New file.
22734         * tests/test-sqrtl-ieee.c: New file.
22736         New module 'sqrtl-ieee'.
22737         * modules/sqrtl-ieee: New file.
22739         Tests for module 'sqrt-ieee'.
22740         * modules/sqrt-ieee-tests: New file.
22741         * tests/test-sqrt-ieee.c: New file.
22743         New module 'sqrt-ieee'.
22744         * modules/sqrt-ieee: New file.
22746         Tests for module 'sqrtf-ieee'.
22747         * modules/sqrtf-ieee-tests: New file.
22748         * tests/test-sqrtf-ieee.c: New file.
22749         * tests/test-sqrt-ieee.h: New file.
22751         New module 'sqrtf-ieee'.
22752         * modules/sqrtf-ieee: New file.
22754 2012-02-27  Bruno Haible  <bruno@clisp.org>
22756         remainderl-ieee: Work around test failure on OSF/1.
22757         * m4/remainderl-ieee.m4: New file.
22758         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
22759         present, test whether remainderl works with a zero second argument.
22760         Replace it if not.
22761         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
22762         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
22763         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
22764         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
22765         (Depends-on): Update conditions.
22766         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
22767         (Depends-on): Add remainder-ieee.
22768         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
22769         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
22770         module.
22772         remainderf-ieee: Work around test failure on OSF/1.
22773         * m4/remainderf-ieee.m4: New file.
22774         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
22775         present, test whether remainderf works with a zero second argument.
22776         Replace it if not.
22777         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
22778         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
22779         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
22780         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
22781         (Depends-on): Update conditions.
22782         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
22783         (Depends-on): Add remainder-ieee.
22784         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
22785         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
22786         module.
22788         remainder-ieee: Work around test failure on OSF/1.
22789         * m4/remainder-ieee.m4: New file.
22790         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
22791         present, test whether remainder works with a zero second argument.
22792         Replace it if not.
22793         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
22794         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
22795         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
22796         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
22797         (Depends-on): Update dependencies.
22798         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
22799         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
22800         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
22802         Tests for module 'remainderl-ieee'.
22803         * modules/remainderl-ieee-tests: New file.
22804         * tests/test-remainderl-ieee.c: New file.
22806         New module 'remainderl-ieee'.
22807         * modules/remainderl-ieee: New file.
22809         Tests for module 'remainder-ieee'.
22810         * modules/remainder-ieee-tests: New file.
22811         * tests/test-remainder-ieee.c: New file.
22813         New module 'remainder-ieee'.
22814         * modules/remainder-ieee: New file.
22816         Tests for module 'remainderf-ieee'.
22817         * modules/remainderf-ieee-tests: New file.
22818         * tests/test-remainderf-ieee.c: New file.
22819         * tests/test-remainder-ieee.h: New file.
22821         New module 'remainderf-ieee'.
22822         * modules/remainderf-ieee: New file.
22824 2012-02-27  Bruno Haible  <bruno@clisp.org>
22826         modff, modfl: Fix configure syntax error.
22827         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
22828         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
22830 2012-02-27  Bruno Haible  <bruno@clisp.org>
22832         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
22833         * m4/fmodl-ieee.m4: New file.
22834         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
22835         whether fmodl works with zero arguments. Replace it if not.
22836         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
22837         (Depends-on): Add fmod-ieee.
22838         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
22839         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
22841         fmodf-ieee: Work around test failure on OSF/1.
22842         * m4/fmodf-ieee.m4: New file.
22843         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
22844         whether fmodf works with zero arguments. Replace it if not.
22845         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
22846         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
22847         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
22848         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
22849         (Depends-on): Update dependencies.
22850         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
22851         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
22852         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
22854         fmodf-ieee: Work around test failure on MSVC 9.
22855         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
22856         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
22858         fmod-ieee: Work around test failures on OSF/1, mingw.
22859         * m4/fmod-ieee.m4: New file.
22860         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
22861         whether fmod works with zero arguments. Replace it if not.
22862         * lib/math.in.h (fmod): New declaration.
22863         * lib/fmod.c: New file.
22864         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
22865         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
22866         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
22867         * modules/fmod (Files): Add lib/fmod.c.
22868         (Depends-on): Add math, isinf, trunc, fma.
22869         (configure.ac): Arrange to compile lib/fmod.c if needed.
22870         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
22871         m4/signbit.m4.
22872         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
22873         * tests/test-math-c++.cc: Check the declaration of fmod.
22874         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
22876         fmodl-ieee: Fix test failures.
22877         * lib/fmodl.c (fmodl): Treat Inf specially.
22878         * modules/fmodl (Depends-on): Add isinf.
22880         Tests for module 'fmodl-ieee'.
22881         * modules/fmodl-ieee-tests: New file.
22882         * tests/test-fmodl-ieee.c: New file.
22884         New module 'fmodl-ieee'.
22885         * modules/fmodl-ieee: New file.
22887         Tests for module 'fmod-ieee'.
22888         * modules/fmod-ieee-tests: New file.
22889         * tests/test-fmod-ieee.c: New file.
22891         New module 'fmod-ieee'.
22892         * modules/fmod-ieee: New file.
22894         Tests for module 'fmodf-ieee'.
22895         * modules/fmodf-ieee-tests: New file.
22896         * tests/test-fmodf-ieee.c: New file.
22897         * tests/test-fmod-ieee.h: New file.
22899         New module 'fmodf-ieee'.
22900         * modules/fmodf-ieee: New file.
22902 2012-02-27  Bruno Haible  <bruno@clisp.org>
22904         Tests for module 'rintl-ieee'.
22905         * modules/rintl-ieee-tests: New file.
22906         * tests/test-rintl-ieee.c: New file.
22908         New module 'rintl-ieee'.
22909         * modules/rintl-ieee: New file.
22911         Tests for module 'rint-ieee'.
22912         * modules/rint-ieee-tests: New file.
22913         * tests/test-rint-ieee.c: New file.
22915         New module 'rint-ieee'.
22916         * modules/rint-ieee: New file.
22918         Tests for module 'rintf-ieee'.
22919         * modules/rintf-ieee-tests: New file.
22920         * tests/test-rintf-ieee.c: New file.
22921         * tests/test-rint-ieee.h: New file.
22923         New module 'rintf-ieee'.
22924         * modules/rintf-ieee: New file.
22926 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
22928         regex: re_search etc. should return -2 when memory exhausted
22929         This bug was uncovered when testing 'grep'.  Without the fix,
22930         re_search and friends return -1 when memory is exhausted, but -1
22931         means no match, and this causes grep to falsely report no-match
22932         instead of memory-exhaustion.  See
22933         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
22934         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
22935         trouble; this can occur if re_search_internal ran out of memory.
22937 2012-02-26  Bruno Haible  <bruno@clisp.org>
22939         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
22940         * m4/modfl-ieee.m4: New file.
22941         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
22942         whether modfl works with Inf. Replace it if not.
22943         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
22944         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
22945         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
22946         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
22947         (Depends-on): Update dependencies.
22948         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
22949         m4/signbit.m4.
22950         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
22951         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
22953         modfl-ieee: Fix dependencies.
22954         * modules/modfl-ieee (Depends-on): Add modf-ieee.
22956         modfl-ieee: Fix test failures.
22957         * lib/modfl.c (modfl): Treat NaN and Inf specially.
22958         * modules/modfl (Depends-on): Add isfinite, isinf.
22960         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
22961         * m4/modff-ieee.m4: New file.
22962         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
22963         whether modff works with NaN and Inf. Replace it if not.
22964         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
22965         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
22966         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
22967         * modules/modff (configure.ac): Consider REPLACE_MODFF.
22968         (Depends-on): Update dependencies.
22969         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
22970         m4/signbit.m4.
22971         (Depends-on): Add modf-ieee.
22972         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
22973         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
22975         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
22976         * m4/modf-ieee.m4: New file.
22977         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
22978         whether modf works with NaN and Inf. Replace it if not.
22979         * lib/math.in.h (modf): New declaration.
22980         * lib/modf.c: New file.
22981         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
22982         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
22983         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
22984         * modules/modf (Files): Add lib/modf.c.
22985         (Depends-on): Add math, isfinite, trunc, isinf.
22986         (configure.ac): Addrange to compile lib/modf.c if needed.
22987         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
22988         m4/signbit.m4.
22989         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
22990         * tests/test-math-c++.cc: Check the declaration of modf.
22991         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
22993         Tests for module 'modfl-ieee'.
22994         * modules/modfl-ieee-tests: New file.
22995         * tests/test-modfl-ieee.c: New file.
22997         New module 'modfl-ieee'.
22998         * modules/modfl-ieee: New file.
23000         Tests for module 'modf-ieee'.
23001         * modules/modf-ieee-tests: New file.
23002         * tests/test-modf-ieee.c: New file.
23004         New module 'modf-ieee'.
23005         * modules/modf-ieee: New file.
23007         Tests for module 'modff-ieee'.
23008         * modules/modff-ieee-tests: New file.
23009         * tests/test-modff-ieee.c: New file.
23010         * tests/test-modf-ieee.h: New file.
23012         New module 'modff-ieee'.
23013         * modules/modff-ieee: New file.
23015 2012-02-26  Bruno Haible  <bruno@clisp.org>
23017         Tests for module 'fabsl-ieee'.
23018         * modules/fabsl-ieee-tests: New file.
23019         * tests/test-fabsl-ieee.c: New file.
23021         New module 'fabsl-ieee'.
23022         * modules/fabsl-ieee: New file.
23024         Tests for module 'fabs-ieee'.
23025         * modules/fabs-ieee-tests: New file.
23026         * tests/test-fabs-ieee.c: New file.
23028         New module 'fabs-ieee'.
23029         * modules/fabs-ieee: New file.
23031         Tests for module 'fabsf-ieee'.
23032         * modules/fabsf-ieee-tests: New file.
23033         * tests/test-fabsf-ieee.c: New file.
23034         * tests/test-fabs-ieee.h: New file.
23036         New module 'fabsf-ieee'.
23037         * modules/fabsf-ieee: New file.
23039 2012-02-26  Bruno Haible  <bruno@clisp.org>
23041         Tests for module 'fmal-ieee'.
23042         * modules/fmal-ieee-tests: New file.
23043         * tests/test-fmal-ieee.c: New file.
23045         New module 'fmal-ieee'.
23046         * modules/fmal-ieee: New file.
23048         Tests for module 'fma-ieee'.
23049         * modules/fma-ieee-tests: New file.
23050         * tests/test-fma-ieee.c: New file.
23052         New module 'fma-ieee'.
23053         * modules/fma-ieee: New file.
23055         Tests for module 'fmaf-ieee'.
23056         * modules/fmaf-ieee-tests: New file.
23057         * tests/test-fmaf-ieee.c: New file.
23058         * tests/test-fma-ieee.h: New file.
23060         New module 'fmaf-ieee'.
23061         * modules/fmaf-ieee: New file.
23063 2012-02-26  Bruno Haible  <bruno@clisp.org>
23065         Tests for module 'ldexpl-ieee'.
23066         * modules/ldexpl-ieee-tests: New file.
23067         * tests/test-ldexpl-ieee.c: New file.
23069         New module 'ldexpl-ieee'.
23070         * modules/ldexpl-ieee: New file.
23072         Tests for module 'ldexp-ieee'.
23073         * modules/ldexp-ieee-tests: New file.
23074         * tests/test-ldexp-ieee.c: New file.
23076         New module 'ldexp-ieee'.
23077         * modules/ldexp-ieee: New file.
23079         Tests for module 'ldexpf-ieee'.
23080         * modules/ldexpf-ieee-tests: New file.
23081         * tests/test-ldexpf-ieee.c: New file.
23082         * tests/test-ldexp-ieee.h: New file.
23084         New module 'ldexpf-ieee'.
23085         * modules/ldexpf-ieee: New file.
23087 2012-02-26  Bruno Haible  <bruno@clisp.org>
23089         Refactor frexp*-ieee tests.
23090         * tests/test-frexp-ieee.h: New file.
23091         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
23092         (main): Just call test_function.
23093         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
23094         (main): Just call test_function.
23095         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
23096         (main): Just call test_function.
23097         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
23098         * modules/frexp-ieee-tests (Files): Likewise.
23099         * modules/frexpl-ieee-tests (Files): Likewise.
23101         Tests for module 'frexpl-ieee'.
23102         * modules/frexpl-ieee-tests: New file.
23103         * tests/test-frexpl-ieee.c: New file.
23105         New module 'frexpl-ieee'.
23106         * modules/frexpl-ieee: New file.
23108         Tests for module 'frexp-ieee'.
23109         * modules/frexp-ieee-tests: New file.
23110         * tests/test-frexp-ieee.c: New file.
23112         New module 'frexp-ieee'.
23113         * modules/frexp-ieee: New file.
23115         Tests for module 'frexpf-ieee'.
23116         * modules/frexpf-ieee-tests: New file.
23117         * tests/test-frexpf-ieee.c: New file.
23119         New module 'frexpf-ieee'.
23120         * modules/frexpf-ieee: New file.
23122 2012-02-26  Bruno Haible  <bruno@clisp.org>
23124         roundl-ieee tests: More tests.
23125         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
23126         (main): Add tests for [MX] shaded specification in POSIX.
23127         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23128         (Depends-on): Add isnanl-nolibm.
23130         round-ieee tests: More tests.
23131         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
23132         (main): Add tests for [MX] shaded specification in POSIX.
23133         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23134         (Depends-on): Add isnand-nolibm.
23136         roundf-ieee tests: More tests.
23137         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
23138         (main): Add tests for [MX] shaded specification in POSIX.
23139         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23140         (Depends-on): Add isnanf-nolibm.
23142         truncl-ieee tests: More tests.
23143         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
23144         (main): Add tests for [MX] shaded specification in POSIX.
23145         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23146         (Depends-on): Add isnanl-nolibm.
23148         trunc-ieee tests: More tests.
23149         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
23150         (main): Add tests for [MX] shaded specification in POSIX.
23151         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23152         (Depends-on): Add isnand-nolibm.
23154         truncf-ieee tests: More tests.
23155         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
23156         (main): Add tests for [MX] shaded specification in POSIX.
23157         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23158         (Depends-on): Add isnanf-nolibm.
23160         ceill-ieee tests: More tests.
23161         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
23162         (main): Add tests for [MX] shaded specification in POSIX.
23163         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23164         (Depends-on): Add isnanl-nolibm.
23166         ceil-ieee tests: More tests.
23167         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
23168         (main): Add tests for [MX] shaded specification in POSIX.
23169         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23170         (Depends-on): Add isnand-nolibm.
23172         ceilf-ieee tests: More tests.
23173         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
23174         (main): Add tests for [MX] shaded specification in POSIX.
23175         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23176         (Depends-on): Add isnanf-nolibm.
23178         floorl-ieee tests: More tests.
23179         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
23180         (main): Add tests for [MX] shaded specification in POSIX.
23181         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23182         (Depends-on): Add isnanl-nolibm.
23184         floor-ieee tests: More tests.
23185         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
23186         (main): Add tests for [MX] shaded specification in POSIX.
23187         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23188         (Depends-on): Add isnand-nolibm.
23190         floorf-ieee tests: More tests.
23191         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
23192         (main): Add tests for [MX] shaded specification in POSIX.
23193         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
23194         (Depends-on): Add isnanf-nolibm.
23196 2012-02-26  Bruno Haible  <bruno@clisp.org>
23198         fpieee: More comments.
23199         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
23201 2012-02-25  Bruno Haible  <bruno@clisp.org>
23203         Tests for module 'log10l'.
23204         * modules/log10l-tests: New file.
23205         * tests/test-log10l.c: New file.
23206         * tests/test-math-c++.cc: Check the declaration of log10l.
23208         New module 'log10l'.
23209         * lib/math.in.h (log10l): New declaration.
23210         * lib/log10l.c: New file.
23211         * m4/log10l.m4: New file.
23212         * modules/log10l: New file.
23213         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
23214         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
23215         HAVE_DECL_LOG10L.
23216         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
23217         HAVE_DECL_LOG10L.
23218         * doc/posix-functions/log10l.texi: Mention the new module.
23220 2012-02-25  Bruno Haible  <bruno@clisp.org>
23222         fmodl, remainder*: Avoid wrong results due to rounding errors.
23223         * lib/fmodl.c (fmodl): Correct the result if it is not within the
23224         expected bounds.
23225         * lib/remainderf.c (remainderf): Likewise.
23226         * lib/remainder.c (remainder): Likewise.
23227         * lib/remainderl.c (remainderl): Likewise.
23229 2012-02-25  Bruno Haible  <bruno@clisp.org>
23231         Tests for module 'remainderl'.
23232         * modules/remainderl-tests: New file.
23233         * tests/test-remainderl.c: New file.
23234         * tests/test-math-c++.cc: Check the declaration of remainderl.
23236         New module 'remainderl'.
23237         * lib/math.in.h (remainderl): New declaration.
23238         * lib/remainderl.c: New file.
23239         * m4/remainderl.m4: New file.
23240         * modules/remainderl: New file.
23241         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
23242         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
23243         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
23244         HAVE_REMAINDERL.
23245         * doc/posix-functions/remainderl.texi: Mention the new module.
23247 2012-02-25  Bruno Haible  <bruno@clisp.org>
23249         Tests for module 'remainderf'.
23250         * modules/remainderf-tests: New file.
23251         * tests/test-remainderf.c: New file.
23252         * tests/test-math-c++.cc: Check the declaration of remainderf.
23254         New module 'remainderf'.
23255         * lib/math.in.h (remainderf): New declaration.
23256         * lib/remainderf.c: New file.
23257         * m4/remainderf.m4: New file.
23258         * modules/remainderf: New file.
23259         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
23260         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
23261         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
23262         HAVE_REMAINDERF.
23263         * doc/posix-functions/remainderf.texi: Mention the new module.
23265 2012-02-25  Bruno Haible  <bruno@clisp.org>
23267         remainder: Support for MSVC.
23268         * lib/math.in.h (remainder): New declaration.
23269         * lib/remainder.c: New file.
23270         * m4/remainder.m4: New file.
23271         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
23272         (Depends-on): Add math, round, fma.
23273         (configure.ac): Use results of gl_FUNC_REMAINDER.
23274         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
23275         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
23276         HAVE_DECL_REMAINDER.
23277         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
23278         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
23279         * tests/test-math-c++.cc: Check the declaration of remainder.
23280         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
23281         problems are fixed.
23283 2012-02-25  Bruno Haible  <bruno@clisp.org>
23285         Tests for module 'fmodl'.
23286         * modules/fmodl-tests: New file.
23287         * tests/test-fmodl.c: New file.
23288         * tests/test-math-c++.cc: Check the declaration of fmodl.
23290         New module 'fmodl'.
23291         * lib/math.in.h (fmodl): New declaration.
23292         * lib/fmodl.c: New file.
23293         * m4/fmodl.m4: New file.
23294         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
23295         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
23296         REPLACE_FMODL.
23297         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
23298         REPLACE_FMODL.
23299         * modules/fmodl: New file.
23300         * doc/posix-functions/fmodl.texi: Mention the new module.
23302 2012-02-25  Bruno Haible  <bruno@clisp.org>
23304         Tests for module 'modfl'.
23305         * modules/modfl-tests: New file.
23306         * tests/test-modfl.c: New file.
23307         * tests/test-math-c++.cc: Check the declaration of modfl.
23309         New module 'modfl'.
23310         * lib/math.in.h (modfl): New declaration.
23311         * lib/modfl.c: New file.
23312         * m4/modfl.m4: New file.
23313         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
23314         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
23315         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
23316         * modules/modfl: New file.
23317         * doc/posix-functions/modfl.texi: Mention the new module.
23319 2012-02-25  Bruno Haible  <bruno@clisp.org>
23321         Tests for module 'fabsl'.
23322         * modules/fabsl-tests: New file.
23323         * tests/test-fabsl.c: New file.
23324         * tests/test-math-c++.cc: Check the declaration of fabsl.
23326         New module 'fabsl'.
23327         * lib/math.in.h (fabsl): New declaration.
23328         * lib/fabsl.c: New file.
23329         * m4/fabsl.m4: New file.
23330         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
23331         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
23332         REPLACE_FABSL.
23333         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
23334         REPLACE_FABSL.
23335         * modules/fabsl: New file.
23336         * doc/posix-functions/fabsl.texi: Mention the new module.
23338 2012-02-25  Bruno Haible  <bruno@clisp.org>
23340         fabs tests: More tests.
23341         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
23342         (zero): New variable.
23343         (main): Add tests for signed zero.
23344         * modules/fabs-tests (Files): Add tests/minus-zero.h.
23346         fabsf tests: More tests.
23347         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
23348         (zero): New variable.
23349         (main): Add tests for signed zero.
23350         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
23352 2012-02-24  Bruno Haible  <bruno@clisp.org>
23354         atanl: Provide function definition on MSVC.
23355         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
23356         function pointer.
23357         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
23359 2012-02-24  Bruno Haible  <bruno@clisp.org>
23361         acosl: Provide function definition on MSVC.
23362         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
23363         function pointer.
23364         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
23366 2012-02-24  Bruno Haible  <bruno@clisp.org>
23368         asinl: Provide function definition on MSVC.
23369         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
23370         function pointer.
23371         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
23373 2012-02-24  Bruno Haible  <bruno@clisp.org>
23375         tanl: Provide function definition on MSVC.
23376         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
23377         function pointer.
23378         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
23380 2012-02-24  Bruno Haible  <bruno@clisp.org>
23382         cosl: Provide function definition on MSVC.
23383         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
23384         function pointer.
23385         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
23387 2012-02-24  Bruno Haible  <bruno@clisp.org>
23389         sinl: Provide function definition on MSVC.
23390         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
23391         function pointer.
23392         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
23394 2012-02-24  Bruno Haible  <bruno@clisp.org>
23396         logl: Provide function definition on MSVC.
23397         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
23398         function pointer.
23399         * lib/math.in.h (logl): Undefine if it does not exist as a function.
23401 2012-02-24  Bruno Haible  <bruno@clisp.org>
23403         expl: Provide function definition on MSVC.
23404         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
23405         function pointer.
23406         * lib/math.in.h (expl): Undefine if it does not exist as a function.
23408 2012-02-24  Bruno Haible  <bruno@clisp.org>
23410         sqrtl: Provide function definition on MSVC.
23411         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
23412         a function pointer.
23413         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
23415 2012-02-24  Bruno Haible  <bruno@clisp.org>
23417         ceill: Provide function definition on MSVC.
23418         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
23419         used as a function pointer.
23420         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
23422 2012-02-24  Bruno Haible  <bruno@clisp.org>
23424         floorl: Provide function definition on MSVC.
23425         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
23426         used as a function pointer.
23427         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
23429 2012-02-24  Bruno Haible  <bruno@clisp.org>
23431         ceilf: Provide function definition on MSVC.
23432         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
23433         used as a function pointer.
23434         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
23436 2012-02-24  Bruno Haible  <bruno@clisp.org>
23438         floorf: Provide function definition on MSVC.
23439         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
23440         used as a function pointer.
23441         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
23443 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
23445         stdnoreturn: new module
23446         This implements a replacement for C11's <stdnoreturn.h>.
23447         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
23448         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
23449         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
23450         * tests/test-stdnoreturn.c: New files.
23452 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
23454         regex: fix false multibyte matches in some regular expressions
23455         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
23456         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
23457         * lib/regex_internal.c (re_string_skip_chars):
23458         Fix miscomputation of remain_len that may cause incomplete
23459         multi-byte character and false match.
23461 2012-02-24  Jim Meyering  <meyering@redhat.com>
23463         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
23464         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
23465         uses with "==" *before* the call, e.g., 0 == strcmp (...)
23466         Remove now-unnecessary str''cmp obfuscation.
23467         Suggested by Akim Demaille.
23469 2012-02-24  Bruno Haible  <bruno@clisp.org>
23471         streq: Rename macro.
23472         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
23473         * NEWS: Mention the change.
23474         * lib/mbrtowc.c (mbrtowc): Update.
23475         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
23476         * lib/wcwidth.c (wcwidth): Update.
23477         Suggested by Akim Demaille and Jim Meyering.
23479 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
23481         regex: fix typo in definition of MIN
23482         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
23483         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
23485 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
23486             Bruno Haible  <bruno@clisp.org>
23488         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
23489         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
23490         entries into a stack-allocated buffer directly.
23491         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
23493 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
23494             Bruno Haible  <bruno@clisp.org>
23496         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
23498          - There were several instances of this pattern:
23500              for (;;) {
23501                n = acl (f, GETACLCNT, 0, NULL);
23502                [ allocate an array A of size N ]
23503                if (acl (f, GETACL, n, a) == n)
23504                  break;
23505              }
23507            This loop might never terminate if some other process is constantly
23508            manipulating the file's ACL.  The loop should be rewritten to
23509            terminate.
23511          - The acl (... GETACLNT ...) call is merely an optimization; its value
23512            is merely a hint as to how big to make the array.  A better
23513            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
23514            and just guess a reasonably-big size, growing the size and trying
23515            again if it's not large enough.  This guarantees termination, and
23516            saves a system call.
23518         * lib/acl-internal.h: Include <limits.h>.
23519         (MIN, SIZE_MAX): New macros.
23520         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
23521         a stack-allocated buffer, and use malloc if it does not fit. Don't
23522         use GETACLCNT.
23523         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
23525 2012-02-19  Bruno Haible  <bruno@clisp.org>
23527         acl: Fix endless loop on Solaris with vxfs.
23528         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
23529         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
23530         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
23531         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
23532         * tests/test-sameacls.c (main)[Solaris]: Likewise.
23533         Reported by Bill Jones in
23534         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
23536 2012-02-19  Bruno Haible  <bruno@clisp.org>
23538         acl: Fix copy-acl test failure on Solaris 11.0.
23539         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
23540         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
23541         that this function returns 0 in some more cases.
23543 2012-02-19  Bruno Haible  <bruno@clisp.org>
23545         acl: Update doc references.
23546         * doc/acl-resources.txt: Update links to Solaris documentation.
23548 2012-02-19  Bruno Haible  <bruno@clisp.org>
23550         Fix test failure in many locales on Solaris 11.
23551         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
23552         'tr' arguments.
23553         * tests/test-pipe-filter-ii1.c (main): Likewise.
23554         * build-aux/bootstrap (check_versions): Run 'tr' command with range
23555         expressions in the C locale.
23556         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
23557         * m4/host-os.m4 (gl_HOST_OS): Likewise.
23559 2012-02-19  Bruno Haible  <bruno@clisp.org>
23561         gnulib-tool: Improve usage message.
23562         * gnulib-tool (func_usage): Move doc of --help and --version to the
23563         section "Operation modes".
23565 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
23567         README-release: make it easier to execute commands
23568         * top/README-release: break commands out on to separate lines.
23570 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
23572         GNUmakefile: simplify detection of unconfigured trees
23573         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
23574         whether the tree make is being run from is already configured or
23575         not.  Related simplifications.
23577 2012-02-13  Simon Josefsson  <simon@josefsson.org>
23579         * gnulib-tool (func_usage): Document --help and --version.
23581 2012-02-11  Jim Meyering  <meyering@redhat.com>
23583         bootstrap: don't exit 0 upon gnulib-tool failure
23584         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
23585         its exit status, not 0.
23587 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
23589         README-release: various improvements
23590         * top/README-release: Give a command to push changes for the
23591         release.  Add "distcheck" to list of other pre-release checks.
23592         Fix instance of "make stable" which should be "make TYPE".
23594 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
23596         maint: replace FSF snail-mail addresses with URLs
23597         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
23598         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
23599         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
23600         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
23601         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
23602         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
23603         * lib/check-version.c, lib/check-version.h, lib/config.charset:
23604         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
23605         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
23606         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
23607         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
23608         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
23609         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
23610         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
23611         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
23612         * lib/glthread/thread.c, lib/glthread/thread.h:
23613         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
23614         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
23615         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
23616         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
23617         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
23618         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
23619         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
23620         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
23621         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
23622         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
23623         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
23624         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
23625         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
23626         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
23627         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
23628         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
23629         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
23630         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
23631         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
23632         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
23633         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
23634         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
23635         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
23636         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
23637         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
23638         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
23639         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
23640         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
23641         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
23642         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
23643         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
23644         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
23645         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
23646         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
23647         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
23648         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
23649         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
23650         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
23651         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
23652         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
23653         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
23654         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
23655         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
23656         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
23657         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
23658         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
23659         * tests/test-poll.c, tests/test-quotearg-simple.c:
23660         * tests/test-quotearg.c, tests/test-quotearg.h:
23661         * tests/test-round-ieee.c, tests/test-round1.c:
23662         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
23663         * tests/test-roundl-ieee.c, tests/test-roundl.c:
23664         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
23665         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
23666         * tests/test-strerror.c, tests/test-strerror_r.c:
23667         * tests/test-strsignal.c, tests/test-strverscmp.c:
23668         * tests/test-xmemdup0.c:
23669         Replace FSF snail mail addresses with URLs, as per GNU coding
23670         standards.  See glibc bug
23671         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
23673 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
23675         README-release: capitalize a word and split a line
23676         * top/README-release: Fix punctuation and spacing.
23678 2012-02-08  Akim Demaille  <demaille@gostai.com>
23680         fatal-signal: use C prototypes (with explicit void).
23681         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
23682         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
23684 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
23686         regex: spelling fix
23687         * lib/regexec.c: spelling fix
23689         regex: rely on stdint.h for SIZE_MAX
23690         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
23692 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
23694         regex: merge glibc changes
23696         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
23697         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
23698         (init_word_char): Work even if bitset words are not exactly 32 or
23699         64 bits wide.  Don't assume there are no padding bits.
23700         * lib/regex.c [_LIBC]: Do not include <config.h>.
23701         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
23702         and -Wtype-limits.
23703         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
23704         needless disagreement with glibc.  All uses changed.  Define it to
23705         1 only if _GNU_SOURCE, to match glibc.
23706         (_REG_RM_NAME): Remove; no longer needed, since the names in
23707         question are now all protected by __USE_GNU.
23708         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
23709         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
23710         * lib/regex_internal.h (MIN): New macro.
23712         2012-01-03 Ulrich Drepper <drepper@gmail.com>
23713         * lib/regcomp.c (init_word_char): Optimize regex a bit.
23715         2011-12-30 Jakub Jelinek <jakub@redhat.com>
23716         * lib/regex_internal.c (re_string_fetch_byte_case):
23717         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
23718         is miscompiled, and it turns out it is because of an incorrect
23719         attribute on re_string_fetch_byte_case.  Unlike
23720         re_string_peek_byte_case, this one is really not pure, it modifies
23721         memory (increments pstr->cur_idx), and with the pure attribute GCC
23722         assumed it doesn't and it cached the presumed value of
23723         regexp->cur_idx in a variable across the
23724          for (;; ++i)
23725            {
23726              if (i >= BRACKET_NAME_BUF_SIZE)
23727                return REG_EBRACK;
23728              if (token->type == OP_OPEN_CHAR_CLASS)
23729                ch = re_string_fetch_byte_case (regexp);
23730              else
23731                ch = re_string_fetch_byte (regexp);
23732              if (re_string_eoi(regexp))
23733                return REG_EBRACK;
23734              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
23735                break;
23736              elem->opr.name[i] = ch;
23737            }
23739         2011-11-29 Andreas Schwab <schwab@redhat.com>
23740         * lib/regcomp.c (build_equiv_class):
23741         Fix access after end of search string in regex matcher.
23743         2011-11-12 Ulrich Drepper <drepper@redhat.com>
23744         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
23746         2011-10-12 Ulrich Drepper <drepper@redhat.com>
23747         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
23749         2011-10-11 Ulrich Drepper <drepper@redhat.com>
23750         * lib/regcomp.c (parse_branch, parse_sub_exp):
23751         More regex memory leak fixes and tests.
23752         (parse_sub_exp, parse_bracket_exp):
23753         Fix memory leak for some invalid regular expressions.
23755         2011-05-28 Ulrich Drepper <drepper@gmail.com>
23756         * lib/regex_internal.c, lib/regexec.c:
23757         Fix unnecessary overallocation due to incomplete character.  When
23758         incomplete characters are found at the end of a string the code
23759         ran amok and allocated lots of memory.  Stricter limits are now in
23760         place.
23762         2011-05-20 Reuben Thomas <rrt@sc3d.org>
23763         * lib/regex.h: Update documentation.
23765         2011-05-16 Aharon Robbins <arnold@skeeve.com>
23766         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
23768         2010-05-05 Andreas Schwab <schwab@redhat.com>
23769         * lib/regexec.c (find_collation_sequence_value):
23770         Fix lookup of collation sequence value during regexp matching.
23772         2010-01-22 Ulrich Drepper <drepper@redhat.com>
23773         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
23775         2008-01-16 Ulrich Drepper <drepper@redhat.com>
23776         * lib/regex.h: Cleanup namespace.
23778         2007-11-26 Ulrich Drepper <drepper@redhat.com>
23779         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
23781         2007-08-26 Ulrich Drepper <drepper@redhat.com>
23782         * lib/regex_internal.h: Prevent some declarations and definitions
23783         to be seen when used in tests.
23785         2005-05-06 Ulrich Drepper <drepper@redhat.com>
23786         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
23787         __libc_lock_* macros if not _LIBC.
23788         (struct re_dfa_t): Add lock.
23790 2012-02-07  Eric Blake  <eblake@redhat.com>
23792         maint.mk: also prohibit lower-case @var@
23793         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
23794         lower case, like @top_srcdir@.
23796 2012-02-04  Eric Blake  <eblake@redhat.com>
23798         canonicalize: avoid uninitialized memory use
23799         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
23800         random '/' left in dest.
23801         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
23803 2012-02-04  Bruno Haible  <bruno@clisp.org>
23805         isatty: Fix test failure of ptsname_r on native Windows.
23806         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
23807         and don't set errno.
23808         (isatty): Test first whether fd is valid. Set errno when returning 0.
23810 2012-02-04  Bruno Haible  <bruno@clisp.org>
23812         spawn-pipe tests: Fix a NULL program name in a diagnostic.
23813         * tests/test-spawn-pipe-main.c: Include progname.h.
23814         (main): Invoke set_program_name.
23815         * modules/spawn-pipe-tests (Depends-on): Add progname.
23817         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
23818         * tests/test-nonblocking-socket-main.c: Include progname.h.
23819         (main): Invoke set_program_name.
23820         * modules/nonblocking-socket-tests (Depends-on): Add progname.
23822         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
23823         * tests/test-nonblocking-pipe-main.c: Include progname.h.
23824         (main): Invoke set_program_name.
23825         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
23827 2012-02-04  Eric Blake  <eblake@redhat.com>
23829         canonicalize-lgpl: fix // handling
23830         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
23832         canonicalize: fix // handling
23833         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
23834         /// to //, since only // is special.
23836 2012-02-04  Bruno Haible  <bruno@clisp.org>
23838         ioctl: Fix test failure on native Windows.
23839         * lib/ioctl.c: Include msvc-nothrow.h.
23840         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
23842 2012-02-04  Bruno Haible  <bruno@clisp.org>
23844         fsync: Avoid test failure on native Windows.
23845         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
23846         read-only.
23848 2012-02-04  Bruno Haible  <bruno@clisp.org>
23850         sys_select: Avoid syntax error on OpenBSD 5.0.
23851         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
23852         currently being included, just include the system's <sys/select.h>.
23854 2012-02-04  Bruno Haible  <bruno@clisp.org>
23856         sys_select: Avoid syntax error on OpenBSD 5.0.
23857         * lib/sys_select.in.h: Include <signal.h> only after the include_next
23858         <sys/select.h>, not before.
23859         Reported by Jiri B <jirib@devio.us>.
23861 2012-02-04  Bruno Haible  <bruno@clisp.org>
23863         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
23864         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
23865         global variables.
23866         * tests/test-get-rusage-data.c (main): Likewise.
23867         Reported by Jim Meyering.
23869 2012-02-04  Bruno Haible  <bruno@clisp.org>
23871         stdioext: Fix last commit.
23872         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
23874 2012-02-03  Bruno Haible  <bruno@clisp.org>
23876         stdioext: Add tentative support for Plan9.
23877         * lib/stdio-impl.h: Include <errno.h>.
23878         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
23879         * lib/freadable.c (freadable): Likewise.
23880         * lib/fwritable.c (fwritable): Likewise.
23881         * lib/fbufmode.c (fbufmode): Likewise.
23882         * lib/freading.c (freading): Likewise.
23883         * lib/fwriting.c (fwriting): Likewise.
23884         * lib/freadptr.c (freadptr): Likewise.
23885         * lib/freadseek.c (freadptrinc): Likewise.
23886         * lib/freadahead.c (freadahead): Likewise.
23887         * lib/fpurge.c (fpurge): Likewise.
23888         * lib/fseeko.c (rpl_fseeko): Likewise.
23889         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
23890         Reported by Jens Staal <staal1978@gmail.com>.
23892 2012-02-02  Jim Meyering  <meyering@redhat.com>
23894         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
23895         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
23896         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
23897         not even to try to add the attribute.  Instead, add a pragma to suppress
23898         the suggestion/warning.
23900 2012-01-31  Karl Berry  <karl@gnu.org>
23902         setstate doc: typo.
23903         * doc/posix-functions/setstate.texi (setstate): { not (.
23905 2012-01-31  Bruno Haible  <bruno@clisp.org>
23907         popen: Make more robust on Windows.
23908         * lib/popen.c: On native Windows, use the _popen based code even if
23909         HAVE_POPEN is set.
23910         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
23911         environment variable on native Windows.
23913 2012-01-30  Bruno Haible  <bruno@clisp.org>
23915         pclose: Fix typo.
23916         * lib/stdio.in.h (pclose): Fix typo in warning message.
23918 2012-01-30  Bruno Haible  <bruno@clisp.org>
23920         doc about getlogin_r, setstate.
23921         * doc/posix-functions/getlogin_r.texi: List the incompatible
23922         declaration problem under "not fixed by gnulib".
23923         * doc/posix-functions/setstate.texi: Mention incompatible declaration
23924         problem on Solaris 11 and other platforms.
23926 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
23927             Bruno Haible  <bruno@clisp.org>
23929         poll tests: Make test more robust.
23930         * tests/test-poll.c: Include macros.h.
23931         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
23932         return value of various I/O operations.
23933         * modules/poll-tests (Files): Add tests/macros.h.
23935 2012-01-30  Bruno Haible  <bruno@clisp.org>
23937         sys_stat: Fix support for mingw64 and MSVC.
23938         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
23939         header files already do it.
23940         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
23941         stat itself.
23942         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
23944 2012-01-30  Bruno Haible  <bruno@clisp.org>
23946         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
23947         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
23948         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
23950 2012-01-29  Bruno Haible  <bruno@clisp.org>
23952         quotearg: Fix test failure on MacOS X 10.5.
23953         * tests/test-quotearg-simple.c: Include localcharset.h.
23954         (main): If the locale encoding is not ASCII, bypass the tests of
23955         locale_quoting_style and clocale_quoting_style.
23956         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
23958 2012-01-29  Jim Meyering  <meyering@redhat.com>
23960         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
23961         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
23962         detect uses of canonicalize_file_name.
23964 2012-01-28  Bruno Haible  <bruno@clisp.org>
23966         test-framework-sh: Fix test failure with AIX 7.1 diff.
23967         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
23968         in column 1, like 'diff -c' does.
23969         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
23970         whether 'diff -u' is used. Instead, test whether the output contains
23971         some '@' character.
23973 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
23975         strtoimax: eliminate need for stdint.h, inttypes.h checks
23976         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
23977         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
23978         the prerequisites for a recently-introduced strtoimax test.
23979         I guess this might cause strtoimax to be replaced when not
23980         strictly necessary on older hosts, but this shouldn't introduce
23981         any bugs and it should make Emacs 'configure' faster on typical
23982         modern hosts.  Problem discovered when importing the latest gnulib
23983         to an Emacs test version.
23984         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
23986 2012-01-28  Bruno Haible  <bruno@clisp.org>
23988         sys_time: Override 'struct timeval' on some native Windows platforms.
23989         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
23990         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
23991         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
23992         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
23993         needs to be overridden.
23994         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
23995         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
23996         * tests/test-sys_select.c: Check that the tv_sec member has the same
23997         size as a 'time_t'.
23998         * tests/test-sys_time.c: Likewise.
23999         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
24000         is set, set also REPLACE_GETTIMEOFDAY.
24001         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
24002         convert the resulting 'struct timeval' before returning.
24003         * lib/select.c: Include <sys/time.h>.
24004         (select, timeval): Undefine at the right place.
24005         * modules/select (Depends-on): Add sys_time.
24006         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
24007         some Windows platforms.
24008         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
24010 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
24012         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
24013         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
24014         an integer.
24015         * lib/fcntl.c (dupfd): Likewise.
24016         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
24018 2012-01-28  Bruno Haible  <bruno@clisp.org>
24020         fcntl: Avoid compilation error on native Windows.
24021         * modules/fcntl (Depends-on): Add 'close'.
24023 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
24025         select, poll, isatty: Avoid warnings on x86_64 mingw64.
24026         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
24027         pointer to an integer.
24028         * lib/poll.c (IsConsoleHandle): Likewise.
24029         * lib/isatty.c (IsConsoleHandle): Likewise.
24031 2012-01-28  Jim Meyering  <meyering@redhat.com>
24033         doc: clarify README-release
24034         * top/README-release: Clarify: you should make a point to have
24035         the latest stable versions of build tools in your PATH, and the
24036         reference to buildreq is solely for its list of tool names, not
24037         for its minimal-functional version numbers.
24038         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
24040         maint.mk: use more readable (yet functionally equivalent) quoting
24041         It is common to quote a single quote in a single quoted string like
24042         this:  '...'\''...'.  Unless you know the idiom, that looks like
24043         gibberish, so prefer to double-quote the string when possible.
24044         Then you can use a more readable, lone single quote: "...'..."
24045         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
24046         "don't" is more readable than the equivalent 'don'\''t'.
24047         (sc_cast_of_x_alloc_return_value): Likewise.
24048         (sc_cast_of_alloca_return_value): Likewise.
24049         (sc_makefile_path_separator_check): Similar: use ":" in '...',
24050         rather than '\'':'\''.
24052 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
24054         stdalign: relax _Alignof and tighten _Alignas test
24055         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
24056         as it was too strict: alignof must divide offsetof, but it need
24057         not equal offsetof.  Inspired by Joseph S. Myers's comment
24058         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
24059         Conversely, tighten the _Alignas test a bit, as the resulting
24060         alignment must be exactly 8.
24062 2012-01-27  Bruno Haible  <bruno@clisp.org>
24064         stdalign: Document the last change.
24065         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
24067 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
24069         stdalign: check that alignof and offsetof are consistent
24070         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
24071         Problem reported for gnulib by Richard W.M. Jones in
24072         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
24074 2012-01-27  Jim Meyering  <meyering@redhat.com>
24076         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
24077         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
24078         convert a sequence with gaps to the minimal containing range.
24079         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
24080         * tests/test-update-copyright.sh: Test for this.
24081         The FSF confirmed it is ok to do this, assuming there is at
24082         least one significant change per year in the affected range:
24083         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
24085 2012-01-26  Bruno Haible  <bruno@clisp.org>
24087         pipe2: refine doc about thread-safety
24088         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
24089         multithread-safety problem.
24090         * doc/glibc-functions/accept4.texi: Likewise.
24092 2012-01-26  Bruno Haible  <bruno@clisp.org>
24094         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
24095         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
24096         In the test program, include <fcntl.h>, for O_RDONLY.
24098 2012-01-26  Eric Blake  <eblake@redhat.com>
24100         pipe2: document lack of thread-safety in replacement
24101         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
24102         issue in replacement.
24103         * doc/glibc-functions/accept4.texi (accept4): Likewise.
24104         Based on a report by Eric Wong.
24106 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
24107             Bruno Haible  <bruno@clisp.org>
24109         malloca: Avoid warnings on x86_64 mingw64.
24110         * lib/malloca.c: Include <stdint.h>.
24111         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
24112         * modules/malloca (Depends-on): Add stdint.
24113         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
24115 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
24117         obstack: remove __STDC__ conditionals
24118         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
24119         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
24120         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
24121         m4/include_next.m4 as the only gnulib-maintained places that still
24122         refer to __STDC__.
24124 2012-01-24  Bruno Haible  <bruno@clisp.org>
24126         havelib: Modern quoting.
24127         * build-aux/config.rpath: Quote 'like this', not `like this', as per
24128         the recent change to the GNU coding standards.
24130 2012-01-24  Bruno Haible  <bruno@clisp.org>
24132         stdint: Improve support for Android.
24133         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
24134         Reported by Simon Josefsson <simon@josefsson.org>.
24136 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24138         doc: omit trailing empty lines from INSTALL etc.
24139         * doc/Makefile (INSTALL): Omit trailing empty lines.
24140         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
24141         omit trailing empty lines.  This simplifies the build procedure.
24143 2012-01-23  Jim Meyering  <meyering@redhat.com>
24145         tests: avoid spurious warnings about gl_sockets_startup
24146         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
24147         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
24148         reporting a "statement with no effect".
24149         * tests/test-accept.c (main): Mark as "(void)".
24150         * tests/test-accept4.c (main): Likewise.
24151         * tests/test-bind.c (main): Likewise.
24152         * tests/test-connect.c (main): Likewise.
24153         * tests/test-getpeername.c (main): Likewise.
24154         * tests/test-getsockname.c (main): Likewise.
24155         * tests/test-getsockopt.c (main): Likewise.
24156         * tests/test-listen.c (main): Likewise.
24157         * tests/test-recv.c (main): Likewise.
24158         * tests/test-recvfrom.c (main): Likewise.
24159         * tests/test-send.c (main): Likewise.
24160         * tests/test-sendto.c (main): Likewise.
24161         * tests/test-setsockopt.c (main): Likewise.
24162         * tests/test-shutdown.c (main): Likewise.
24164 2012-01-21  Bruno Haible  <bruno@clisp.org>
24166         locale-fr.m4: Fix for Android.
24167         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
24168         failure of the test program on Bionic libc.
24170 2012-01-21  Jim Meyering  <meyering@redhat.com>
24172         bootstrap: fail when bootstrap_post_import_hook fails
24173         Otherwise, it's far too easy to miss diagnostics emitted
24174         between gnulib-tool's output and that of running configure.
24175         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
24177 2012-01-17  Jim Meyering  <meyering@redhat.com>
24179         maint: enable sc_trailing_blank
24180         * build-aux/pmccabe.css: Remove trailing blanks.
24181         * doc/acl-cygwin.txt: Likewise.
24182         * doc/gnu-oids.texi: Likewise
24183         * cfg.mk: Enable sc_trailing_blank.
24184         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
24186 2012-01-17  Jim Meyering  <meyering@redhat.com>
24188         maint: enable sc_prohibit_openat_without_use
24189         * cfg.mk: Enable sc_prohibit_openat_without_use.
24190         Exempt lib/selinux-at.c.
24192 2012-01-17  Jim Meyering  <meyering@redhat.com>
24194         maint: enable sc_prohibit_cloexec_without_use
24195         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
24196         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
24198 2012-01-17  Jim Meyering  <meyering@redhat.com>
24200         maint: enable sc_prohibit_intprops_without_use
24201         * cfg.mk: Enable sc_prohibit_intprops_without_use
24202         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
24204 2012-01-17  Jim Meyering  <meyering@redhat.com>
24206         maint: enable sc_prohibit_hash_pjw_without_use
24207         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
24208         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
24209         to match any use of \<hash_pjw\>, i.e., not necessarily with a
24210         following " (".
24212 2012-01-17  Jim Meyering  <meyering@redhat.com>
24214         maint: enable double-word-prohibiting rule
24215         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
24216         Exempt three files.
24218 2012-01-17  Jim Meyering  <meyering@redhat.com>
24220         maint: remove empty lines at EOF, but excluding modules/*
24221         Apply syntax rules at home as well as abroad.  Most changes
24222         were induced by running this:
24223           make srcdir=. _build-aux=build-aux -f top/maint.mk \
24224             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
24225             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
24226         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
24227         Exempt modules/* and two binary files.
24228         Also exempt doc/INSTALL*, per request from Bruno Haible.
24229         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
24230         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
24231         * doc/Copyright/request-assign.future: Likewise.
24232         * doc/Copyright/request-disclaim.changes: Likewise.
24233         * doc/INSTALL: Likewise.
24234         * doc/INSTALL.ISO: Likewise.
24235         * doc/INSTALL.UTF-8: Likewise.
24236         * doc/acl-cygwin.txt: Likewise.
24237         * doc/acl-resources.txt: Likewise.
24238         * doc/fdl-1.2.texi: Likewise.
24239         * doc/fdl-1.3.texi: Likewise.
24240         * doc/fdl.texi: Likewise.
24241         * lib/argp-pin.c: Likewise.
24242         * lib/round.c: Likewise.
24243         * lib/unicase/u16-totitle.c: Likewise.
24244         * lib/unictype/block_test.c: Likewise.
24245         * lib/uninorm/canonical-decomposition.c: Likewise.
24246         * m4/README: Likewise.
24247         * m4/relocatable-lib.m4: Likewise.
24248         * tests/test-isnand-nolibm.c: Likewise.
24249         * tests/test-isnand.c: Likewise.
24250         * tests/uninorm/NormalizationTest.txt: Likewise.
24252 2012-01-17  Jim Meyering  <meyering@redhat.com>
24254         maint: add framework to run syntax-check rules against gnulib sources
24255         * cfg.mk: New file, to disable all currently-failing tests.
24256         We'll enable them one by one, as they are made to pass.
24257         * Makefile (sc_maint): New rule.
24259 2012-01-21  Bruno Haible  <bruno@clisp.org>
24261         stdint: Add support for Android.
24262         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
24263         include the system's <stdint.h>.
24264         Reported by Simon Josefsson <simon@josefsson.org>.
24266 2012-01-19  Jim Meyering  <meyering@redhat.com>
24268         bootstrap: add bootstrap_post_import_hook
24269         Bison does still need something like the gnulib_mk_hook whose
24270         invocation I had to remove along with slurp in commit 767ccd40.
24271         Technically, we could get along without it, but doing so would
24272         have required living with a warning and a mandatory post-bootstrap
24273         automake rerun.
24274         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
24275         (bootstrap_post_import_hook): New function.
24276         Invoke it after gnulib-tool --import and before autoreconf.
24278 2012-01-18  Jim Meyering  <meyering@redhat.com>
24280         gitlog-to-changelog: don't use "no_"-prefixed variable name
24281         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
24282         to enable both --cluster and --no-cluster.  Change variable name,
24283         s/\$no_cluster/$cluster/, and reverse usage to match.
24285         gitlog-to-changelog: use "||", not "or" in expressions
24286         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
24287         expressions.
24289 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
24291         gitlog-to-changelog: new option --no-cluster
24292         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
24293         clustering of adjacent commit messages.
24295 2012-01-17  Jim Meyering  <meyering@redhat.com>
24297         maint: spell file systems with two words, not one
24298         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
24299         two words, not one.
24301 2012-01-16  Jim Meyering  <meyering@redhat.com>
24303         bootstrap: add a FIXME comment to ensure we eventually remove the hack
24304         * build-aux/bootstrap (gnulib_tool_options): Add comment.
24306 2012-01-16  Eric Blake  <eblake@redhat.com>
24308         bootstrap: cater to autoconf 2.59
24309         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
24310         is not available.
24312         bootstrap: properly check for libtool
24313         * build-aux/bootstrap (libtoolize): Also run libtool when older
24314         usage is detected.
24316 2012-01-15  Bruno Haible  <bruno@clisp.org>
24318         Improve support for MSVC 9.
24319         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
24320         clashes on MSVC.
24321         * lib/fcntl.in.h: Likewise.
24322         * lib/stdlib.in.h: Likewise.
24323         * lib/sys_stat.in.h: Likewise.
24325 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
24327         gnupload: we hold the master copy of this script now
24328         For motivation and more information, see:
24329         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
24330         * build-aux/gnupload: Make it clear in the heading comments that the
24331         master copy of this file is maintained by gnulib.  Since we are at
24332         it, bump its copyright year and ...
24333         ($scriptversion): ... the date in its version.
24334         ($usage): Patches and bug reports should be sent to the gnulib list,
24335         not the automake one.
24336         * config/srclist.txt: Don't try to sync 'gnupload' from automake
24337         anymore.
24339 2012-01-15  Bruno Haible  <bruno@clisp.org>
24341         Fix module 'random'.
24342         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
24343         initstate, setstate are declared.
24345 2012-01-14  Bruno Haible  <bruno@clisp.org>
24347         Tests for module 'random'.
24348         * modules/random-tests: New file.
24349         * tests/test-random.c: New file, based on tests/test-random_r.c.
24351         New module 'random'.
24352         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
24353         declarations.
24354         * lib/random.c: New file, based on glibc/stdlib/random.c.
24355         * m4/random.m4: New file.
24356         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
24357         HAVE_RANDOM.
24358         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
24359         * modules/random: New file.
24360         * config/srclist.txt: Add an entry for random.c.
24361         * doc/posix-functions/random.texi: Mention the 'random' module.
24362         * doc/posix-functions/initstate.texi: Likewise.
24363         * doc/posix-functions/setstate.texi: Likewise.
24364         * doc/posix-functions/srandom.texi: Likewise.
24366 2012-01-12  Bruno Haible  <bruno@clisp.org>
24368         random_r: Use common idioms.
24369         * lib/random_r.c: Include <stdlib.h> first.
24371         random_r: Override incompatible API on AIX, OSF/1.
24372         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
24373         Override the system function if REPLACE_RANDOM_R is 1.
24374         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
24375         and OSF/1, set REPLACE_RANDOM_R.
24376         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
24377         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
24378         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
24379         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
24380         * doc/glibc-functions/random_r.texi: Likewise.
24381         * doc/glibc-functions/setstate_r.texi: Likewise.
24383         random_r: Support for MSVC 9.
24384         * lib/random_r.c: Include stdint.h, not inttypes.h.
24386 2012-01-12  Eric Blake  <eblake@redhat.com>
24388         inet_ntop: guard extra work by IF_LINT
24389         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
24390         better code generation when not checking for warnings.
24391         Suggested by Paul Eggert and Jim Meyering.
24393         strptime: fix regression on mingw
24394         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
24395         Fix regression.  Reported by Bruno Haible.
24397 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
24398             Bruno Haible  <bruno@clisp.org>
24400         copy-file: add error-code-returning variant.
24401         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
24402         (qcopy_file_preserving): New declaration.
24403         * lib/copy-file.c (qcopy_file_preserving): Renamed from
24404         copy_file_preserving. Change return type to 'int'. Don't emit an error
24405         message here.
24406         (copy_file_preserving): New function.
24407         * tests/test-copy-file.c: Include <stdlib.h>.
24408         (main): Test qcopy_file_preserving if the environment variable
24409         NO_STDERR_OUTPUT is set.
24410         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
24411         with NO_STDERR_OUTPUT
24412         * tests/test-copy-file-2.sh: Likewise.
24414 2012-01-10  Bruno Haible  <bruno@clisp.org>
24416         copy-file: Use 'quote' module consistently.
24417         * lib/copy-file.c (copy_file_preserving): Use quote().
24419         copy-file: Refactor.
24420         * lib/copy-file.c: Include quote.h.
24421         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
24422         message here.
24423         * modules/copy-file (Depends-on): Add quote.
24425         acl: Export qcopy_acl.
24426         * lib/acl.h (qcopy_acl): New declaration.
24427         * lib/copy-acl.c (qcopy_acl): Make non-static.
24429         acl: Rename a local variable.
24430         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
24432         acl: Align return values of copy_acl and qcopy_acl.
24433         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
24434         maybe < -1.
24436 2012-01-11  Eric Blake  <eblake@redhat.com>
24438         strptime: silence gcc warnings
24439         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
24440         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
24441         Reported by Daniel P. Berrange.
24443         inet_ntop: silence gcc warning
24444         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
24445         Reported by Daniel P. Berrange.
24447 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
24449         getloadavg test: skip the test on GNU/Linux without /proc mounted
24450         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
24451         file.  When /proc is not mounted, it always fails with ENOENT.
24452         * tests/test-getloadavg.c (main): Treat ENOENT return code from
24453         getloadavg(3) the same way as ENOSYS and ENOTSUP.
24455 2012-01-10  Bruno Haible  <bruno@clisp.org>
24457         regex: Avoid link error on MSVC 9.
24458         * modules/regex (Depends-on): Add wctype.
24460 2012-01-10  Bruno Haible  <bruno@clisp.org>
24462         doc: Mention --with-tests option.
24463         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
24464         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
24465         --with-tests.
24466         Reported by Reuben Thomas.
24468 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
24470         users.txt: order package names lexicographically.
24471         * users.txt: Order package names lexicographically.
24473 2012-01-10  Jim Meyering  <meyering@redhat.com>
24475         maint.mk: fix description in comment
24476         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
24478         ignore-value: remove deprecated ignore_ptr function
24479         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
24480         * NEWS: Note this.
24482 2012-01-09  Jim Meyering  <meyering@redhat.com>
24484         test-init.sh: avoid a subshell
24485         * tests/test-init.sh: Remove protective subshell.
24486         Suggested by Bernhard Voelker.  While a subshell is normally
24487         required to protect against older shells (Solaris, FreeBSD) that
24488         warn about a missing program before performing redirection, the
24489         shell-selection tests performed by init.sh probably exclude any
24490         offending shell.
24492 2012-01-08  Bruno Haible  <bruno@clisp.org>
24494         setlocale tests: Avoid test failure on Solaris 11.0.
24495         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
24496         variable.
24498 2012-01-08  Bruno Haible  <bruno@clisp.org>
24500         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
24501         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
24502         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
24503         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
24504         macro.
24505         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
24506         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
24507         * lib/spawn_faction_addopen.c: Add workaround implementation if
24508         HAVE_WORKING_POSIX_SPAWN.
24509         * modules/spawn (Makefile): Substitute
24510         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
24511         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
24512         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
24513         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
24514         (Depends-on): Update conditions.
24515         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
24516         the Solaris 11 bug.
24518 2012-01-08  Bruno Haible  <bruno@clisp.org>
24520         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
24521         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
24522         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
24523         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
24524         macro.
24525         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
24526         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
24527         * lib/spawn_faction_adddup2.c: Add workaround implementation if
24528         HAVE_WORKING_POSIX_SPAWN.
24529         * modules/spawn (Makefile): Substitute
24530         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
24531         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
24532         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
24533         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
24534         (Depends-on): Update conditions.
24535         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
24536         the Solaris 11 bug.
24538 2012-01-08  Bruno Haible  <bruno@clisp.org>
24540         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
24541         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
24542         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
24543         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
24544         HAVE_WORKING_POSIX_SPAWN.
24545         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
24546         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
24547         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
24548         * lib/spawn_faction_addclose.c: Add workaround implementation if
24549         HAVE_WORKING_POSIX_SPAWN.
24550         * modules/spawn (Makefile): Substitute
24551         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
24552         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
24553         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
24554         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
24555         (Depends-on): Update conditions.
24556         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
24557         the Solaris 11 bug.
24559 2012-01-08  Bruno Haible  <bruno@clisp.org>
24561         doc: Update for Solaris 11.0.
24562         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
24563         * m4/printf.m4: Update comments.
24565 2012-01-08  Bruno Haible  <bruno@clisp.org>
24567         mktime: Avoid compilation error on Solaris 11.
24568         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
24570 2012-01-08  Bruno Haible  <bruno@clisp.org>
24572         doc: Small fix.
24573         * doc/posix-headers/nl_types.texi: Correct platforms list.
24575 2012-01-08  Simon Josefsson  <simon@josefsson.org>
24577         Add lgpl-3.0 module.
24578         * MODULES.html.sh (Support for building documentation): Add
24579         lgpl-3.0.
24580         * modules/lgpl-3.0: New file.
24582 2012-01-08  Jim Meyering  <meyering@redhat.com>
24584         select.c: indent with spaces, not TABs
24585         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
24587 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
24589         quotearg: do not use grave accent for left quote
24590         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
24591         locale_quoting_style.
24592         (quotearg_buffer_restyled): Fix example.
24593         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
24595 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
24597         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
24598         Most programs do not have translation catalogs for English and much
24599         less separate catalogs for British and American English.  Drop the
24600         suggestion to translators about these two, and provide it
24601         automatically for Unicode locales.  Like most programs, even those
24602         using American English, we use single quotation marks.  This conflicts
24603         with the American typographic convention, but works better when you
24604         cite the entire error message within double quotes.  It also tries not
24605         to clash with established practice and with what non-gnulib programs
24606         will usually do.
24607         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
24608         using an UTF-8 or GB-18030 locale.  The list of other locales with
24609         quotes was provided by Bruno Haible.
24610         (quotearg_buffer_restyled): Adjust instructions to translators.
24611         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
24612         text, since this would be wrong when using Unicode.
24613         * modules/quotearg: Depend on c-strcaseeq.
24615 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
24617         quotearg: fix Wikipedia link
24618         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
24620 2012-01-07  Simon Josefsson  <simon@josefsson.org>
24622         Fix for mingw with MSVC9.
24623         * m4/ld-version-script.m4: Check that compiler rejects version
24624         scripts with syntax errors.  Reported by Bruno Haible
24625         <bruno@clisp.org>.
24627 2012-01-06  Bruno Haible  <bruno@clisp.org>
24629         Talk about "native Windows API", not "Woe32".
24630         * lib/accept4.c: Update comments to mention native Windows.
24631         * lib/execute.c: Likewise.
24632         * lib/fatal-signal.c: Likewise.
24633         * lib/localcharset.c: Likewise.
24634         * lib/nanosleep.c: Likewise.
24635         * lib/nl_langinfo.c: Likewise.
24636         * lib/pclose.c: Likewise.
24637         * lib/pipe-filter-gi.c: Likewise.
24638         * lib/pipe-filter-ii.c: Likewise.
24639         * lib/pipe.c: Likewise.
24640         * lib/pipe2.c: Likewise.
24641         * lib/popen.c: Likewise.
24642         * lib/progreloc.c: Likewise.
24643         * lib/relocatable.c: Likewise.
24644         * lib/sigaction.c: Likewise.
24645         * lib/sigprocmask.c: Likewise.
24646         * lib/spawn-pipe.h: Likewise.
24647         * lib/spawn-pipe.c: Likewise.
24648         * lib/spawni.c: Likewise.
24649         * lib/stat-time.h: Likewise.
24650         * lib/w32spawn.h: Likewise.
24651         * tests/test-isatty.c: Likewise.
24652         * lib/config.charset: More comments.
24653         * doc/gnulib-intro.texi: Mention native Windows.
24654         * doc/posix-functions/_Exit_C99.texi: Likewise.
24655         * doc/posix-headers/fcntl.texi: Likewise.
24657 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
24659         argp: Avoid crash if translator uses % characters in a translation.
24660         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
24661         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
24663 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
24665         doc: C11 and C++11 are now official
24666         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
24667         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
24668         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
24669         * modules/stdalign:
24670         Replace references to draft C1X to C11, and to draft C++0X to C++11.
24672 2012-01-06  Bruno Haible  <bruno@clisp.org>
24674         uc-is-grapheme-break tests: Tweak.
24675         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
24676         message.
24678 2012-01-06  Bruno Haible  <bruno@clisp.org>
24680         test-init.sh: correct the test for diff -u
24681         * tests/test-init.sh: Also redirect stdout to /dev/null.
24683 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
24685         Use ', not `, for quoting output.
24686         * build-aux/announce-gen (usage, sizes, print_news_deltas)
24687         (print_changelog_deltas, get_tool_versions, main program):
24688         * build-aux/git-version-gen:
24689         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
24690         * build-aux/move-if-change (help):
24691         * build-aux/useless-if-before-free (usage, main program):
24692         * check-module (parse_module_file, usage)
24693         (find_included_lib_files, check_module):
24694         * lib/argmatch.c (main) [TEST]:
24695         * lib/argp-help.c (_help):
24696         * lib/getopt1.c (main) [TEST]:
24697         * lib/git-merge-changelog.c (usage):
24698         * lib/xstrtol-error.c (xstrtol_error):
24699         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
24700         * m4/argz.m4 (gl_FUNC_ARGZ):
24701         * m4/bison.m4 (gl_BISON):
24702         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
24703         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
24704         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
24705         * m4/fpending.m4 (gl_PREREQ_FPENDING):
24706         * m4/gc-random.m4 (gl_GC_RANDOM):
24707         * m4/intl.m4 (gt_CHECK_DECL):
24708         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
24709         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
24710         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
24711         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
24712         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
24713         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
24714         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
24715         * tests/test-dirname.c (main):
24716         * tests/test-getpass.c (main):
24717         * tests/test-iconvme.c (main):
24718         * tests/test-parse-datetime.c (LOG):
24719         * tests/test-xstrtoimax.sh:
24720         * tests/test-xstrtol.sh:
24721         * tests/test-xstrtoll.sh:
24722         * tests/test-xstrtoumax.sh:
24723         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
24724         * top/GNUmakefile (abort-due-to-no-makefile):
24725         Quote 'like this', not `like this', as per the recent change to
24726         the GNU coding standards.
24728 2012-01-05  Bruno Haible  <bruno@clisp.org>
24730         strtoimax: Don't force a replacement on systems where intmax_t is int.
24731         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
24732         'intmax_t' is not larger than 'int'.
24733         Reported by Pádraig Brady <P@draigBrady.com>.
24735 2012-01-05  Bruno Haible  <bruno@clisp.org>
24737         doc: Mention NetBSD bugs.
24738         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
24739         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
24741 2012-01-05  Bruno Haible  <bruno@clisp.org>
24743         strtoumax tests: Enhance tests.
24744         * tests/test-strtoumax.c (main): Add tests for large values.
24746 2012-01-05  Bruno Haible  <bruno@clisp.org>
24748         strtoimax: Work around AIX 5.1 bug.
24749         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
24750         definition.
24751         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
24752         Set HAVE_STRTOIMAX.
24753         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
24754         REPLACE_STRTOIMAX.
24755         * modules/inttypes-incomplete (Makefile.am): Substitute
24756         REPLACE_STRTOIMAX.
24757         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
24758         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
24759         (Depends-on): Update conditions.
24760         * tests/test-strtoimax.c (main): Add tests for large values.
24761         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
24763 2012-01-05  Bruno Haible  <bruno@clisp.org>
24765         inttypes: Modernize.
24766         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
24767         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
24768         (Makefile.am): Update inttypes.h rule.
24770 2012-01-05  Jim Meyering  <meyering@redhat.com>
24772         init.sh: don't waste a subshell just to redirect stderr
24773         * tests/init.sh: In testing for diff -u and diff -c, use a
24774         stderr-redirecting exec inside `...` rather than a subshell.
24776         test-init.sh: avoid failure on HP-UX 11.00
24777         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
24778         resolves to diff -c or cmp.  Reported by Bruno Haible.
24780 2012-01-05  Bruno Haible  <bruno@clisp.org>
24782         Tests for module 'strtoull'.
24783         * modules/strtoull-tests: New file.
24784         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
24786 2012-01-05  Bruno Haible  <bruno@clisp.org>
24788         Tests for module 'strtoll'.
24789         * modules/strtoll-tests: New file.
24790         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
24792 2012-01-05  Bruno Haible  <bruno@clisp.org>
24794         Tests for module 'strtoul'.
24795         * modules/strtoul-tests: New file.
24796         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
24798 2012-01-05  Bruno Haible  <bruno@clisp.org>
24800         Tests for module 'strtol'.
24801         * modules/strtol-tests: New file.
24802         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
24804 2012-01-04  Jim Meyering  <meyering@redhat.com>
24806         test-init.sh: accommodate Solaris 5.10's different diff -u output
24807         * tests/test-init.sh: Also exempt @@ lines from the comparison
24808         of diff output, since Solaris 5.10 and GNU diff formats differ.
24809         Reported by Stefano Lattarini.
24811 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
24813         test-posixtm: don't assume signed integer wraparound
24814         * tests/test-posixtm.c (main): Don't assume wraparound semantics
24815         after signed integer overflow.  Inspired by (though it may not
24816         fix) Bruno Haible's bug report in
24817         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
24819         Spell out "Windows 9x" and "Windows XP".
24820         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
24821         "Windows 9x" and "WinXP" with "Windows XP".
24823 2012-01-04  Jim Meyering  <meyering@redhat.com>
24825         test-vc-list-files-cvs.sh: remove obsolete comment
24826         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
24827         double exit.  Now that's all encapsulated via skip_ and Exit.
24829 2012-01-04  Bruno Haible  <bruno@clisp.org>
24831         Talk about "native Windows API", not "Win32".
24832         * lib/classpath.c: Update comments to mention native Windows.
24833         * lib/csharpexec.c: Likewise.
24834         * lib/dup2.c: Likewise.
24835         * lib/error.c: Likewise.
24836         * lib/fcntl.c: Likewise.
24837         * lib/filename.h: Likewise.
24838         * lib/findprog.c: Likewise.
24839         * lib/get-rusage-as.c: Likewise.
24840         * lib/get-rusage-data.c: Likewise.
24841         * lib/getpagesize.c: Likewise.
24842         * lib/javaexec.c: Likewise.
24843         * lib/msvc-inval.c: Likewise.
24844         * lib/msvc-nothrow.c: Likewise.
24845         * lib/nanosleep.c: Likewise.
24846         * lib/nonblocking.c: Likewise.
24847         * lib/printf-parse.c: Likewise.
24848         * lib/setlocale.c: Likewise.
24849         * lib/sigaction.c: Likewise.
24850         * lib/strerror_r.c: Likewise.
24851         * lib/tmpdir.c: Likewise.
24852         * lib/vasnprintf.c: Likewise.
24853         * lib/w32spawn.h: Likewise.
24854         * lib/waitpid.c: Likewise.
24855         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
24856         * m4/locale-ar.m4: Likewise.
24857         * m4/locale-fr.m4: Likewise.
24858         * m4/locale-ja.m4: Likewise.
24859         * m4/locale-tr.m4: Likewise.
24860         * m4/locale-zh.m4: Likewise.
24861         * m4/printf.m4: Likewise.
24862         * tests/test-cloexec.c: Likewise.
24863         * tests/test-copy-acl.sh: Likewise.
24864         * tests/test-copy-file.sh: Likewise.
24865         * tests/test-file-has-acl.sh: Likewise.
24866         * tests/test-set-mode-acl.sh: Likewise.
24867         * tests/test-dup-safer.c: Likewise.
24868         * tests/test-dup2.c: Likewise.
24869         * tests/test-dup3.c: Likewise.
24870         * tests/test-fcntl.c: Likewise.
24871         * tests/test-nonblocking-pipe.h: Likewise.
24872         * tests/test-nonblocking-socket.h: Likewise.
24873         * tests/test-pipe.c: Likewise.
24874         * tests/test-pipe2.c: Likewise.
24875         * tests/test-spawn-pipe-child.c: Likewise.
24876         * doc/acl-resources.txt: Likewise.
24877         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
24878         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
24879         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
24880         * lib/localcharset.c: Update comments to mention native Windows.
24881         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
24882         * lib/localename.c: Likewise.
24883         * lib/progreloc.c: Likewise.
24884         * lib/relocatable.c: Likewise.
24885         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
24886         (windows_compute_revents): Renamed from win32_compute_revents.
24887         (windows_compute_revents_socket): Renamed from
24888         win32_compute_revents_socket.
24889         * lib/select.c: Update comments to mention native Windows.
24890         (windows_poll_handle): Renamed from win32_poll_handle.
24891         * m4/threadlib.m4: Update comments to mention native Windows.
24892         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
24893         --enable-threads=windows instead of --enable-threads=win32. Set
24894         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
24895         * lib/glthread/lock.h: Update comments to mention native Windows.
24896         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
24897         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
24898         USE_WIN32_THREADS.
24899         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
24900         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
24901         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
24902         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
24903         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
24904         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
24905         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
24906         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
24907         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
24908         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
24909         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
24910         * tests/test-tls.c: Likewise.
24911         Rationale:
24912         Microsoft renamed the "Win32 API" to "Windows API", as it is available
24913         on both 32-bit and 64-bit Windows systems.
24914         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
24915         line of distinction is between "native Windows" on one side and Unix/
24916         POSIX systems on the other side. More details in
24917         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
24918         Suggested by Paul Eggert.
24920 2012-01-03  Bruno Haible  <bruno@clisp.org>
24922         isatty: Support for MSVC 9.
24923         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
24924         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
24925         (_isatty_nothrow): New function.
24926         (isatty): Use it instead of _isatty.
24927         (IsConsoleHandle): Add comment, from Paolo Bonzini.
24928         * lib/poll.c (IsConsoleHandle): Likewise.
24929         * lib/select.c (IsConsoleHandle): Likewise.
24930         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
24931         (gl_PREREQ_ISATTY): New macro.
24932         * modules/isatty (Depends-on): Add msvc-inval.
24933         (configure.ac): Invoke gl_PREREQ_ISATTY.
24935 2012-01-03  Jim Meyering  <meyering@redhat.com>
24937         maint.mk: remove temporary transition aid from over 1.5 years ago
24938         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
24939         purpose was to aid in the transition (avoiding silent malfunction)
24940         from that old name to the new _sc_search_regexp.  This shim was
24941         added by commit 219c504b.
24943         init.sh: do not try to accommodate compare arguments starting with "-"
24944         * tests/init.sh (compare_dev_null_): Do not try to accommodate
24945         compare arguments that start with "-".  Besides, we do not worry
24946         about this when invoking diff or cmp; why start now with sed?
24947         Using "--" to separate options from argument would trigger sed
24948         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
24949         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
24951 2012-01-02  Bruno Haible  <bruno@clisp.org>
24953         Enhance tests for module 'isatty'.
24954         * modules/isatty-tests (Depends-on): Add pipe-posix.
24955         * tests/test-isatty.c: Include <fcntl.h>.
24956         (DEV_NULL): New macro.
24957         (main): Test the resut of isatty() also on regular files, pipes, and
24958         /dev/null.
24960         New module 'isatty'.
24961         * lib/unistd.in.h (isatty): New declaration.
24962         * lib/isatty.c: New file, based on an idea of
24963         Bastien Roucariès <roucaries.bastien@gmail.com>.
24964         * m4/isatty.m4: New file.
24965         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
24966         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
24967         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
24968         REPLACE_ISATTY.
24969         * modules/isatty: New file.
24970         * doc/posix-functions/isatty.texi: Mention the new module.
24971         Suggested by Paolo Bonzini.
24973 2012-01-02  Bruno Haible  <bruno@clisp.org>
24975         canonicalize: Tweak 2011-12-29 commit.
24976         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
24977         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
24979 2012-01-02  Jim Meyering  <meyering@redhat.com>
24981         gitlog-to-changelog: describe input syntax in --help output
24982         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
24984         gitlog-to-changelog: fix typo in --help: show backslash before email @
24985         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
24986         in sources, but not in actual output.
24988 2011-12-30  Jim Meyering  <meyering@redhat.com>
24990         gitlog-to-changelog: don't malfunction when name contains %-directive
24991         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
24992         in a name string cause trouble.  E.g., with a user name of "%s",
24993         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
24995 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
24997         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
24998         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
24999         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
25000         the "  (tiny change)" notation that is appended to the standard
25001         ChangeLog "date  name  email" header line.
25003 2012-01-01  Jim Meyering  <meyering@redhat.com>
25005         test-framework-sh: init.sh: fix "make dist" failure
25006         When using gnulib-tool's --with-tests option and any module that
25007         depends on test-framework-sh, "make dist" would fail due to the
25008         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
25009         in the gltests directory, and not in the gllib/ directory.
25010         One way to work around that is to move the EXTRA_DIST += init.sh
25011         from the primary module to the -tests one:
25012         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
25013         * modules/test-framework-sh (Makefile.am): ...not here.
25014         Reported by Tom G. Christensen in
25015         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
25017         version-etc: update copyright year reported by --version
25018         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
25020 2011-12-31  Pádraig Brady  <P@draigBrady.com>
25022         canonicalize: only stat() if required
25023         * lib/canonicalize.c (canonicalize_filename_mode):
25024         Avoid calling l?stat() when both CAN_MISSING,
25025         and CAN_NOLINKS are set, as we neither need
25026         to resolve symlinks or test component existence.
25028 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
25030         doc: cover st_ino issues once; add OpenVMS etc.
25031         * doc/posix-functions/stat.texi (stat):
25032         * doc/posix-functions/lstat.texi (lstat):
25033         * doc/posix-functions/fstatat.texi (fstatat):
25034         * doc/posix-functions/fstat.texi (fstat):
25035         Move general 'struct stat' stuff to sys_stat.texi,
25036         leaving behind a pointer.
25037         * doc/posix-headers/sys_stat.texi (sys/stat.h):
25038         Merge duplicate info about 'struct stat' problems into here.
25039         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
25040         and suggest partial workarounds.
25042         same-inode: port to OpenVMS
25043         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
25044         three st_ino values.
25046 2011-12-30  Pádraig Brady  <P@draigBrady.com>
25048         canonicalize: fix references to stat() and lstat()
25049         * lib/canonicalize.c (canonicalize_filename_mode):
25050         Ensure references always resolve to a replacement
25051         function if required (even via a macro).
25053 2011-12-30  Jim Meyering  <meyering@redhat.com>
25055         gitlog-to-changelog: remove a little duplication
25056         * build-aux/gitlog-to-changelog (main): Grep @lines once,
25057         rather than twice.
25059 2011-12-29  Pádraig Brady  <P@draigBrady.com>
25061         canonicalize: add support for not resolving symlinks
25062         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
25063         indicate we don't want to follow symlinks.  Also
25064         provide CAN_MODE_MASK to aid setting these existing
25065         mutually exclusive values.
25066         * lib/canonicalize.c (canonicalize_filename_mode):
25067         Extract the flags from can_mode parameter, which
25068         are currently just used to select between stat()
25069         and lstat().  Also ensure that mutually exclusive
25070         values are flagged immediately as invalid.
25071         * tests/test-canonicalize.c: Verify symlinks are
25072         not followed, and that invalid flag combinations
25073         are diagnosed.
25075 2011-12-25  Jim Meyering  <meyering@redhat.com>
25077         gitlog-to-changelog: do not clump multi-paragraph entries
25078         Identical header lines (date,name,email+coauthors) are suppressed,
25079         thus putting all entries with those same characteristics under
25080         a single header.  However, when a log entry consists of two or
25081         more paragraphs, it may not be clear where it starts and ends.
25082         This change makes it so that such an entry is always separated
25083         from others by a header line, even when that header would
25084         otherwise be suppressed.
25085         * build-aux/gitlog-to-changelog: Implement the above.
25086         Inspired by a related request from Stefano Lattarini in
25087         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
25089 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
25091         announce-gen: fix `cmd' typo in diagnostic
25092         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
25093         diagnostic: a missing '$' meant that the command was not output.
25095 2011-12-23  Jim Meyering  <meyering@redhat.com>
25097         test-framework-sh: distribute init.sh
25098         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
25099         Otherwise, "make -C gnulib-tests check" (at least in grep) would
25100         fail due to the lack of init.sh.
25102         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
25103         * modules/atexit-tests: Rather than listing tests/init.sh,
25104         now that there's a module for it, simply depend on that new module.
25105         * modules/closein-tests: Likewise.
25106         * modules/exclude-tests: Likewise.
25107         * modules/getcwd-tests: Likewise.
25108         * modules/perror-tests: Likewise.
25109         * modules/pread-tests: Likewise.
25110         * modules/pwrite-tests: Likewise.
25111         * modules/vc-list-files-tests: Likewise.
25112         * modules/verify-tests: Likewise.
25113         * modules/xalloc-die-tests: Likewise.
25114         * modules/xstrtoimax-tests: Likewise.
25115         * modules/xstrtol-tests: Likewise.
25116         * modules/xstrtoll-tests: Likewise.
25117         * modules/xstrtoumax-tests: Likewise.
25118         * modules/yesno-tests: Likewise.
25120 2011-12-22  Jim Meyering  <meyering@redhat.com>
25122         test-framework-sh: add minimal tests of init.sh's compare function
25123         * modules/test-framework-sh-tests: New file.
25124         * tests/test-init.sh: New file.
25126         test-framework-sh: new module
25127         * modules/test-framework-sh: New file.
25128         * MODULES.html.sh (Support for maintaining and releasing projects):
25129         List it.
25131         init.sh: do not emit simulated diff output to stderr
25132         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
25134 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
25136         .gitignore: ignore gnulib.dvi and regex.info
25137         * doc/.gitignore:add gnulib.dvi and regex.info
25139 2011-12-22  Jim Meyering  <meyering@redhat.com>
25141         init.sh: correct previous change
25142         * tests/init.sh (compare): My previous change was wrong.
25143         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
25145         init.sh: avoid unwarranted test failure when using "set -e"
25146         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
25147         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
25148         a use like "compare exp out" would get evoke an unconditional failure.
25150 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
25152         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
25153         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
25154         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
25155         autoreconf that did not.
25156         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
25157         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
25159 2011-12-17  Jim Meyering  <meyering@redhat.com>
25161         bootstrap: remove some now-unneeded code
25162         This script arose back when gnulib-tool was young.
25163         Since then, it has seen improvements that render much of this
25164         script unnecessary.  In particular, it can now make symlinks
25165         to the files it uses.  Also, I no longer see as much value in
25166         marking files as read-only via comments.
25167         If you relied on the symlink-creation feature of the preceding
25168         version of this script, you can get most of that functionality
25169         by adding the --symlink option to the definition of
25170         gnulib_tool_option_extras in your bootstrap.conf file.
25171         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
25172         Run autopoint and libtoolize *before* gnulib-tool.
25173         After it, run an abbreviated autoreconf, rather than a loop around
25174         all tools.
25175         (slirp, bt_mark_as_generated): Remove functions.
25177 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
25179         ftoastr: fix typo
25180         * lib/ftoastr.h: Fix misspelling in comment.
25182 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
25184         * top/README-release: fix punctuation.
25186 2011-12-17  Jim Meyering  <meyering@redhat.com>
25188         bootstrap: correct the recent buildreq change
25189         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
25190         had no effect.
25191         * build-aux/bootstrap (buildreq): Bracket each search term with
25192         "*...*", so that the shell "case" statement works as intended.
25193         Add comments.
25195 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
25197         build: let bootstrap resort to wget when downloading .po files
25198         * build-aux/bootstrap (download_po_files): Fallback to wget when
25199         downloading the .po files via rsync fails.  This is necessary to
25200         bootstrap from behind a strict firewall.
25202 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
25204         stdint: don't assume C++11 when compiling with g++
25205         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
25206         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
25207         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
25208         work also in C++ before C++11, as that improperly inhibits
25209         generating a substitute stdint.h for that case.
25211 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
25213         alloca: protect comment from gnulib-tool
25214         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
25215         that gnulib-tool doesn't think it's a license, and munge it to
25216         say "GCC version 3".
25218 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
25220         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
25221         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
25222         $(abs_top_builddir) instead of $(top_builddir).
25224 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
25226         strftime-tests: also test nanoseconds
25227         * tests/test-strftime.c (T): Add a test of %N.
25229 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
25231         inttypes, stdint: add C++11 support
25232         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
25233         when including inttypes.h and stdint.h.  Support this change to
25234         the standard.
25235         * doc/posix-headers/inttypes.texi (inttypes.h):
25236         * doc/posix-headers/stdint.texi (stdint.h): Document this.
25237         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
25238         Define if not defined already, for the benefit of pre-C++11 hosts.
25239         Define the standard format macros (e.g., PRId8) always.
25240         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
25241         Likewise, if __cpluspus.  Define the standard constant and limit
25242         macros (e.g., INT8_C, INT8_MAX) always.
25243         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
25244         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
25245         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
25246         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
25247         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
25248         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
25249         Likewise.
25251 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
25253         nonblocking tests: Fix test failure on Linux/PPC.
25254         Suggested by Prerna Saxena in
25255         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
25256         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
25257         Set to 1100000.
25259 2011-12-12  Jim Meyering  <meyering@redhat.com>
25261         argmatch: don't hard-code `' when listing valid option arguments
25262         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
25263         use the quote function to add quotes.  Use fputs rather than
25264         fprintf for the format string with no format directive.
25266 2011-12-07  Eric Blake  <eblake@redhat.com>
25268         bootstrap: detect tools required by gnulib-tool
25269         * build-aux/bootstrap (buildreq): Provide minimum implicit
25270         dependencies.
25271         * DEPENDENCIES: Mention patch as a prereq.
25273 2011-12-04  Bruno Haible  <bruno@clisp.org>
25275         sethostname: Port to Windows platforms.
25276         * lib/sethostname.c: Provide an alternate implementation for Windows
25277         platforms.
25278         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
25279         (main): Skip the test if sethostname() fails with EPERM. On Windows
25280         platforms, don't check the result of gethostname().
25282 2011-12-04  Bruno Haible  <bruno@clisp.org>
25283             Jim Meyering  <meyering@redhat.com>
25285         tests: Avoid spurious error message on platforms without mktemp program.
25286         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
25288 2011-12-04  Bruno Haible  <bruno@clisp.org>
25290         sethostname: Fix documentation.
25291         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
25292         "not fixed" section.
25294 2011-12-03  Bruno Haible  <bruno@clisp.org>
25296         gnulib-tool: Verify that the License field is present and non-empty.
25297         * gnulib-tool (func_get_license_raw): New function, extracted from
25298         func_get_license.
25299         (func_get_license): Use it. Warn if the module is not a test module and
25300         has no license.
25301         Suggested by Jim Meyering.
25303 2011-12-03  Bruno Haible  <bruno@clisp.org>
25305         sethostname tests: Fix link error on mingw.
25306         * tests/test-sethostname1.c: New file, extracted from
25307         tests/test-sethostname.c.
25308         * tests/test-sethostname2.c: New file, extracted from
25309         tests/test-sethostname.c.
25310         * tests/test-sethostname.c: Remove file.
25311         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
25312         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
25313         (Depends-on): Add gethostname.
25314         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
25315         Link the latter with $(GETHOSTNAME_LIB).
25317         sethostname tests: Fix compilation error on mingw.
25318         * tests/test-sethostname.c: Don't include <sys/types.h>.
25319         (geteuid): Use a dummy value without uid_t.
25320         * modules/sethostname-tests (Depends-on): Remove sys_types.
25322         sethostname tests: Avoid a gcc warning.
25323         * tests/test-sethostname.c (main): Remove an unused variable.
25325         Tweak last commit.
25326         * modules/sethostname-tests (Files): Sort by decreasing importance.
25327         (configure.ac): Check for geteuid.
25328         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
25329         the test when there's nothing to test. Drop an unnecessary cast.
25330         Improve an error message. Verify that the final sethostname() call
25331         succeeds.
25333 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
25335         Add a test suite for the sethostname module.
25336         * modules/sethostname-tests: New file.  A test program
25337         for the sethostname module.
25338         * tests/test-sethostname.c: Likewise.
25340 2011-12-03  Bruno Haible  <bruno@clisp.org>
25342         Tweak last commit.
25343         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
25344         Fix preprocessor directives indentation. Fix typos.
25345         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
25346         * modules/unistd (Makefile): Likewise.
25348 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
25350         Integrate the sethostname module into unistd.
25351         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
25352         into the unistd.h header.
25353         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
25354         preprocessor directives.
25355         * modules/unistd: Setup the Makefile substitutions of the
25356         SETHOSTNAME preprocessor directives.
25358 2011-12-03  Bruno Haible  <bruno@clisp.org>
25360         Tweak last commit.
25361         * lib/sethostname.c: Don't include <string.h>.
25362         (sethostname): No need to copy the argument string to the stack. Don't
25363         call clearerr. Preserve errno when fprintf failed.
25364         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
25365         Don't invoke AC_REPLACE_FUNCS.
25366         * modules/sethostname (Link): Remove empty section.
25367         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
25368         failure problem.
25370 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
25372         New module 'sethostname'.
25373         * lib/sethostname.c (sethostname): New file.  Provide sethostname
25374         for systems that lack it.
25375         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
25376         sethostname declaration and function.
25377         * modules/sethostname: New file.  Define the sethostname module.
25379 2011-12-03  Bruno Haible  <bruno@clisp.org>
25381         Tweak last commit.
25382         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
25384 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
25386         Split the HOST_NAME_MAX detection into a separate m4 macro.
25387         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
25388         macro so it can be used by the pending sethostname module.
25390 2011-12-03  Bruno Haible  <bruno@clisp.org>
25392         Fix module descriptions syntax.
25393         * modules/argv-iter (License): Fix syntax.
25394         * modules/di-set (License): Likewise.
25395         * modules/ino-map (License): Likewise.
25396         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
25398 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
25400         stdalign: port to Clang 3.0
25401         Problem reported by Simon Josefsson in
25402         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
25403         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
25404         which has <stdalign.h> but which does not define alignof.
25405         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
25407 2011-12-01  Eric Blake  <eblake@redhat.com>
25409         mktempd: silence dd usage
25410         * build-aux/mktempd (rand_bytes): Silence dd.
25412 2011-11-30  Simon Josefsson  <simon@josefsson.org>
25414         manywarnings: Don't mention gcc version in docstring.
25415         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
25416         Jim Meyering <meyering@redhat.com>.
25418 2011-11-30  Jim Meyering  <meyering@redhat.com>
25420         hash: mark a few floating point constants with "f" suffix
25421         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
25422         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
25423         floating point constants with "f", since they're destined to be
25424         saved/used as "float"s.
25426 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
25428         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
25429         * tests/test-float.c (test_long_double): Correct and re-enable the
25430         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
25432 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
25434         Avoid subtracting two pointers that don't point into the same block.
25435         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
25436         only pointers into the same memory block are subtracted. We cannot
25437         assume that sizeof (ptrdiff_t) == sizeof (void *).
25439 2011-11-29  Eric Blake  <eblake@redhat.com>
25441         maint.mk: add syntax check for use of compare from init.sh
25442         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
25443         moved here from coreutils.
25445         manywarnings: drop -Wunsuffixed-float-constants
25446         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
25447         '1.0D', which is the only way to silence this warning for 'double'.
25449 2011-11-29  Jim Meyering  <meyering@redhat.com>
25451         hash: mark compute_bucket_size with the pure attribute
25452         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
25454         quotearg, propername: correct pragma guard expression
25455         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
25456         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
25458 2011-11-28  Jim Meyering  <meyering@redhat.com>
25460         propername: do not mark proper_name with the const attribute
25461         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
25462         since it examines data pointed to by its parameter.
25463         * lib/propername.c (proper_name): Instead, add a pragma to suppress
25464         the suggestion from -Wsuggest-attribute=const.
25466         propername: mark one more function as const
25467         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
25469 2011-11-27  Jim Meyering  <meyering@redhat.com>
25471         mark functions with const and pure attributes
25473         Mark functions per suggestions from gcc-4.6 when using these options:
25474         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
25475         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
25476         Follow these guidelines: when possible, apply the attribute to
25477         an extern declaration, not to its definition.  Apply it to the
25478         definition only when the definition is static.
25479         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
25480         * lib/argv-iter.h (argv_iter_n_args): Likewise.
25481         * lib/base64.h (isbase64): Likewise.
25482         * lib/basename-lgpl.c (last_component, base_len): Likewise.
25483         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
25484         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
25485         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
25486         (c_tolower, c_toupper): Likewise.
25487         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
25488         * lib/chdir-long.c (find_non_slash): Likewise.
25489         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
25490         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
25491         * lib/file-type.h (file_type): Likewise.
25492         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
25493         * lib/filevercmp.c (verrevcmp): Likewise.
25494         * lib/freadahead.h (freadahead): Likewise.
25495         * lib/fts.c (fts_maxarglen): Likewise.
25496         * lib/hash-pjw.h (hash_pjw): Likewise.
25497         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
25498         * lib/hash.c (is_prime, next_prime): Likewise.
25499         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
25500         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
25501         (hash_table_ok, hash_get_first, hash_string): Likewise.
25502         (compute_bucket_size): Likewise.
25503         * lib/i-ring.h (i_ring_empty): Likewise.
25504         * lib/isnan.c (isnanl): Likewise.
25505         * lib/math.h (isnanl, rpl_isnanl): Likewise.
25506         * lib/memcasecmp.h (memcasecmp): Likewise.
25507         * lib/memchr2.h (memchr2): Likewise.
25508         * lib/memcmp2.h (memcmp2): Likewise.
25509         * lib/parse-datetime.y (lookup_zone): Likewise.
25510         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
25511         [!WINDOWS_SOCKETS]: Likewise.
25512         * lib/strnlen1.h (strnlen1): Likewise.
25513         * lib/uniwidth.in.h (uc_width): Likewise.
25514         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
25515         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
25516         (quoting_options_from_style): Add a comment.
25517         * lib/propername.h (proper_name): Add a comment.
25519 2011-11-27  Bruno Haible  <bruno@clisp.org>
25521         Remove unused macros from !_LIBC code in glibc-borrowed files.
25522         * lib/fnmatch.c (STRCOLL): Remove macro.
25523         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
25524         * lib/glob.c (__stat, __readdir64): Remove macros.
25525         * lib/tempname.c (__open64, __xstat64): Remove macros.
25526         Suggested by Paul Eggert.
25528 2011-11-27  Bruno Haible  <bruno@clisp.org>
25530         getcwd: Fix link error on MSVC 9.
25531         * modules/getcwd (Depends-on): Add readdir, rewinddir.
25533 2011-11-27  Bruno Haible  <bruno@clisp.org>
25535         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
25536         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
25537         HAVE_OPENDIR is 0.
25538         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
25539         HAVE_CLOSEDIR is 0.
25540         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
25541         is 0.
25542         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
25544 2011-11-27  Bruno Haible  <bruno@clisp.org>
25546         getcwd: Fix bug from 2011-08-17.
25547         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
25548         platforms that need it.
25549         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
25550         code of 4 to be a failure, not a success. This ensures that
25551         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
25553 2011-11-27  Bruno Haible  <bruno@clisp.org>
25555         binary-io tests: Avoid test failure on mingw when libtool is used.
25556         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
25557         Don't verify the size of t-bin-out1.tmp here.
25558         * tests/test-binary-io.sh: Verify it here.
25559         Reported by Simon Josefsson.
25561 2011-11-26  Bruno Haible  <bruno@clisp.org>
25563         Fix conflict between two instantiations of module 'unistd'.
25564         * gnulib-tool (func_emit_autoconf_snippet): Substitute
25565         ${include_guard_prefix} also in the autoconf snippet.
25566         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
25567         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
25568         GNULIB_UNISTD_H_GETOPT.
25569         * modules/getopt-posix (configure.ac): Set the
25570         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
25571         * modules/getopt-gnu (configure.ac): Likewise.
25572         * modules/unistd (Makefile.am): Change the substitution value of
25573         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
25574         Reported by Simon Josefsson.
25576 2011-11-25  Bruno Haible  <bruno@clisp.org>
25578         pagealign_alloc: Doc and comments.
25579         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
25580         module.
25581         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
25583 2011-11-25  Jim Meyering  <meyering@redhat.com>
25585         test-update-copyright.sh: avoid false-positive failure
25586         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
25587         around false positive failure on Cygwin/Windows.  The latter was
25588         matching erroneously-created files with names like
25589         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
25591 2011-11-25  Simon Josefsson  <simon@josefsson.org>
25593         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
25594         * m4/valgrind-tests.m4: Check that the parameters that will be
25595         used works, not just a subset of them.  Reported by Bruno Haible
25596         <bruno@clisp.org>.
25598 2011-11-24  Jim Meyering  <meyering@redhat.com>
25600         test-stdalign.c: comment out long double tests
25601         * tests/test-stdalign.c: Don't try to reduce alignment of long double
25602         variables.  That provokes errors like this from gcc-4.7.0 20111124:
25603         error: '_Alignas' specifiers cannot reduce alignment of \
25604         'static_longdouble_alignas'.
25606 2011-11-22  Jim Meyering  <meyering@redhat.com>
25608         init.sh: make "compare /dev/null FILE" output more readable
25609         * tests/init.sh (compare_): Document the preferred order of arguments.
25610         (emit_diff_u_header_): New function.
25611         (compare_dev_null_): Emit a simulated diff, rather than just the
25612         contents of the unexpected file.  Suggestion from Bruno Haible.
25614 2011-11-21  Jim Meyering  <meyering@redhat.com>
25615             Eric Blake  <eblake@redhat.com>
25617         init.sh: work around OSF/1 5.1's mishandling of /dev/null
25618         * tests/init.sh: Make our compare function slightly more portable.
25619         Reported by Bruno Haible in
25620         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
25622 2011-11-21  Simon Josefsson  <simon@josefsson.org>
25624         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
25625         before using it, in code that ends up in config.h.
25627 2011-11-20  Bruno Haible  <bruno@clisp.org>
25629         getcwd: Work around getcwd bug on AIX 5..7.
25630         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
25631         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
25632         Use a different value for gl_cv_func_getcwd_path_max. Move the
25633         definition of HAVE_PARTLY_WORKING_GETCWD from here...
25634         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
25635         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
25636         Define HAVE_MINIMALLY_WORKING_GETCWD.
25637         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
25638         where it is not even minimally working, that is, on AIX.
25639         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
25640         m4/getcwd-path-max.m4.
25641         (main): Update exit code computation.
25642         * doc/posix-functions/getcwd.texi: Mention list of platforms where
25643         getcwd does not handle long file names.
25645 2011-11-20  Bruno Haible  <bruno@clisp.org>
25647         getcwd: Fix bug from 2009-09-10.
25648         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
25649         like "no".
25651 2011-11-20  Simon Josefsson  <simon@josefsson.org>
25653         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
25655 2011-11-20  Bruno Haible  <bruno@clisp.org>
25657         fma tests: Avoid shadowing local variables.
25658         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
25659         expected.
25661 2011-11-20  Bruno Haible  <bruno@clisp.org>
25663         copysignf tests: Fix.
25664         * tests/test-copysignf.c: Fix signature check.
25666 2011-11-20  Bruno Haible  <bruno@clisp.org>
25668         fma: Remove unused code.
25669         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
25670         unused macros.
25672 2011-11-20  Bruno Haible  <bruno@clisp.org>
25674         sethostname: Fix doc about AIX.
25675         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
25676         sethostname; it has it.
25678         sethostname: Mention more portability problems.
25679         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
25680         problem.
25681         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
25683 2011-11-19  Bruno Haible  <bruno@clisp.org>
25685         Depend on module fcntl-h when AT_FDCWD is used.
25686         * modules/utimens (Depends-on): Add fcntl-h.
25687         * modules/areadlinkat (Depends-on): Likewise.
25688         * modules/areadlinkat-with-size (Depends-on): Likewise.
25689         * modules/faccessat (Depends-on): Likewise.
25690         * modules/fchmodat (Depends-on): Likewise.
25691         * modules/fchownat (Depends-on): Likewise.
25692         * modules/getcwd (Depends-on): Likewise.
25693         * modules/mkdirat (Depends-on): Likewise.
25694         * modules/mkfifoat (Depends-on): Likewise.
25695         * modules/readlinkat (Depends-on): Likewise.
25696         * modules/symlinkat (Depends-on): Likewise.
25697         * modules/dup2-tests (Depends-on): Likewise.
25698         * modules/fdutimensat-tests (Depends-on): Likewise.
25699         * modules/futimens-tests (Depends-on): Likewise.
25701 2011-11-19  Bruno Haible  <bruno@clisp.org>
25703         euidaccess: Update a comment.
25704         * lib/euidaccess.c: Update comment about platforms with faccessat.
25706 2011-11-19  Bruno Haible  <bruno@clisp.org>
25708         openat: Fix file list.
25709         * modules/openat (Files): Remove lib/at-func.c.
25711 2011-11-19  Bruno Haible  <bruno@clisp.org>
25713         fstatat: Simplify.
25714         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
25715         gnulib should define rpl_fstatat, there is a
25716         "#define fstatat rpl_fstatat" in <sys/stat.h>.
25718 2011-11-19  Bruno Haible  <bruno@clisp.org>
25720         Ensure 'inline' can be used in tests/test-utimens-common.h.
25721         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
25722         * modules/futimens-tests (configure.ac): Likewise.
25723         * modules/utimens-tests (configure.ac): Likewise.
25724         * modules/utimensat-tests (configure.ac): Likewise.
25726 2011-11-19  Simon Josefsson  <simon@josefsson.org>
25728         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
25729         not hash_insert0.
25730         (hash_insert_if_absent): Doc fix.
25732 2011-11-19  Simon Josefsson  <simon@josefsson.org>
25734         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
25736 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
25738         test-getcwd: disambiguate exit status
25739         * tests/test-getcwd.c (test_long_name): Return 0..7.
25740         (main): Exit with an unambiguous exit status.  The old
25741         code yielded a mysterious mixture of two failure codes.
25743         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
25744         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
25745         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
25746         rpl_fstatat or fstatat.  This should fix the other problem
25747         reported by Kai Habel in
25748         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
25749         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
25750         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
25751         and I reproduced it on a Solaris 8 host we still have in production.
25753 2011-11-18  Jim Meyering  <meyering@redhat.com>
25755         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
25756         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
25757         Add a sentence to the comment.
25758         (hash_insert0): New function that simply calls hash_insert_if_absent.
25759         * lib/hash.h (hash_insert_if_absent): Declare it.
25760         (hash_insert0): Add deprecation attribute.
25761         (_GL_ATTRIBUTE_DEPRECATED): Define.
25762         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
25763         not hash_insert0.
25764         * NEWS: Mention it, even though it's not really an incompatible change.
25766 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
25768         openat: avoid compilation failure due to lack of <errno.h> inclusion
25769         * lib/openat.c: Include <errno.h>.
25771 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
25773         * modules/getcwd (Depends-on): Add fdopendir.
25774         This fixes one of the two problems reported by Kai Habel in
25775         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
25777         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
25778         stdalign problem reported by Ian Beckwith in
25779         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
25780         * modules/crypto/gc-arcfour (Depends-on):
25781         Depend conditionally on crypto/arcfour.
25782         * modules/crypto/gc-arctwo (Depends-on):
25783         Depend conditionally on crypto/arctwo.
25784         * modules/crypto/gc-des (Depends-on):
25785         Depend conditionally on crypto/des.
25786         * modules/crypto/gc-hmac-md5 (Depends-on):
25787         Depend conditionally on crypto/hmac-md5.
25788         * modules/crypto/gc-hmac-sha1 (Depends-on):
25789         Depend conditionally on crypto/hmac-sha1.
25790         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
25791         * modules/crypto/gc-md4 (Depends-on):
25792         Depend conditionally on crypto/md4.
25793         * modules/crypto/gc-md5 (Depends-on):
25794         Depend conditionally on crypto/md5.
25795         * modules/crypto/gc-rijndael (Depends-on):
25796         Depend conditionally on crypto/rijndael.
25797         * modules/crypto/gc-sha1 (Depends-on):
25798         Depend conditionally on crypto/sha1.
25799         * modules/crypto/gc-arcfour:
25800         * modules/crypto/gc-arctwo:
25801         * modules/crypto/gc-des:
25802         * modules/crypto/gc-hmac-md5:
25803         * modules/crypto/gc-hmac-sha1:
25804         * modules/crypto/gc-md2:
25805         * modules/crypto/gc-md4:
25806         * modules/crypto/gc-md5:
25807         * modules/crypto/gc-rijndael:
25808         * modules/crypto/gc-sha1:
25809         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
25810         now that the conditional dependencies do the work for us.
25812 2011-11-17  Jim Meyering  <meyering@redhat.com>
25814         tests: factor st_ctime-comparison out of two headers
25815         * tests/test-utimens-common.h (ctime_compare): Define.
25816         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
25817         * tests/test-lutimens.h (test_lutimens): Likewise.
25818         * tests/test-utimens.h (test_utimens): Likewise.
25820         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
25821         Invoke the test program via an init.sh-using wrapper.
25822         * tests/test-getcwd.sh: New file.
25823         * modules/getcwd-tests (Files): Add it.
25824         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
25826 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
25828         gitlog-to-changelog: support multi-author commits.
25829         The FSF cares about keeping track of all authors of patches to its
25830         projects, but Git doesn't provide obvious support for multi-author
25831         changesets. Consensus seems to be forming around the use of extra
25832         Signed-off-by inspired lines in the log message formatted as
25833         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
25834         multi-author commits between version control systems.
25835         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
25836         log message and output in standard ChangeLog multi-author format.
25837         Reported by Peter Rosin <peda@lysator.liu.se>
25839 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
25840             Bruno Haible  <bruno@clisp.org>
25842         Fix some modules' file list.
25843         * modules/fstatat (Files): Add m4/lstat.m4.
25844         * modules/openat (Files): Likewise.
25845         * modules/unlinkat (Files): Likewise.
25847 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
25849         maint.mk: fix tight-scope.mk generation in VPATH builds.
25850         * top/maint.mk (tight-scope.mk): Make sure to prefix file
25851         reference with $(srcdir) so that the file is found correctly even
25852         when running `make syntax-check' in a VPATH build.
25854 2011-11-13  Bruno Haible  <bruno@clisp.org>
25855             Jim Meyering  <meyering@redhat.com>
25857         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
25858         * tests/init.sh (compare): Remove "No differences encountered" or
25859         synonymous output from the 'diff' program.
25861 2011-11-13  Bruno Haible  <bruno@clisp.org>
25863         Makefile: Tweak indentation.
25864         * Makefile: Use tab as first character in every line that contains rule
25865         commands.
25867 2011-11-13  Bruno Haible  <bruno@clisp.org>
25869         Syntax check for copyright statements.
25870         * check-copyright: New file.
25871         * Makefile (sc_check_copyright): New rule.
25873 2011-11-13  Simon Josefsson  <simon@josefsson.org>
25875         * build-aux/git-version-gen: Add --prefix to configure the tag
25876         match string.
25878 2011-11-13  Simon Josefsson  <simon@josefsson.org>
25880         * build-aux/git-version-gen: Add --help and --version.
25882 2011-11-12  Jim Meyering  <meyering@redhat.com>
25884         revamp the other test-exclude?.sh scripts to use init.sh, too
25885         * tests/test-exclude1.sh: Use init.sh.
25886         * tests/test-exclude2.sh: Likewise.
25887         * tests/test-exclude3.sh: Likewise.
25888         * tests/test-exclude4.sh: Likewise.
25889         * tests/test-exclude5.sh: Likewise.
25890         * tests/test-exclude6.sh: Likewise.
25891         * tests/test-exclude7.sh: Likewise.
25892         * tests/test-exclude8.sh: Likewise.
25893         * modules/exclude-tests (Files): List init.sh.
25895         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
25896         These shell scripts ignored failure of the binary test-exclude,
25897         so making the latter return 77 didn't cause them to be skipped.
25898         * tests/test-exclude5.sh: Exit with test-exclude's error status
25899         when that program fails.  Revamp to use init.sh.
25900         * tests/test-exclude2.sh: Likewise.
25902         test-exclude: fix a typo
25903         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
25905 2011-11-11  Bruno Haible  <bruno@clisp.org>
25907         obstack: Fix compilation error on MSVC 9.
25908         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
25910 2011-11-11  Jim Meyering  <meyering@redhat.com>
25912         test-exclude: skip tests rather than failing on deficient systems
25913         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
25914         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
25915         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
25916         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
25918 2011-11-10  Bruno Haible  <bruno@clisp.org>
25920         ptsname_r test: Avoid gcc warning on glibc systems.
25921         * tests/test-ptsname_r.c (null_ptr): New function.
25922         (test_errors): Use it.
25924 2011-11-10  Bruno Haible  <bruno@clisp.org>
25926         ptsname_r: Avoid compilation error on OSF/1 5.1.
25927         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
25928         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
25929         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
25930         function is not declared or incompatibly declared.
25931         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
25932         * modules/ptsname_r (Depends-on, configure.ac): Update.
25933         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
25935 2011-11-10  Bruno Haible  <bruno@clisp.org>
25937         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
25938         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
25939         When cross-compiling, guess yes on all platforms except AIX.
25940         Reported by Ludovic Courtès <ludo@gnu.org>.
25942 2011-11-09  Bruno Haible  <bruno@clisp.org>
25944         ptsname_r tests: Fix bugs.
25945         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
25946         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
25948 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
25950         fstatat: work with cross-compilation
25951         Problem reported by Ludovic Courtès in
25952         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
25953         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
25954         "cross-compiling" and assume the bug is present.  Replace
25955         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
25956         an inverted sense, to be more conservative about our assumptions.
25957         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
25959 2011-11-09  Bruno Haible  <bruno@clisp.org>
25961         Improve MODULES.html output.
25962         * modules/mkfifoat (Description): Use the word "function".
25963         * modules/readlinkat (Description): Likewise.
25964         * modules/symlinkat (Description): Likewise.
25966 2011-11-09  Eric Blake  <eblake@redhat.com>
25968         ptsname_r-tests: new test module
25969         * modules/ptsname_r-tests: New module.
25970         * tests/test-ptsname_r.c: New file.
25972         ptsname_r: new module
25973         * modules/ptsname_r: New module.
25974         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
25975         * lib/ptsname.c (__ptsname_r): Split...
25976         * lib/ptsname_r.c: ...into new file.
25977         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
25978         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
25979         * modules/stdlib (Makefile.am): Substitute witnesses.
25980         * lib/stdlib.in.h (ptsname_r): Declare it.
25981         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
25982         * MODULES.html.sh (Misc): Likewise.
25983         * modules/ptsname (Depends-on): Alter dependency.
25984         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
25986 2011-11-09  Jim Meyering  <meyering@redhat.com>
25988         announce-gen: be more concise when there's only one URL+tarball
25989         * build-aux/announce-gen (get_tool_versions): When you distribute
25990         only one type of tarball, combine the first two "Here are..."
25991         sections and make the key-checking grammar independent of
25992         how many tarballs there are.
25994 2011-11-09  Eric Blake  <eblake@redhat.com>
25996         openpty: provide a stub on mingw
25997         * lib/pty.in.h (includes): Provide forward declarations.
25998         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
26000         raise: fix mingw handling of SIGPIPE
26001         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
26003 2011-11-08  Bruno Haible  <bruno@clisp.org>
26005         More conditional dependencies.
26006         * modules/faccessat (Depends-on): Add conditions.
26007         * modules/fchmodat (Depends-on): Likewise.
26008         * modules/fchownat (Depends-on): Likewise.
26009         * modules/fstatat (Depends-on): Likewise.
26010         * modules/mkfifoat (Depends-on): Likewise.
26011         * modules/readlinkat (Depends-on): Likewise.
26012         * modules/symlinkat (Depends-on): Likewise.
26013         * modules/unlinkat (Depends-on): Likewise.
26014         * modules/utimensat (Depends-on): Likewise.
26015         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
26016         * modules/linkat (Depends-on): Refine the conditions.
26017         * modules/renameat (Depends-on): Likewise.
26019 2011-11-08  Bruno Haible  <bruno@clisp.org>
26021         faccessat: Move AC_LIBOBJ invocation to module description.
26022         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
26023         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
26024         invocation from here...
26025         * modules/faccessat (configure.ac): ... to here. Invoke
26026         gl_PREREQ_FACCESSAT.
26028 2011-11-08  Bruno Haible  <bruno@clisp.org>
26030         faccessat: Simplify autoconf macro.
26031         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
26032         gl_FUNC_EUIDACCESS.
26034 2011-11-08  Bruno Haible  <bruno@clisp.org>
26036         renameat: Fix dependencies.
26037         * modules/renameat (Depends-on): Add stdbool.
26039 2011-11-08  Bruno Haible  <bruno@clisp.org>
26041         mkfifoat: Fix module description.
26042         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
26043         not gl_UNISTD_MODULE_INDICATOR.
26045 2011-11-08  Bruno Haible  <bruno@clisp.org>
26047         fstatat: Remove unused dependency.
26048         * modules/fstatat (Depends-on): Remove fstat.
26050 2011-11-08  Simon Josefsson  <simon@josefsson.org>
26052         GNUmakefile: behave when Makefile is missing.
26053         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
26055 2011-11-08  Bruno Haible  <bruno@clisp.org>
26057         openat: Conditionalize dependencies.
26058         * lib/openat.c: Reduce the scope of some #includes.
26059         * modules/openat (Depends-on): Add conditions.
26061 2011-11-07  Jim Meyering  <meyering@redhat.com>
26063         maint.mk: extract GPG key ID without using a temporary file
26064         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
26065         without using a temporary file.  Based on a suggestion from Werner Koch
26066         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
26068 2011-11-07  Eric Blake  <eblake@redhat.com>
26070         grantpt: fix typo
26071         * lib/stdlib.in.h (grantpt): Check correct function.
26073         maint.mk: silence new syntax check
26074         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
26076 2011-11-06  Bruno Haible  <bruno@clisp.org>
26078         Doc about floating-point and math API.
26079         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
26080         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
26082 2011-11-06  Bruno Haible  <bruno@clisp.org>
26084         stdalign tests: Skip the test when compiled by Sun C.
26085         * tests/test-stdalign.c (main): Skip the test on Sun C.
26087 2011-11-06  Bruno Haible  <bruno@clisp.org>
26089         ansi-c++-opt: Complete the 2011-06-05 change.
26090         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
26091         does not support namespaces, set the variable to "no", not to ":".
26093 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
26095         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
26097 2011-11-06  Bruno Haible  <bruno@clisp.org>
26099         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
26100         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
26101         (minus_zerol) [HP-UX]: New macro.
26102         (unary_minus) [HP-UX]: New function.
26103         (copysignl) [HP-UX]: Use unary_minus function.
26105 2011-11-06  Bruno Haible  <bruno@clisp.org>
26107         ldexp, ldexpf, ldexpl: Enhance tests.
26108         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
26109         and tests/test-ldexpl.c.
26110         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
26111         LDEXP, MIN_EXP, MAX_EXP): New macros.
26112         Include test-ldexp.h.
26113         (main): Just call test_function.
26114         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
26115         infinity.h, nan.h.
26116         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
26117         MAX_EXP): New macros.
26118         Include test-ldexp.h.
26119         (x, y): Remove variables.
26120         (main): Just call test_function.
26121         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
26122         infinity.h, nan.h.
26123         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
26124         MAX_EXP): New macros.
26125         Include test-ldexp.h.
26126         (x, y): Remove variables.
26127         (main): Just call test_function.
26128         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
26129         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
26130         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
26131         (Depends-on): Add isnand-nolibm, signbit, float.
26132         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
26133         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
26134         (Depends-on): Add isnanf-nolibm, signbit, float.
26136 2011-11-06  Bruno Haible  <bruno@clisp.org>
26138         math tests: Cosmetics.
26139         * tests/test-math-c++.cc: Reorder declarations.
26141 2011-11-05  Bruno Haible  <bruno@clisp.org>
26143         fma*: Simplify test.
26144         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
26145         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
26147         Tests for module 'fmal'.
26148         * modules/fmal-tests: New file.
26149         * tests/test-fmal1.c: New file.
26150         * tests/test-fmal2.c: New file.
26152         New module 'fmal'.
26153         * lib/math.in.h (fmal): New declaration.
26154         * lib/fmal.c: New file.
26155         * m4/fmal.m4: New file.
26156         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
26157         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
26158         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
26159         REPLACE_FMAL.
26160         * modules/fmal: New file.
26161         * doc/posix-functions/fmal.texi: Mention the new module and the various
26162         bugs.
26164         Tests for module 'fmaf'.
26165         * modules/fmaf-tests: New file.
26166         * tests/test-fmaf1.c: New file.
26167         * tests/test-fmaf2.c: New file.
26169         New module 'fmaf'.
26170         * lib/math.in.h (fmaf): New declaration.
26171         * lib/fmaf.c: New file.
26172         * m4/fmaf.m4: New file.
26173         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
26174         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
26175         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
26176         REPLACE_FMAF.
26177         * modules/fmaf: New file.
26178         * doc/posix-functions/fmaf.texi: Mention the new module and the various
26179         bugs.
26181         Tests for module 'fma'.
26182         * modules/fma-tests: New file.
26183         * tests/test-fma1.c: New file.
26184         * tests/test-fma1.h: New file.
26185         * tests/test-fma2.c: New file.
26186         * tests/test-fma2.h: New file.
26188         New module 'fma'.
26189         * lib/math.in.h (fma): New declaration.
26190         * lib/fma.c: New file.
26191         * m4/fma.m4: New file.
26192         * m4/fegetround.m4: New file.
26193         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
26194         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
26195         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
26196         REPLACE_FMA.
26197         * modules/fma: New file.
26198         * doc/posix-functions/fma.texi: Mention the new module and the various
26199         bugs.
26201         Extend gl_MATHFUNC.
26202         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
26203         Support 'void' as argument type.
26204         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
26206 2011-11-05  Jim Meyering  <meyering@redhat.com>
26208         maint.mk: also prohibit inclusion of dirent.h without use
26209         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
26211 2011-11-05  Bruno Haible  <bruno@clisp.org>
26213         ldexpl tests: Avoid test failure on MSVC 9.
26214         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
26215         value. Needed in order to enforce the conversion from a value greater
26216         than LDBL_MAX to Infinity.
26218 2011-11-05  Bruno Haible  <bruno@clisp.org>
26220         New modules 'at-internal', 'openat-h', split off from module 'openat'.
26221         * modules/at-internal: New file, extracted from modules/openat.
26222         * modules/openat-h: New file.
26223         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
26224         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
26225         * modules/openat (Description): Add reference to POSIX function.
26226         (Files): Remove lib/openat.h, lib/openat-proc.c.
26227         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
26228         intprops, unistd.
26229         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
26230         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
26231         gl_FCNTL_MODULE_INDICATOR.
26232         (Include): Remove unistd.h, openat.h.
26233         * modules/areadlinkat (Files): Add lib/at-func.c.
26234         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
26235         openat-die, openat-h, save-cwd.
26236         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
26237         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
26238         openat-die, openat-h, save-cwd, unistd.
26239         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
26240         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
26241         openat-h, save-cwd. Remove fcntl-h, openat.
26242         * modules/fchmodat (Files): Remove lib/openat.h.
26243         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
26244         openat, stdbool, unistd.
26245         * modules/fchownat (Files): Remove lib/openat.h.
26246         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
26247         openat, stdbool, sys_stat.
26248         * modules/fdopendir (Files): Remove lib/openat-priv.h,
26249         lib/openat-proc.c.
26250         (Depends-on): Add at-internal.
26251         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
26252         * modules/fstatat (Files): Remove lib/openat.h.
26253         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
26254         stdbool, unistd.
26255         * modules/fts (Depends-on): Add openat-h.
26256         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
26257         openat.
26258         * modules/mkdirat (Files): Remove lib/openat.h.
26259         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
26260         openat, stdbool, sys_stat.
26261         * modules/mkfifoat (Files): Add lib/at-func.c.
26262         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
26263         openat-h, save-cwd. Remove fcntl-h, openat.
26264         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
26265         * modules/readlinkat (Files): Add lib/at-func.c.
26266         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
26267         openat-h, save-cwd. Remove fcntl-h, openat.
26268         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
26269         openat.
26270         * modules/selinux-at (Files): Add lib/at-func.c.
26271         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
26272         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
26273         * modules/symlinkat (Files): Add lib/at-func.c.
26274         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
26275         openat-h, save-cwd. Remove fcntl-h, openat.
26276         * modules/unlinkat (Files): Remove lib/openat.h.
26277         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
26278         stdbool.
26279         * modules/utimensat (Files): Add lib/at-func.c.
26280         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
26281         openat-die, openat-h, save-cwd.
26282         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
26283         * modules/fdutimensat-tests (Depends-on): Add openat.
26284         * modules/fstatat-tests (Depends-on): Add openat-h.
26285         * modules/readlinkat-tests (Depends-on): Add openat.
26286         * modules/symlinkat-tests (Depends-on): Add openat.
26288 2011-11-05  Bruno Haible  <bruno@clisp.org>
26290         openat: Include <stdbool.h>.
26291         * lib/openat.c: Include <stdbool.h>.
26293 2011-11-04  Bruno Haible  <bruno@clisp.org>
26295         fchownat, renameat, unlinkat: Fix dependencies.
26296         * modules/fchownat (Depends-on): Add fstatat.
26297         * modules/renameat (Depends-on): Likewise.
26298         * modules/unlinkat (Depends-on): Likewise.
26300 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
26302         openat: remove direct dependency on dirent
26303         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
26304         and hasn't been needed ever since fdopendir was split into its own
26305         module on 2009-08-31.
26306         * modules/openat (Depends-on): Remove dirent.
26308 2011-11-04  Bruno Haible  <bruno@clisp.org>
26310         renameat: Optimize code size.
26311         * modules/renameat (configure.ac): Don't compile at-func2.c if
26312         REPLACE_RENAMEAT is 1.
26314 2011-11-04  Bruno Haible  <bruno@clisp.org>
26316         openat tests: Fix file list.
26317         * modules/openat-tests (Files): Add tests/test-open.h.
26319 2011-11-04  Bruno Haible  <bruno@clisp.org>
26321         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
26322         * modules/fchmodat (Depends-on): Add openat-die.
26323         * modules/fchownat (Depends-on): Likewise.
26324         * modules/linkat (Depends-on): Likewise.
26325         * modules/renameat (Depends-on): Likewise.
26326         * modules/openat (Depends-on): Add dirent.
26328 2011-11-04  Jim Meyering  <meyering@redhat.com>
26330         at-func*.c: fix comments
26331         * lib/at-func2.c: Correct/improve first-line comment.
26332         * lib/at-func.c: Correct grammar in first-line comment.
26334 2011-11-04  Bruno Haible  <bruno@clisp.org>
26336         New module 'mkdirat', split off from module 'openat'.
26337         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
26338         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
26339         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
26340         * modules/mkdirat: New file, extracted from modules/openat.
26341         * modules/openat (Files): Remove lib/mkdirat.c.
26342         (Depends-on): Remove mkdir.
26343         (configure.ac): Remove AC_LIBOBJ of mkdirat.
26344         (Include): Remove <sys/stat.h>.
26345         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
26346         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
26347         tests/test-mkdir.h.
26348         (Depends-on): Remove ignore-value.
26349         (Makefile.am): Remove rules for test-mkdirat.
26350         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
26351         of module 'openat'.
26352         * NEWS: Mention the change.
26354 2011-11-04  Bruno Haible  <bruno@clisp.org>
26356         closedir: Avoid warning on mingw.
26357         * lib/closedir.c: Include <unistd.h>.
26359 2011-11-04  Bruno Haible  <bruno@clisp.org>
26361         New module 'fstatat', split off from module 'openat'.
26362         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
26363         defined.
26364         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
26365         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
26366         gl_FUNC_FSTATAT.
26367         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
26368         * modules/fstatat: New file, extracted from modules/openat.
26369         * modules/openat (Files): Remove lib/fstatat.c.
26370         (Depends-on): Remove lstat.
26371         (configure.ac): Remove AC_LIBOBJ of fstatat.
26372         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
26373         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
26374         tests/test-lstat.h, tests/test-stat.h.
26375         (Depends-on): Remove getcwd-lgpl.
26376         (Makefile.am): Remove rules for test-fstatat.
26377         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
26378         of module 'openat'.
26379         * NEWS: Mention the change.
26380         * modules/getcwd (Depends-on): Add fstatat.
26381         * modules/linkat (Depends-on): Likewise.
26382         * modules/mkfifoat-tests (Depends-on): Likewise.
26383         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
26385 2011-11-03  Bruno Haible  <bruno@clisp.org>
26387         New module 'unlinkat', split off from module 'openat'.
26388         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
26389         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
26390         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
26391         * modules/unlinkat: New file, extracted from modules/openat. Correct
26392         the dependency conditions.
26393         * modules/openat (Files): Remove lib/unlinkat.c.
26394         (Depends-on): Remove rmdir, unlink.
26395         (configure.ac): Remove AC_LIBOBJ of unlinkat.
26396         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
26397         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
26398         tests/test-rmdir.h, tests/test-unlink.h.
26399         (Depends-on): Remove unlinkdir.
26400         (Makefile.am): Remove rules for test-unlinkat.
26401         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
26402         of module 'openat'.
26403         * NEWS: Mention the change.
26404         * modules/linkat-tests (Depends-on): Add unlinkat.
26405         * modules/mkfifoat-tests (Depends-on): Likewise.
26406         * modules/readlinkat-tests (Depends-on): Likewise.
26408 2011-11-02  Bruno Haible  <bruno@clisp.org>
26410         New module 'fchmodat', split off from module 'openat'.
26411         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
26412         defined.
26413         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
26414         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
26415         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
26416         * modules/fchmodat: New file, extracted from modules/openat.
26417         * modules/openat (Files): Remove lib/fchmodat.c.
26418         (configure.ac): Remove AC_LIBOBJ of fchmodat.
26419         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
26420         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
26421         (Makefile.am): Remove rules for test-fchmodat.
26422         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
26423         of module 'openat'.
26424         * NEWS: Mention the change.
26426 2011-11-02  Jim Meyering  <meyering@redhat.com>
26428         putenv: indent #definition of "environ" to placate cppi
26429         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
26431         gitlog-to-changelog: provide a ChangeLog-repair mechanism
26432         Git logs are often treated as immutable, because editing them
26433         changes the SHA1 checksums of all descendants.  Thus, errors in
26434         git logs tend to stay there forever.  However, when we generate
26435         a ChangeLog file -- typically for distribution -- from that git log,
26436         we can actually make corrections in the generated file.  The key
26437         lies in recording in machine-readable/applicable form the desired
26438         corrections.  See --help for description and an example.
26439         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
26440         (usage): Describe it; alphabetize option descriptions.
26441         (main): Honor the new option, carefully.
26443 2011-11-01  Jim Meyering  <meyering@redhat.com>
26445         gitlog-to-changelog: avoid an infloop
26446         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
26447         that ends up being empty.
26449 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
26451         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
26452         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
26453         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
26454         contains (possibly-quoted) backslashes.  This should avoid
26455         all-too-common shell bugs if COMPLICATED contains backslashes in
26456         the "wrong" places.  Reported by David Evans in
26457         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
26458         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
26459         because we want ASCII ranges.  Is there some reason we don't use
26460         the C locale everywhere in this script?
26461         (func_module, top level): Avoid unwanted pathname expansion when
26462         $repo_url_prefix or $repo_url_suffix_repl contain shell
26463         metacharacters like '?' and '*'.
26465 2011-11-01  Bruno Haible  <bruno@clisp.org>
26467         fchownat: Improve description.
26468         * modules/fchownat (Description): Add link to function.
26470 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
26472         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
26473         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
26474         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
26475         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
26477 2011-11-01  Bruno Haible  <bruno@clisp.org>
26479         alignof: Avoid collision with stdalign module.
26480         * lib/alignof.h (alignof): Remove macro.
26481         * NEWS: Mention the change.
26482         Reported by Paul Eggert.
26484 2011-11-01  Bruno Haible  <bruno@clisp.org>
26486         New module 'fchownat', split off from module 'openat'.
26487         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
26488         defined.
26489         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
26490         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
26491         invoke gl_FUNC_FCHOWNAT.
26492         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
26493         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
26494         * modules/fchownat: New file, extracted from modules/openat.
26495         * modules/openat (Files): Remove lib/fchownat.c.
26496         (Depends-on): Remove lchown.
26497         (configure.ac): Remove AC_LIBOBJ of fchownat.
26498         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
26499         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
26500         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
26501         (Depends-on): Remove mgetgroups, usleep, stat-time.
26502         (configure.ac): Remove test for getegid.
26503         (Makefile.am): Remove rules for test-fchownat.
26504         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
26505         of module 'openat'.
26506         * NEWS: Mention the change.
26508 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
26510         stdalign: port better to MSVC and to Sun C 5.11
26511         This fixes some of the problems reported by Bruno Haible in
26512         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
26513         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
26514         shortcomings of MSVC and of Sun C 5.11.
26515         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
26516         around __declspec arg.
26517         * modules/stdalign-tests (Files): Add tests/macros.h.
26518         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
26519         Include macros.h, for ASSERT.
26520         (DECLARE_ALIGNED): Remove.
26521         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
26522         to catch bug), and to 1 if not (simplifies the rest of the code).
26523         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
26524         (CHECK_AUTO): Remove.
26525         (CHECK_ALIGNED): Check only the alignment of the static vars,
26526         since auto var alignment isn't supported by Sun C 5.11.
26527         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
26528         ASSERT failures are easier to diagnose.
26530 2011-10-31  Bruno Haible  <bruno@clisp.org>
26532         doc about some IRIX 5.3 problems.
26533         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
26534         on IRIX 5.3.
26535         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
26536         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
26537         5.3.
26538         * doc/posix-functions/grantpt.texi: Likewise.
26539         * doc/posix-functions/unlockpt.texi: Likewise.
26540         * doc/posix-functions/lgamma.texi: Likewise.
26541         * doc/posix-functions/nextafter.texi: Likewise.
26542         * doc/posix-functions/remainder.texi: Likewise.
26543         * doc/posix-functions/select.texi: Mention misplaced declaration on
26544         IRIX 5.3.
26545         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26547 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
26549         gitlog-to-changelog: fix git-log invocation.
26550         git-log mishandles date strings before 1970-01-01 UTC, and there is
26551         no use to specify --since=1970-01-01 by default anyway.
26552         * build-aux/gitlog-to-changelog: By default, when no --since option
26553         was given, do not specify explicit --since option to git-log.
26555 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
26557         gitlog-to-changelog: new option --append-dot.
26558         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
26559         first non-blank line of each commit message terminated with a dot.
26561 2011-10-30  Bruno Haible  <bruno@clisp.org>
26563         ffsl, ffsll: Avoid compilation error due to 'restrict'.
26564         * lib/ffsl.h: Include <config.h>.
26565         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
26567 2011-10-30  Jim Meyering  <meyering@redhat.com>
26569         GNUmakefile: reenable "make syntax-check" for most projects
26570         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
26571         build-aux variable", "syntax-check" would do nothing but succeed with
26572         the "No version control files detected..." diagnostic (unless you
26573         happened to override _build-aux via cfg.mk).
26574         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
26575         to precede inclusion of maint.mk.  Otherwise, these variables would
26576         be used undefined in any project that does not override the default.
26578 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
26580         gitlog-to-changelog: treat a message with only blank lines as empty.
26581         * build-aux/gitlog-to-changelog: Move the code that removes leading and
26582         trailing blank lines before the code that issues a warning about an
26583         empty commit message.
26585 2011-10-30  Jim Meyering  <meyering@redhat.com>
26587         test-parse-datetime.c: avoid new DST-related false positive test failure
26588         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
26589         based on the time/date we'll convert, not the current time.
26590         Otherwise, the moment we cross a DST boundary like today's in
26591         Europe, (CEST to CET), that offset ends up being one hour off.
26593 2011-10-27  Bruno Haible  <bruno@clisp.org>
26595         fstat: Tweak documentation.
26596         * modules/fstat (Description): More precise description.
26598 2011-10-27  Bruno Haible  <bruno@clisp.org>
26600         Update documentation regarding 'largefile' module.
26601         * doc/posix-functions/fstat.texi: Tweak wording.
26602         * doc/posix-functions/opendir.texi: Mention that the module fixes the
26603         problems with huge directories and/or small ino_t types.
26604         * doc/posix-functions/readdir.texi: Likewise.
26605         * doc/posix-functions/rewinddir.texi: Likewise.
26607 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
26609         maint.mk: don't maintain a second build-aux variable.
26610         * maint.mk (build_aux): Removed.  The maintainer-makefile module
26611         depends on GNUmakefile, which already maintains a cfg.mk
26612         overridable $(_build-aux) for projects with a non-standard
26613         build-aux directory location, although without the $(srcdir)
26614         prefix.  Use that variable consistently instead of introducing a
26615         second one.  Adjust all call sites.
26617 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
26619         Add stdalign module and use it in other modules.
26620         This is based on a previous proposal by Bruno Haible
26621         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
26623         stdalign: new module
26624         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
26625         * modules/stdalign: New files.
26626         * MODULES.html.sh (c1x_core_properties): Add stdalign.
26627         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
26629         stdalign-tests: new module
26630         * modules/stdalign-tests, tests/test-stdalign.c: New files.
26632         argp: use stdalign
26633         * lib/argp-parse.c: Include <stdalign.h>.
26634         (alignof): Remove.
26635         * modules/argp (Depends-on): Add stdalign.
26637         crypto libraries: use stdalign
26638         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
26639         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
26640         Do not include <stdlib.h> twice, in md4.c.
26641         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
26642         because we are accessing a pointer's bit-pattern, not a size.
26643         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
26644         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
26645         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
26646         * modules/crypto/sha512: Likewise.
26648         sys_socket: use stdalign, not alignof
26649         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
26650         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
26652 2011-10-27  Bruno Haible  <bruno@clisp.org>
26654         raise test: Avoid a test failure on Linux/MIPS.
26655         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
26656         because 99 is a valid signal on Linux/MIPS.
26658 2011-10-27  Bruno Haible  <bruno@clisp.org>
26660         nonblocking tests: Fix test failure on Linux/MIPS.
26661         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
26662         Set to 270000.
26664 2011-10-27  Bruno Haible  <bruno@clisp.org>
26666         utimensat: Work around problem on Linux/hppa.
26667         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
26668         values.
26669         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
26671 2011-10-25  Jim Meyering  <meyering@redhat.com>
26673         maint.mk: fix a bug in sc_prohibit_stddef_without_use
26674         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
26675         after symbols like NULL, size_t, etc.
26676         Reported by Alfred M. Szmidt.
26678         maint.mk: exempt ENODATA from a syntax-check rule
26679         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
26680         from the sc_prohibit_always-defined_macros syntax-check rule.
26681         Add a comment.  See this for more details:
26682         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
26684 2011-10-23  Jim Meyering  <meyering@redhat.com>
26686         fts: close parent dir FD before returning from post-traversal fts_read
26687         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
26688         unlink A, even though an FD open on A remained.  This is suboptimal
26689         (holding a file descriptor open longer than needed), but otherwise not
26690         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
26691         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
26692         that represents a real problem: it causes the removal of A to fail
26693         with e.g., "rm: cannot remove `A': Device or resource busy"
26695         fts visits each directory twice and keeps a cache (fts_fd_ring) of
26696         directory file descriptors.  After completing the final, FTS_DP,
26697         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
26698         cache, but then proceeded to add a new FD to it via the subsequent
26699         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
26700         final file descriptor would be closed only via fts_close's call to
26701         fd_ring_clear.  Now, it is usually closed earlier, via the final
26702         FTS_DP-returning fts_read call.
26703         * lib/fts.c (restore_initial_cwd): New function, converted from
26704         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
26705         Update callers.
26706         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
26707         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
26709 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
26710             Bruno Haible  <bruno@clisp.org>
26711             Jim Meyering  <jim@meyering.net>
26713         readme-release: improve safety of release prep instructions.
26714         * README-release: Don't git pull all branches when only master
26715         is needed for the release process.
26716         Run make maintainer-clean before changing trees and merging.
26717         Don't try to run ./configure right after git pull in case files
26718         that influence the bootstrap process have changed, move the
26719         ./configure step to after running ./bootstrap.
26720         Don't bootstrap "one last time"... it's the first time!
26722 2011-10-22  Bruno Haible  <bruno@clisp.org>
26724         errno, strerror-override: Support for MSVC 10.
26725         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
26726         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
26727         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
26728         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
26729         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
26730         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
26731         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
26732         Assign values compatible with MSVC 10.
26733         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
26734         New macros.
26735         (GNULIB_defined_EWINSOCK): New macro.
26736         * lib/strerror-override.c (strerror_override): Update accordingly.
26737         * lib/strerror-override.h: Likewise.
26738         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
26739         longer equal to the corresponding errno value.
26740         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
26742 2011-10-22  Bruno Haible  <bruno@clisp.org>
26744         perror: Recognize when test program crashes.
26745         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
26746         strerror, set gl_cv_func_perror_works to no.
26747         Reported by Daniel Richard G. <skunk@iskunk.org>.
26749         perror: Fix indentation.
26750         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
26752 2011-10-22  Bruno Haible  <bruno@clisp.org>
26754         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
26755         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
26756         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
26757         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
26758         functions, not as a macro.
26759         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
26760         macros.
26761         (isfinite, isinf, isnan, signbit): Check overloaded functions and
26762         absence of macro.
26763         Suggested by Eric Blake.
26764         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
26766 2011-10-21  Bruno Haible  <bruno@clisp.org>
26768         relocatable-prog-wrapper: Don't leave object files behind.
26769         * build-aux/install-reloc: Re-synchronize list of .o files to be
26770         removed with list of compilation units.
26772 2011-10-20  Bruno Haible  <bruno@clisp.org>
26774         openpty, posix_openpt: Remove code duplication.
26775         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
26776         * lib/openpty.c: Include <stdlib.h>.
26777         (openpty): Use posix_openpt on all platforms except IRIX.
26778         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
26780 2011-10-20  Bruno Haible  <bruno@clisp.org>
26782         unlockpt: Detect invalid argument.
26783         * lib/unlockpt.c: Include <fcntl.h>.
26784         (unlockpt): Check whether fd is valid, using fcntl().
26785         * modules/unlockpt (Depends-on): Add fcntl-h.
26787 2011-10-20  Bruno Haible  <bruno@clisp.org>
26789         openpty: Avoid compilation error on AIX 6.1.
26790         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
26792 2011-10-20  Bruno Haible  <bruno@clisp.org>
26794         posix_openpt: Support for OpenBSD.
26795         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
26796         (posix_openpt) [OpenBSD]: New code.
26797         * lib/grantpt.c: Include <fcntl.h>.
26798         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
26799         * modules/grantpt (Depends-on): Add fcntl-h.
26801 2011-10-20  Bruno Haible  <bruno@clisp.org>
26803         posix_openpt test: Coding style.
26804         * tests/test-posix_openpt.c: Use GNU coding style.
26806 2011-10-20  Bruno Haible  <bruno@clisp.org>
26808         grantpt: Support --avoid=pt_chown.
26809         * modules/grantpt (Files): Add lib/pty-private.h.
26811 2011-10-20  Bruno Haible  <bruno@clisp.org>
26813         posix_openpt: Fix autoconf macro.
26814         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
26815         unneeded check for _getpty.
26817 2011-10-20  Bruno Haible  <bruno@clisp.org>
26819         openpty: Update comments.
26820         * lib/openpty.c: Add comments about Minix.
26822 2011-10-19  Eric Blake  <eblake@redhat.com>
26824         openpty: relax license
26825         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
26827         pt_chown: use configmake to simplify build
26828         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
26830         ptsname and others: relax license
26831         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
26832         * modules/unlockpt (License): Likewise.
26833         * modules/pt_chown (License): Likewise.
26834         * modules/ptsname (License): Likewise.
26835         * modules/ttyname_r (License): Likewise.
26837 2011-10-19  Jim Meyering  <meyering@redhat.com>
26839         posix_openpt: remove spurious #endif
26840         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
26842 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
26844         maint.mk: Respect $(build_aux) in web-manual rule.
26845         * top/maint.mk (web-manual): Find gen-announce script in user's
26846         $(build_aux) directory instead of hard-coding 'build-aux'.
26848 2011-10-19  Bruno Haible  <bruno@clisp.org>
26850         posix_openpt: Fix compilation error.
26851         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
26852         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
26853         Mention the openpty module as an alternative.
26855 2011-10-19  Bruno Haible  <bruno@clisp.org>
26857         Support for old NeXTstep 3.3 frexp().
26858         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
26859         execution time of the test to 5 seconds.
26860         Reported by Daniel Richard G. <skunk@iskunk.org>.
26862 2011-10-19  Bruno Haible  <bruno@clisp.org>
26864         Support for old NeXTstep 3.3 sed.
26865         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
26866         part, use /.../, not \|...|. Escape periods in the header file name.
26867         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
26868         Reported by Daniel Richard G. <skunk@iskunk.org>.
26870 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
26872         Support for old NeXTstep 3.3 gcc.
26873         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
26874         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
26875         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
26876         * lib/spawn.in.h (_Restrict_arr_): Likewise.
26877         * lib/regex.h (_Restrict_arr_): Likewise.
26878         * lib/regex_internal.h (re_token_t): Likewise.
26879         * lib/regexec.c (check_node_accept_bytes): Likewise.
26880         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
26882 2011-10-18  Eric Blake  <eblake@redhat.com>
26884         posix_openpt: new module
26885         * modules/posix_openpt: New module.
26886         * m4/posix_openpt.m4: New file.
26887         * lib/posix_openpt.c: Likewise.
26888         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
26889         (gl_STDLIB_H_DEFAULTS): Set defaults.
26890         * modules/stdlib (Makefile.am): Substitute macros.
26891         * lib/stdlib.in.h (posix_openpt): Declare.
26892         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
26893         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
26894         * modules/posix_openpt-tests: New test module.
26895         * tests/test-posix_openpt.c: New test.
26897 2011-10-15  Bruno Haible  <bruno@clisp.org>
26899         xstrtoll: Fix compilation failure.
26900         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
26901         from lib/strtol.c.
26902         * doc/posix-headers/limits.texi: Mention missing numerical limits on
26903         some platforms.
26904         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26906 2011-10-15  Bruno Haible  <bruno@clisp.org>
26908         vasnprintf: Optimize bit search operation.
26909         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
26910         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
26911         gl_DOUBLE_EXPONENT_LOCATION.
26912         * modules/vasnprintf (Files): Add m4/exponentd.m4.
26913         * modules/unistdio/u8-vasnprintf (Files): Likewise.
26914         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
26915         * modules/unistdio/u16-vasnprintf (Files): Likewise.
26916         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
26917         * modules/unistdio/u32-vasnprintf (Files): Likewise.
26918         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
26919         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
26920         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
26922 2011-10-15  Bruno Haible  <bruno@clisp.org>
26924         vasnprintf: Fix comments.
26925         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
26927 2011-10-14  Bruno Haible  <bruno@clisp.org>
26929         Tests for module 'integer_length_ll'.
26930         * modules/integer_length_ll-tests: New file.
26931         * tests/test-integer_length_ll.c: New file.
26933         New module 'integer_length_ll'.
26934         * lib/integer_length_ll.c: New file.
26935         * modules/integer_length_ll: New file.
26937 2011-10-14  Bruno Haible  <bruno@clisp.org>
26939         Tests for module 'integer_length_l'.
26940         * modules/integer_length_l-tests: New file.
26941         * tests/test-integer_length_l.c: New file.
26943         New module 'integer_length_l'.
26944         * lib/integer_length_l.c: New file.
26945         * modules/integer_length_l: New file.
26947 2011-10-14  Bruno Haible  <bruno@clisp.org>
26949         Tests for module 'integer_length'.
26950         * modules/integer_length-tests: New file.
26951         * tests/test-integer_length.c: New file.
26953         New module 'integer_length'.
26954         * lib/integer_length.h: New file.
26955         * lib/integer_length.c: New file.
26956         * modules/integer_length: New file.
26958 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
26960         popen: Fix dependency conditions.
26961         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
26963 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
26965         perror: Fix autoconf test.
26966         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
26967         <stdlib.h> and <string.h>.
26969 2011-10-14  Bruno Haible  <bruno@clisp.org>
26971         ffsl: Optimize on 64-bit platforms.
26972         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
26973         unrolling.
26975 2011-10-13  Bruno Haible  <bruno@clisp.org>
26977         ffsl: Optimize on 32-bit platforms.
26978         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
26979         use ffs() without a loop.
26981         ffsl, ffsll: Optimize for GCC.
26982         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
26983         * lib/ffsl.c (GCC_BUILTIN): New macro.
26984         * lib/ffsll.c (GCC_BUILTIN): Likewise.
26986 2011-10-13  Bruno Haible  <bruno@clisp.org>
26988         ffs, bcopy, memset: Support symbol renaming via config.h.
26989         * lib/ffs.c: Include <config.h>.
26990         * lib/bcopy.c: Likewise.
26991         * lib/memset.c: Likewise.
26993 2011-10-10  Bruno Haible  <bruno@clisp.org>
26995         atanl: Simplify for platforms where 'long double' == 'double'.
26996         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
26997         alternative implementation.
26998         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26999         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27000         * modules/atanl (Depends-on): Add atan. Update conditions.
27002 2011-10-10  Bruno Haible  <bruno@clisp.org>
27004         acosl: Simplify for platforms where 'long double' == 'double'.
27005         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
27006         alternative implementation.
27007         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27008         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27009         * modules/acosl (Depends-on): Add acos. Update conditions.
27011 2011-10-10  Bruno Haible  <bruno@clisp.org>
27013         asinl: Simplify for platforms where 'long double' == 'double'.
27014         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
27015         alternative implementation.
27016         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27017         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27018         * modules/asinl (Depends-on): Add asin. Update conditions.
27020 2011-10-10  Bruno Haible  <bruno@clisp.org>
27022         tanl: Simplify for platforms where 'long double' == 'double'.
27023         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
27024         implementation.
27025         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27026         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27027         * modules/tanl (Depends-on): Add tan. Update conditions.
27028         (configure.ac): Don't compile trigl.c if
27029         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27031 2011-10-10  Bruno Haible  <bruno@clisp.org>
27033         cosl: Simplify for platforms where 'long double' == 'double'.
27034         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
27035         implementation.
27036         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27037         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27038         * modules/cosl (Depends-on): Add cos. Update conditions.
27039         (configure.ac): Don't compile sincosl.c and trigl.c if
27040         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27042 2011-10-10  Bruno Haible  <bruno@clisp.org>
27044         sinl: Simplify for platforms where 'long double' == 'double'.
27045         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
27046         implementation.
27047         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27048         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27049         * modules/sinl (Depends-on): Add sin. Update conditions.
27050         (configure.ac): Don't compile sincosl.c and trigl.c if
27051         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27053 2011-10-10  Bruno Haible  <bruno@clisp.org>
27055         logl: Simplify for platforms where 'long double' == 'double'.
27056         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
27057         implementation.
27058         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27059         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27060         * modules/logl (Depends-on): Add log. Update conditions.
27062 2011-10-10  Bruno Haible  <bruno@clisp.org>
27064         expl: Simplify for platforms where 'long double' == 'double'.
27065         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
27066         implementation.
27067         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27068         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27069         * modules/expl (Depends-on): Add exp. Update conditions.
27071 2011-10-10  Bruno Haible  <bruno@clisp.org>
27073         sqrtl: Simplify for platforms where 'long double' == 'double'.
27074         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
27075         alternative implementation.
27076         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27077         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27078         * modules/sqrtl (Depends-on): Update conditions.
27080 2011-10-10  Bruno Haible  <bruno@clisp.org>
27082         ldexpl: Simplify for platforms where 'long double' == 'double'.
27083         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
27084         alternative implementation.
27085         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27086         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27087         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
27089 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
27091         ffsll: set correct witness
27092         * modules/ffsll (configure.ac): Fix typo.
27094 2011-10-10  Bruno Haible  <bruno@clisp.org>
27096         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
27097         * lib/printf-frexpl.c: Include <config.h>.
27098         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
27099         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
27100         second time.
27101         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
27102         gl_LONG_DOUBLE_VS_DOUBLE.
27103         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
27104         conditions.
27106 2011-10-10  Bruno Haible  <bruno@clisp.org>
27108         frexpl: Simplify for platforms where 'long double' == 'double'.
27109         * lib/frexpl.c: Include <config.h>.
27110         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
27111         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
27112         time.
27113         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27114         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27115         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
27116         * modules/frexpl (Depends-on): Add frexp. Update conditions.
27117         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
27118         conditions.
27120 2011-10-10  Jim Meyering  <meyering@redhat.com>
27122         test-renameat: don't leave behind a temporary file
27123         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
27124           ERROR: files left in build directory after distclean:
27125           ./gltests/test-renameat.too
27126           make[1]: *** [distcleancheck] Error 1
27127         Reported by Tom G. Christensen.
27129 2011-10-09  Bruno Haible  <bruno@clisp.org>
27131         rint: Determine RINT_LIBM correctly on AIX 7.
27132         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
27133         directly, not only through a function pointer. Also accept an optional
27134         4th argument with extra code.
27135         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
27136         rintf() call by gcc when optimizing.
27138         mathfunc.m4: Refactor.
27139         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
27140         m4 variable.
27142 2011-10-09  Bruno Haible  <bruno@clisp.org>
27144         rintl: Simplify for platforms where 'long double' == 'double'.
27145         * lib/rintl.c: Include <config.h>.
27146         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
27147         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
27148         time.
27149         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27150         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27151         * modules/rintl (Depends-on): Add rint. Update conditions.
27153 2011-10-09  Bruno Haible  <bruno@clisp.org>
27155         roundl: Simplify for platforms where 'long double' == 'double'.
27156         * lib/roundl.c: Include <config.h>.
27157         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
27158         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
27159         time.
27160         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27161         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27162         * modules/roundl (Depends-on): Add round. Update conditions.
27164 2011-10-09  Bruno Haible  <bruno@clisp.org>
27166         truncl: Simplify for platforms where 'long double' == 'double'.
27167         * lib/truncl.c: Include <config.h>.
27168         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
27169         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
27170         time.
27171         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27172         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27173         * modules/truncl (Depends-on): Add trunc. Update conditions.
27175 2011-10-09  Bruno Haible  <bruno@clisp.org>
27177         ceill: Simplify for platforms where 'long double' == 'double'.
27178         * lib/ceill.c: Include <config.h>.
27179         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
27180         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
27181         time.
27182         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27183         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27184         * modules/ceill (Depends-on): Add ceil. Update conditions.
27186 2011-10-09  Bruno Haible  <bruno@clisp.org>
27188         floorl: Simplify for platforms where 'long double' == 'double'.
27189         * lib/floorl.c: Include <config.h>.
27190         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
27191         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
27192         time.
27193         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27194         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27195         * modules/floorl (Depends-on): Add floor. Update conditions.
27197 2011-10-09  Bruno Haible  <bruno@clisp.org>
27199         rint: Fix ordering constraints.
27200         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
27201         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
27202         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
27204 2011-10-09  Bruno Haible  <bruno@clisp.org>
27206         copysignl: Simplify for platforms where 'long double' == 'double'.
27207         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
27208         alternative.
27209         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27210         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27211         * modules/copysignl (Depends-on): Add copysign. Update conditions.
27213 2011-10-09  Bruno Haible  <bruno@clisp.org>
27215         Tests for module 'rintl'.
27216         * modules/rintl-tests: New file.
27217         * tests/test-rintl.c: New file.
27219         New module 'rintl'.
27220         * lib/math.in.h (rintl): New declaration.
27221         * lib/rintl.c: New file.
27222         * m4/rintl.m4: New file.
27223         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
27224         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
27225         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
27226         * modules/rintl: New file.
27227         * tests/test-math-c++.cc: Check the declaration of rintl.
27228         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
27229         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
27230         * doc/posix-functions/rintl.texi: Mention the new module.
27232 2011-10-09  Bruno Haible  <bruno@clisp.org>
27234         Tests for module 'rintf'.
27235         * modules/rintf-tests: New file.
27236         * tests/test-rintf.c: New file.
27238         New module 'rintf'.
27239         * lib/math.in.h (rintf): New declaration.
27240         * lib/rintf.c: New file.
27241         * m4/rintf.m4: New file.
27242         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
27243         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
27244         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
27245         * modules/rintf: New file.
27246         * tests/test-math-c++.cc: Check the declaration of rintf.
27247         * doc/posix-functions/rintf.texi: Mention the new module.
27249 2011-10-09  Bruno Haible  <bruno@clisp.org>
27251         rint: Support for MSVC.
27252         * lib/math.in.h (rint): New declaration.
27253         * lib/rint.c: New file.
27254         * m4/rint.m4: New file.
27255         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
27256         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
27257         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
27258         * modules/rint (Description): Fix.
27259         (Files): Add lib/rint.c, m4/rint.m4.
27260         (Depends-on): Add math.
27261         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
27262         gl_MATH_MODULE_INDICATOR.
27263         * tests/test-math-c++.cc: Check the declaration of rint.
27264         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
27265         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
27266         * doc/posix-functions/rint.texi: Mention the replacement provided by
27267         the module.
27269         rint tests: More tests.
27270         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
27271         minus-zero.h, infinity.h, nan.h.
27272         (main): Skip the test if the current rounding mode is not standard. Add
27273         tests for negative numbers, minus zero, infinity, NaN.
27274         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
27275         tests/nan.h.
27276         (Depends-on): Add isnand-nolibm.
27278 2011-10-09  Bruno Haible  <bruno@clisp.org>
27280         Tests for module 'copysignl'.
27281         * modules/copysignl-tests: New file.
27282         * tests/test-copysignl.c: New file.
27284         New module 'copysignl'.
27285         * lib/math.in.h (copysignl): New declaration.
27286         * lib/copysignl.c: New file.
27287         * m4/copysignl.m4: New file.
27288         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
27289         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
27290         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
27291         HAVE_COPYSIGNL.
27292         * modules/copysignl: New file.
27293         * tests/test-math-c++.cc: Check the declaration of copysignl.
27294         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
27295         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
27296         * doc/posix-functions/copysignl.texi: Mention the new module.
27298 2011-10-09  Bruno Haible  <bruno@clisp.org>
27300         Tests for module 'copysignf'.
27301         * modules/copysignf-tests: New file.
27302         * tests/test-copysignf.c: New file.
27304         New module 'copysignf'.
27305         * lib/math.in.h (copysignf): New declaration.
27306         * lib/copysignf.c: New file.
27307         * m4/copysignf.m4: New file.
27308         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
27309         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
27310         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
27311         HAVE_COPYSIGNF.
27312         * modules/copysignf: New file.
27313         * tests/test-math-c++.cc: Check the declaration of copysignf.
27314         * doc/posix-functions/copysignf.texi: Mention the new module.
27316 2011-10-09  Bruno Haible  <bruno@clisp.org>
27318         Ensure that HAVE_* variables are set to 1 before they are set to 0.
27319         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
27320         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
27321         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
27322         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
27323         gl_SIGNAL_H_DEFAULTS.
27325 2011-10-09  Bruno Haible  <bruno@clisp.org>
27327         poll: Make macro safer.
27328         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
27329         ac_cv_header_poll_h is not set.
27331 2011-10-09  Bruno Haible  <bruno@clisp.org>
27333         copysign: Provide replacement.
27334         * lib/math.in.h (copysign): New declaration.
27335         * lib/copysign.c: New file.
27336         * m4/copysign.m4: New file.
27337         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
27338         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
27339         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
27340         HAVE_COPYSIGN.
27341         * modules/copysign (Description): Clarify.
27342         (Files): Add lib/copysign.c, m4/copysign.m4.
27343         (Depends-on): Add math, signbit.
27344         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
27345         gl_MATH_MODULE_INDICATOR.
27346         * tests/test-math-c++.cc: Check the declaration of copysign.
27347         * doc/posix-functions/copysign.texi: Mention the effects of the module
27348         on Minix and MSVC.
27350 2011-10-09  Bruno Haible  <bruno@clisp.org>
27352         isinf: Ensure macro on AIX 5.1.
27353         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
27354         macro.
27355         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
27357 2011-10-09  Bruno Haible  <bruno@clisp.org>
27359         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
27360         * modules/snprintf-posix-tests (configure.ac): Require
27361         gl_LONG_DOUBLE_VS_DOUBLE.
27362         * modules/sprintf-posix-tests (configure.ac): Likewise.
27363         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
27364         * modules/vasprintf-posix-tests (configure.ac): Likewise.
27365         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
27366         * modules/vsprintf-posix-tests (configure.ac): Likewise.
27367         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
27368         tests on platforms where 'long double' is the same as 'double'.
27369         * tests/test-sprintf-posix.h (test_function): Likewise.
27370         * tests/test-vasnprintf-posix.c (test_function): Likewise.
27371         * tests/test-vasprintf-posix.c (test_function): Likewise.
27373         *printf: Fix for platforms where 'long double' == 'double'.
27374         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
27375         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
27376         * modules/dprintf-posix (Files): Add m4/math_h.m4.
27377         * modules/fprintf-posix (Files): Likewise.
27378         * modules/obstack-printf-posix (Files): Likewise.
27379         * modules/snprintf-posix (Files): Likewise.
27380         * modules/sprintf-posix (Files): Likewise.
27381         * modules/vasnprintf (Files): Likewise.
27382         * modules/vasnprintf-posix (Files): Likewise.
27383         * modules/vasprintf-posix (Files): Likewise.
27384         * modules/vdprintf-posix (Files): Likewise.
27385         * modules/vfprintf-posix (Files): Likewise.
27386         * modules/vsnprintf-posix (Files): Likewise.
27387         * modules/vsprintf-posix (Files): Likewise.
27388         * modules/unistdio/u8-vasnprintf (Files): Likewise.
27389         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
27390         * modules/unistdio/u16-vasnprintf (Files): Likewise.
27391         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
27392         * modules/unistdio/u32-vasnprintf (Files): Likewise.
27393         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
27394         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
27396         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
27397         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
27398         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
27399         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
27400         'long double'.
27401         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
27403         isinf: Fix for platforms where 'long double' == 'double'.
27404         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
27405         Don't blindly assume 80-bit 'long double'.
27407         isfinite: Fix for platforms where 'long double' == 'double'.
27408         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
27409         Don't blindly assume 80-bit 'long double'.
27411         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
27412         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
27413         * modules/isfinite-tests (configure.ac): Require
27414         gl_LONG_DOUBLE_VS_DOUBLE.
27415         * modules/isinf-tests (configure.ac): Likewise.
27416         * modules/isnan-tests (configure.ac): Likewise.
27417         * modules/isnanl-tests (configure.ac): Likewise.
27418         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
27419         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
27420         tests on platforms where 'long double' is the same as 'double'.
27421         * tests/test-isinf.c (test_isinfl): Likewise.
27422         * tests/test-isnan.c (test_long_double): Likewise.
27423         * tests/test-isnanl.h (main): Likewise.
27425 2011-10-08  Bruno Haible  <bruno@clisp.org>
27427         Tests for module 'tanhf'.
27428         * modules/tanhf-tests: New file.
27429         * tests/test-tanhf.c: New file.
27431         New module 'tanhf'.
27432         * lib/math.in.h (tanhf): New declaration.
27433         * lib/tanhf.c: New file.
27434         * m4/tanhf.m4: New file.
27435         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
27436         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
27437         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
27438         * modules/tanhf: New file.
27439         * tests/test-math-c++.cc: Check the declaration of tanhf.
27440         * doc/posix-functions/tanhf.texi: Mention the new module.
27442         tanh: Use a .m4 file.
27443         * m4/tanh.m4: New file.
27444         * modules/tanh (Files): Add it.
27445         (configure.ac): Just invoke gl_FUNC_TANH.
27447 2011-10-08  Bruno Haible  <bruno@clisp.org>
27449         Tests for module 'coshf'.
27450         * modules/coshf-tests: New file.
27451         * tests/test-coshf.c: New file.
27453         New module 'coshf'.
27454         * lib/math.in.h (coshf): New declaration.
27455         * lib/coshf.c: New file.
27456         * m4/coshf.m4: New file.
27457         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
27458         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
27459         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
27460         * modules/coshf: New file.
27461         * tests/test-math-c++.cc: Check the declaration of coshf.
27462         * doc/posix-functions/coshf.texi: Mention the new module.
27464         cosh: Use a .m4 file.
27465         * m4/cosh.m4: New file.
27466         * modules/cosh (Files): Add it.
27467         (configure.ac): Just invoke gl_FUNC_COSH.
27469 2011-10-08  Bruno Haible  <bruno@clisp.org>
27471         Tests for module 'sinhf'.
27472         * modules/sinhf-tests: New file.
27473         * tests/test-sinhf.c: New file.
27475         New module 'sinhf'.
27476         * lib/math.in.h (sinhf): New declaration.
27477         * lib/sinhf.c: New file.
27478         * m4/sinhf.m4: New file.
27479         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
27480         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
27481         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
27482         * modules/sinhf: New file.
27483         * tests/test-math-c++.cc: Check the declaration of sinhf.
27484         * doc/posix-functions/sinhf.texi: Mention the new module.
27486         sinh: Use a .m4 file.
27487         * m4/sinh.m4: New file.
27488         * modules/sinh (Files): Add it.
27489         (configure.ac): Just invoke gl_FUNC_SINH.
27491 2011-10-08  Bruno Haible  <bruno@clisp.org>
27493         Tests for module 'atan2f'.
27494         * modules/atan2f-tests: New file.
27495         * tests/test-atan2f.c: New file.
27497         New module 'atan2f'.
27498         * lib/math.in.h (atan2f): New declaration.
27499         * lib/atan2f.c: New file.
27500         * m4/atan2f.m4: New file.
27501         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
27502         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
27503         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
27504         * modules/atan2f: New file.
27505         * tests/test-math-c++.cc: Check the declaration of atan2f.
27506         * doc/posix-functions/atan2f.texi: Mention the new module.
27508         atan2: Use a .m4 file.
27509         * m4/atan2.m4: New file.
27510         * modules/atan2 (Files): Add it.
27511         (configure.ac): Just invoke gl_FUNC_ATAN2.
27513 2011-10-08  Bruno Haible  <bruno@clisp.org>
27515         Tests for module 'atanf'.
27516         * modules/atanf-tests: New file.
27517         * tests/test-atanf.c: New file.
27519         New module 'atanf'.
27520         * lib/math.in.h (atanf): New declaration.
27521         * lib/atanf.c: New file.
27522         * m4/atanf.m4: New file.
27523         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
27524         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
27525         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
27526         * modules/atanf: New file.
27527         * tests/test-math-c++.cc: Check the declaration of atanf.
27528         * doc/posix-functions/atanf.texi: Mention the new module.
27530         atan: Use a .m4 file.
27531         * m4/atan.m4: New file.
27532         * modules/atan (Files): Add it.
27533         (configure.ac): Just invoke gl_FUNC_ATAN.
27535 2011-10-08  Bruno Haible  <bruno@clisp.org>
27537         Tests for module 'acosf'.
27538         * modules/acosf-tests: New file.
27539         * tests/test-acosf.c: New file.
27541         New module 'acosf'.
27542         * lib/math.in.h (acosf): New declaration.
27543         * lib/acosf.c: New file.
27544         * m4/acosf.m4: New file.
27545         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
27546         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
27547         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
27548         * modules/acosf: New file.
27549         * tests/test-math-c++.cc: Check the declaration of acosf.
27550         * doc/posix-functions/acosf.texi: Mention the new module.
27552         acos: Use a .m4 file.
27553         * m4/acos.m4: New file.
27554         * modules/acos (Files): Add it.
27555         (configure.ac): Just invoke gl_FUNC_ACOS.
27557 2011-10-08  Bruno Haible  <bruno@clisp.org>
27559         Tests for module 'asinf'.
27560         * modules/asinf-tests: New file.
27561         * tests/test-asinf.c: New file.
27563         New module 'asinf'.
27564         * lib/math.in.h (asinf): New declaration.
27565         * lib/asinf.c: New file.
27566         * m4/asinf.m4: New file.
27567         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
27568         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
27569         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
27570         * modules/asinf: New file.
27571         * tests/test-math-c++.cc: Check the declaration of asinf.
27572         * doc/posix-functions/asinf.texi: Mention the new module.
27574         asin: Use a .m4 file.
27575         * m4/asin.m4: New file.
27576         * modules/asin (Files): Add it.
27577         (configure.ac): Just invoke gl_FUNC_ASIN.
27579 2011-10-08  Bruno Haible  <bruno@clisp.org>
27581         Tests for module 'tanf'.
27582         * modules/tanf-tests: New file.
27583         * tests/test-tanf.c: New file.
27585         New module 'tanf'.
27586         * lib/math.in.h (tanf): New declaration.
27587         * lib/tanf.c: New file.
27588         * m4/tanf.m4: New file.
27589         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
27590         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
27591         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
27592         * modules/tanf: New file.
27593         * tests/test-math-c++.cc: Check the declaration of tanf.
27594         * doc/posix-functions/tanf.texi: Mention the new module.
27596         tan: Use a .m4 file.
27597         * m4/tan.m4: New file.
27598         * modules/tan (Files): Add it.
27599         (configure.ac): Just invoke gl_FUNC_TAN.
27601 2011-10-08  Bruno Haible  <bruno@clisp.org>
27603         Tests for module 'cosf'.
27604         * modules/cosf-tests: New file.
27605         * tests/test-cosf.c: New file.
27607         New module 'cosf'.
27608         * lib/math.in.h (cosf): New declaration.
27609         * lib/cosf.c: New file.
27610         * m4/cosf.m4: New file.
27611         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
27612         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
27613         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
27614         * modules/cosf: New file.
27615         * tests/test-math-c++.cc: Check the declaration of cosf.
27616         * doc/posix-functions/cosf.texi: Mention the new module.
27618         cos: Use a .m4 file.
27619         * m4/cos.m4: New file.
27620         * modules/cos (Files): Add it.
27621         (configure.ac): Just invoke gl_FUNC_COS.
27623 2011-10-08  Bruno Haible  <bruno@clisp.org>
27625         Tests for module 'sinf'.
27626         * modules/sinf-tests: New file.
27627         * tests/test-sinf.c: New file.
27629         New module 'sinf'.
27630         * lib/math.in.h (sinf): New declaration.
27631         * lib/sinf.c: New file.
27632         * m4/sinf.m4: New file.
27633         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
27634         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
27635         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
27636         * modules/sinf: New file.
27637         * tests/test-math-c++.cc: Check the declaration of sinf.
27638         * doc/posix-functions/sinf.texi: Mention the new module.
27640         sin: Use a .m4 file.
27641         * m4/sin.m4: New file.
27642         * modules/sin (Files): Add it.
27643         (configure.ac): Just invoke gl_FUNC_SIN.
27645 2011-10-08  Bruno Haible  <bruno@clisp.org>
27647         Tests for module 'powf'.
27648         * modules/powf-tests: New file.
27649         * tests/test-powf.c: New file.
27651         New module 'powf'.
27652         * lib/math.in.h (powf): New declaration.
27653         * lib/powf.c: New file.
27654         * m4/powf.m4: New file.
27655         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
27656         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
27657         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
27658         * modules/powf: New file.
27659         * tests/test-math-c++.cc: Check the declaration of powf.
27660         * doc/posix-functions/powf.texi: Mention the new module.
27662         pow: Use a .m4 file.
27663         * m4/pow.m4: New file.
27664         * modules/pow (Files): Add it.
27665         (configure.ac): Just invoke gl_FUNC_POW.
27667 2011-10-08  Bruno Haible  <bruno@clisp.org>
27669         Tests for module 'log10f'.
27670         * modules/log10f-tests: New file.
27671         * tests/test-log10f.c: New file.
27673         New module 'log10f'.
27674         * lib/math.in.h (log10f): New declaration.
27675         * lib/log10f.c: New file.
27676         * m4/log10f.m4: New file.
27677         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
27678         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
27679         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
27680         * modules/log10f: New file.
27681         * tests/test-math-c++.cc: Check the declaration of log10f.
27682         * doc/posix-functions/log10f.texi: Mention the new module.
27684         log10: Use a .m4 file.
27685         * m4/log10.m4: New file.
27686         * modules/log10 (Files): Add it.
27687         (configure.ac): Just invoke gl_FUNC_LOG10.
27689 2011-10-08  Bruno Haible  <bruno@clisp.org>
27691         Tests for module 'logf'.
27692         * modules/logf-tests: New file.
27693         * tests/test-logf.c: New file.
27695         New module 'logf'.
27696         * lib/math.in.h (logf): New declaration.
27697         * lib/logf.c: New file.
27698         * m4/logf.m4: New file.
27699         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
27700         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
27701         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
27702         * modules/logf: New file.
27703         * tests/test-math-c++.cc: Check the declaration of logf.
27704         * doc/posix-functions/logf.texi: Mention the new module.
27706         log: Use a .m4 file.
27707         * m4/log.m4: New file.
27708         * modules/log (Files): Add it.
27709         (configure.ac): Just invoke gl_FUNC_LOG.
27711 2011-10-08  Bruno Haible  <bruno@clisp.org>
27713         Tests for module 'expf'.
27714         * modules/expf-tests: New file.
27715         * tests/test-expf.c: New file.
27717         New module 'expf'.
27718         * lib/math.in.h (expf): New declaration.
27719         * lib/expf.c: New file.
27720         * m4/expf.m4: New file.
27721         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
27722         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
27723         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
27724         * modules/expf: New file.
27725         * tests/test-math-c++.cc: Check the declaration of expf.
27726         * doc/posix-functions/expf.texi: Mention the new module.
27728         exp: Use a .m4 file.
27729         * m4/exp.m4: New file.
27730         * modules/exp (Files): Add it.
27731         (configure.ac): Just invoke gl_FUNC_EXP.
27733 2011-10-08  Bruno Haible  <bruno@clisp.org>
27735         Tests for module 'sqrtf'.
27736         * modules/sqrtf-tests: New file.
27737         * tests/test-sqrtf.c: New file.
27739         New module 'sqrtf'.
27740         * lib/math.in.h (sqrtf): New declaration.
27741         * lib/sqrtf.c: New file.
27742         * m4/sqrtf.m4: New file.
27743         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
27744         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
27745         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
27746         * modules/sqrtf: New file.
27747         * tests/test-math-c++.cc: Check the declaration of sqrtf.
27748         * doc/posix-functions/sqrtf.texi: Mention the new module.
27750 2011-10-08  Bruno Haible  <bruno@clisp.org>
27752         Tests: Avoid link failures w.r.t. libintl.
27753         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
27754         $(LIBINTL).
27755         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
27756         $(LIBINTL).
27757         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
27758         against $(LIBINTL).
27759         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
27760         $(LIBINTL).
27761         * modules/openat-tests (Makefile.am): Link test-fchmodat against
27762         $(LIBINTL).
27763         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
27765 2011-10-08  Bruno Haible  <bruno@clisp.org>
27767         pow tests: Defeat compiler optimizations.
27768         * tests/test-pow.c (main): Assign arguments to x and y before use.
27770 2011-10-08  Bruno Haible  <bruno@clisp.org>
27772         gnulib-tool: Improve last commit.
27773         * gnulib-tool (func_modules_transitive_closure): Simplify code.
27774         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
27775         ignore dependencies that are not among the modules list.
27777 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
27779         gnulib-tool: don't follow dependencies to avoided modules
27780         This fixes a bug that is related to the previous one.
27781         * gnulib-tool (func_modules_transitive_closure)
27782         (func_emit_autoconf_snippets):
27783         Check whether a dependency is acceptable before using it.
27784         (--extract-dependencies): Report an error if --avoid is also used,
27785         since this combination of options is not yet supported.
27787         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
27788         Problem reported by Peter Dyballa in
27789         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
27790         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
27791         when echoing "$condition".
27793 2011-10-07  Bruno Haible  <bruno@clisp.org>
27795         Fix documentation about math functions on MacOS X.
27796         * doc/posix-functions/exp2.texi: Don't say the function is missing on
27797         MacOS X 10.5.
27798         * doc/posix-functions/fdim.texi: Likewise.
27799         * doc/posix-functions/feclearexcept.texi: Likewise.
27800         * doc/posix-functions/fegetenv.texi: Likewise.
27801         * doc/posix-functions/fegetround.texi: Likewise.
27802         * doc/posix-functions/feholdexcept.texi: Likewise.
27803         * doc/posix-functions/feraiseexcept.texi: Likewise.
27804         * doc/posix-functions/fesetenv.texi: Likewise.
27805         * doc/posix-functions/fesetround.texi: Likewise.
27806         * doc/posix-functions/fetestexcept.texi: Likewise.
27807         * doc/posix-functions/feupdateenv.texi: Likewise.
27808         * doc/posix-functions/fmax.texi: Likewise.
27809         * doc/posix-functions/fmin.texi: Likewise.
27810         * doc/posix-functions/log2.texi: Likewise.
27811         * doc/posix-functions/modff.texi: Likewise.
27812         * doc/posix-functions/nan.texi: Likewise.
27813         * doc/posix-functions/nanf.texi: Likewise.
27814         * doc/posix-functions/nextafterf.texi: Likewise.
27815         * doc/posix-functions/remquo.texi: Likewise.
27817 2011-10-07  Bruno Haible  <bruno@clisp.org>
27819         modff: Drop assumption about library that defines modff.
27820         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
27821         AC_CHECK_FUNCS.
27822         * modules/modff (Files): Add m4/mathfunc.m4.
27824 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
27826         raise tests: Avoid a GCC warning.
27827         * tests/test-raise.c (handler): Use _Noreturn.
27829 2011-10-07  Bruno Haible  <bruno@clisp.org>
27831         Tests for module 'ldexpf'.
27832         * modules/ldexpf-tests: New file.
27833         * tests/test-ldexpf.c: New file.
27835         New module 'ldexpf'.
27836         * lib/math.in.h (ldexpf): New declaration.
27837         * lib/ldexpf.c: New file.
27838         * m4/ldexpf.m4: New file.
27839         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
27840         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
27841         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
27842         * modules/ldexpf: New file.
27843         * tests/test-math-c++.cc: Check the declaration of ldexpf.
27844         * doc/posix-functions/ldexpf.texi: Mention the new module.
27846 2011-10-06  Bruno Haible  <bruno@clisp.org>
27848         frexpf: Work around problems on IRIX and mingw.
27849         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
27850         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
27851         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
27852         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
27853         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
27854         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
27855         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
27857 2011-10-06  Bruno Haible  <bruno@clisp.org>
27859         fabsf: Drop assumption about library that defines fabsf.
27860         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
27861         AC_CHECK_FUNCS.
27862         * modules/fabsf (Files): Add m4/mathfunc.m4.
27864 2011-10-06  Bruno Haible  <bruno@clisp.org>
27866         frexpf: Drop assumption about library that defines frexpf.
27867         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
27868         'int *', 'float *', 'long double *', 'float', 'long double'.
27869         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
27870         AC_CHECK_FUNCS.
27871         * modules/frexpf (Files): Add m4/mathfunc.m4.
27873         Tests for module 'frexpf'.
27874         * modules/frexpf-tests: New file.
27875         * tests/test-frexpf.c: New file.
27877         New module 'frexpf'.
27878         * lib/math.in.h (frexpf): New declaration.
27879         * lib/frexpf.c: New file.
27880         * m4/frexpf.m4: New file.
27881         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
27882         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
27883         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
27884         * modules/frexpf: New file.
27885         * tests/test-math-c++.cc: Check the declaration of frexpf.
27886         * doc/posix-functions/frexpf.texi: Mention the new module.
27888 2011-10-06  Bruno Haible  <bruno@clisp.org>
27890         math: Sort function declarations of math.in.h.
27891         * lib/math.in.h (frexp, logb): Move declarations.
27893 2011-10-05  Bruno Haible  <bruno@clisp.org>
27895         Tests for module 'modff'.
27896         * modules/modff-tests: New file.
27897         * tests/test-modff.c: New file.
27899         New module 'modff'.
27900         * lib/math.in.h (modff): New declaration.
27901         * lib/modff.c: New file.
27902         * m4/modff.m4: New file.
27903         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
27904         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
27905         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
27906         * modules/modff: New file.
27907         * tests/test-math-c++.cc: Check the declaration of modff.
27908         * doc/posix-functions/modff.texi: Mention the new module.
27910         modf tests: Make test sharper.
27911         * tests/test-modf.c (main): Strengthen upper bound.
27913         modf: Use a .m4 file.
27914         * m4/modf.m4: New file.
27915         * modules/modf (Files): Add it.
27916         (configure.ac): Just invoke gl_FUNC_MODF.
27918 2011-10-05  Bruno Haible  <bruno@clisp.org>
27920         Tests for module 'fmodf'.
27921         * modules/fmodf-tests: New file.
27922         * tests/test-fmodf.c: New file.
27924         New module 'fmodf'.
27925         * lib/math.in.h (fmodf): New declaration.
27926         * lib/fmodf.c: New file.
27927         * m4/fmodf.m4: New file.
27928         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
27929         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
27930         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
27931         * modules/fmodf: New file.
27932         * tests/test-math-c++.cc: Check the declaration of fmodf.
27933         * doc/posix-functions/fmodf.texi: Mention the new module.
27935         fmod: Use a .m4 file.
27936         * m4/fmod.m4: New file.
27937         * modules/fmod (Files): Add it.
27938         (configure.ac): Just invoke gl_FUNC_FMOD.
27940 2011-10-05  Bruno Haible  <bruno@clisp.org>
27942         Tests for module 'fabsf'.
27943         * modules/fabsf-tests: New file.
27944         * tests/test-fabsf.c: New file.
27946         New module 'fabsf'.
27947         * lib/math.in.h (fabsf): New declaration.
27948         * lib/fabsf.c: New file.
27949         * m4/fabsf.m4: New file.
27950         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
27951         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
27952         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
27953         * modules/fabsf: New file.
27954         * tests/test-math-c++.cc: Check the declaration of fabsf.
27955         * doc/posix-functions/fabsf.texi: Mention the new module.
27957         fabs: Use a .m4 file.
27958         * m4/fabs.m4: New file.
27959         * modules/fabs (Files): Add it.
27960         (configure.ac): Just invoke gl_FUNC_FABS.
27962 2011-10-05  Jim Meyering  <meyering@redhat.com>
27964         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
27965         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
27966         ls -lL regression introduced in coreutils-8.12, it does so at the
27967         cost of an additional stat call in the common case.  Besides, now
27968         that the kernel change that prompted commit 95f7c57f has been reverted
27969         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
27970         we have no use for commit 95f7c57f, "file-has-acl: use
27971         acl_extended_file_nofollow if available".
27973 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
27975         file-has-acl: revert unintended change in behavior of ls -L
27976         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
27977         derived from...
27978         (file_has_acl): ...code here.  Call it.
27979         This problem was introduced with 2011-07-22 commit 95f7c57f,
27980         "file-has-acl: use acl_extended_file_nofollow if available".
27981         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
27983 2011-10-03  Bruno Haible  <bruno@clisp.org>
27985         poll: Avoid link errors on MSVC.
27986         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
27987         * modules/poll (Depends-on): Add sockets.
27988         (Link): New section.
27989         * NEWS: Mention the change.
27990         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
27991         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
27992         $(LIB_POLL) instead of $(LIBSOCKET).
27994 2011-10-03  Bruno Haible  <bruno@clisp.org>
27996         sys_select tests: Fix link error on MSVC 9.
27997         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
27998         with $(LIB_SELECT) instead of $(LIBSOCKET).
28000 2011-10-03  Bruno Haible  <bruno@clisp.org>
28002         sys_select: Fix compilation error on mingw.
28003         * lib/sys_select.in.h: On native Windows, include <io.h>.
28005 2011-10-03  Bruno Haible  <bruno@clisp.org>
28007         wmemset: Support for MSVC.
28008         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
28009         whether wmemset() exists.
28011 2011-10-03  Bruno Haible  <bruno@clisp.org>
28013         wmemmove: Support for MSVC.
28014         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
28015         whether wmemmove() exists.
28017 2011-10-03  Bruno Haible  <bruno@clisp.org>
28019         wmemcpy: Support for MSVC.
28020         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
28021         whether wmemcpy() exists.
28023 2011-10-03  Bruno Haible  <bruno@clisp.org>
28025         wmemcmp: Support for MSVC.
28026         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
28027         whether wmemcmp() exists.
28029 2011-10-03  Bruno Haible  <bruno@clisp.org>
28031         wmemchr: Support for MSVC.
28032         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
28033         whether wmemchr() exists.
28035 2011-10-03  Bruno Haible  <bruno@clisp.org>
28037         glthread/*, strsignal: Support for MSVC.
28038         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
28039         including <winsock.h> on MSVC 9.
28040         * lib/glthread/lock.h: Likewise.
28041         * lib/glthread/thread.h: Likewise.
28042         * lib/glthread/tls.h: Likewise.
28043         * lib/glthread/yield.h: Likewise.
28044         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
28045         if HAVE_UNISTD_H is false.
28046         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
28048 2011-10-03  Bruno Haible  <bruno@clisp.org>
28050         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
28051         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
28052         Set to 100000.
28054 2011-10-03  Bruno Haible  <bruno@clisp.org>
28056         acl: Fix specification.
28057         * lib/file-has-acl.c (file_has_acl): Fix specification.
28059 2011-10-03  Bruno Haible  <bruno@clisp.org>
28061         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
28062         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
28063         (compute_curr_prefix, shared_library_fullname,
28064         find_shared_library_fullname, get_shared_library_fullname, relocate):
28065         Use it together with PIC && INSTALLDIR.
28066         Reported by <jojelino@gmail.com>
28067         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
28069 2011-10-01  Jim Meyering  <meyering@redhat.com>
28071         maint.mk: adjust a release-related rule not to require use of gzip
28072         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
28073         Instead, check each file in $(DIST_ARCHIVES).  This is better for
28074         projects that build only .tar.xz files.  Also fix an erroneous test.
28076         test-linkat: don't leave behind a temporary file
28077         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
28078         Otherwise, coreutils' "make distcheck" would fail with this:
28079           Only in /c/cu/tests/torture/coreutils/test/\
28080             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
28081           make[2]: *** [my-distcheck] Error 1
28083         float, math: add omitted file
28084         * lib/itold.c: Add file, required for yesterday's float change.
28086 2011-10-01  Bruno Haible  <bruno@clisp.org>
28088         isinf: Fix for OpenBSD/x86.
28089         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
28090         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
28091         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
28093 2011-10-01  Bruno Haible  <bruno@clisp.org>
28095         isfinite: Fix syntax error in configure test.
28096         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
28098         isfinite: Fix typo.
28099         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
28100         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
28102 2011-10-01  Bruno Haible  <bruno@clisp.org>
28104         nonblocking tests: Fix test failure on Linux/IA-64.
28105         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
28106         Set to 270000.
28108 2011-10-01  Bruno Haible  <bruno@clisp.org>
28110         mkfifoat tests: Fix a test failure on mingw.
28111         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
28112         with error ENOSYS.
28114 2011-09-30  Bruno Haible  <bruno@clisp.org>
28116         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
28117         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
28118         'long double'. Set REPLACE_ITOLD.
28119         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
28120         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
28121         * lib/itold.c: New file.
28122         * modules/float (Files): Add lib/itold.c.
28123         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
28124         (Makefile.am): Substitute REPLACE_ITOLD.
28125         * modules/math (Depends-on): Add float.
28126         (Makefile.am): Substitute REPLACE_ITOLD.
28127         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
28128         * doc/posix-headers/math.texi: Likewise.
28129         * doc/posix-functions/logl.texi: Likewise.
28131 2011-09-30  Bruno Haible  <bruno@clisp.org>
28133         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
28134         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
28135         Set to 140000.
28137 2011-09-30  Bruno Haible  <bruno@clisp.org>
28139         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
28140         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
28141         invocation, say "right after AC_PROG_CC_STDC", not "right after
28142         AC_PROG_CC".
28143         Reported by Gary V. Vaughan <gary@gnu.org>.
28145 2011-09-30  Bruno Haible  <bruno@clisp.org>
28147         Centralize C99 requirement.
28148         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
28149         * modules/stdarg (configure.ac-early): Invoke it instead of
28150         AC_PROG_CC_STDC.
28151         Reported by Gary V. Vaughan and Paul Eggert.
28153 2011-09-29  Bruno Haible  <bruno@clisp.org>
28155         float: Fix LDBL_MAX value on Linux/PowerPC.
28156         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
28157         on Linux/PowerPC.
28158         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
28159         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
28160         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
28161         platform.
28162         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
28164 2011-09-29  Bruno Haible  <bruno@clisp.org>
28166         doc: Improve doc about gl_EARLY.
28167         * doc/gnulib-tool.texi (Initial import): Mention where to place an
28168         AC_PROG_CC_STDC invocation.
28169         Reported by Gary V. Vaughan <gary@gnu.org>.
28171 2011-09-28  Bruno Haible  <bruno@clisp.org>
28173         fgetc, fputc, fread, fwrite tests: Fix link error.
28174         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
28175         on non-MSVC platforms.
28176         * tests/test-fputc.c (main): Likewise.
28177         * tests/test-fread.c (main): Likewise.
28178         * tests/test-fwrite.c (main): Likewise.
28179         Reported by Jim Meyering.
28181 2011-09-27  Bruno Haible  <bruno@clisp.org>
28183         fputc, fwrite tests: Avoid test failure on MSVC.
28184         * tests/test-fgetc.c: Include msvc-inval.h.
28185         (main): Invoke gl_msvc_inval_ensure_handler.
28186         * tests/test-fputc.c: Include msvc-inval.h.
28187         (main): Invoke gl_msvc_inval_ensure_handler.
28188         * tests/test-fread.c: Include msvc-inval.h.
28189         (main): Invoke gl_msvc_inval_ensure_handler.
28190         * tests/test-fwrite.c: Include msvc-inval.h.
28191         (main): Invoke gl_msvc_inval_ensure_handler.
28192         * modules/fgetc-tests (Depends-on): Add msvc-inval.
28193         * modules/fputc-tests (Depends-on): Likewise.
28194         * modules/fread-tests (Depends-on): Likewise.
28195         * modules/fwrite-tests (Depends-on): Likewise.
28197 2011-09-27  Bruno Haible  <bruno@clisp.org>
28199         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
28200         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
28201         (raise): Remove older, duplicated declaration.
28202         (_gl_raise_SIGPIPE): New declaration.
28203         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
28204         (rpl_raise): Remove function.
28205         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
28206         a gnulib-defined SIGPIPE here.
28207         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
28208         'sigprocmask' has detected missing signal-blocking and the module
28209         'sigpipe' is enabled.
28210         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
28212 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
28214         base64-tests: avoid memory leak
28215         * tests/test-base64.c (main): Plug memory leak.
28217         base32: new module
28218         * modules/base32: New module.
28219         * lib/base32.c: New file.
28220         * lib/base32.h: Likewise.
28221         * m4/base32.m4: Likewise.
28222         * modules/base32-tests: New test.
28223         * tests/test-base32.c: Likewise.
28224         * MODULES.html.sh (Misc): Mention it.
28226 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
28228         gnulib: use more-standard license notice wording
28229         * gnulib-tool (func_emit_copyright_notice): When emitting a
28230         license notice into a file, use the standard wording as suggested
28231         by the current information for GNU maintainers, except say "file"
28232         rather than "program".  The new wording gives a license version
28233         number, which addresses an issue raised by Glenn Morris in
28234         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
28235         * m4/onceonly.m4: Use that same wording here, too.
28237         dup2: minor simplification
28238         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
28239         as lib/dup2.c no longer uses 'inline'.
28241 2011-09-25  Bruno Haible  <bruno@clisp.org>
28243         strings: Fix compilation error on MSVC.
28244         * lib/strings.in.h: Include <stddef.h> for size_t.
28246 2011-09-25  Bruno Haible  <bruno@clisp.org>
28248         fflush et al.: Document limitation on MSVC.
28249         * doc/posix-functions/fflush.texi: Document possible crash in handling
28250         mode other than DEFAULT_HANDLING.
28251         * doc/posix-functions/fgetc.texi: Likewise.
28252         * doc/posix-functions/fputc.texi: Likewise.
28253         * doc/posix-functions/fread.texi: Likewise.
28254         * doc/posix-functions/fwrite.texi: Likewise.
28256 2011-09-25  Bruno Haible  <bruno@clisp.org>
28258         msvc-inval: Allow three invalid parameter handling modes.
28259         * lib/msvc-inval.h: Don't include <stdlib.h> here.
28260         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
28261         macros.
28262         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
28263         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
28264         SANE_LIBRARY_HANDLING as a no-op.
28265         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
28266         <stdlib.h>.
28267         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
28269 2011-09-25  Bruno Haible  <bruno@clisp.org>
28271         msvc-inval: Make handler multithread-safe.
28272         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
28273         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
28274         declarations.
28275         (gl_msvc_inval_current): New declaration.
28276         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
28277         Operate on the structure returned by gl_msvc_inval_current().
28278         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
28279         Remove varaiables.
28280         (tls_index, tls_initialized): New variables.
28281         (not_per_thread): New variable.
28282         (gl_msvc_inval_current): New function.
28283         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
28284         returned by gl_msvc_inval_current().
28286 2011-09-25  Bruno Haible  <bruno@clisp.org>
28288         msvc-inval: Install handler globally.
28289         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
28290         !_MSC_VER.
28291         (gl_msvc_invalid_parameter_handler): Remove declaration.
28292         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
28293         declarations.
28294         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
28295         Install the handler globally, don't uninstall it.
28296         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
28297         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
28298         currently valid, call RaiseException instead.
28299         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
28300         for !_MSC_VER.
28302 2011-09-25  Bruno Haible  <bruno@clisp.org>
28304         strerror_r-posix: Fix for MSVC 9.
28305         * lib/strerror_r.c (local_snprintf): New function.
28306         (snprintf): Define to local_snprintf, not to _snprintf.
28308 2011-09-25  Bruno Haible  <bruno@clisp.org>
28310         ftruncate: Support for MSVC 9.
28311         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
28312         (chsize_nothrow): New function.
28313         (chsize): Redefine as a macro.
28314         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
28315         * modules/ftruncate (Depends-on): Add msvc-inval.
28317 2011-09-25  Bruno Haible  <bruno@clisp.org>
28319         New module 'fstat'.
28320         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
28321         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
28322         * lib/fchdir.c (rpl_fstat): Remove function.
28323         * m4/fstat.m4: New file.
28324         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
28325         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
28326         declared.
28327         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
28328         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
28329         * modules/fstat: New file.
28330         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
28331         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
28332         is set.
28333         * doc/posix-functions/fstat.texi: Mention the new module and the
28334         problem on MSVC.
28335         * NEWS: Mention the change.
28336         * modules/acl (Depends-on): Add fstat.
28337         * modules/chdir-safer (Depends-on): Likewise.
28338         * modules/chown (Depends-on): Likewise.
28339         * modules/copy-file (Depends-on): Likewise.
28340         * modules/fchdir (Depends-on): Likewise.
28341         * modules/fdopendir (Depends-on): Likewise.
28342         * modules/fopen (Depends-on): Likewise.
28343         * modules/fts (Depends-on): Likewise.
28344         * modules/getcwd (Depends-on): Likewise.
28345         * modules/isapipe (Depends-on): Likewise.
28346         * modules/linkat (Depends-on): Likewise.
28347         * modules/lseek (Depends-on): Likewise.
28348         * modules/mkdir-p (Depends-on): Likewise.
28349         * modules/open (Depends-on): Likewise.
28350         * modules/openat (Depends-on): Likewise.
28351         * modules/read-file (Depends-on): Likewise.
28352         * modules/renameat (Depends-on): Likewise.
28353         * modules/utimens (Depends-on): Likewise.
28355 2011-09-25  Bruno Haible  <bruno@clisp.org>
28357         linkat: Fix compilation on MSVC 9.
28358         * lib/linkat.c: Don't include <stdint.h>.
28360 2011-09-25  Bruno Haible  <bruno@clisp.org>
28362         fclose: Support for MSVC 9.
28363         * lib/fclose.c: Include msvc-inval.h.
28364         (fclose_nothrow): New function.
28365         (rpl_fclose): Use it.
28366         * modules/fclose (Depends-on): Add msvc-inval.
28367         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
28369 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
28371         dup2: minor simplifications
28372         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
28373         that it's a performance win.
28374         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
28375         ! defined __CYGWIN__)" to "ifdef F_GETFL".
28377 2011-09-24  Jim Meyering  <meyering@redhat.com>
28379         test-futimens: avoid a warning from gcc -Wshadow
28380         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
28381         to avoid a shadowing warning.
28383 2011-09-24  Bruno Haible  <bruno@clisp.org>
28385         fdopen: Support for MSVC 9.
28386         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
28387         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
28388         * lib/fdopen.c: Include msvc-inval.h.
28389         (fdopen_nothrow): New function.
28390         (rpl_fdopen): Use it.
28391         * modules/fdopen (Depends-on): Add msvc-inval.
28392         * modules/fclose-tests (Depends-on): Add fdopen.
28393         * modules/fflush-tests (Depends-on): Likewise.
28394         * modules/fgetc-tests (Depends-on): Likewise.
28395         * modules/fputc-tests (Depends-on): Likewise.
28396         * modules/fread-tests (Depends-on): Likewise.
28397         * modules/freopen-tests (Depends-on): Likewise.
28398         * modules/fseeko-tests (Depends-on): Likewise.
28399         * modules/ftello-tests (Depends-on): Likewise.
28400         * modules/fwrite-tests  (Depends-on): Likewise.
28401         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
28403 2011-09-24  Bruno Haible  <bruno@clisp.org>
28405         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
28406         * modules/fgetc-tests (Depends-on): Add unistd.
28407         * modules/fputc-tests (Depends-on): Likewise.
28408         * modules/fread-tests (Depends-on): Likewise.
28409         * modules/fwrite-tests (Depends-on): Likewise.
28411 2011-09-24  Bruno Haible  <bruno@clisp.org>
28413         dup: Simplify autoconf test.
28414         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
28415         on gl_MSVC_INVAL's result.
28417 2011-09-24  Bruno Haible  <bruno@clisp.org>
28419         Tests for function fwrite().
28420         * modules/fwrite-tests: New file.
28421         * tests/test-fwrite.c: New file.
28422         * modules/stdio-tests (Depends-on): Add fwrite-tests.
28424         Tests for function fread().
28425         * modules/fread-tests: New file.
28426         * tests/test-fread.c: New file.
28427         * modules/stdio-tests (Depends-on): Add fread-tests.
28429         Activate fputc tests.
28430         * modules/stdio-tests (Depends-on): Add fputc-tests.
28432         Enhance fgetc, fputc tests.
28433         * tests/test-fgetc.c (main): Also test the stream's error indicator.
28434         * tests/test-fputc.c (main): Likewise.
28436 2011-09-24  Bruno Haible  <bruno@clisp.org>
28438         write: Support for MSVC 9.
28439         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
28440         is not 1.
28441         * lib/write.c (write_nothrow): New function.
28442         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
28443         not 1. Use write_nothrow.
28444         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
28445         invalid parameter handler.
28446         (gl_PREREQ_WRITE): New macro.
28447         * modules/write (Depends-on): Add msvc-inval.
28448         (configure.ac): Invoke gl_PREREQ_WRITE.
28449         * doc/posix-functions/write.texi: Mention the problem on MSVC.
28451 2011-09-24  Bruno Haible  <bruno@clisp.org>
28453         read: Fix last commit.
28454         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
28456 2011-09-24  Bruno Haible  <bruno@clisp.org>
28458         dup2: Fix last commit.
28459         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
28460         (rpl_dup2): Disable fcntl workaround on native Windows.
28462         sigprocmask: Make code safer.
28463         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
28464         section that changes macro definitions for this compilation unit.
28466 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
28468         dup2: clarify by coalescing Windows-specific material
28469         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
28470         "msvc-nothrow.h"' to the Windows-specific section, so that the
28471         Emacs source need not contain these include files.
28472         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
28473         Windows-specific fixes into this function rather than just the
28474         nothrow fix, as this shortens and clarifies the code.  Always
28475         define as a function, as that's a bit cleaner than having it be
28476         sometimes a function and sometimes a macro.
28477         (rpl_dup2): Move the Windows-specific stuff out of here and into
28478         ms_windows_dup2.  Don't protect the Haiku-related fix with
28479         "#if !defined __linux__", as the same code also works around
28480         a Linux kernel bug, and it doesn't add any system calls on any
28481         platform.  Add comment about FreeBSD 6.1.
28483         sigprocmask: move #include directive
28484         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
28485         Windows-specific section, so that the Emacs source need not
28486         contain msvc-inval.h.
28488 2011-09-23  Bruno Haible  <bruno@clisp.org>
28490         read: Support for MSVC 9.
28491         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
28492         is not 1.
28493         * lib/read.c (read_nothrow): New function.
28494         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
28495         read_nothrow.
28496         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
28497         invalid parameter handler.
28498         (gl_PREREQ_READ): New macro.
28499         * modules/read (Depends-on): Add msvc-inval.
28500         (configure.ac): Invoke gl_PREREQ_READ.
28501         * doc/posix-functions/read.texi: Mention the problem on MSVC.
28503 2011-09-23  Bruno Haible  <bruno@clisp.org>
28505         close: Support for MSVC 9.
28506         * lib/close.c: Include <errno.h>, msvc-inval.h.
28507         (close_nothrow): New function.
28508         (rpl_close): Use it.
28509         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
28510         invalid parameter handler.
28511         * modules/close (Depends-on): Add msvc-inval.
28512         * modules/dup2-tests (Depends-on): Add close.
28513         * modules/dup3-tests (Depends-on): Likewise.
28514         * modules/fcntl-tests (Depends-on): Likewise.
28515         * modules/spawn-pipe-tests (Depends-on): Likewise.
28516         * modules/unistd-safer-tests (Depends-on): Likewise.
28517         * doc/posix-functions/close.texi: Mention the problem on MSVC.
28519 2011-09-23  Bruno Haible  <bruno@clisp.org>
28521         New module 'dup'.
28522         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
28523         Allow replacement.
28524         * lib/dup.c: New file.
28525         * lib/fchdir.c (rpl_dup): Remove function.
28526         * m4/dup.m4: New file.
28527         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
28528         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
28529         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
28530         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
28531         * modules/dup: New file.
28532         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
28533         'dup' module is in use.
28534         * modules/fdopendir (Depends-on): Add dup.
28535         * modules/fdutimensat-tests (Depends-on): Likewise.
28536         * modules/fts (Depends-on): Likewise.
28537         * modules/futimens-tests (Depends-on): Likewise.
28538         * modules/posix_spawnp-tests (Depends-on): Likewise.
28539         * modules/unistd-safer-tests (Depends-on): Likewise.
28540         * modules/utimens-tests (Depends-on): Likewise.
28541         * doc/posix-functions/dup.texi: Mention the new module and the problem
28542         on MSVC.
28544 2011-09-23  Bruno Haible  <bruno@clisp.org>
28546         getdtablesize: Support for MSVC 9.
28547         * lib/getdtablesize.c: Include msvc-inval.h.
28548         (_setmaxstdio_nothrow): New function.
28549         (_setmaxstdio): Redefine it.
28550         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
28551         * modules/getdtablesize (Depends-on): Add msvc-inval.
28552         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
28554 2011-09-23  Bruno Haible  <bruno@clisp.org>
28556         signal-h: Rename from signal.
28557         * modules/signal-h: Renamed from modules/signal.
28558         * modules/pthread_sigmask (Depends-on): Update.
28559         * modules/raise (Depends-on): Likewise.
28560         * modules/sigaction (Depends-on): Likewise.
28561         * modules/sigpipe (Depends-on): Likewise.
28562         * modules/sigprocmask (Depends-on): Likewise.
28563         * modules/sys_select (Depends-on): Likewise.
28564         * modules/signal-h-tests: Renamed from modules/signal-tests.
28565         (Files, Depends-on, Makefile.am): Update.
28566         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
28567         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
28568         (Files, Makefile.am): Update.
28569         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
28570         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
28571         * modules/signal: New placeholder file.
28572         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
28573         * doc/posix-headers/signal.texi: Update.
28574         * NEWS: Mention the change.
28576 2011-09-23  Bruno Haible  <bruno@clisp.org>
28578         sigprocmask: Avoid crashes through signal() on MSVC 9.
28579         * lib/sigprocmask.c: Include msvc-inval.h.
28580         (signal_nothrow): New function.
28581         (signal): Redefine it.
28582         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
28583         * modules/sigprocmask (Depends-on): Add msvc-inval.
28584         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
28586 2011-09-23  Bruno Haible  <bruno@clisp.org>
28588         Tests for module 'raise'.
28589         * modules/raise-tests: New file.
28590         * tests/test-raise.c: New file.
28592         raise: Support for MSVC.
28593         * lib/signal.in.h (raise): New declaration.
28594         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
28595         for native Windows platforms.
28596         * m4/raise.m4: New file.
28597         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
28598         HAVE_RAISE, REPLACE_RAISE.
28599         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
28600         REPLACE_RAISE.
28601         * modules/raise (Status, Notice): Remove fields.
28602         (Files): Add m4/raise.m4.
28603         (Depends-on): Add signal, msvc-inval.
28604         (configure.ac): Use the common idioms.
28605         (Maintainer): Add me.
28606         * tests/test-signal-c++.cc: Check the signature of raise.
28607         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
28609 2011-09-23  Bruno Haible  <bruno@clisp.org>
28611         pipe2: Fix compilation on pre-C99 compilers.
28612         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
28614 2011-09-23  Bruno Haible  <bruno@clisp.org>
28616         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
28617         * lib/msvc-nothrow.h: New file.
28618         * lib/msvc-nothrow.c: New file.
28619         * m4/msvc-nothrow.m4: New file.
28620         * modules/msvc-nothrow: New file.
28621         * lib/dup2.c: Include msvc-nothrow.h.
28622         (rpl_dup2): No need to protect _get_osfhandle call here.
28623         * lib/accept4.c: Include msvc-nothrow.h.
28624         * lib/error.c: Likewise.
28625         * lib/fcntl.c: Likewise.
28626         * lib/lseek.c: Likewise.
28627         * lib/nonblocking.c: Likewise.
28628         * lib/poll.c: Likewise.
28629         * lib/read.c: Likewise.
28630         * lib/select.c: Likewise.
28631         * lib/sockets.h: Likewise.
28632         * lib/sockets.c: Likewise.
28633         * lib/stdio-read.c: Likewise.
28634         * lib/stdio-write.c: Likewise.
28635         * lib/write.c: Likewise.
28636         * lib/w32sock.h: Likewise.
28637         * lib/w32spawn.h: Likewise.
28638         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
28639         * lib/fsync.c: Likewise.
28640         * lib/isapipe.c: Likewise.
28641         * modules/dup2 (Depends-on): Add msvc-nothrow.
28642         * modules/accept4 (Depends-on): Likewise.
28643         * modules/error (Depends-on): Likewise.
28644         * modules/fcntl (Depends-on): Likewise.
28645         * modules/lseek (Depends-on): Likewise.
28646         * modules/nonblocking (Depends-on): Likewise.
28647         * modules/poll (Depends-on): Likewise.
28648         * modules/read (Depends-on): Likewise.
28649         * modules/select (Depends-on): Likewise.
28650         * modules/sockets (Depends-on): Likewise.
28651         * modules/sigpipe (Depends-on): Likewise.
28652         * modules/write (Depends-on): Likewise.
28653         * modules/accept (Depends-on): Likewise.
28654         * modules/bind (Depends-on): Likewise.
28655         * modules/connect (Depends-on): Likewise.
28656         * modules/gethostname (Depends-on): Likewise.
28657         * modules/getpeername (Depends-on): Likewise.
28658         * modules/getsockname (Depends-on): Likewise.
28659         * modules/getsockopt (Depends-on): Likewise.
28660         * modules/ioctl (Depends-on): Likewise.
28661         * modules/listen (Depends-on): Likewise.
28662         * modules/recv (Depends-on): Likewise.
28663         * modules/recvfrom (Depends-on): Likewise.
28664         * modules/send (Depends-on): Likewise.
28665         * modules/sendto (Depends-on): Likewise.
28666         * modules/setsockopt (Depends-on): Likewise.
28667         * modules/shutdown (Depends-on): Likewise.
28668         * modules/socket (Depends-on): Likewise.
28669         * modules/execute (Depends-on): Likewise.
28670         * modules/spawn-pipe (Depends-on): Likewise.
28671         * modules/flock (Depends-on): Likewise.
28672         * modules/fsync (Depends-on): Likewise.
28673         * modules/isapipe (Depends-on): Likewise.
28674         * tests/test-cloexec.c: Include msvc-nothrow.h.
28675         * tests/test-dup-safer.c: Likewise.
28676         * tests/test-dup2.c: Likewise.
28677         * tests/test-dup3.c: Likewise.
28678         * tests/test-fcntl.c: Likewise.
28679         * tests/test-pipe.c: Likewise.
28680         * tests/test-pipe2.c: Likewise.
28681         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
28682         * modules/unistd-safer-tests (Depends-on): Likewise.
28683         * modules/dup2-tests (Depends-on): Likewise.
28684         * modules/dup3-tests (Depends-on): Likewise.
28685         * modules/fcntl-tests (Depends-on): Likewise.
28686         * modules/pipe-posix-tests (Depends-on): Likewise.
28687         * modules/pipe2-tests (Depends-on): Likewise.
28689 2011-09-23  Bruno Haible  <bruno@clisp.org>
28691         dup2: Make code more maintainable.
28692         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
28693         (rpl_dup2): Use it.
28694         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
28695         * modules/dup2 (configure.ac): Invoke it.
28696         Reported by Paul Eggert.
28698 2011-09-23  Bruno Haible  <bruno@clisp.org>
28700         msvc-inval: Fix compilation error.
28701         * lib/msvc-inval.h: Include <excpt.h>.
28703 2011-09-23  Bruno Haible  <bruno@clisp.org>
28705         mkdir: Tweak for MSVC 9.
28706         * lib/sys_stat.in.h: Update comments.
28707         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
28709         Tests for module 'chdir'.
28710         * modules/chdir-tests: New file.
28711         * tests/test-chdir.c: New file.
28713         New module 'chdir'.
28714         * modules/chdir: New file.
28715         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
28716         (chdir): New declaration.
28717         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
28718         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
28719         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
28720         * tests/test-unistd-c++.cc: Check signature of chdir.
28721         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
28722         * modules/chdir-long (Depends-on): Add chdir.
28723         * modules/fchdir (Depends-on): Likewise.
28724         * modules/rename (Depends-on): Likewise.
28725         * modules/savewd (Depends-on): Likewise.
28727         rmdir: Support for mingw, MSVC 9.
28728         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
28729         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
28731         getcwd: Tweak for MSVC 9.
28732         * lib/unistd.in.h: Update comments.
28733         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
28735 2011-09-22  Bruno Haible  <bruno@clisp.org>
28737         strerror_r-posix: Avoid a link error on MSVC.
28738         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
28739         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
28741 2011-09-22  Bruno Haible  <bruno@clisp.org>
28743         select: Avoid link errors on MSVC.
28744         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
28745         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
28746         * modules/pselect (Link): Likewise.
28747         * NEWS: Mention the change.
28748         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
28749         test-select-stdin against $(LIB_SELECT).
28750         * modules/pselect-tests (Makefile.am): Link test-pselect against
28751         $(LIB_SELECT).
28753 2011-09-22  Bruno Haible  <bruno@clisp.org>
28755         select: Avoid compilation error on MSVC.
28756         * lib/select.c: Don't include <stdbool.h>.
28758 2011-09-21  Bruno Haible  <bruno@clisp.org>
28760         Consolidate all uses of PATH_MAX in *.m4 files.
28761         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
28762         macros.
28763         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
28764         and gl_PATHMAX_SNIPPET.
28765         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
28766         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
28767         * modules/chdir-long (Files): Add m4/pathmax.m4.
28768         * modules/getcwd (Files): Likewise.
28770 2011-09-21  Bruno Haible  <bruno@clisp.org>
28772         ftruncate: Un-deprecate, concentrate on Win32 support.
28773         * modules/ftruncate (Status, Notice): Remove sections.
28774         (Depends-on): Add largefile.
28775         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
28776         non-mingw platforms.
28777         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
28778         include <io.h>.
28779         * modules/perror-tests (Depends-on): Add ftruncate.
28780         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
28781         'ftruncate' module.
28783 2011-09-21  Bruno Haible  <bruno@clisp.org>
28785         Add dependencies to new dirent related modules.
28786         * modules/opendir (Depends-on): Add closedir.
28787         * modules/getcwd (Depends-on): Add opendir, closedir.
28788         * modules/dirent-safer-tests (Depends-on): Likewise.
28789         * modules/fdopendir-tests (Depends-on): Likewise.
28790         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
28791         * modules/renameat-tests (Depends-on): Likewise.
28793 2011-09-21  Bruno Haible  <bruno@clisp.org>
28795         opendir: Avoid compilation error on mingw.
28796         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
28797         * modules/opendir (Depends-on): Add unistd.
28799 2011-09-21  Bruno Haible  <bruno@clisp.org>
28801         ftruncate tests: Avoid a test failure on mingw.
28802         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
28804 2011-09-21  Bruno Haible  <bruno@clisp.org>
28806         select tests: Avoid test failures on OSF/1 5.1 and mingw.
28807         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
28808         native Windows.
28810 2011-09-21  Bruno Haible  <bruno@clisp.org>
28812         New module 'fdopen'.
28813         * lib/stdio.in.h (fdopen): New declaration.
28814         * lib/fdopen.c: New file.
28815         * m4/fdopen.m4: New file.
28816         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
28817         REPLACE_FDOPEN.
28818         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
28819         REPLACE_FDOPEN.
28820         * modules/fdopen: New file.
28821         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
28822         * tests/test-stdio-c++.cc: Check signature of fdopen.
28823         * doc/posix-functions/fdopen.texi: Mention the new module.
28825 2011-09-21  Bruno Haible  <bruno@clisp.org>
28827         unlockpt tests: Avoid test failure on NetBSD 5.1.
28828         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
28829         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
28831 2011-09-21  Bruno Haible  <bruno@clisp.org>
28833         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
28834         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
28835         * tests/test-getlogin_r.c (main): Likewise.
28837 2011-09-20  Bruno Haible  <bruno@clisp.org>
28839         time tests: Don't require pid_t.
28840         * doc/posix-headers/time.texi: Revert last change.
28841         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
28842         * tests/test-time.c: Comment out the check for pid_t.
28844 2011-09-20  Bruno Haible  <bruno@clisp.org>
28846         fsync tests: Avoid a test failure on mingw.
28847         * tests/test-fsync.c (main): Allow a failure with EIO.
28849 2011-09-20  Bruno Haible  <bruno@clisp.org>
28851         euidaccess: Update comments.
28852         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
28854 2011-09-20  Bruno Haible  <bruno@clisp.org>
28856         Ensure EBADF returns for socket functions on mingw.
28857         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
28858         descriptor is invalid.
28859         * lib/bind.c (rpl_bind): Likewise.
28860         * lib/connect.c (rpl_connect): Likewise.
28861         * lib/getpeername.c (rpl_getpeername): Likewise.
28862         * lib/getsockname.c (rpl_getsockname): Likewise.
28863         * lib/getsockopt.c (rpl_getsockopt): Likewise.
28864         * lib/listen.c (rpl_listen): Likewise.
28865         * lib/recv.c (rpl_recv): Likewise.
28866         * lib/recvfrom.c (rpl_recvfrom): Likewise.
28867         * lib/send.c (rpl_send): Likewise.
28868         * lib/sendto.c (rpl_sendto): Likewise.
28869         * lib/setsockopt.c (rpl_setsockopt): Likewise.
28870         * lib/shutdown.c (rpl_shutdown): Likewise.
28872 2011-09-20  Bruno Haible  <bruno@clisp.org>
28874         select tests: EBADF tests.
28875         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
28876         test_bad_fd): New functions.
28877         (test_function): Invoke also test_bad_fd.
28879 2011-09-20  Bruno Haible  <bruno@clisp.org>
28881         Tests for module 'posix_spawn_file_actions_addopen.
28882         * modules/posix_spawn_file_actions_addopen-tests: New file.
28883         * tests/test-posix_spawn_file_actions_addopen.c: New file.
28885         Tests for module 'posix_spawn_file_actions_adddup2'.
28886         * modules/posix_spawn_file_actions_adddup2-tests: New file.
28887         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
28889         Tests for module 'posix_spawn_file_actions_addclose'.
28890         * modules/posix_spawn_file_actions_addclose-tests: New file.
28891         * tests/test-posix_spawn_file_actions_addclose.c: New file.
28893 2011-09-20  Bruno Haible  <bruno@clisp.org>
28895         Tests for module 'unlockpt'.
28896         * modules/unlockpt-tests: New file.
28897         * tests/test-unlockpt.c: New file.
28898         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
28900         Tests for module 'grantpt'.
28901         * modules/grantpt-tests: New file.
28902         * tests/test-grantpt.c: New file.
28903         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
28905 2011-09-20  Bruno Haible  <bruno@clisp.org>
28907         freopen tests: EBADF tests.
28908         * tests/test-freopen.c: Include errno.h, unistd.h.
28909         (main): Add tests for EBADF, commented out for the moment.
28911         fclose tests: EBADF tests.
28912         * tests/test-fclose.c (main): Add tests for EBADF.
28914         fflush tests: EBADF tests.
28915         * tests/test-fflush.c: Include errno.h, macros.h.
28916         (main): Add tests for EBADF.
28918         ftello tests: EBADF tests.
28919         * tests/test-ftello4.sh: New file.
28920         * tests/test-ftello4.c: New file.
28921         * modules/ftello-tests (Files): Add them.
28922         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
28924         fseeko tests: EBADF tests.
28925         * tests/test-fseeko4.sh: New file.
28926         * tests/test-fseeko4.c: New file.
28927         * modules/fseeko-tests (Files): Add them.
28928         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
28930         Tests for function fputc().
28931         * modules/fputc-tests: New file.
28932         * tests/test-fputc.c: New file.
28933         * modules/stdio-tests (Depends-on): Add fputc-tests.
28935         Tests for function fgetc().
28936         * modules/fgetc-tests: New file.
28937         * tests/test-fgetc.c: New file.
28938         * modules/stdio-tests (Depends-on): Add fgetc-tests.
28940         Tests for function fdopen().
28941         * modules/fdopen-tests: New file.
28942         * tests/test-fdopen.c: New file.
28943         * modules/stdio-tests (Depends-on): Add fdopen-tests.
28945         Tests for module 'vdprintf'.
28946         * modules/vdprintf-tests: New file.
28947         * tests/test-vdprintf.c: New file.
28949         Tests for module 'dprintf'.
28950         * modules/dprintf-tests: New file.
28951         * tests/test-dprintf.c: New file.
28953 2011-09-20  Bruno Haible  <bruno@clisp.org>
28955         Tests for module 'ioctl'.
28956         * modules/ioctl-tests: New file.
28957         * tests/test-ioctl.c: New file.
28959 2011-09-20  Bruno Haible  <bruno@clisp.org>
28961         fcntl tests: EBADF tests.
28962         * tests/test-fcntl.c (main): Add more tests for EBADF.
28964 2011-09-20  Bruno Haible  <bruno@clisp.org>
28966         utimensat tests: EBADF tests.
28967         * tests/test-utimensat.c (main): Add tests for EBADF.
28969         renameat tests: EBADF tests.
28970         * tests/test-renameat.c (main): Add tests for EBADF.
28972         mkfifoat tests: EBADF tests.
28973         * tests/test-mkfifoat.c (main): Add tests for EBADF.
28975         readlinkat tests: EBADF tests.
28976         * tests/test-readlinkat.c (main): Add tests for EBADF.
28978         symlinkat tests: EBADF tests.
28979         * tests/test-symlinkat.c (main): Add tests for EBADF.
28981         linkat tests: EBADF tests.
28982         * tests/test-linkat.c (main): Add tests for EBADF.
28984         Tests for module 'faccessat'.
28985         * modules/faccessat-tests: New file.
28986         * tests/test-faccessat.c: New file.
28988         fdopendir tests: EBADF tests.
28989         * tests/test-fdopendir.c (main): Add more tests for EBADF.
28991         openat tests: EBADF tests.
28992         * tests/test-fchownat.c (main): Add tests for EBADF.
28993         * tests/test-fstatat.c (main): Likewise.
28994         * tests/test-mkdirat.c (main): Likewise.
28995         * tests/test-openat.c (main): Likewise.
28996         * tests/test-unlinkat.c (main): Likewise.
28997         * tests/test-fchmodat.c: New file.
28998         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
28999         (Makefile.am): Also run 'test-fchmodat'.
29001 2011-09-20  Bruno Haible  <bruno@clisp.org>
29003         utimens, futimens, fdutimensat tests: EBADF tests.
29004         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
29006         Tests for function fstat().
29007         * modules/fstat-tests: New file.
29008         * tests/test-fstat.c: New file.
29009         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
29011 2011-09-20  Bruno Haible  <bruno@clisp.org>
29013         test-ttyname_r tests: EBADF tests.
29014         * tests/test-ttyname_r.c (main): Add tests for EBADF.
29016         Tests for module 'isatty'.
29017         * modules/isatty-tests: New file.
29018         * tests/test-isatty.c: New file.
29020         Tests for module 'write'.
29021         * modules/write-tests: New file.
29022         * tests/test-write.c: New file.
29024         Tests for module 'read'.
29025         * modules/read-tests: New file.
29026         * tests/test-read.c: New file.
29028         pwrite tests: EBADF tests.
29029         * tests/test-pwrite.c (main): Add tests for EBADF.
29031         pread tests: EBADF tests.
29032         * tests/test-pread.c (main): Add tests for EBADF.
29034         lseek tests: EBADF tests.
29035         * tests/test-lseek.c (main): Add more tests for EBADF.
29037         Tests for module 'ftruncate'.
29038         * modules/ftruncate-tests: New file.
29039         * tests/test-ftruncate.sh: New file.
29040         * tests/test-ftruncate.c: New file.
29042         fsync tests: EBADF tests.
29043         * tests/test-fsync.c (main): Add more tests for EBADF.
29045         fdatasync tests: EBADF tests.
29046         * tests/test-fdatasync.c (main): Add more tests for EBADF.
29048         Tests for module 'fchown'.
29049         * modules/fchown-tests: New file.
29050         * tests/test-fchown.c: New file.
29052         Tests for module 'fchmod'.
29053         * modules/fchmod-tests: New file.
29054         * tests/test-fchmod.c: New file.
29056         fchdir tests: EBADF tests.
29057         * tests/test-fchdir.c (main): Add more tests for EBADF.
29059         dup2 tests: EBADF tests.
29060         * tests/test-dup2.c (main): Add more tests for EBADF.
29062         Tests for module 'dup'.
29063         * modules/dup-tests: New file.
29064         * tests/test-dup.c: New file.
29066         Tests for module 'close'.
29067         * modules/close-tests: New file.
29068         * tests/test-close.c: New file.
29070 2011-09-20  Bruno Haible  <bruno@clisp.org>
29072         Tests for module 'shutdown'.
29073         * modules/shutdown-tests: New file.
29074         * tests/test-shutdown.c: New file.
29076         Tests for module 'setsockopt'.
29077         * modules/setsockopt-tests: New file.
29078         * tests/test-setsockopt.c: New file.
29080         Tests for module 'sendto'.
29081         * modules/sendto-tests: New file.
29082         * tests/test-sendto.c: New file.
29084         Tests for module 'send'.
29085         * modules/send-tests: New file.
29086         * tests/test-send.c: New file.
29088         Tests for module 'recvfrom'.
29089         * modules/recvfrom-tests: New file.
29090         * tests/test-recvfrom.c: New file.
29092         Tests for module 'recv'.
29093         * modules/recv-tests: New file.
29094         * tests/test-recv.c: New file.
29096         Tests for module 'listen'.
29097         * modules/listen-tests: New file.
29098         * tests/test-listen.c: New file.
29100         Tests for module 'getsockopt'.
29101         * modules/getsockopt-tests: New file.
29102         * tests/test-getsockopt.c: New file.
29104         Tests for module 'getsockname'.
29105         * modules/getsockname-tests: New file.
29106         * tests/test-getsockname.c: New file.
29108         Tests for module 'getpeername'.
29109         * modules/getpeername-tests: New file.
29110         * tests/test-getpeername.c: New file.
29112         Tests for module 'connect'.
29113         * modules/connect-tests: New file.
29114         * tests/test-connect.c: New file.
29116         Tests for module 'bind'.
29117         * modules/bind-tests: New file.
29118         * tests/test-bind.c: New file.
29120         accept4 tests: Fix for native Windows.
29121         * tests/test-accept4.c: Include sockets.h.
29122         (main): Invoke gl_sockets_startup.
29123         * modules/accept4-tests (Depends-on): Add sockets.
29125         accept tests: Fix for native Windows.
29126         * tests/test-accept.c: Include sockets.h.
29127         (main): Invoke gl_sockets_startup.
29128         * modules/accept-tests (Depends-on): Add sockets.
29130 2011-09-19  Bruno Haible  <bruno@clisp.org>
29132         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
29133         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
29134         do...while(0).
29135         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
29136         Suggested by Paul Eggert.
29138 2011-09-19  Bruno Haible  <bruno@clisp.org>
29140         sched: Ensure pid_t is defined.
29141         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
29142         not define pid_t.
29143         * lib/sched.in.h: Include <sys/types.h>.
29144         * doc/posix-headers/sched.texi: Mention the pid_t problem.
29145         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29147 2011-09-19  Bruno Haible  <bruno@clisp.org>
29149         msvc-inval: Ensure the entire expansion is a single statement.
29150         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
29151         of braces.
29153 2011-09-19  Jim Meyering  <meyering@redhat.com>
29155         tests: use printf, not echo in init.sh's warn_ function
29156         * tests/init.sh (warn_): Use printf, not echo.  The latter would
29157         misbehave when given strings containing a backslash or starting
29158         with e.g., -n.  James Youngman suggested setting IFS.
29160 2011-09-19  Eric Blake  <eblake@redhat.com>
29162         futimens: enhance test
29163         * tests/test-futimens.h (test_futimens): Also check for EBADF on
29164         closed non-negative fd.
29166         date: accept 'hence' as opposite of 'ago'
29167         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
29168         * tests/test-parse-datetime.c (main): Enhance test.
29169         Suggested by Jesse Wilson.
29171 2011-09-19  Jim Meyering  <meyering@redhat.com>
29173         getcwd: don't fail in a deep directory on a system without openat
29174         Before this change, getcwd would fail when called from a directory
29175         of depth PATH_MAX / 3 or greater.  That was due to the fact that
29176         the non-openat implementation used "..", "../..", "../../..", etc.
29177         to access ancestor directories.  With too many, that string would
29178         be longer than PATH_MAX.
29179         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
29180         using gnulib's openat replacement.
29181         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
29182         we're using the replacement function.
29184 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
29186         maint.mk: avoid warnings from perl about missing files
29187         * top/maint.mk (def_sym_regex): Ignore files listed in
29188         $(gl_other_headers_) that do not exist, say because a project
29189         does not use a corresponding module.
29191 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
29193         stat: use pathmax.h only if needed
29194         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
29195         This is better for Emacs, which does not have a mingw port and
29196         therefore can avoid the pathmax module.
29198         utimens: remove dependency on dup2
29199         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
29200         to work around the Linux kernel bug.
29201         * modules/utimens (Depends-on): Remove dup2.
29203 2011-09-18  Bruno Haible  <bruno@clisp.org>
29205         inet_ntop, inet_pton: Look for it also in libresolv.
29206         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
29207         libnsl, search for it in libresolv.
29208         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
29209         Needed on Solaris 7.
29211 2011-09-18  Bruno Haible  <bruno@clisp.org>
29213         accept, accept4 tests: Avoid link error on Solaris.
29214         * modules/accept-tests (Makefile.am): Link test-accept against
29215         $(LIBSOCKET).
29216         * modules/accept4-tests (Makefile.am): Link test-accept4 against
29217         $(LIBSOCKET).
29219         accept4: Avoid link error on Solaris.
29220         * modules/accept4 (Link): New section.
29222         socket functions: Avoid link errors on Solaris.
29223         * modules/accept (Depends-on): Add socketlib.
29224         (Link): New section.
29225         * modules/bind (Depends-on): Add socketlib.
29226         (Link): New section.
29227         * modules/connect (Depends-on): Add socketlib.
29228         (Link): New section.
29229         * modules/getpeername (Depends-on): Add socketlib.
29230         (Link): New section.
29231         * modules/getsockname (Depends-on): Add socketlib.
29232         (Link): New section.
29233         * modules/getsockopt (Depends-on): Add socketlib.
29234         (Link): New section.
29235         * modules/listen (Depends-on): Add socketlib.
29236         (Link): New section.
29237         * modules/recv (Depends-on): Add socketlib.
29238         (Link): New section.
29239         * modules/recvfrom (Depends-on): Add socketlib.
29240         (Link): New section.
29241         * modules/send (Depends-on): Add socketlib.
29242         (Link): New section.
29243         * modules/sendto (Depends-on): Add socketlib.
29244         (Link): New section.
29245         * modules/setsockopt (Depends-on): Add socketlib.
29246         (Link): New section.
29247         * modules/shutdown (Depends-on): Add socketlib.
29248         (Link): New section.
29249         * modules/socket (Depends-on): Add socketlib.
29250         (Link): New section.
29252 2011-09-18  Bruno Haible  <bruno@clisp.org>
29254         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
29255         * tests/test-ptsname.c (main): Terminate the test if it takes longer
29256         than 5 seconds.
29257         * modules/ptsname-tests (configure.ac): Test for alarm.
29259 2011-09-18  Bruno Haible  <bruno@clisp.org>
29261         posix_spawn_file_actions_add*: Fix module dependencies.
29262         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
29263         posix_spawn_file_actions_init.
29264         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
29265         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
29267 2011-09-18  Bruno Haible  <bruno@clisp.org>
29269         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
29270         * tests/test-rename.h (test_rename): Allow error code EEXIST.
29271         * tests/test-renameat.c (main): Likewise.
29273 2011-09-18  Bruno Haible  <bruno@clisp.org>
29275         Tests for module 'accept4'.
29276         * modules/accept4-tests: New file.
29277         * tests/test-accept4.c: New file.
29279 2011-09-18  Bruno Haible  <bruno@clisp.org>
29281         Tests for module 'accept'.
29282         * modules/accept-tests: New file.
29283         * tests/test-accept.c: New file.
29285 2011-09-18  Bruno Haible  <bruno@clisp.org>
29287         dup2: Support for MSVC.
29288         * lib/dup2.c: Include msvc-inval.h.
29289         (rpl_dup2): Handle invalid parameter notifications during dup2 and
29290         _get_osfhandle calls.
29291         * modules/dup2 (Depends-on): Add msvc-inval.
29292         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
29294         New module 'msvc-inval'.
29295         * lib/msvc-inval.h: New file.
29296         * lib/msvc-inval.c: New file.
29297         * m4/msvc-inval.m4: New file.
29298         * modules/msvc-inval: New file.
29300 2011-09-17  Bruno Haible  <bruno@clisp.org>
29302         Tests for module 'pclose'.
29303         * modules/pclose-tests: New file.
29305         New module 'pclose'.
29306         * lib/stdio.in.h (pclose): New declaration.
29307         * lib/pclose.c: New file.
29308         * m4/pclose.m4: New file.
29309         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
29310         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
29311         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
29312         * modules/pclose: New file.
29313         * modules/popen-tests (Depends-on): Add pclose.
29314         * modules/popen-safer-tests (Depends-on): Likewise.
29315         * doc/posix-functions/pclose.texi: Mention the new module.
29317 2011-09-17  Bruno Haible  <bruno@clisp.org>
29319         popen: Support for MSVC.
29320         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
29321         * lib/popen.c (popen): Provide alternate definition for native Windows.
29322         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
29323         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
29324         * modules/popen (Depends-on, configure.ac): Update condition.
29325         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
29326         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
29327         fixed.
29329 2011-09-17  Bruno Haible  <bruno@clisp.org>
29331         isnanl, isnand, isnanf: Work around MSVC bug.
29332         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
29334 2011-09-17  Bruno Haible  <bruno@clisp.org>
29336         sys_socket tests: Fix recent mistake.
29337         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
29339 2011-09-17  Bruno Haible  <bruno@clisp.org>
29341         putenv: Support for MSVC.
29342         * modules/putenv (Depends-on): Add environ.
29343         * lib/putenv.c (environ): Disable declaration.
29344         * lib/unistd.in.h: Update comment.
29346 2011-09-17  Bruno Haible  <bruno@clisp.org>
29348         math: Avoid macro redefinition warnings on MSVC.
29349         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
29350         Undefine before redefining.
29352 2011-09-17  Bruno Haible  <bruno@clisp.org>
29354         doc: Mention functions which are declared as macros.
29355         * doc/posix-functions/*[fl].texi: Mention that some functions are
29356         defined as macros with arguments only.
29358 2011-09-17  Bruno Haible  <bruno@clisp.org>
29360         Add dependencies to new dirent related modules.
29361         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
29362         * modules/fts (Depends-on): Likewise.
29363         * modules/glob (Depends-on): Likewise.
29364         * modules/savedir (Depends-on): Likewise.
29365         * modules/scandir (Depends-on): Likewise.
29366         * modules/dirent-safer (Depends-on): Add opendir, closedir.
29367         * modules/fdopendir (Depends-on): Add opendir.
29369 2011-09-17  Bruno Haible  <bruno@clisp.org>
29371         inet_pton: Support for MSVC on Windows Vista or newer.
29372         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
29373         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
29374         HAVE_DECL_INET_PTON is defined.
29375         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
29376         On platforms with <winsock2.h>, test whether inet_pton is declared in
29377         <ws2tcpip.h>. If so, arrange to replace it.
29378         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
29379         REPLACE_INET_PTON.
29380         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
29381         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
29382         (Depends-on, configure.ac): Update condition.
29383         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
29385 2011-09-17  Bruno Haible  <bruno@clisp.org>
29387         inet_ntop: Support for MSVC on Windows Vista or newer.
29388         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
29389         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
29390         HAVE_DECL_INET_NTOP is defined.
29391         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
29392         On platforms with <winsock2.h>, test whether inet_ntop is declared in
29393         <ws2tcpip.h>. If so, arrange to replace it.
29394         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
29395         REPLACE_INET_NTOP.
29396         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
29397         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
29398         (Depends-on, configure.ac): Update condition.
29399         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
29401 2011-09-16  Eric Blake  <eblake@redhat.com>
29403         test-fsync: yet another enhancement
29404         * tests/test-fsync.c (main): Also test behavior on read-only text
29405         file.
29407 2011-09-16  Bruno Haible  <bruno@clisp.org>
29409         Enhance fsync, fdatasync tests.
29410         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
29411         * tests/test-fdatasync.c (main): Likewise.
29413 2011-09-16  Bruno Haible  <bruno@clisp.org>
29415         Support for MSVC compiler: Ensure mode_t gets defined.
29416         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
29417         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
29418         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
29419         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
29420         * tests/test-fcntl-h.c: Check that mode_t is defined.
29421         * tests/test-sys_stat.c: Likewise.
29422         * tests/test-sys_types.c: Likewise.
29423         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
29424         * doc/posix-headers/sys_stat.texi: Likewise.
29425         * doc/posix-headers/sys_types.texi: Likewise.
29427 2011-09-16  Bruno Haible  <bruno@clisp.org>
29429         sys_stat: Support for MSVC.
29430         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
29431         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
29432         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
29433         MSVC.
29435 2011-09-16  Bruno Haible  <bruno@clisp.org>
29437         Support for MSVC compiler: Ensure off_t gets defined.
29438         * lib/unistd.in.h: Include <sys/types.h>.
29439         * tests/test-fcntl-h.c: Check that off_t is defined.
29440         * tests/test-sys_stat.c: Likewise.
29441         * tests/test-sys_types.c: Likewise.
29443 2011-09-16  Eric Blake  <eblake@redhat.com>
29445         fdatasync: port to Solaris
29446         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
29447         * modules/fdatasync (Link): Document it.
29448         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
29450         fdatasync: port to MacOS X 10.7
29451         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
29452         declared.
29453         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
29454         * modules/unistd (Makefile.am): Substitute it.
29455         * lib/unistd.in.h (fdatasync): Declare on MacOS.
29456         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
29458         fdatasync: minor improvements
29459         * modules/fdatasync (Depends-on): Add condition for fsync.
29460         * lib/fdatasync.c (fdatasync): Add comment.
29461         * tests/test-unistd-c++.cc: Test fdatasync.
29463         unistd: update refs to newer POSIX
29464         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
29465         Suggested by Bruno Haible.
29467         fdatasync: new module
29468         * modules/fsync (Description): Document difference to fdatasync.
29469         * modules/fdatasync: New module.
29470         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
29471         * lib/fdatasync.c (fdatasync): Likewise.
29472         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
29473         defaults.
29474         * modules/unistd (Makefile.am): Set witnesses.
29475         * lib/unistd.in.h (fdatasync): Declare.
29476         * MODULES.html.sh: Document it.
29477         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
29478         * modules/fdatasync-tests: New test.
29479         * tests/test-fdatasync.c: Likewise.
29481 2011-09-16  Eric Blake  <eblake@redhat.com>
29483         test-fsync: enhance tests
29484         * modules/fsync-tests (Depends-on): Add errno, for mingw.
29485         * tests/test-fsync.c (main): Enhance test.
29487 2011-09-15  Bruno Haible  <bruno@clisp.org>
29489         Support for MSVC compiler: Ensure ssize_t gets defined.
29490         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
29491         * doc/posix-headers/stdio.texi: Likewise.
29492         * modules/stdio (Depends-on): Add ssize_t.
29493         * modules/sys_socket (Depends-on): Likewise.
29494         * modules/sys_types (Depends-on): Likewise.
29495         * modules/sys_uio (Depends-on): Likewise.
29496         * modules/unistd (Depends-on): Likewise.
29497         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
29498         * tests/test-sys_types.c: Check that ssize_t is defined.
29500 2011-09-14  Bruno Haible  <bruno@clisp.org>
29502         Avoid using #, the m4 comment starter character, near brackets.
29503         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
29504         delimiter character in sed expressions.
29505         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
29506         Suggested by Eric Blake.
29508         Properly quote AC_CHECK_DECLS' 4th argument.
29509         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
29510         argument.
29511         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
29512         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
29513         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
29514         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
29515         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
29516         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
29517         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
29518         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
29519         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
29520         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
29521         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
29522         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
29523         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
29524         * m4/isinf.m4 (gl_ISINF): Likewise.
29525         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
29526         * m4/readutmp.m4 (gl_READUTMP): Likewise.
29527         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
29528         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
29529         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
29530         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
29531         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
29532         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
29533         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
29534         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
29535         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
29536         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29537         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
29538         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
29539         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
29540         Reported by Eric Blake.
29542         Properly quote AC_CHECK_DECL's 4th argument.
29543         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
29544         argument.
29545         * m4/argp.m4 (gl_ARGP): Likewise.
29546         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
29547         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
29548         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
29549         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
29550         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
29551         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
29552         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
29553         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
29554         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
29555         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
29556         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
29557         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
29558         Reported by Eric Blake.
29560 2011-09-14  Eric Blake  <eblake@redhat.com>
29562         opendir: avoid compile warning
29563         * lib/opendir.c (includes): Always include errno.h.
29564         Reported by Tatsuro MATSUOKA.
29566 2011-09-14  Jim Meyering  <meyering@redhat.com>
29568         maint.mk: sc_tight_scope: propagate failure from sub-make
29569         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
29570         Reported by Martin von Gagern.
29572 2011-09-13  Bruno Haible  <bruno@clisp.org>
29574         tempname: Support for MSVC.
29575         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
29576         MSVC.
29577         * modules/tempname (Depends-on): Add fcntl-h.
29579 2011-09-13  Bruno Haible  <bruno@clisp.org>
29581         sys_time: Support for MSVC.
29582         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
29583         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
29584         include <winsock2.h>.
29585         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
29586         function declarations that collide with POSIX.
29587         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
29588         (Makefile.am): Substitute HAVE_WINSOCK2_H.
29590 2011-09-13  Bruno Haible  <bruno@clisp.org>
29592         stat: Support for MSVC.
29593         * lib/stat.c: Include pathmax.h.
29594         * modules/stat (Depends-on): Add pathmax.
29596         pathmax: Support for native Windows.
29597         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
29599 2011-09-12  Bruno Haible  <bruno@clisp.org>
29601         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
29602         * lib/dirent.in.h (struct dirent): New type.
29603         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
29604         DT_WHT): New macros.
29605         (DIR): New type.
29606         (opendir, closedir): Declare only if the module 'opendir' is enabled.
29607         (readdir, rewinddir): New declarations.
29608         * lib/dirent-private.h: New file.
29609         * lib/opendir.c: New file.
29610         * lib/readdir.c: New file.
29611         * lib/rewinddir.c: New file.
29612         * lib/closedir.c: New file.
29613         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
29614         * m4/opendir.m4: New file.
29615         * m4/readdir.m4: New file.
29616         * m4/rewinddir.m4: New file.
29617         * m4/closedir.m4: New file.
29618         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
29619         REPLACE_CLOSEDIR here.
29620         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
29621         readdir, rewinddir are declared.
29622         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
29623         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
29624         HAVE_REWINDDIR, HAVE_CLOSEDIR.
29625         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
29626         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
29627         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
29628         * modules/opendir: New file.
29629         * modules/readdir: New file.
29630         * modules/rewinddir: New file.
29631         * modules/closedir: New file.
29632         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
29633         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
29634         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
29635         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
29636         * NEWS: Mention the 'fchdir' change.
29638 2011-09-11  Bruno Haible  <bruno@clisp.org>
29640         asm-underscore.m4: Support for MSVC.
29641         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
29642         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
29644 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
29646         Doc about crypt functions.
29647         * doc/posix-functions/crypt.texi: Expand range of glibc versions
29648         needing for _GNU_SOURCE to get crypt.
29649         * doc/posix-functions/encrypt.texi: Likewise.
29650         * doc/posix-functions/setkey.texi: Likewise.
29652 2011-09-11  Bruno Haible  <bruno@clisp.org>
29654         doc: Update regarding MSVC 9.
29655         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
29656         tested".
29657         * doc/posix-functions/*.texi: Update with info about MSVC 9.
29658         * doc/posix-headers/*.texi: Likewise.
29659         * doc/pastposix-functions/*.texi: Likewise.
29660         * doc/glibc-functions/*.texi: Likewise.
29661         * doc/glibc-headers/*.texi: Likewise.
29663 2011-09-11  Bruno Haible  <bruno@clisp.org>
29665         unistd et al.: Don't assume <unistd.h> exists.
29666         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
29667         does not exist.
29668         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
29669         exist. But include <stdlib.h>.
29670         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
29671         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
29672         symlink() does not exist.
29673         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
29674         include <io.h> instead.
29675         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
29676         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
29677         include <direct.h> instead.
29678         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
29679         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
29680         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
29681         <io.h> instead.
29682         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
29683         correctly if the system does not have hard links.
29684         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
29685         <direct.h> instead.
29686         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
29687         it when looking for function declarations.
29688         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
29689         <direct.h> and <io.h> instead.
29690         * doc/posix-headers/unistd.texi: More details about MSVC problem.
29692 2011-09-11  Bruno Haible  <bruno@clisp.org>
29694         strcase: Support for MSVC.
29695         * modules/strcase (Status, Notice): Remove obsoletion mark.
29696         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
29697         * doc/posix-functions/strncasecmp.texi: Likewise.
29699         strings: Don't assume <strings.h> exists.
29700         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
29701         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
29702         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
29703         * doc/posix-headers/strings.texi: Mention the MSVC problem.
29705 2011-09-11  Bruno Haible  <bruno@clisp.org>
29707         dirent: Don't assume <dirent.h> exists.
29708         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
29709         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
29710         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
29711         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
29713 2011-09-11  Bruno Haible  <bruno@clisp.org>
29715         Fix wint_t on MSVC.
29716         * lib/wchar.in.h (wint_t): On MSVC, override it.
29717         * lib/wctype.in.h (wint_t): Likewise.
29718         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
29719         MSVC.
29720         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
29721         * doc/posix-headers/wctype.texi: Likewise.
29723 2011-09-11  Bruno Haible  <bruno@clisp.org>
29725         sys_types: Fix typo.
29726         * lib/sys_types.in.h: Fix typo in comment.
29727         Reported by Paul Eggert.
29729         Support for MSVC compiler: Ensure size_t gets defined.
29730         * modules/strings (Depends-on): Add 'sys_types'.
29731         * modules/sys_uio (Depends-on): Likewise.
29732         * lib/sys_uio.in.h: Update comment.
29734         C++ tests for module 'sys_types'.
29735         * modules/sys_types-c++-tests: New file.
29736         * tests/test-sys_types-c++.cc: New file.
29738         Tests for module 'sys_types'.
29739         * modules/sys_types-tests: New file.
29740         * tests/test-sys_types.c: New file.
29742         New module 'sys_types'.
29743         * lib/sys_types.in.h: New file.
29744         * m4/sys_types_h.m4: New file.
29745         * modules/sys_types: New file.
29746         * doc/posix-headers/sys_types.texi: Mention the new module and the
29747         size_t problem on MSVC 9.
29749 2011-09-11  Bruno Haible  <bruno@clisp.org>
29751         Support for MSVC compiler: Avoid division by a literal 0.
29752         * lib/math.in.h (NAN): Define through a function call also on MSVC.
29753         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
29754         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
29755         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
29756         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
29757         * tests/infinity.h: New file.
29758         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
29759         on MSVC.
29760         * tests/test-ceilf1.c: Include infinity.h.
29761         (main): Use Infinityf.
29762         * tests/test-ceil1.c: Include infinity.h.
29763         (main): Use Infinityd.
29764         * tests/test-ceill.c: Include infinity.h.
29765         (main): Use Infinityl.
29766         * tests/test-dprintf-posix.c: Include infinity.h.
29767         (test_function): Use Infinityd.
29768         * tests/test-floorf1.c: Include infinity.h.
29769         (main): Use Infinityf.
29770         * tests/test-floor1.c: Include infinity.h.
29771         (main): Use Infinityd.
29772         * tests/test-floorl.c: Include infinity.h.
29773         (main): Use Infinityl.
29774         * tests/test-fprintf-posix.c: Include infinity.h.
29775         (test_function): Use Infinityd.
29776         * tests/test-frexp.c: Include infinity.h.
29777         (main): Use Infinityd.
29778         * tests/test-frexpl.c: Include infinity.h.
29779         (main): Use Infinityl.
29780         * tests/test-isfinite.c: Include infinity.h.
29781         (test_isfinitef): Use Infinityf.
29782         (test_isfinited): Use Infinityd.
29783         (test_isfinitel): Use Infinityl.
29784         * tests/test-isinf.c: Include infinity.h.
29785         (test_isinff): Use Infinityf.
29786         (test_isinfd): Use Infinityd.
29787         (test_isinfl): Use Infinityl.
29788         * tests/test-isnan.c: Include infinity.h.
29789         (test_float): Use Infinityf.
29790         (test_double): Use Infinityd.
29791         (test_long_double): Use Infinityl.
29792         * tests/test-isnanf.h: Include infinity.h.
29793         (main): Use Infinityf.
29794         * tests/test-isnand.h: Include infinity.h.
29795         (main): Use Infinityd.
29796         * tests/test-isnanl.h: Include infinity.h.
29797         (main): Use Infinityl.
29798         * tests/test-ldexpl.c: Include infinity.h.
29799         (main): Use Infinityl.
29800         * tests/test-printf-posix.h: Include infinity.h.
29801         (test_function): Use Infinityd.
29802         * tests/test-roundf1.c: Include infinity.h.
29803         (main): Use Infinityf.
29804         * tests/test-round1.c: Include infinity.h.
29805         (main): Use Infinityd.
29806         * tests/test-roundl.c: Include infinity.h.
29807         (main): Use Infinityl.
29808         * tests/test-signbit.c: Include infinity.h.
29809         (test_signbitf): Use Infinityf.
29810         (test_signbitd): Use Infinityd.
29811         (test_signbitl): Use Infinityl.
29812         * tests/test-snprintf-posix.h: Include infinity.h.
29813         (test_function): Use Infinityd, Infinityl.
29814         * tests/test-sprintf-posix.h: Include infinity.h.
29815         (test_function): Use Infinityd, Infinityl.
29816         * tests/test-truncf1.c: Include infinity.h.
29817         (main): Use Infinityf.
29818         * tests/test-trunc1.c: Include infinity.h.
29819         (main): Use Infinityd.
29820         * tests/test-truncl.c: Include infinity.h.
29821         (main): Use Infinityl.
29822         * tests/test-vasnprintf-posix.c: Include infinity.h.
29823         (test_function): Use Infinityd, Infinityl.
29824         * tests/test-vasprintf-posix.c: Include infinity.h.
29825         (test_function): Use Infinityd, Infinityl.
29826         * modules/ceilf-tests (Files): Add tests/infinity.h.
29827         * modules/ceil-tests (Files): Likewise.
29828         * modules/ceill-tests (Files): Likewise.
29829         * modules/dprintf-posix-tests (Files): Likewise.
29830         * modules/floorf-tests (Files): Likewise.
29831         * modules/floor-tests (Files): Likewise.
29832         * modules/floorl-tests (Files): Likewise.
29833         * modules/fprintf-posix-tests (Files): Likewise.
29834         * modules/frexp-tests (Files): Likewise.
29835         * modules/frexp-nolibm-tests (Files): Likewise.
29836         * modules/frexpl-tests (Files): Likewise.
29837         * modules/frexpl-nolibm-tests (Files): Likewise.
29838         * modules/isfinite-tests (Files): Likewise.
29839         * modules/isinf-tests (Files): Likewise.
29840         * modules/isnan-tests (Files): Likewise.
29841         * modules/isnanf-tests (Files): Likewise.
29842         * modules/isnanf-nolibm-tests (Files): Likewise.
29843         * modules/isnand-tests (Files): Likewise.
29844         * modules/isnand-nolibm-tests (Files): Likewise.
29845         * modules/isnanl-tests (Files): Likewise.
29846         * modules/isnanl-nolibm-tests (Files): Likewise.
29847         * modules/ldexpl-tests (Files): Likewise.
29848         * modules/printf-posix-tests (Files): Likewise.
29849         * modules/roundf-tests (Files): Likewise.
29850         * modules/round-tests (Files): Likewise.
29851         * modules/roundl-tests (Files): Likewise.
29852         * modules/signbit-tests (Files): Likewise.
29853         * modules/snprintf-posix-tests (Files): Likewise.
29854         * modules/sprintf-posix-tests (Files): Likewise.
29855         * modules/truncf-tests (Files): Likewise.
29856         * modules/trunc-tests (Files): Likewise.
29857         * modules/truncl-tests (Files): Likewise.
29858         * modules/vasnprintf-posix-tests (Files): Likewise.
29859         * modules/vasprintf-posix-tests (Files): Likewise.
29860         * modules/vdprintf-posix-tests (Files): Likewise.
29861         * modules/vfprintf-posix-tests (Files): Likewise.
29862         * modules/vprintf-posix-tests (Files): Likewise.
29863         * modules/vsnprintf-posix-tests (Files): Likewise.
29864         * modules/vsprintf-posix-tests (Files): Likewise.
29865         * modules/xprintf-posix-tests (Files): Likewise.
29867 2011-09-11  Bruno Haible  <bruno@clisp.org>
29869         Ensure pid_t gets defined.
29870         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
29871         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
29872         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
29873         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
29874         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
29875         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
29876         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
29877         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
29878         * tests/test-fcntl-h.c: Check that pid_t is defined.
29879         * tests/test-sched.c: Likewise.
29880         * tests/test-termios.c: Likewise.
29881         * tests/test-time.c: Likewise.
29882         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
29883         * doc/posix-headers/signal.texi: Likewise.
29884         * doc/posix-headers/sys_types.texi: Likewise.
29885         * doc/posix-headers/time.texi: Likewise.
29887 2011-09-11  Bruno Haible  <bruno@clisp.org>
29889         acl: Fix compilation on Solaris 10 (older version).
29890         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
29891         of ACE_EVERYONE.
29892         * lib/set-mode-acl.c (qset_acl): Likewise.
29893         Reported by Christian Jullien <eligis@orange.fr>.
29895 2011-09-10  Bruno Haible  <bruno@clisp.org>
29897         iconv, unsetenv: Add support for MSVC compiler.
29898         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
29899         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
29901 2011-09-10  Bruno Haible  <bruno@clisp.org>
29903         *printf: Add support for MSVC compiler.
29904         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
29905         handles the exception caused by the %n directive. When cross-compiling,
29906         guess no on native Windows.
29907         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
29908         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
29909         emulate it through vsnprintf.
29910         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
29911         * doc/posix-functions/dprintf.texi: Update documentation regarding
29912         MSVC 9.
29913         * doc/posix-functions/fprintf.texi: Likewise.
29914         * doc/posix-functions/printf.texi: Likewise.
29915         * doc/posix-functions/snprintf.texi: Likewise.
29916         * doc/posix-functions/sprintf.texi: Likewise.
29917         * doc/posix-functions/swprintf.texi: Likewise.
29918         * doc/posix-functions/vdprintf.texi: Likewise.
29919         * doc/posix-functions/vfprintf.texi: Likewise.
29920         * doc/posix-functions/vprintf.texi: Likewise.
29921         * doc/posix-functions/vsnprintf.texi: Likewise.
29922         * doc/posix-functions/vsprintf.texi: Likewise.
29923         * doc/glibc-functions/asprintf.texi: Likewise.
29924         * doc/glibc-functions/obstack_printf.texi: Likewise.
29925         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
29926         * doc/glibc-functions/vasprintf.texi: Likewise.
29928 2011-09-10  Bruno Haible  <bruno@clisp.org>
29930         nocrash: Add support for native Windows.
29931         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
29933 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
29934             Bruno Haible  <bruno@clisp.org>
29936         absolute-header, include-next: Add support for MSVC compiler.
29937         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
29938         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
29939         directory separator in #line directives.
29940         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
29941         recognize also backslash as directory separator in #line directives.
29943 2011-09-08  Jim Meyering  <meyering@redhat.com>
29945         maint.mk: mark the post-release commit log with "maint: " prefix
29946         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
29947         one-line commit-log summary.
29949 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
29950             Bruno Haible  <bruno@clisp.org>
29952         Doc about crypt functions.
29953         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
29954         systems.
29955         * doc/posix-functions/encrypt.texi: Likewise.
29956         * doc/posix-functions/setkey.texi: Likewise.
29958 2011-09-08  Simon Josefsson  <simon@josefsson.org>
29960         * lib/gc.h: Fix copyright header.
29962 2011-09-07  Bruno Haible  <bruno@clisp.org>
29964         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
29965         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
29966         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
29968 2011-09-07  Bruno Haible  <bruno@clisp.org>
29970         openat: Work around compilation error with OSF/1 5.1 DTK cc.
29971         * lib/fopen.c: Use different syntax for include of <stdio.h>.
29972         * lib/freopen.c: Likewise.
29973         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
29974         * lib/lstat.c: Likewise.
29975         * lib/stat.c: Likewise.
29976         * lib/open.c: Use different syntax for include of <fcntl.h>.
29977         * lib/openat.c: Include fcntl.h again, explicitly.
29979 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
29981         parse-datetime: document the newly accepted format
29982         * doc/parse-datetime.texi (Combined date and time of day items):
29983         New section.
29985 2011-09-06  Bruno Haible  <bruno@clisp.org>
29987         acl: Fix a test failure on newer Solaris 10 with ZFS.
29988         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
29989         ENOSYS as no ACL.
29990         Reported by Jim Meyering.
29992 2011-09-06  Bruno Haible  <bruno@clisp.org>
29994         acl: Update for AIX >= 5.3 with NFS.
29995         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
29996         ENOSYS as no ACL.
29998         acl: Fix a test failure on AIX >= 5.3 with NFS.
29999         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
30000         as no ACL.
30002 2011-09-06  Bruno Haible  <bruno@clisp.org>
30004         acl: Fix a test failure on IRIX 6.5 with NFS.
30005         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
30006         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
30007         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
30008         * lib/copy-acl.c (qcopy_acl): Likewise.
30010 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
30012         openat: port to AIX 7.1 with large files
30013         AIX 7.1 does a "#define openat open64at" if large files are in use,
30014         so we can't simply #undef openat.  Use the orig_openat trick (similar
30015         to orig_open in lib/open.c) to work around the problem.  Problem
30016         reported by Kevin Brott for GNU tar, in the thread containing
30017         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
30018         * lib/openat.c (__need_system_fcntl_h): Define first.
30019         Include <fcntl.h> and <sys/types.h> before undefining.
30020         (orig_openat) [HAVE_OPENAT]: New inline function.
30021         (openat) [HAVE_OPENAT]: Do not undef.
30022         (rpl_openat): Use orig_openat, not openat.
30024 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
30025             Bruno Haible  <bruno@clisp.org>
30027         acl: Avoid errors on NonStop Kernel.
30028         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
30029         ENOTSUP errors.
30031 2011-09-05  Bruno Haible  <bruno@clisp.org>
30033         acl: Clean up Solaris code.
30034         * lib/acl-internal.h: Remove no-op #if.
30035         * lib/file-has-acl.c: Likewise.
30036         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
30037         * lib/copy-acl.c (qcopy_acl): Likewise.
30039 2011-09-05  Bruno Haible  <bruno@clisp.org>
30041         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
30042         binaries built on the original Solaris 10.
30043         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
30044         trivial.
30046 2011-09-05  Bruno Haible  <bruno@clisp.org>
30048         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
30049         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
30050         10.
30051         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
30052         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
30053         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
30054         instead of acl_get, facl_get, acl_set, facl_set.
30056 2011-09-05  Bruno Haible  <bruno@clisp.org>
30058         copy-file: Try unit tests on more file systems.
30059         * tests/test-copy-file-1.sh: New file.
30060         * tests/test-copy-file-2.sh: New file.
30061         * modules/copy-file-tests (Files): Add them.
30062         (Makefile.am): Add them to TESTS.
30064         acl: Try unit tests on more file systems.
30065         * tests/test-file-has-acl-1.sh: New file.
30066         * tests/test-file-has-acl-2.sh: New file.
30067         * tests/test-set-mode-acl-1.sh: New file.
30068         * tests/test-set-mode-acl-2.sh: New file.
30069         * tests/test-copy-acl-1.sh: New file.
30070         * tests/test-copy-acl-2.sh: New file.
30071         * modules/acl-tests (Files): Add them.
30072         (Makefile.am): Add them to TESTS.
30074 2011-09-04  Bruno Haible  <bruno@clisp.org>
30076         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
30077         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
30078         10.
30079         (OLD_ALLOW, OLD_DENY): New macros.
30080         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
30081         ACE_ACCESS_ALLOWED_ACE_TYPE.
30082         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
30083         ACE_ACCESS_DENIED_ACE_TYPE.
30084         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
30085         (NEW_ACE_EXECUTE): Fix value.
30086         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
30087         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
30088         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
30089         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
30090         NEW_ACE_SYNCHRONIZE): New macros.
30091         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
30092         instead of acl_fromtext, acl_set, facl_set.
30093         Fixes a coreutils/tests/cp/perm failure.
30095 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
30097         openat: test for fstatat (..., 0) bug
30098         Further testing with tar suggests that fstatat (..., 0)
30099         does not work in general, on AIX 7.1; see
30100         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
30101         So, give up entirely on AIX 7.1's fstatat, and fall back on our
30102         replacement fstatat (which is what older AIX releases were using
30103         anyway).
30104         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
30105         use is now changed to orig_fstatat.  This was probably the right
30106         thing to do anyway.
30107         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
30108         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
30109         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
30110         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
30111         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
30112         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
30113         if the bug is found.
30115         openat: test for fstatat (AT_FDCWD, ..., 0) bug
30116         This tests for another fstatat bug on AIX 7.1:
30117         fstatat (AT_FDCWD, ..., 0) does not work.  See
30118         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
30119         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
30120         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
30121         (rpl_fstatat): Adjust so that it works around either (or both)
30122         bugs if present.
30123         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
30125 2011-09-03  Karl Berry  <karl@gnu.org>
30127         * doc/regex.texi (Character Class Operators): Avoid literal ":"
30128         in index entries.
30130 2011-09-02  Bruno Haible  <bruno@clisp.org>
30132         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
30133         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
30134         values of AR, ARFLAGS, RANLIB.
30135         Reported by John W. Eaton <jwe@gnu.org> for Octave.
30137 2011-09-02  Bruno Haible  <bruno@clisp.org>
30139         Find 'ar' program that fits with --host argument.
30140         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
30142 2011-09-02  Bruno Haible  <bruno@clisp.org>
30144         tests: init.sh: Support any non-GNU diff.
30145         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
30146         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
30147         Solaris 8.
30149 2011-09-02  Bruno Haible  <bruno@clisp.org>
30151         tests: init.sh: work also with any non-GNU diff that supports -u
30152         * tests/init.sh: Relax check for diff -u support.
30153         Rather than checking for GNU diff via --version, simply check
30154         for support for -u itself.  Useful at least on OpenBSD 4.9,
30155         AIX 7.1, IRIX 6.5, and Solaris 10.
30157 2011-09-01  Bruno Haible  <bruno@clisp.org>
30159         strtoimax, strtoumax: Document problem on HP-UX 11.
30160         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
30161         * doc/posix-functions/strtoumax.texi: Likewise.
30163 2011-09-01  Bruno Haible  <bruno@clisp.org>
30165         strtoumax: Avoid link error on OSF/1 with DTK cc.
30166         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
30167         defined as a function.
30168         * modules/strtoumax (Depends-on, configure.ac): Test only whether
30169         strtoumax is defined, not whether it is declared.
30171 2011-09-01  Bruno Haible  <bruno@clisp.org>
30173         strtoimax: Avoid link error on OSF/1 with DTK cc.
30174         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
30175         defined as a function.
30176         * modules/strtoimax (Depends-on, configure.ac): Test only whether
30177         strtoimax is defined, not whether it is declared.
30179 2011-09-01  Bruno Haible  <bruno@clisp.org>
30181         imaxdiv: Avoid link error on OSF/1 with DTK cc.
30182         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
30183         as a function.
30184         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
30185         whether it is declared.
30187 2011-09-01  Bruno Haible  <bruno@clisp.org>
30189         imaxabs: Avoid link error on OSF/1 with DTK cc.
30190         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
30191         as a function.
30192         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
30193         whether it is declared.
30195 2011-09-01  Bruno Haible  <bruno@clisp.org>
30197         Tests for module 'strtoumax'.
30198         * modules/strtoumax-tests: New file.
30199         * tests/test-strtoumax.c: New file.
30201         Tests for module 'strtoimax'.
30202         * modules/strtoimax-tests: New file.
30203         * tests/test-strtoimax.c: New file.
30205         Tests for module 'imaxdiv'.
30206         * modules/imaxdiv-tests: New file.
30207         * tests/test-imaxdiv.c: New file.
30209         Tests for module 'imaxabs'.
30210         * modules/imaxabs-tests: New file.
30211         * tests/test-imaxabs.c: New file.
30213 2011-09-01  Bruno Haible  <bruno@clisp.org>
30215         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
30216         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
30217         pthread_create.
30219 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
30221         openat: work around AIX 7.1 fstatat issue
30222         This should fix the problem that was not properly fixed
30223         in the previous change, dated 2011-08-30.
30224         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
30225         __need_system_stat_h defined.
30226         (orig_fstatat) [HAVE_FSTATAT]: New function.
30227         (rpl_fstatat): Go back to the old way of doing things,
30228         except call orig_fstatat instead of fstatat.
30229         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
30230         Remove unnecessary check whether fstatat fills in st_size etc.
30232 2011-09-01  Bruno Haible  <bruno@clisp.org>
30234         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
30235         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
30236         just include the system's header.
30238 2011-08-31  Jim Meyering  <meyering@redhat.com>
30240         tests: avoid spurious assertion failure in test-float.c on ppc64
30241         * tests/test-float.c (test_long_double): Comment out an assertion,
30242         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
30243         with gcc-4.4.4.
30245         maint: indent with spaces, not TABs
30246         I need to get in the habit of running gnulib's "make check".
30247         Both of these would have been caught.
30248         * m4/largefile.m4: Indent with spaces, not TABs.
30249         * lib/parse-datetime.y (iso_8601_time): Likewise.
30250         Spotted by Pádraig Brady.
30252         test-parse-datetime.c: accommodate a relatively strict gcc warning
30253         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
30254         to avoid a warning from gcc's -Werror=missing-declarations.
30255         Insert a few spaces-before-funcall-parenthesis.
30257 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
30259         parse-datetime: accept ISO 8601 date and time rep with "T" separator
30260         The parser now accepts ISO 8601 date-time strings with "T" as the
30261         separator.  It has long parsed dates like "2004-02-29 16:21:42"
30262         with a space between the date and time strings.  Now it also parses
30263         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
30264         variants like "2004-02-29T16:21:42.333-07:00"
30265         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
30266         of day representation using the 'T' separator character.
30267         * doc/parse-datetime.texi (General date syntax): replace use of
30268         deprecated --iso-8601 option with --rfc-3339 in example of date
30269         command output formats that can be parsed.
30270         * tests/test-parse-datetime.c (tm_diff): New function, taken from
30271         lib/parse-datetime.y.
30272         (gmt_offset): New function.
30273         (main): Add additional test cases to validate ISO8601 extended
30274         date and time of day parsing.
30276 2011-08-31  Bruno Haible  <bruno@clisp.org>
30278         freopen: Documentation.
30279         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
30280         name.
30281         Reported by Claudio Bley <claudio.bley@gmail.com>.
30283 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
30285         freopen: Don't crash if the filename argument is NULL.
30286         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
30287         NULL.
30289 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
30291         openat: work around AIX 7.1 fstatat bug
30292         Problem reported by Kevin Brott for GNU tar, in the thread containing
30293         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
30294         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
30295         FSTATAT_ST_SIZE_ETC_BROKEN.
30296         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
30297         rpl_fstatat.
30298         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
30299         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
30300         AC_CHECK_FUNCS_ONCE for fstatat.
30301         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
30302         fchmodat, mkdirat, openat and unlinkat.
30304 2011-08-30  Bruno Haible  <bruno@clisp.org>
30306         Avoid endless recursions if config.h includes some header files.
30307         * lib/fopen.c (__need_FILE): Define already before including config.h.
30308         * lib/freopen.c (__need_FILE): Likewise.
30309         * lib/open.c (__need_system_fcntl_h): Likewise.
30310         * lib/stat.c (__need_system_sys_stat_h): Likewise.
30311         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
30312         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
30314 2011-08-25  Karl Berry  <karl@gnu.org>
30316         * config/srclist.txt (ylwrap): new try.
30317         * build-aux/ylwrap: new file.
30319 2011-08-23  Bruno Haible  <bruno@clisp.org>
30321         tmpdir: Use a good default directory on native Windows.
30322         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
30323         (P_tmpdir): Default to _P_tmpdir on native Windows.
30324         (path_search): On native Windows, try the value returned by GetTempPath
30325         before trying P_tmpdir.
30326         * modules/tmpdir (Depends-on): Add pathmax.
30327         Suggested by John Darrington <john@darrington.wattle.id.au>.
30329 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
30331         doc: fix typo in README-release
30332         * top/README-release: Capitalize first word of a sentence.
30334 2011-08-19  Jim Meyering  <meyering@redhat.com>
30336         fts: do not exhaust memory when processing million-entry directories
30337         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
30338         directory would require about 256*N bytes of memory.  Thus, it was
30339         easy to construct a directory too large to be processed by any of
30340         those tools.  With this change, fts' maximum memory utilization is
30341         now limited to around 30MB.
30342         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
30343         (fts_read): When we've processed the final entry (i.e., when
30344         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
30345         using the parent entry to read any remaining entries.  Dispatch
30346         depending on what fts_build returns:
30347         - NULL+stop, aka failure: stop
30348         - NULL otherwise: move up in the dir hierarchy
30349         - non-NULL: handle this new entry
30350         (fts_build): Declare and use new local, continue_readdir.
30351         Prepare to be called from fts_read, when the entries
30352         from a partially-read directory have just been exhausted.
30353         In that case, we'll skip the opendir and instead use the parent's
30354         fts_dirp and derive dir_fd from that.
30355         Finally, in the readdir loop, if we read max_entries entries,
30356         exit the loop ensuring *not* to call closedir.  This is required
30357         so that fts_dirp can be reused on a subsequent call.
30358         Prompted by Ben England's report of memory exhaustion in find
30359         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
30361         maint: fts: move decl of `dp' down into while loop; split a long line
30362         * lib/fts.c (fts_build): No semantic change.
30364         fts: add/use new struct member, fts_dirp
30365         We are about to use this to manage any directory with
30366         too many entries to read all of them into memory at once.
30367         To do that, we'll need to save the DIR* pointer in each
30368         affected FTSENT struct.
30369         * lib/fts_.h: Include <dirent.h>.
30370         (struct FTSENT) [fts_dirp]: New member.
30371         * lib/fts.c (closedir_and_clear): Define.
30372         Use it in place of closedir so that we are sure to
30373         clear the new fts_dirp member when done with it.
30374         (fts_alloc): Initialize the new member.
30375         (fts_lfree): Free, if needed.
30377         maint: fts: give __opendir2 a new parameter and rename
30378         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
30379         than surreptitiously using sole caller's "dir_fd".
30380         (fts_opendir): Rename from __opendir2.
30382         maint: fts.c: remove __opendir2's now-unused parameter, oflag
30383         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
30385         maint: fts.c: correct off-by-one indentation
30386         * lib/fts.c (fts_build): Correct indentation, change style
30387         of a couple of block comments, and bracing style.
30389         maint: fts.c: move __opendir2 #define "up" out of function body
30390         * lib/fts.c (__opendir2): Move "up".  No semantic change.
30392         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
30393         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
30394         out for a long time and besides was useful only on BSD systems.
30396 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
30398         regex: port to Stratus OpenVOS
30399         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
30400         define to empty, rather than attempting nonportable optimizations.
30401         Problem reported by Paul Green in:
30402         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
30403         and fix suggested by Eric Blake in:
30404         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
30406 2011-08-17  Eric Blake  <eblake@redhat.com>
30408         getcwd: fix test failures on mingw
30409         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
30410         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
30411         test if long directory cannot be created, and allow mingw errno.
30413         getcwd-lgpl: fix m4 to match relaxed test for BSD
30414         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
30415         (gl_FUNC_GETCWD_SIGNATURE): New macro.
30416         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
30417         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
30418         signature problem.
30420         getcwd: fix compilation on mingw64
30421         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
30422         getcwd.
30423         Reported by Marc-André Lureau.
30425         pipe2: silence compiler warning
30426         * lib/pipe2.c (pipe2): Hide label if it is not used.
30428 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
30430         relocatable-prog: fix link error
30431         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
30432         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
30433         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
30434         into modules/relocatable-lib without noticing that
30435         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
30436         also needs to build relocatable.c.
30438 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
30440         getaddrinfo: fix sh typo in gai_strerrorA decl checking
30441         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
30442         shell code: it contained a 'break' that was not in a loop.
30443         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
30444         via a shell-language loop; this may have been true in old Autoconf
30445         versions, but it's not true in Autoconf 2.68.  I found this bug
30446         when testing coreutils git on Solaris 8, whose shell complains
30447         about the syntax error.
30449 2011-08-12  Simon Josefsson  <simon@josefsson.org>
30451         * lib/base64.c: Fix comment to reference RFC 4648.
30452         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
30453         <gvtulder@gmail.com>.
30455 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
30457         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
30459         po/Makefile.in.in: fix make -q problem
30460         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
30461         rule, since there's no file named 'check-macro-version' and its
30462         use as a file breaks make -q.
30463         (all): Don't depend on check-macro-version.
30464         (CHECK_MACRO_VERSION): New macro.
30465         (stamp-po): Use it.
30467         configmake: fix make -q problem
30468         * modules/configmake (configmake.h): Update configmake.h's time stamp
30469         even if the file does not change.  Otherwise, 'make -q' fails.
30470         Problem reported by Simon Josefsson in
30471         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
30473 2011-08-11  Jim Meyering  <meyering@redhat.com>
30475         git-version-gen: correct the advice in a comment
30476         * build-aux/git-version-gen: Correct comment.
30477         Don't recommend to list .tarball-version in .gitignore.
30479 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
30481         base64: fix off-by-one buffer size bug
30482         Problem and (trivial) fix reported by Gijs van Tulder in
30483         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
30484         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
30485         * tests/test-base64.c (main): Catch the bug.
30487 2011-08-10  Eric Blake  <eblake@redhat.com>
30489         closein: correct comments
30490         * lib/closein.c (close_stdin): Improve comments.
30492 2011-08-09  Bruno Haible  <bruno@clisp.org>
30494         More tests for 'fseeko'.
30495         * tests/test-fseeko3.c: New file, from Eric Blake.
30496         * tests/test-fseeko3.sh: New file.
30497         * modules/fseeko-tests (Files): Add them.
30498         (TESTS): Add test-fseeko3.sh.
30499         (check_PROGRAMS): Add test-fseeko3.
30501 2011-08-09  Eric Blake  <eblake@redhat.com>
30503         fseeko: remove unneeded hack
30504         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
30506         fseeko: fix bug on glibc
30507         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
30508         Reported by John W. Eaton.
30510 2011-08-08  Bruno Haible  <bruno@clisp.org>
30512         unictype/base: Fix interoperability with preinstalled libunistring.
30513         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
30514         Reported by Simon Josefsson.
30516 2011-08-08  Bruno Haible  <bruno@clisp.org>
30518         iswblank: Detect declaration correctly.
30519         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
30520         AC_CHECK_DECLS invocation.
30522 2011-08-08  Bruno Haible  <bruno@clisp.org>
30524         tcgetsid: Detect declaration correctly.
30525         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
30526         AC_CHECK_DECLS invocation.
30527         Reported by Simon Josefsson.
30529 2011-08-08  Eric Blake  <eblake@redhat.com>
30531         largefile: fix typo that regressed large file support
30532         * modules/largefile (configure.ac-early): Fix section name.
30534 2011-08-06  Karl Berry  <karl@gnu.org>
30536         * MODULES.html.sh (func_all_files): _Noreturn is no longer
30537         a separate module.
30539 2011-08-05  Simon Josefsson  <simon@josefsson.org>
30541         openat: Fix warnings and commens when building unlinkat.c on Hurd.
30542         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
30543         get prototype for free.
30545 2011-08-04  Bruno Haible  <bruno@clisp.org>
30547         Tests for module 'pathmax'.
30548         * modules/pathmax-tests: New file.
30549         * tests/test-pathmax.c: New file.
30551         canonicalize-lgpl: Support larger filenames on the Hurd.
30552         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
30553         Reported by Paul Eggert.
30555         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
30556         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
30557         * lib/chdir-long.h: Include pathmax.h.
30558         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
30559         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
30560         (PATH_MAX): Remove code that is done by pathmax.h.
30561         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
30562         * lib/tmpfile.c: Add a comment.
30563         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
30564         * modules/chdir-long (Depends-on): Add pathmax.
30565         * modules/getcwd (Depends-on): Add pathmax.
30566         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
30567         is not defined.
30568         * doc/posix-headers/limits.texi: Mention the pathmax module.
30569         * NEWS: Mention the change.
30571 2011-08-02  Bruno Haible  <bruno@clisp.org>
30573         pthread_sigmask: Actually use results of gl_THREADLIB.
30574         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
30575         gl_THREADLIB, not gl_[]THREADLIB.
30576         Reported by Eric Blake.
30578 2011-08-02  Jim Meyering  <meyering@redhat.com>
30580         maint.mk: relax the default _gl_TS_function_match regexp
30581         * top/maint.mk (_gl_TS_function_match): Don't require at least one
30582         space between function name and "(" in an "extern" declaration.
30583         That would fail to match a decl with no space there: extern void foo();
30585 2011-07-31  Iain Nicol  <iain@thenicols.net>
30587         git-version-gen: document that EXTRA_DIST must include .version
30588         * build-aux/git-version-gen: In the how-to-use comment, document
30589         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
30590         will fail when run from an unpacked distribution tarball.
30592 2011-08-01  Bruno Haible  <bruno@clisp.org>
30594         wctype-h: Fix last change.
30595         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
30596         REPLACE_TOWLOWER to 0.
30597         Reported by Sam Steingold <sds@gnu.org>.
30599 2011-07-31  Bruno Haible  <bruno@clisp.org>
30601         frexpl: Update autoconf test.
30602         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
30603         according to changes of 2011-06-20.
30605 2011-07-31  Bruno Haible  <bruno@clisp.org>
30607         sys_utsname: Add support for Minix.
30608         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
30609         <sys/utsname.h>.
30610         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
30611         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
30613 2011-07-31  Bruno Haible  <bruno@clisp.org>
30615         strings: Add support for Minix.
30616         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
30617         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
30618         * doc/posix-headers/strings.texi: Document the Minix problem.
30620 2011-07-31  Bruno Haible  <bruno@clisp.org>
30622         wctype-h: Add support for Minix.
30623         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
30624         REPLACE_TOWLOWER.
30625         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
30626         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
30627         REPLACE_ISWCNTRL.
30629 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
30631         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
30632         This is a performance improvement for 64-bit hosts: it causes the
30633         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
30635 2011-07-31  Bruno Haible  <bruno@clisp.org>
30637         stdioext: Add support for Minix.
30638         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
30639         * lib/fpurge.c (fpurge): Likewise.
30640         * lib/freadahead.c (freadahead): Likewise.
30641         * lib/freadable.c (freadable): Likewise.
30642         * lib/freading.c (freading): Likewise.
30643         * lib/freadptr.c (freadptr): Likewise.
30644         * lib/freadseek.c (freadptrinc): Likewise.
30645         * lib/fseeko.c (rpl_fseeko): Likewise.
30646         * lib/fseterr.c (fseterr): Likewise.
30647         * lib/fwritable.c (fwritable): Likewise.
30648         * lib/fwriting.c (fwriting): Likewise.
30649         * lib/fflush.c (clear_ungetc_buffer): Update comment.
30650         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
30652 2011-07-31  Bruno Haible  <bruno@clisp.org>
30654         errno: Port to Minix.
30655         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
30656         ECONNABORTED are defined.
30657         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
30658         GNULIB_defined_ECONNABORTED): New macros.
30659         * lib/strerror-override.h (strerror_override): Test also
30660         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
30661         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
30662         ECONNABORTED.
30663         * doc/posix-headers/errno.texi: Mention the Minix problem.
30665 2011-07-31  Bruno Haible  <bruno@clisp.org>
30667         Work around declaration collisions on Minix.
30668         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
30669         defined, set REPLACE_MBSINIT.
30670         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
30671         defined, set REPLACE_MBRTOWC.
30672         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
30673         set REPLACE_MBRLEN.
30674         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
30675         defined, set REPLACE_MBSRTOWCS.
30676         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
30677         defined, set REPLACE_WCRTOMB.
30678         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
30679         defined, set REPLACE_WCSRTOMBS.
30681 2011-07-31  Bruno Haible  <bruno@clisp.org>
30683         Add support for Minix with ACK compiler.
30684         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
30685         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
30686         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
30688 2011-07-31  Bruno Haible  <bruno@clisp.org>
30690         Documentation about Minix.
30691         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
30692         * doc/glibc-headers/*.texi: Likewise.
30693         * doc/posix-functions/*.texi: Likewise.
30694         * doc/glibc-functions/*.texi: Likewise.
30696 2011-07-31  Bruno Haible  <bruno@clisp.org>
30698         snippet/warn-on-use: Fix indentation.
30699         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
30701 2011-07-25  Jim Meyering  <meyering@redhat.com>
30703         tests: test-update-copyright.sh: remove unnecessary "rm" commands
30704         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
30705         commands.
30707 2011-07-27  Jim Meyering  <meyering@redhat.com>
30709         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
30710         * top/maint.mk (gl_extract_significant_defines_): Now that
30711         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
30712         gnulib/lib/signal.in.h, and now that we recommend to
30713         define-if-undefined those two symbols in application code,
30714         we must filter them out of the "significant" list.
30715         This avoids a "make syntax-check" failure in coreutils.
30717 2011-07-26  Eric Blake  <eblake@redhat.com>
30719         warnings: add comments about previous patch
30720         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
30721         * m4/include_next.m4: Likewise.
30722         * m4/warn-on-use.m4: Likewise.
30723         * m4/warnings.m4: Likewise, and simplify use.
30724         Suggested by Stefano Lattarini.
30726         include-next, warnings: support older autoconf
30727         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
30728         AS_VAR_PUSHDEF in a way that works with older autoconf.
30729         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
30730         Reported by Daniel P. Berrange.
30732 2011-07-25  Bruno Haible  <bruno@clisp.org>
30734         fseek, ftell: Fix doc.
30735         * doc/posix-functions/fseek.texi: Reword statement about
30736         AC_SYS_LARGEFILE.
30737         * doc/posix-functions/ftell.texi: Likewise.
30739 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
30740             Bruno Haible  <bruno@clisp.org>
30742         Add dependencies to the 'largefile' module.
30743         * modules/fopen (Depends-on): Add 'largefile'.
30744         * modules/freopen (Depends-on): Likewise.
30745         * modules/fseeko (Depends-on): Likewise.
30746         * modules/ftello (Depends-on): Likewise.
30747         * modules/glob (Depends-on): Likewise.
30748         * modules/lseek (Depends-on): Likewise.
30749         * modules/lstat (Depends-on): Likewise.
30750         * modules/mkostemp (Depends-on): Likewise.
30751         * modules/mkostemps (Depends-on): Likewise.
30752         * modules/mkstemp (Depends-on): Likewise.
30753         * modules/mkstemps (Depends-on): Likewise.
30754         * modules/open (Depends-on): Likewise.
30755         * modules/openat (Depends-on): Likewise.
30756         * modules/pread (Depends-on): Likewise.
30757         * modules/pwrite (Depends-on): Likewise.
30758         * modules/scandir (Depends-on): Likewise.
30759         * modules/stat (Depends-on): Likewise.
30760         * modules/tmpfile (Depends-on): Likewise.
30761         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
30762         since the containing module now depends on the largefile module.
30763         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
30764         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
30765         off_t is fixed by gnulib.
30766         * doc/posix-functions/freopen.texi: Likewise.
30767         * doc/posix-functions/fseeko.texi: Likewise.
30768         * doc/posix-functions/fstatat.texi: Likewise.
30769         * doc/posix-functions/ftello.texi: Likewise.
30770         * doc/posix-functions/glob.texi: Likewise.
30771         * doc/posix-functions/lseek.texi: Likewise.
30772         * doc/posix-functions/lstat.texi: Likewise.
30773         * doc/posix-functions/mkstemp.texi: Likewise.
30774         * doc/posix-functions/open.texi: Likewise.
30775         * doc/posix-functions/openat.texi: Likewise.
30776         * doc/posix-functions/pread.texi: Likewise.
30777         * doc/posix-functions/pwrite.texi: Likewise.
30778         * doc/posix-functions/scandir.texi: Likewise.
30779         * doc/posix-functions/stat.texi: Likewise.
30780         * doc/posix-functions/tmpfile.texi: Likewise.
30781         * doc/glibc-functions/mkostemp.texi: Likewise.
30782         * doc/glibc-functions/mkostemps.texi: Likewise.
30783         * doc/glibc-functions/mkstemps.texi: Likewise.
30785 2011-07-25  Bruno Haible  <bruno@clisp.org>
30787         fcntl: Move AC_LIBOBJ invocation to module description.
30788         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
30789         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
30791         fcntl: Remove call-in from fchdir.m4.
30792         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
30793         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
30795         dup3: Remove potential call-in from fchdir.m4.
30796         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
30797         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
30799         dup2: Move AC_LIBOBJ invocation to module description.
30800         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
30801         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
30802         Don't invoke AC_LIBOBJ.
30803         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
30805         dup2: Remove call-in from fchdir.m4.
30806         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
30807         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
30809         fclose: Move AC_LIBOBJ invocation to module description.
30810         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
30811         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
30812         to 1.
30813         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
30815         fclose: Remove call-in from close.m4.
30816         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
30817         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
30819         close: Move AC_LIBOBJ invocation to module description.
30820         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
30821         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
30822         1.
30823         * modules/close (configure.ac): Invoke AC_LIBOBJ.
30825         close: Remove call-in from fchdir.m4.
30826         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
30827         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
30829         open: Move AC_LIBOBJ invocation to module description.
30830         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
30831         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
30832         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
30834         open: Remove call-in from fchdir.m4.
30835         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
30836         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
30838         fchdir: Start to remove gl_REPLACE_* idiom.
30839         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
30840         (gl_FUNC_FCHDIR): Invoke it.
30842 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
30844         * lib/ftell.c (ftell): Comment out cast.
30846         close: use gl_REPLACE_FCLOSE only if defined
30847         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
30848         is defined.  The close module doesn't depend on the fclose module
30849         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
30850         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
30851         I reproduced the problem with "./gnulib-tool --test close sys_socket".
30853 2011-07-24  Jim Meyering  <meyering@redhat.com>
30855         test-select.h: avoid warning when using gcc's -Wmissing-declarations
30856         * tests/test-select.h (test_function): Declare as "static".
30858 2011-07-24  Bruno Haible  <bruno@clisp.org>
30860         doc: Mention the effects of AC_SYS_LARGEFILE.
30861         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
30862         on this function.
30863         * doc/posix-functions/aio_error.texi: Likewise.
30864         * doc/posix-functions/aio_fsync.texi: Likewise.
30865         * doc/posix-functions/aio_read.texi: Likewise.
30866         * doc/posix-functions/aio_return.texi: Likewise.
30867         * doc/posix-functions/aio_suspend.texi: Likewise.
30868         * doc/posix-functions/aio_write.texi: Likewise.
30869         * doc/posix-functions/fgetpos.texi: Likewise.
30870         * doc/posix-functions/fopen.texi: Likewise.
30871         * doc/posix-functions/freopen.texi: Likewise.
30872         * doc/posix-functions/fsetpos.texi: Likewise.
30873         * doc/posix-functions/fstatvfs.texi: Likewise.
30874         * doc/posix-functions/ftruncate.texi: Likewise.
30875         * doc/posix-functions/ftw.texi: Likewise.
30876         * doc/posix-functions/getrlimit.texi: Likewise.
30877         * doc/posix-functions/glob.texi: Likewise.
30878         * doc/posix-functions/lio_listio.texi: Likewise.
30879         * doc/posix-functions/lockf.texi: Likewise.
30880         * doc/posix-functions/mkstemp.texi: Likewise.
30881         * doc/posix-functions/mmap.texi: Likewise.
30882         * doc/posix-functions/nftw.texi: Likewise.
30883         * doc/posix-functions/openat.texi: Likewise.
30884         * doc/posix-functions/opendir.texi: Likewise.
30885         * doc/posix-functions/posix_fadvise.texi: Likewise.
30886         * doc/posix-functions/posix_fallocate.texi: Likewise.
30887         * doc/posix-functions/pread.texi: Likewise.
30888         * doc/posix-functions/pwrite.texi: Likewise.
30889         * doc/posix-functions/readdir.texi: Likewise.
30890         * doc/posix-functions/readdir_r.texi: Likewise.
30891         * doc/posix-functions/rewinddir.texi: Likewise.
30892         * doc/posix-functions/scandir.texi: Likewise.
30893         * doc/posix-functions/seekdir.texi: Likewise.
30894         * doc/posix-functions/setrlimit.texi: Likewise.
30895         * doc/posix-functions/statvfs.texi: Likewise.
30896         * doc/posix-functions/telldir.texi: Likewise.
30897         * doc/posix-functions/tmpfile.texi: Likewise.
30898         * doc/posix-functions/truncate.texi: Likewise.
30899         * doc/glibc-functions/fallocate.texi: Likewise.
30900         * doc/glibc-functions/fstatfs.texi: Likewise.
30901         * doc/glibc-functions/fts_children.texi: Likewise.
30902         * doc/glibc-functions/fts_read.texi: Likewise.
30903         * doc/glibc-functions/getdirentries.texi: Likewise.
30904         * doc/glibc-functions/mkostemp.texi: Likewise.
30905         * doc/glibc-functions/mkostemps.texi: Likewise.
30906         * doc/glibc-functions/mkstemps.texi: Likewise.
30907         * doc/glibc-functions/preadv.texi: Likewise.
30908         * doc/glibc-functions/pwritev.texi: Likewise.
30909         * doc/glibc-functions/sendfile.texi: Likewise.
30910         * doc/glibc-functions/statfs.texi: Likewise.
30912 2011-07-24  Bruno Haible  <bruno@clisp.org>
30914         doc: Fix typo.
30915         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
30917 2011-07-24  Bruno Haible  <bruno@clisp.org>
30919         doc: Mention fsusage.
30920         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
30922 2011-07-24  Bruno Haible  <bruno@clisp.org>
30924         doc: Mention new glibc headers and functions.
30925         * doc/glibc-headers/gshadow.texi: New file.
30926         * doc/glibc-functions/endsgent.texi: New file.
30927         * doc/glibc-functions/fgetsgent.texi: New file.
30928         * doc/glibc-functions/fgetsgent_r.texi: New file.
30929         * doc/glibc-functions/getsgent.texi: New file.
30930         * doc/glibc-functions/getsgent_r.texi: New file.
30931         * doc/glibc-functions/getsgnam.texi: New file.
30932         * doc/glibc-functions/getsgnam_r.texi: New file.
30933         * doc/glibc-functions/putsgent.texi: New file.
30934         * doc/glibc-functions/setsgent.texi: New file.
30935         * doc/glibc-functions/sgetsgent.texi: New file.
30936         * doc/glibc-functions/sgetsgent_r.texi: New file.
30937         * doc/glibc-functions/malloc_info.texi: New file.
30938         * doc/glibc-functions/preadv.texi: New file.
30939         * doc/glibc-functions/pwritev.texi: New file.
30940         * doc/glibc-functions/register_printf_modifier.texi: New file.
30941         * doc/glibc-functions/register_printf_specifier.texi: New file.
30942         * doc/glibc-functions/register_printf_type.texi: New file.
30943         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
30944         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
30945         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
30946         * doc/glibc-functions/pthread_getname_np.texi: New file.
30947         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
30948         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
30949         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
30950         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
30951         * doc/glibc-functions/pthread_setname_np.texi: New file.
30952         * doc/glibc-functions/pthread_sigqueue.texi: New file.
30953         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
30954         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
30955         * doc/glibc-functions/qsort_r.texi: New file.
30956         * doc/glibc-functions/quick_exit.texi: New file.
30957         * doc/glibc-functions/syncfs.texi: New file.
30958         * doc/gnulib.texi: Include them.
30959         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
30960         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
30961         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
30962         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
30963         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
30964         * doc/glibc-functions/execvpe.texi: Likewise.
30966 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
30968         ftell: don't include <unistd.h>
30969         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
30970         guaranteed to define off_t, and the ftell module depends on the
30971         stdio module.
30973         ftell: do not assume wraparound signed arithmetic
30974         * lib/ftell.c: Include <limits.h>.
30975         (ftell): Don't assume wraparound signed arithmetic.
30977 2011-07-24  Bruno Haible  <bruno@clisp.org>
30979         close: No longer depend on module 'fclose'.
30980         * modules/close (Depends-on): Remove fclose.
30981         * NEWS: Mention the change.
30982         Suggested by Sam Steingold <sds@gnu.org>.
30984 2011-07-24  Bruno Haible  <bruno@clisp.org>
30986         fsusage: Enable large volume support on AIX >= 5.2.
30987         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
30988         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
30989         instead of STAT_STATVFS.
30990         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
30992         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
30993         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
30994         f_blocks field only on MacOS X.
30996         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
30997         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
30998         * modules/fsusage (Depends-on): Add largefile.
31000 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
31002         * README: Modernize discussion of signed integers.
31003         Assuming overflow wraparound is no longer safe.
31004         Mention ones' complement and signed magnitude.
31006 2011-07-22  Bruno Haible  <bruno@clisp.org>
31008         select tests, pselect tests: Refactor.
31009         * tests/test-select.h: New file, extracted from tests/test-select.c.
31010         (select_fn): New type.
31011         (test, do_select, do_select_nowait, do_select_wait, test_tty,
31012         test_connect_first, test_accept_first, test_pair, test_socket_pair,
31013         test_pipe): Add my_select argument.
31014         (test_function): Renamed from main. Add my_select argument.
31015         * tests/test-select.c: Move most code to tests/test-select.h. Include
31016         test-select.h.
31017         * modules/select-tests (Files): Add tests/test-select.h.
31018         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
31019         (my_select, main): New functions.
31020         * modules/pselect-tests (Files): Add tests/test-select.h,
31021         tests/macros.h, tests/signature.h.
31022         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
31023         (configure.ac): Check for <sys/wait.h>.
31025 2011-07-22  Bruno Haible  <bruno@clisp.org>
31027         sys_select tests: Check the signature of FD_*.
31028         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
31029         signature tests from here...
31030         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
31031         here.
31032         * modules/sys_select-tests (Files): Add tests/signature.h.
31034 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
31036         largefile: new module, replacing large-inode
31037         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
31038         * MODULES.html.sh: Add largefile, remove large-inode.
31039         * modules/largefile, m4/largefile.m4: New files.
31040         * modules/large-inode, m4/large-inode.m4: Remove.
31042         fsusage: port to MacOS X 10.7 with 4 TiB file systems
31043         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
31044         implementations that use only 32 bits to count blocks.
31045         On typical hosts with 1024-byte blocks, this fails with file
31046         systems as small as 4 TiB.  Problem reported by Herb Wartens
31047         <http://debbugs.gnu.org/9140> and this should also fix a similar
31048         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
31050         large-inode: New module
31051         * MODULES.html.sh: Add it.
31052         * modules/large-inode, m4/large-inode.m4: New files.
31054         extensions: Enable extensions on MacOS X 10.5 and later.
31055         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
31057 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
31059         file-has-acl: use acl_extended_file_nofollow if available
31060         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
31061         (acl_extended_file): New macro.
31062         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
31063         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
31065 2011-07-21  Bruno Haible  <bruno@clisp.org>
31067         Declare system functions in a way that works with C++.
31068         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
31069         declare fdopendir as extern "C".
31070         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
31071         declare frexpl as extern "C".
31072         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
31073         declare gai_strerror as extern "C".
31074         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
31075         programs, declare gai_strerror as extern "C".
31076         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
31077         declare getlogin_r as extern "C".
31078         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
31079         as extern "C".
31080         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
31081         declare ldexpl as extern "C".
31082         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
31083         as extern "C".
31084         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
31085         program, declare getmntinfo as extern "C".
31086         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
31087         stpncpy as extern "C".
31088         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
31089         program, declare __xpg_strerror_r as extern "C".
31090         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
31091         strndup as extern "C".
31092         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
31093         declare memset and bzero as extern "C".
31094         Reported by Sam Steingold <sds@gnu.org>.
31096 2011-07-12  Jim Meyering  <meyering@redhat.com>
31098         maint.mk: prohibit inclusion of "verify.h" without use
31099         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
31101 2011-07-19  Pádraig Brady  <P@draigBrady.com>
31103         timer-time: A new module to check for timer_settime()
31104         * m4/timer_time.m4: Check for the posix function.
31105         * modules/timer-time: Add the new module.
31106         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
31107         Mention it.
31109 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
31110             Bruno Haible  <bruno@clisp.org>
31112         pthread_sigmask: assume POSIX threads if --avoid=threadlib
31113         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
31114         not defined, assume POSIX threads and look for pthread_sigmask in
31115         $LIBS, without changing $CPPFLAGS.
31117 2011-07-19  Bruno Haible  <bruno@clisp.org>
31119         strstr: Update cross-compilation guess.
31120         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
31121         CPUs, guess no, in view of glibc
31122         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
31123         Suggested by Eric Blake. Reported by Reuben Thomas.
31125 2011-07-19  Pádraig Brady  <P@draigBrady.com>
31127         getopt-gnu: suppress core dumps from detection code
31128         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
31129         to suppress core dumps that may well occur on glibc systems.
31130         * modules/getopt-gnu: Depend on nocrash.
31132 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
31134         pthread_sigmask: ensure usleep is declared
31135         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
31136         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
31138 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
31140         doc: Document NonStop portability issues.
31141         * doc/posix-functions/sigaction.texi (sigaction):
31142         * doc/posix-headers/signal.texi (signal.h):
31143         Document NonStop.  See Joachim Schmitz in
31144         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
31146 2011-07-15  Bruno Haible  <bruno@clisp.org>
31148         ffsl, ffsll: Avoid unportable behaviour.
31149         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
31151 2011-07-15  Bruno Haible  <bruno@clisp.org>
31153         ffs: More tests.
31154         * tests/test-ffs.c (NBITS): New macro.
31155         (main): Add more tests.
31156         * tests/test-ffsl.c (NBITS): New macro.
31157         (main): Add more tests.
31158         * tests/test-ffsll.c (NBITS): New macro.
31159         (main): Add more tests.
31161 2011-07-15  Eric Blake  <eblake@redhat.com>
31163         ffsl, ffsll: new modules
31164         * modules/ffsl: New file.
31165         * modules/ffsll: Likewise.
31166         * m4/ffsl.m4: Likewise.
31167         * m4/ffsll.m4: Likewise.
31168         * lib/ffsl.c: Likewise.
31169         * lib/ffsl.h: Likewise.
31170         * lib/ffsll.c: Likewise.
31171         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
31172         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
31173         * modules/string (Makefile.am): Substitute witnesses.
31174         * lib/strings.in.h (ffsl, ffsll): Declare.
31175         * modules/ffsl-tests: New test file.
31176         * modules/ffsll-tests: Likewise.
31177         * tests/test-ffsl.c: Likewise.
31178         * tests/test-ffsll.c: Likewise.
31179         * MODULES.html.sh (Integer arithmetic functions): Mention it.
31180         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
31181         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
31183         ffs: fix m4 prerequisite
31184         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
31186         ffs: avoid undefined behavior
31187         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
31188         * tests/test-ffs.c (naive, main): Avoid signed shifts.
31189         Reported by Bruno Haible.
31191 2011-07-12  Bruno Haible  <bruno@clisp.org>
31193         pthread_sigmask: Rely on module 'threadlib'.
31194         * modules/pthread_sigmask (Depends-on): Add threadlib.
31195         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
31196         is defined.
31198 2011-07-12  Bruno Haible  <bruno@clisp.org>
31200         regex: Depend on module 'strcase'.
31201         * modules/regex (Depends-on): Add strcase, for strcasecmp().
31203 2011-07-12  Jim Meyering  <meyering@redhat.com>
31205         warn-on-use: fix typo in file name
31206         * modules/snippet/warn-on-use (Files): Correct file name:
31207         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
31209 2011-07-12  Bruno Haible  <bruno@clisp.org>
31211         strings: Document module.
31212         * doc/posix-headers/strings.texi: Mention module 'strings'.
31214 2011-07-12  Bruno Haible  <bruno@clisp.org>
31216         Rename module '_Noreturn' to 'snippet/_Noreturn'.
31217         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
31218         (Files, Makefile.am): Update.
31219         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
31220         * modules/stdlib (Depends-on): Update.
31222 2011-07-12  Bruno Haible  <bruno@clisp.org>
31224         * NEWS: Mention the changes.
31226         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
31227         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
31228         (Files, Makefile.am): Update.
31229         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
31230         * modules/arpa_inet (Depends-on): Update.
31231         * modules/ctype (Depends-on): Update.
31232         * modules/dirent (Depends-on): Update.
31233         * modules/fcntl-h (Depends-on): Update.
31234         * modules/glob (Depends-on): Update.
31235         * modules/iconv-h (Depends-on): Update.
31236         * modules/inttypes-incomplete (Depends-on): Update.
31237         * modules/langinfo (Depends-on): Update.
31238         * modules/locale (Depends-on): Update.
31239         * modules/math (Depends-on): Update.
31240         * modules/netdb (Depends-on): Update.
31241         * modules/poll-h (Depends-on): Update.
31242         * modules/pty (Depends-on): Update.
31243         * modules/search (Depends-on): Update.
31244         * modules/signal (Depends-on): Update.
31245         * modules/spawn (Depends-on): Update.
31246         * modules/stdio (Depends-on): Update.
31247         * modules/stdlib (Depends-on): Update.
31248         * modules/string (Depends-on): Update.
31249         * modules/strings (Depends-on): Update.
31250         * modules/sys_file (Depends-on): Update.
31251         * modules/sys_ioctl (Depends-on): Update.
31252         * modules/sys_select (Depends-on): Update.
31253         * modules/sys_socket (Depends-on): Update.
31254         * modules/sys_stat (Depends-on): Update.
31255         * modules/sys_time (Depends-on): Update.
31256         * modules/sys_times (Depends-on): Update.
31257         * modules/sys_utsname (Depends-on): Update.
31258         * modules/sys_wait (Depends-on): Update.
31259         * modules/termios (Depends-on): Update.
31260         * modules/time (Depends-on): Update.
31261         * modules/unistd (Depends-on): Update.
31262         * modules/wchar (Depends-on): Update.
31263         * modules/wctype-h (Depends-on): Update.
31264         * MODULES.html.sh (Support for building libraries and executables):
31265         Update.
31267         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
31268         * modules/snippet/unused-parameter: Renamed from
31269         modules/unused-parameter.
31270         (Files, Makefile.am): Update.
31271         * build-aux/snippet/unused-parameter.h: Renamed from
31272         build-aux/unused-parameter.h.
31273         * modules/selinux-h (Depends-on): Update.
31274         * modules/unistr/base (Depends-on): Update.
31275         * MODULES.html.sh (Core language properties): Update.
31277         Rename module 'link-warning' to 'snippet/link-warning'.
31278         * modules/snippet/link-warning: Renamed from modules/link-warning.
31279         (Files, Makefile.am): Update.
31280         * build-aux/snippet/link-warning.h: Renamed from
31281         build-aux/link-warning.h.
31282         * MODULES.html.sh (Support for building libraries and executables):
31283         Update.
31285         Rename module 'c++defs' to 'snippet/c++defs'.
31286         * modules/snippet/c++defs: Renamed from modules/c++defs.
31287         (Files, Makefile.am): Update.
31288         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
31289         * modules/arpa_inet (Depends-on): Update.
31290         * modules/ctype (Depends-on): Update.
31291         * modules/dirent (Depends-on): Update.
31292         * modules/fcntl-h (Depends-on): Update.
31293         * modules/glob (Depends-on): Update.
31294         * modules/iconv-h (Depends-on): Update.
31295         * modules/langinfo (Depends-on): Update.
31296         * modules/locale (Depends-on): Update.
31297         * modules/math (Depends-on): Update.
31298         * modules/netdb (Depends-on): Update.
31299         * modules/poll-h (Depends-on): Update.
31300         * modules/pty (Depends-on): Update.
31301         * modules/search (Depends-on): Update.
31302         * modules/signal (Depends-on): Update.
31303         * modules/spawn (Depends-on): Update.
31304         * modules/stdio (Depends-on): Update.
31305         * modules/stdlib (Depends-on): Update.
31306         * modules/string (Depends-on): Update.
31307         * modules/strings (Depends-on): Update.
31308         * modules/sys_ioctl (Depends-on): Update.
31309         * modules/sys_select (Depends-on): Update.
31310         * modules/sys_socket (Depends-on): Update.
31311         * modules/sys_stat (Depends-on): Update.
31312         * modules/sys_time (Depends-on): Update.
31313         * modules/sys_wait (Depends-on): Update.
31314         * modules/termios (Depends-on): Update.
31315         * modules/time (Depends-on): Update.
31316         * modules/unistd (Depends-on): Update.
31317         * modules/wchar (Depends-on): Update.
31318         * modules/wctype-h (Depends-on): Update.
31320         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
31321         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
31322         (Files, Makefile.am): Update.
31323         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
31324         * modules/argv-iter (Depends-on): Update.
31325         * modules/arpa_inet (Depends-on): Update.
31326         * modules/dirent (Depends-on): Update.
31327         * modules/fcntl-h (Depends-on): Update.
31328         * modules/fnmatch (Depends-on): Update.
31329         * modules/getopt-posix (Depends-on): Update.
31330         * modules/glob (Depends-on): Update.
31331         * modules/iconv-h (Depends-on): Update.
31332         * modules/inttypes-incomplete (Depends-on): Update.
31333         * modules/locale (Depends-on): Update.
31334         * modules/math (Depends-on): Update.
31335         * modules/netdb (Depends-on): Update.
31336         * modules/search (Depends-on): Update.
31337         * modules/signal (Depends-on): Update.
31338         * modules/spawn (Depends-on): Update.
31339         * modules/stdio (Depends-on): Update.
31340         * modules/stdlib (Depends-on): Update.
31341         * modules/string (Depends-on): Update.
31342         * modules/strings (Depends-on): Update.
31343         * modules/sys_socket (Depends-on): Update.
31344         * modules/sys_stat (Depends-on): Update.
31345         * modules/sys_time (Depends-on): Update.
31346         * modules/sys_times (Depends-on): Update.
31347         * modules/sys_utsname (Depends-on): Update.
31348         * modules/time (Depends-on): Update.
31349         * modules/unistd (Depends-on): Update.
31350         * modules/wchar (Depends-on): Update.
31351         * MODULES.html.sh (Support for building libraries and executables):
31352         Update.
31354 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
31356         Improvements on _Noreturn and related modules.
31358         modules/_Exit-tests: test _Noreturn too
31359         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
31360         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
31361         (main): Use them.
31363         stdnoreturn, stdnoreturn-tests: remove modules
31364         They're not needed here and a bit premature for use elsewhere.  See
31365         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
31366         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
31367         * tests/test-stdnoreturn.c: Remove files.
31368         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
31369         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
31370         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
31371         and using noreturn.
31372         * modules/openat, modules/sigpipe-die, modules/xalloc:
31373         * modules/xmemdup0, modules/xstrtol:
31374         Remove dependency on stdnoreturn.
31376         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
31377         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
31378         Reparenthesize to avoid GCC warning.
31379         Support Microsoft's syntax.
31380         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
31382         _Noreturn-tests: remove module
31383         * modules/_Noreturn-tests: Remove.
31384         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
31385         * tests/test-_Noreturn.c: Remove.
31386         * tests/test-stdnoreturn.c: Merge from the old
31387         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
31389 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
31391         _Noreturn, stdnoreturn, and related modules.
31393         * top/maint.mk: Adjust to new noreturn support.
31394         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
31395         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
31397         xalloc: use stdnoreturn.h
31398         * lib/xalloc.h: Include <stdnoreturn.h>.
31399         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
31400         * modules/xalloc (Depends-on): Add stdnoreturn.
31402         xstrtol: use stdnoreturn.h
31403         * lib/xstrtol.h: Include <stdnoreturn.h>.
31404         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
31405         * modules/xstrtol (Depends-on): Add stdnoreturn.
31407         xmemdup0: use stdnoreturn.h
31408         * lib/xmemdup0.h: Include <stdnoreturn.h>.
31409         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
31410         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
31412         sigpipe-die: use stdnoreturn.h
31413         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
31414         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
31415         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
31417         openat: use stdnoreturn.h
31418         * lib/openat.h: Include <stdnoreturn.h>.
31419         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
31420         * modules/openat (Depends-on): Add stdnoreturn.
31422         * lib/openat-die.c (openat_save_fail): Modernize comment.
31424         * lib/xalloc-die.c (xalloc_die): Modernize comment.
31426         * lib/glthread/thread.h: Modernize comment.
31428         obstack: use _Noreturn
31429         * lib/obstack.c (__attribute__): Remove macro.
31430         (print_and_abort): Use _Noreturn.
31432         c-stack: use _Noreturn
31433         * lib/c-stack.c (die, overflow_handler, segv_handler):
31434         Use _Noreturn rather than __attribute__((noreturn)).
31436         argmatch-tests, exclude_tests: use _Noreturn
31437         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
31438         Remove.
31439         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
31441         stdlib: use _Noreturn
31442         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
31443         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
31444         * modules/stdlib (Depends-on): Add _Noreturn.
31445         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
31447         stdnoreturn-tests: new module
31448         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
31450         stdnoreturn: new module
31451         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
31452         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
31454         _Noreturn-tests: new module
31455         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
31457         _Noreturn: new module
31458         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
31459         New section, mentioning it.
31460         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
31462         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
31464 2011-07-11  Eric Blake  <eblake@redhat.com>
31466         ffs: new module
31467         * modules/ffs: New file.
31468         * m4/ffs.m4: Likewise.
31469         * lib/ffs.c: Likewise.
31470         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
31471         * modules/strings (Makefile.am): Substitute witness.
31472         (Depends-on): Add c++defs.
31473         * lib/strings.in.h (ffs): Declare.
31474         * modules/ffs-tests: New test file.
31475         * tests/test-ffs.c: Test new module.
31476         * MODULES.html.sh (Integer arithmetic functions): Mention it.
31477         * doc/posix-functions/ffs.texi (ffs): Likewise.
31479         regex: avoid compiler warning
31480         * lib/regex.c (includes): Include <strings.h>, for use of
31481         strcasecmp in regcomp.c.
31482         Reported by Joachim Schmitz.
31484 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
31486         stdint: respect system's intmax_t if INTMAX_MAX
31487         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
31488         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
31489         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
31490         long but int64_t is long long, and where we will clash with the
31491         system intmax_t if we override it.  See
31492         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
31493         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
31494         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
31495         similarly for UINTMAX_C.
31497 2011-07-08  Bruno Haible  <bruno@clisp.org>
31499         pthread_sigmask tests: Avoid a compiler warning.
31500         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
31501         non-zero.
31503         sigprocmask tests: A better way to avoid a compiler warning.
31504         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
31505         (main): Complain if system() returns non-zero.
31506         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
31508 2011-07-08  Bruno Haible  <bruno@clisp.org>
31510         pthread_sigmask: Work around IRIX bug.
31511         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
31512         bug.
31513         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
31514         there may be unblocked pending signals.
31515         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
31517 2011-07-08  Bruno Haible  <bruno@clisp.org>
31519         pthread_sigmask: Work around Cygwin bug.
31520         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
31521         bug.
31522         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
31523         the system's pthread_sigmask function.
31524         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
31526 2011-07-08  Bruno Haible  <bruno@clisp.org>
31528         pthread_sigmask: Work around bug in single-threaded implementation.
31529         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
31530         FreeBSD, HP-UX, Solaris bug.
31531         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
31532         * lib/pthread_sigmask.c: Include <stddef.h>.
31533         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
31534         the system's pthread_sigmask function.
31535         * modules/pthread_sigmask (configure.ac): Invoke
31536         gl_PREREQ_PTHREAD_SIGMASK.
31537         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
31538         HP-UX, Solaris.
31540 2011-07-08  Eric Blake  <eblake@redhat.com>
31542         test-sigprocmask: avoid compiler warning
31543         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
31544         * tests/test-sigprocmask.c (main): Use it to silence warning.
31545         Reported by Jim Meyering.
31547         test-snprintf: avoid compiler warning
31548         * tests/test-snprintf.c (main): Avoid shadowed declaration.
31549         * tests/test-vsnprintf.c (main): Likewise.
31550         Reported by Jim Meyering.
31552 2011-07-08  Bruno Haible  <bruno@clisp.org>
31554         Tests for module 'pthread_sigmask'.
31555         * modules/pthread_sigmask-tests: New file.
31556         * tests/test-pthread_sigmask1.c: New file, based on
31557         tests/test-sigprocmask.c.
31558         * tests/test-pthread_sigmask2.c: New file.
31560 2011-07-08  Jim Meyering  <meyering@redhat.com>
31562         test-getopt.h: avoid warning about an unused variable
31563         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
31565 2011-07-07  Jim Meyering  <meyering@redhat.com>
31567         maint: reduce list of files exempt from sc_prohibit_leading_TABs
31568         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
31569         now that it no longer contains leading TABs.
31570         Remove unused "url=FIXME" statement.
31572 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
31574         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
31575         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
31576         When gl_THREADLIB is not in use, assume that the POSIX sematics
31577         are desired.  This is better for Emacs, which uses POSIX semantics
31578         on GNUish and/or POSIXish platforms, and does not use threads at
31579         all otherwise.
31581         pthread_sigmask: fix typo when testing for libraries
31582         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
31583         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
31585 2011-07-08  Eric Blake  <eblake@redhat.com>
31587         fts: introduce FTS_NOATIME
31588         * lib/fts_.h (FTS_NOATIME): New bit flag.
31589         (FTS_OPTIONMASK): Adjust.
31590         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
31591         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
31593 2011-07-08  Bruno Haible  <bruno@clisp.org>
31595         Tests for module 'thread'.
31596         * modules/thread-tests: New file.
31597         * tests/test-thread_self.c: New file.
31598         * tests/test-thread_create.cc: New file.
31600 2011-07-08  Bruno Haible  <bruno@clisp.org>
31602         thread: Avoid gcc warnings when using gl_thread_self().
31603         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
31604         'void *'.
31605         (gl_thread_self_pointer): Update.
31607 2011-07-07  Bruno Haible  <bruno@clisp.org>
31609         signal-c++-tests: Check declaration of pthread_sigmask.
31610         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
31611         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
31612         $(LIB_PTHREAD_SIGMASK).
31614 2011-07-07  Bruno Haible  <bruno@clisp.org>
31616         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
31617         * lib/signal.in.h (pthread_sigmask): Override if
31618         REPLACE_PTHREAD_SIGMASK is 1.
31619         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
31620         REPLACE_PTHREAD_SIGMASK.
31621         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
31622         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
31623         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
31624         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
31625         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
31627 2011-07-07  Bruno Haible  <bruno@clisp.org>
31629         pthread_sigmask: Ensure declaration in <signal.h>.
31630         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
31631         include <pthread.h>.
31632         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
31633         problem.
31635 2011-07-07  Bruno Haible  <bruno@clisp.org>
31637         pthread_sigmask: Document the module.
31638         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
31640 2011-07-07  Bruno Haible  <bruno@clisp.org>
31642         pthread_sigmask: Follow gnulib conventions.
31643         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
31644         gl_PTHREAD_SIGMASK.
31645         * modules/pthread_sigmask (configure.ac): Update.
31647 2011-07-07  Bruno Haible  <bruno@clisp.org>
31649         pthread_sigmask: Make declaration C++ safe.
31650         * lib/signal.in.h: In two special conditions, just do an #include_next.
31651         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
31652         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
31653         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
31654         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
31655         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
31656         not REPLACE_PTHREAD_MASK.
31657         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
31658         not REPLACE_PTHREAD_MASK.
31659         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
31661 2011-07-07  Bruno Haible  <bruno@clisp.org>
31663         pthread_sigmask: Fix return value.
31664         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
31665         * lib/pthread_sigmask.c: New file.
31666         * modules/pthread_sigmask (Files): Add it.
31667         (configure.ac): Invoke AC_LIBOBJ.
31669 2011-07-07  Eric Blake  <eblake@redhat.com>
31671         getopt: more portable argv creation
31672         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
31673         const, use char arrays rather than strings.
31674         Suggested by Paul Eggert.
31676 2011-07-07  Bruno Haible  <bruno@clisp.org>
31678         Tests for module 'sigprocmask'.
31679         * modules/sigprocmask-tests: New file.
31680         * tests/test-sigprocmask.c: New file.
31682 2011-07-07  Bruno Haible  <bruno@clisp.org>
31684         float tests: Tweak.
31685         * tests/test-float.c (main): Tweak skip message.
31687 2011-07-07  Eric Blake  <eblake@redhat.com>
31689         getopt: avoid compiler warning during configure
31690         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
31691         assigning string literals to non-const pointer.
31693         getopt-gnu: avoid crash in glibc getopt
31694         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
31695         * tests/test-getopt.h (test_getopt): Enhance test.
31696         * tests/test-getopt_long.h (test_getopt_long): Likewise.
31697         * doc/posix-functions/getopt.texi (getopt): Document it.
31698         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
31699         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31700         Likewise.
31702 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
31704         getopt: handle W; without long options in getopt [BZ #12922]
31705         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
31706         but no long options are defined, just return 'W'.
31708 2011-07-07  Bruno Haible  <bruno@clisp.org>
31710         Avoid literal tabs.
31711         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
31712         variable containing a tab instead of a literal tab.
31713         Reported by Jim Meyering.
31715 2011-07-07  Bruno Haible  <bruno@clisp.org>
31717         Comments.
31718         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
31720 2011-07-06  Bruno Haible  <bruno@clisp.org>
31722         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
31723         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
31724         <winsock2.h>.
31725         (rpl_fd_isset, FD_ISSET): New definitions, copied from
31726         lib/sys_socket.in.h.
31727         (close, gethostname): Hide declarations from <winsock2.h>.
31728         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
31729         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
31730         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
31731         (select): Don't override if gnulib's <sys/select.h> was already
31732         included.
31733         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
31734         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
31735         setsockopt, shutdown, select): Tweak indentation.
31737 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
31739         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
31740         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
31741         in an application that does not use the sys_select module.
31743 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
31745         poll: do not return 0 on timeout=-1
31746         * lib/poll.c: Loop with yield if no events occurred.
31748 2011-07-06  Eric Blake  <eblake@redhat.com>
31750         pthread_sigmask: always replace when not using pthread
31751         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
31752         replacement when using some threading other than pthread.  Fix
31753         logic bug.
31755 2011-07-06  Bruno Haible  <bruno@clisp.org>
31757         Comments.
31758         * m4/printf.m4: Update comments about mingw.
31760 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
31762         sys_select: define sigset_t more portably
31763         * lib/sys_select.in.h: Always include <sys/types.h>, since
31764         we now need sigset_t and mingw defines it there.
31765         Include <signal.h> before split inclusion guard, to avoid
31766         mishaps on Solaris, whose <signal.h> eventually includes us.
31767         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
31768         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
31769         which come from ...
31770         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
31771         gl_CHECK_TYPE_SIGSET_T.
31772         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
31773         does the real work.
31774         * modules/sys_select (Depends-on): Add 'signal'.
31776         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
31777         Suggested by Bruno Haible.
31779         pselect: Use pthread_sigmask, not sigprocmask.
31780         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
31781         multithreaded apps better than sigprocmask does.
31782         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
31783         sigprocmask directly.
31785 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
31787         * lib/pselect.c (pselect): Use plain name, without "rpl_".
31788         Don't #undef,  since we don't need any underlying pselect.
31789         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
31790         (Depends-on): Add select.
31791         (Link): Add $(LIBSOCKET).
31792         These changes suggested by Bruno Haible.
31794         pselect: document better
31795         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
31796         * doc/posix-functions/pselect.texi (pselect): Document new module.
31798         pthread_sigmask: new module
31799         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
31800         * doc/posix-functions/pthread_sigmask.texi: Document new module.
31801         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
31802         This is done only as a macro; I don't know how well that'll
31803         work for C++.  Move <sys/types.h> include before the include_next,
31804         to avoid mishap on Solaris.
31805         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
31806         * modules/signal (Makefile.am): Substitute the check's results.
31807         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
31809         test-pselect: new module
31810         * modules/pselect-tests, tests/test-pselect.c: New files.
31811         * tests/test-select.c, tests/test-sys_select-c++.cc:
31812         If TEST_PSELECT is defined, test pselect instead of testing select.
31814         * tests/test-sys_select.c (sigset_t): Test for it, too.
31815         Suggested by Bruno Haible.
31817 2011-07-05  Eric Blake  <eblake@redhat.com>
31819         snprintf: guarantee %1$d, for libintl
31820         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
31821         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
31822         * doc/posix-functions/snprintf.texi (snprintf): Update.
31823         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
31824         * tests/test-snprintf.c (main): Enhance test.
31825         * tests/test-vsnprintf.c (main): Likewise.
31827 2011-07-05  Jim Meyering  <meyering@redhat.com>
31829         maint: exempt stdio-read.c and stdio-write.c from the cppi check
31830         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
31831         per Bruno's request, to accommodate this idiom (no space after "#")
31832         even when the function is inside an #if block:
31833         char *
31834         gets (char *s)
31835         #undef gets
31836         {
31837           ...
31838         }
31840 2011-07-04  Jim Meyering  <meyering@redhat.com>
31842         maint: indent with spaces, not TABs, and add a rule to check this
31843         * tests/test-userspec.c: Indent with spaces, not TABs.
31844         * tests/test-argp.c: Likewise.
31845         * tests/test-c-stack2.sh: Likewise.
31846         * tests/test-parse-duration.sh: Likewise
31847         * m4/strtod.m4: Likewise.
31848         * m4/alloca.m4: Likewise.
31849         * m4/pselect.m4: Likewise.
31850         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
31852 2011-07-03  Jim Meyering  <meyering@redhat.com>
31854         maint.mk: correct omissions in prohibit_argmatch_without_use check
31855         This rule would mistakenly report that argmatch.h is included without
31856         use even when both the argmatch and invalid_arg macro were used.
31857         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
31858         of argmatch and invalid_arg.
31860 2011-07-03  Bruno Haible  <bruno@clisp.org>
31862         Comments about EINTR.
31863         * lib/safe-read.h: Explain the purpose of this module.
31864         * lib/safe-write.h: Likewise.
31865         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
31866         module.
31867         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
31868         module.
31869         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31871 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
31873         xnanosleep: Rewrite to use new dtotimespec module.
31874         It has the conversion code that used to be in xnanosleep.
31875         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
31876         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
31877         (TIME_T_MAX): Remove.
31878         (xnanosleep): Rewrite in terms of dtotimespec.
31879         * modules/xnanosleep (Depends-on): Add dtotimespec.
31880         Remove intprops, stdbool.
31882         timespec-add, timespec-sub: new modules
31883         * lib/timespec.h (timespec_add, timespec_sub): New decls.
31884         * lib/timespec-add.c, lib/timespec-sub.c:
31885         * modules/timespec-add, modules/timespec-sub: New files.
31887         dtotimespec: new module
31888         * lib/timespec.h (dtotimespec): New decl.
31889         * lib/dtotimespec.c, modules/dtotimespec: New files.
31891         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
31893         pselect: new module
31894         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
31895         (pselect): New decls.
31896         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
31897         since the standard pselect decl uses 'restrict'.
31898         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
31899         HAVE_PSELECT, REPLACE_PSELECT.
31900         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
31901         HAVE_PSELECT, REPLACE_PSELECT.
31902         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
31904         sys_select: don't depend on sys_socket
31905         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
31906         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
31907         This fix works on GNU and GNU-like platforms, but has not been tested
31908         on native Windows.
31909         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
31910         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
31911         gl_HEADER_SYS_SOCKET.
31912         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
31913         gl_PREREQ_SYS_H_WINSOCK2.
31915 2011-06-29  Eric Blake  <eblake@redhat.com>
31917         pipe2: fix C89 compile problem
31918         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
31919         Reported by Bruno Haible.
31921         pipe, pipe2: don't corrupt fd on error
31922         * lib/pipe.c (pipe): Leave fd unchanged on error.
31923         * lib/pipe2.c (pipe2): Likewise.
31924         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
31925         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
31927 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
31929         mmap-anon: do not use regular expressions inadvertently
31930         * m4/mmap-anon.m4: Remove trailing period from strings sought
31931         in the output.
31933 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
31935         nanosleep: fix integer overflow problem
31936         * lib/nanosleep.c (my_usleep): Don't assume signed integer
31937         arithmetic wraps around on overflow.
31939         nanosleep: simplify carrying
31940         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
31941         first call to the underyling nanosleep, not for the last one.
31942         This doesn't fix any bugs, but it simplifies the computation of
31943         the remaining delay.  Found while auditing integer overflow issues.
31945         dup2: remove test for existence of fcntl
31946         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
31947         "#if HAVE_FCNTL", in the configure-time test program.
31948         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
31949         and therefore speeds up "configure" a bit.  Found while
31950         adding the dup2 module to Emacs.
31952 2011-06-24  Eric Blake  <eblake@redhat.com>
31954         maint.mk: enhance useless header checks
31955         * top/maint.mk (_sc_header_without_use): Check both include
31956         styles.
31957         (sc_prohibit_assert_without_use)
31958         (sc_prohibit_close_stream_without_use)
31959         (sc_prohibit_getopt_without_use)
31960         (sc_prohibit_quotearg_without_use)
31961         (sc_prohibit_quote_without_use)
31962         (sc_prohibit_long_options_without_use)
31963         (sc_prohibit_inttostr_without_use)
31964         (sc_prohibit_ignore_value_without_use)
31965         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
31966         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
31967         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
31968         (sc_prohibit_hash_pjw_without_use)
31969         (sc_prohibit_safe_read_without_use)
31970         (sc_prohibit_argmatch_without_use)
31971         (sc_prohibit_canonicalize_without_use)
31972         (sc_prohibit_root_dev_ino_without_use)
31973         (sc_prohibit_openat_without_use)
31974         (sc_prohibit_c_ctype_without_use)
31975         (sc_prohibit_signal_without_use)
31976         (sc_prohibit_stdio--_without_use)
31977         (sc_prohibit_stdio-safer_without_use)
31978         (sc_prohibit_strings_without_use)
31979         (sc_prohibit_intprops_without_use)
31980         (sc_prohibit_stddef_without_use)
31981         (sc_prohibit_xfreopen_without_use): Update clients.
31983 2011-06-24  Jim Meyering  <meyering@redhat.com>
31985         syntax-check: keep one maint.mk rule in sync with its header
31986         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
31987         of the bug Eric has just fixed, with today's commit 25e4c2ec.
31988         I prefer to avoid temporary files here, so use <(...), but that
31989         is not supported by /bin/sh, so...
31990         (SHELL): Define to /bin/bash.
31992 2011-06-24  Eric Blake  <eblake@redhat.com>
31994         maint.mk: update sc_prohibit_intprops_without_use
31995         * top/maint.mk (_intprops_names): Match recent changes.
31997 2011-06-24  Bruno Haible  <bruno@clisp.org>
31999         strerror-override: No-op tweak.
32000         * lib/strerror-override.h (strerror_override): Reorder conditions,
32001         for consistency with lib/strerror-override.c.
32003 2011-06-23  Eric Blake  <eblake@redhat.com>
32005         maint.mk: test further PATH_MAX issues
32006         * top/maint.mk (sc_prohibit_path_max_array): Rename...
32007         (sc_prohibit_path_max_allocation): ...and also test alloca.
32008         Suggested by Jim Meyering.
32010 2011-06-22  Eric Blake  <eblake@redhat.com>
32012         maint.mk: add syntax-check to avoid char[PATH_MAX]
32013         * top/maint.mk (sc_prohibit_path_max_array): New rule.
32015         stat: be robust to PATH_MAX definition
32016         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
32017         * modules/stat (Depends-on): Add verify.
32019         link: work around IRIX bug
32020         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
32021         * lib/link.c (rpl_link): Work around it.
32022         * tests/test-link.h (test_link): Enhance test.
32023         * doc/posix-functions/link.texi (link): Document the bug.
32025         getopt: silence clang warning
32026         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
32027         dereference.
32028         Reported by Gustavo Martin Domato.
32030 2011-06-22  Jim Meyering  <meyering@redhat.com>
32032         bootstrap: do not insert a blank line into each .gitignore file
32033         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
32035 2011-06-21  Eric Blake  <eblake@redhat.com>
32037         perror: test for output mismatch
32038         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
32039         perror on IRIX.
32041         strerror_r: fix OpenBSD behavior on out-of-range
32042         * lib/strerror_r.c (strerror_r): Always use maximal string.
32043         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
32045         strerror_r: fix OpenBSD behavior on 0
32046         * lib/strerror-override.c (strerror_override): Also override 0
32047         when needed.
32048         * lib/strerror-override.h (strerror_override): Likewise.
32049         * lib/strerror.c (strerror): Simplify, now that 0 override is done
32050         earlier.
32051         * lib/strerror_r.c (strerror_r): Likewise.
32052         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
32053         behavior...
32054         (gl_FUNC_STRERROR_0): ...into new macro.
32055         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
32056         is overridden.
32057         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
32058         * modules/strerror-override (Files): Add strerror.m4.
32059         (configure.ac): Also provide override for 0 when needed.
32060         * doc/posix-functions/strerror.texi (strerror): Document this.
32061         * doc/posix-functions/perror.texi (perror): Likewise.
32063         perror: adjust array size
32064         * modules/perror (Depends-on): Add strerror-override.
32065         * lib/perror.c (perror): Use it to avoid magic number.
32067         strerror-override: reduce size
32068         * lib/strerror-override.c (strerror_override): Use fewer lines.
32070 2011-06-20  Bruno Haible  <bruno@clisp.org>
32072         pathmax: Ensure correct value for PATH_MAX on HP-UX.
32073         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
32075 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
32077         alloca: port to compilers that can optimize like GCC 4.6.0
32078         * lib/alloca.c (find_stack_direction): New signature, taken from
32079         Autoconf git.  This works with GCC 4.6.0.  This code should never
32080         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
32081         be used with other compilers that optimize as well as GCC 4.6.0 does.
32082         (alloca): Adjust to new signature.
32083         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
32084         New macro, which patches Autoconf in a similar way.
32086         c-stack: stop worrying about stack direction
32087         * lib/c-stack.c (find_stack_direction): Remove.
32088         (segv_handler): Don't worry about stack direction growth, as it's
32089         too much of a pain to configure this correctly, given how compilers
32090         are optimizing-away our stack-growth detection code.  Instead, assume
32091         that any access to just before or just after the stack is OK.
32092         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
32093         Don't require AC_FUNC_ALLOCA; no longer needed.
32095 2011-06-20  Eric Blake  <eblake@redhat.com>
32097         test-stat: don't allocate PATH_MAX bytes
32098         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
32099         PATH_MAX-sized buffer.
32100         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
32101         * modules/stat-tests (Depends-on): Likewise.
32102         * tests/test-fstatat.c (includes): Drop pathmax.h.
32103         * tests/test-stat.c (includes): Likewise.
32104         Reported by Bruno Haible.
32106 2011-06-20  Bruno Haible  <bruno@clisp.org>
32108         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
32109         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
32110         * lib/float.c: New file.
32111         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
32112         REPLACE_FLOAT_LDBL.
32113         * modules/float (Files): Add lib/float.c.
32114         (configure.ac): Invoke AC_LIBOBJ.
32115         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
32117 2011-06-20  Bruno Haible  <bruno@clisp.org>
32119         Tests for module 'float'.
32120         * modules/float-tests: New file.
32121         * tests/test-float.c: New file.
32123 2011-06-19  Bruno Haible  <bruno@clisp.org>
32125         isinf: Coding style.
32126         * lib/isinf.c: Use GNU coding style.
32128 2011-06-19  Bruno Haible  <bruno@clisp.org>
32130         linkat test: Avoid test failure on AIX 7.1.
32131         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
32132         * tests/test-link.h (test_link): Likewise.
32134 2011-06-19  Bruno Haible  <bruno@clisp.org>
32136         pread test: Avoid test failure on OpenBSD 4.9.
32137         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
32139 2011-06-19  Bruno Haible  <bruno@clisp.org>
32141         sprintf-posix: Fix test failure on AIX 7.1.
32142         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
32143         * doc/posix-functions/dprintf.texi: Mention limited precision problem
32144         on AIX.
32145         * doc/posix-functions/fprintf.texi: Likewise.
32146         * doc/posix-functions/printf.texi: Likewise.
32147         * doc/posix-functions/snprintf.texi: Likewise.
32148         * doc/posix-functions/sprintf.texi: Likewise.
32149         * doc/posix-functions/vdprintf.texi: Likewise.
32150         * doc/posix-functions/vfprintf.texi: Likewise.
32151         * doc/posix-functions/vprintf.texi: Likewise.
32152         * doc/posix-functions/vsnprintf.texi: Likewise.
32153         * doc/posix-functions/vsprintf.texi: Likewise.
32155 2011-06-19  Bruno Haible  <bruno@clisp.org>
32157         roundl-ieee: Fix test failure on AIX 7.1.
32158         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
32159         * doc/posix-functions/roundl.texi: Mention problem with negative
32160         arguments.
32162 2011-06-19  Bruno Haible  <bruno@clisp.org>
32164         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
32165         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
32166         * doc/posix-functions/round.texi: Mention problem with negative
32167         arguments.
32168         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
32170 2011-06-19  Bruno Haible  <bruno@clisp.org>
32172         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
32173         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
32174         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
32175         * doc/posix-functions/roundf.texi: Mention problem with negative
32176         arguments.
32177         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
32179 2011-06-19  Bruno Haible  <bruno@clisp.org>
32181         ceilf-ieee: Work around bug on MacOS X 10.5.
32182         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
32184         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
32185         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
32186         IEEE compliant, avoid compiler optimizations.
32187         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
32188         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
32189         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
32190         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
32191         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
32192         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
32193         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
32194         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
32195         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
32196         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
32198 2011-06-19  Bruno Haible  <bruno@clisp.org>
32200         ceilf-ieee: Work around bug on AIX 7.1.
32201         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
32202         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
32204 2011-06-19  Bruno Haible  <bruno@clisp.org>
32206         ceil-ieee: Work around bug on AIX 7.1.
32207         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
32208         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
32210 2011-06-18  Bruno Haible  <bruno@clisp.org>
32212         fsync test: Avoid test failure on MacOS X and AIX.
32213         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
32214         EINVAL.
32216 2011-06-18  Bruno Haible  <bruno@clisp.org>
32218         openat, fdopendir tests: Fix link errors.
32219         * modules/openat-tests (Depends-on): Add progname.
32220         * modules/fdopendir-tests (Depends-on): Likewise.
32221         * tests/test-fchownat.c: Include progname.h.
32222         (main): Call set_program_name.
32223         * tests/test-fstatat.c: Include progname.h.
32224         (main): Call set_program_name.
32225         * tests/test-mkdirat.c: Include progname.h.
32226         (main): Call set_program_name.
32227         * tests/test-openat.c: Include progname.h.
32228         (main): Call set_program_name.
32229         * tests/test-unlinkat.c: Include progname.h.
32230         (main): Call set_program_name.
32231         * tests/test-fdopendir.c: Include progname.h.
32232         (main): Call set_program_name.
32234 2011-06-18  Bruno Haible  <bruno@clisp.org>
32236         Doc update.
32237         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
32238         HP-UX.
32239         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
32241 2011-06-18  Bruno Haible  <bruno@clisp.org>
32243         getcwd tests: Avoid compilation error on HP-UX 11.31.
32244         * modules/getcwd-tests (Depends-on): Add pathmax.
32245         * tests/test-getcwd.c: Include pathmax.h.
32247 2011-06-18  Bruno Haible  <bruno@clisp.org>
32249         isfinite, isinf: Fix link error on AIX 6 and 7.
32250         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
32251         needed, also test the macro with a 'float' argument.
32252         * m4/isinf.m4 (gl_ISINF): Likewise.
32254 2011-06-18  Bruno Haible  <bruno@clisp.org>
32256         getloadavg: Don't clobber LIBS. Regression from previous commit.
32257         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
32258         AC_CHECK_LIB from here...
32259         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
32260         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
32261         gl_func_getloadavg_done.
32262         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32264 2011-06-18  Bruno Haible  <bruno@clisp.org>
32266         clean-temp: Improve documentation.
32267         * lib/clean-temp.h: Explain better how to use this module.
32268         Reported by John Darrington <john@darrington.wattle.id.au>.
32270 2011-06-17  Bruno Haible  <bruno@clisp.org>
32272         pread, pwrite: Avoid cc warning on AIX.
32273         * lib/unistd.in.h (pread): Undefine before defining as a macro.
32274         (pwrite): Likewise.
32276 2011-06-17  Bruno Haible  <bruno@clisp.org>
32278         spawn-pipe tests: Fix link error.
32279         * tests/test-spawn-pipe-child.c: Undefine fprintf.
32280         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32282 2011-06-17  Bruno Haible  <bruno@clisp.org>
32284         Tests: Remove unnecessary dependency.
32285         * modules/canonicalize-tests (Depends-on): Remove progname.
32286         * modules/chown-tests (Depends-on): Likewise.
32287         * modules/dirname-tests (Depends-on): Likewise.
32288         * modules/fdopendir-tests (Depends-on): Likewise.
32289         * modules/fdutimensat-tests (Depends-on): Likewise.
32290         * modules/hash-tests (Depends-on): Likewise.
32291         * modules/lchown-tests (Depends-on): Likewise.
32292         * modules/linkat-tests (Depends-on): Likewise.
32293         * modules/renameat-tests (Depends-on): Likewise.
32294         * modules/spawn-pipe-tests (Depends-on): Likewise.
32295         * modules/utimensat-tests (Depends-on): Likewise.
32297 2011-06-17  Bruno Haible  <bruno@clisp.org>
32299         spawn-pipe tests: Fix link error.
32300         * tests/test-spawn-pipe-child.c: Undefine fflush.
32302 2011-06-17  Bruno Haible  <bruno@clisp.org>
32304         Fix tests link errors.
32305         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
32306         * modules/chown-tests (Makefile.am): Don't link test-chown with
32307         LIBINTL.
32308         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
32309         LIBINTL.
32310         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
32311         LIBINTL.
32312         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
32313         LIBINTL.
32315 2011-06-16  Bruno Haible  <bruno@clisp.org>
32317         crypto/gc-sha1: Fix recent regression.
32318         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
32319         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
32321         crypto/gc-md5: Fix recent regression.
32322         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
32324         crypto/gc-md4: Fix recent regression.
32325         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
32326         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
32328         crypto/gc-arctwo: Fix recent regression.
32329         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
32330         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
32332         crypto/gc-rijndael: Fix recent regression.
32333         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
32334         (configure.ac): Invoke AC_LIBOBJ here.
32335         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
32336         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32338         crypto/gc-hmac-sha1: Fix recent regression.
32339         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
32340         (configure.ac): Invoke AC_LIBOBJ here.
32341         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
32342         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32344         crypto/gc-hmac-md5: Fix recent regression.
32345         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
32346         (configure.ac): Invoke AC_LIBOBJ here.
32347         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
32348         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32350         crypto/gc-des: Fix recent regression.
32351         * modules/crypto/gc-des (Files): Remove m4/des.m4.
32352         (configure.ac): Invoke AC_LIBOBJ here.
32353         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
32354         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32356         crypto/gc-arcfour: Fix recent regression.
32357         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
32358         (configure.ac): Invoke AC_LIBOBJ here.
32359         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
32360         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32362 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
32364         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
32365         After the 2011-05-21 change, this macro requires
32366         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
32367         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
32369 2011-06-16  Bruno Haible  <bruno@clisp.org>
32371         fprintftime: Move AC_LIBOBJ invocations to module description.
32372         * m4/fprintftime.m4: Remove file.
32373         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
32374         (configure.ac): Remove gl_FPRINTFTIME call.
32375         (Makefile.am): Augment lib_SOURCES.
32376         Reported by Jim Meyering.
32378 2011-06-16  Bruno Haible  <bruno@clisp.org>
32380         tmpfile-safer: Finish 2011-05-23 commit.
32381         * m4/stdio-safer.m4: Really remove file.
32382         Reported by Jim Meyering.
32384 2011-06-16  Bruno Haible  <bruno@clisp.org>
32386         syntax-check: Fix typo.
32387         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
32388         printf-posix.m4.
32389         Reported by Jim Meyering.
32391 2011-06-13  Jim Meyering  <meyering@redhat.com>
32393         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
32394         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
32396 2011-05-23  Bruno Haible  <bruno@clisp.org>
32398         yesno: Move AC_LIBOBJ invocations to module description.
32399         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
32400         * modules/yesno (Makefile.am): Augment lib_SOURCES.
32402 2011-05-23  Bruno Haible  <bruno@clisp.org>
32404         xstrtol: Move AC_LIBOBJ invocations to module description.
32405         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
32406         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
32408 2011-05-23  Bruno Haible  <bruno@clisp.org>
32410         xstrtold: Move AC_LIBOBJ invocations to module description.
32411         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
32412         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
32414 2011-05-23  Bruno Haible  <bruno@clisp.org>
32416         xstrtod: Move AC_LIBOBJ invocations to module description.
32417         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
32418         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
32420 2011-05-23  Bruno Haible  <bruno@clisp.org>
32422         xnanosleep: Move AC_LIBOBJ invocations to module description.
32423         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
32424         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
32426 2011-05-23  Bruno Haible  <bruno@clisp.org>
32428         xgetcwd: Move AC_LIBOBJ invocations to module description.
32429         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
32430         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
32432 2011-05-23  Bruno Haible  <bruno@clisp.org>
32434         xalloc: Move AC_LIBOBJ invocations to module description.
32435         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
32436         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
32438 2011-05-23  Bruno Haible  <bruno@clisp.org>
32440         write-any-file: Move AC_LIBOBJ invocations to module description.
32441         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
32442         invocation.
32443         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
32445 2011-05-23  Bruno Haible  <bruno@clisp.org>
32447         utimens: Move AC_LIBOBJ invocations to module description.
32448         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
32449         * modules/utimens (Makefile.am): Augment lib_SOURCES.
32451 2011-05-23  Bruno Haible  <bruno@clisp.org>
32453         utimecmp: Move AC_LIBOBJ invocations to module description.
32454         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
32455         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
32457 2011-05-23  Bruno Haible  <bruno@clisp.org>
32459         userspec: Move AC_LIBOBJ invocations to module description.
32460         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
32461         * modules/userspec (Makefile.am): Augment lib_SOURCES.
32463 2011-05-23  Bruno Haible  <bruno@clisp.org>
32465         unlinkdir: Move AC_LIBOBJ invocations to module description.
32466         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
32467         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
32469 2011-05-23  Bruno Haible  <bruno@clisp.org>
32471         unistd-safer: Move AC_LIBOBJ invocations to module description.
32472         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
32473         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
32475 2011-05-23  Bruno Haible  <bruno@clisp.org>
32477         tempname: Move AC_LIBOBJ invocations to module description.
32478         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
32479         * modules/tempname (Makefile.am): Augment lib_SOURCES.
32481 2011-05-23  Bruno Haible  <bruno@clisp.org>
32483         strftime: Move AC_LIBOBJ invocations to module description.
32484         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
32485         * modules/strftime (Makefile.am): Augment lib_SOURCES.
32487 2011-05-23  Bruno Haible  <bruno@clisp.org>
32489         stdlib-safer: Move AC_LIBOBJ invocations to module description.
32490         * m4/stdlib-safer.m4: Remove file.
32491         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
32492         (configure.ac): Remove gl_STDLIB_SAFER call.
32493         (Makefile.am): Augment lib_SOURCES.
32495 2011-05-23  Bruno Haible  <bruno@clisp.org>
32497         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
32498         * m4/stdio-safer.m4: Remove file.
32499         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
32500         (configure.ac): Remove gl_TMPFILE_SAFER call.
32501         (Makefile.am): Augment lib_SOURCES.
32503 2011-05-23  Bruno Haible  <bruno@clisp.org>
32505         popen-safer: Move AC_LIBOBJ invocations to module description.
32506         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
32507         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
32508         (configure.ac): Remove gl_POPEN_SAFER call.
32509         (Makefile.am): Augment lib_SOURCES.
32511 2011-05-23  Bruno Haible  <bruno@clisp.org>
32513         freopen-safer: Move AC_LIBOBJ invocations to module description.
32514         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
32515         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
32516         (configure.ac): Remove gl_FREOPEN_SAFER call.
32517         (Makefile.am): Augment lib_SOURCES.
32519 2011-05-23  Bruno Haible  <bruno@clisp.org>
32521         fopen-safer: Move AC_LIBOBJ invocations to module description.
32522         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
32523         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
32524         (configure.ac): Remove gl_FOPEN_SAFER call.
32525         (Makefile.am): Augment lib_SOURCES.
32527 2011-05-23  Bruno Haible  <bruno@clisp.org>
32529         crypto/sha512: Move AC_LIBOBJ invocations to module description.
32530         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
32531         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
32533 2011-05-23  Bruno Haible  <bruno@clisp.org>
32535         crypto/sha256: Move AC_LIBOBJ invocations to module description.
32536         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
32537         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
32539 2011-05-23  Bruno Haible  <bruno@clisp.org>
32541         crypto/sha1: Move AC_LIBOBJ invocations to module description.
32542         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
32543         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
32545 2011-05-23  Bruno Haible  <bruno@clisp.org>
32547         settime: Move AC_LIBOBJ invocations to module description.
32548         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
32549         * modules/settime (Makefile.am): Augment lib_SOURCES.
32551 2011-05-23  Bruno Haible  <bruno@clisp.org>
32553         savedir: Move AC_LIBOBJ invocations to module description.
32554         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
32555         * modules/savedir (Makefile.am): Augment lib_SOURCES.
32557 2011-05-23  Bruno Haible  <bruno@clisp.org>
32559         save-cwd: Move AC_LIBOBJ invocations to module description.
32560         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
32561         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
32563 2011-05-23  Bruno Haible  <bruno@clisp.org>
32565         same: Move AC_LIBOBJ invocations to module description.
32566         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
32567         * modules/same (Makefile.am): Augment lib_SOURCES.
32569 2011-05-23  Bruno Haible  <bruno@clisp.org>
32571         safe-write: Move AC_LIBOBJ invocations to module description.
32572         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
32573         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
32574         instead of gl_SAFE_WRITE.
32575         (Makefile.am): Augment lib_SOURCES.
32577 2011-05-23  Bruno Haible  <bruno@clisp.org>
32579         safe-read: Move AC_LIBOBJ invocations to module description.
32580         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
32581         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
32582         of gl_SAFE_READ.
32583         (Makefile.am): Augment lib_SOURCES.
32585 2011-05-23  Bruno Haible  <bruno@clisp.org>
32587         safe-alloc: Move AC_LIBOBJ invocations to module description.
32588         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
32589         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
32591 2011-05-23  Bruno Haible  <bruno@clisp.org>
32593         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
32594         * m4/rijndael.m4: Remove file.
32595         * modules/crypto/rijndael (Files): Remove it.
32596         (configure.ac): Remove gl_RIJNDAEL call.
32597         (Makefile.am): Augment lib_SOURCES.
32599 2011-05-23  Bruno Haible  <bruno@clisp.org>
32601         readtokens: Move AC_LIBOBJ invocations to module description.
32602         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
32603         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
32605 2011-05-23  Bruno Haible  <bruno@clisp.org>
32607         read-file: Move AC_LIBOBJ invocations to module description.
32608         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
32609         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
32610         of gl_FUNC_READ_FILE.
32611         (Makefile.am): Augment lib_SOURCES.
32613 2011-05-23  Bruno Haible  <bruno@clisp.org>
32615         quotearg: Move AC_LIBOBJ invocations to module description.
32616         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
32617         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
32619 2011-05-23  Bruno Haible  <bruno@clisp.org>
32621         quote: Move AC_LIBOBJ invocations to module description.
32622         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
32623         * modules/quote (Makefile.am): Augment lib_SOURCES.
32625 2011-05-23  Bruno Haible  <bruno@clisp.org>
32627         posixver: Move AC_LIBOBJ invocations to module description.
32628         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
32629         * modules/posixver (Makefile.am): Augment lib_SOURCES.
32631 2011-05-23  Bruno Haible  <bruno@clisp.org>
32633         posixtm: Move AC_LIBOBJ invocations to module description.
32634         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
32635         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
32637 2011-05-23  Bruno Haible  <bruno@clisp.org>
32639         physmem: Move AC_LIBOBJ invocations to module description.
32640         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
32641         * modules/physmem (Makefile.am): Augment lib_SOURCES.
32643 2011-05-23  Bruno Haible  <bruno@clisp.org>
32645         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
32646         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
32647         invocation.
32648         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
32650 2011-05-23  Bruno Haible  <bruno@clisp.org>
32652         mpsort: Move AC_LIBOBJ invocations to module description.
32653         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
32654         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
32656 2011-05-23  Bruno Haible  <bruno@clisp.org>
32658         modechange: Move AC_LIBOBJ invocations to module description.
32659         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
32660         * modules/modechange (Makefile.am): Augment lib_SOURCES.
32662 2011-05-23  Bruno Haible  <bruno@clisp.org>
32664         mkdir-p: Move AC_LIBOBJ invocations to module description.
32665         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
32666         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
32668 2011-05-23  Bruno Haible  <bruno@clisp.org>
32670         mkancesdirs: Move AC_LIBOBJ invocations to module description.
32671         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
32672         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
32674 2011-05-23  Bruno Haible  <bruno@clisp.org>
32676         mgetgroups: Move AC_LIBOBJ invocations to module description.
32677         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
32678         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
32680 2011-05-23  Bruno Haible  <bruno@clisp.org>
32682         memxor: Move AC_LIBOBJ invocations to module description.
32683         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
32684         * modules/memxor (Makefile.am): Augment lib_SOURCES.
32686 2011-05-23  Bruno Haible  <bruno@clisp.org>
32688         memcoll: Move AC_LIBOBJ invocations to module description.
32689         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
32690         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
32692 2011-05-23  Bruno Haible  <bruno@clisp.org>
32694         memcasecmp: Move AC_LIBOBJ invocations to module description.
32695         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
32696         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
32698 2011-05-23  Bruno Haible  <bruno@clisp.org>
32700         crypto/md5: Move AC_LIBOBJ invocations to module description.
32701         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
32702         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
32704 2011-05-23  Bruno Haible  <bruno@clisp.org>
32706         crypto/md4: Move AC_LIBOBJ invocations to module description.
32707         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
32708         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
32710 2011-05-23  Bruno Haible  <bruno@clisp.org>
32712         crypto/md2: Move AC_LIBOBJ invocations to module description.
32713         * m4/md2.m4: Remove file.
32714         * modules/crypto/md2 (Files): Remove it.
32715         (configure.ac): Remove gl_MD2 call.
32716         (Makefile.am): Augment lib_SOURCES.
32718 2011-05-23  Bruno Haible  <bruno@clisp.org>
32720         long-options: Move AC_LIBOBJ invocations to module description.
32721         * m4/long-options.m4: Remove file.
32722         * modules/long-options (Files): Remove it.
32723         (configure.ac): Remove gl_LONG_OPTIONS call.
32724         (Makefile.am): Augment lib_SOURCES.
32726 2011-05-23  Bruno Haible  <bruno@clisp.org>
32728         i-ring: Move AC_LIBOBJ invocations to module description.
32729         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
32730         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
32732 2011-05-23  Bruno Haible  <bruno@clisp.org>
32734         idcache: Move AC_LIBOBJ invocations to module description.
32735         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
32736         * modules/idcache (Makefile.am): Augment lib_SOURCES.
32738 2011-05-23  Bruno Haible  <bruno@clisp.org>
32740         human: Move AC_LIBOBJ invocations to module description.
32741         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
32742         * modules/human (Makefile.am): Augment lib_SOURCES.
32744 2011-05-23  Bruno Haible  <bruno@clisp.org>
32746         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
32747         * m4/hmac-sha1.m4: Remove file.
32748         * modules/crypto/hmac-sha1 (Files): Remove it.
32749         (configure.ac): Remove gl_HMAC_SHA1 call.
32750         (Makefile.am): Augment lib_SOURCES.
32752 2011-05-23  Bruno Haible  <bruno@clisp.org>
32754         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
32755         * m4/hmac-md5.m4: Remove file.
32756         * modules/crypto/hmac-md5 (Files): Remove it.
32757         (configure.ac): Remove gl_HMAC_MD5 call.
32758         (Makefile.am): Augment lib_SOURCES.
32760 2011-05-23  Bruno Haible  <bruno@clisp.org>
32762         hash: Move AC_LIBOBJ invocations to module description.
32763         * m4/hash.m4: Remove file.
32764         * modules/hash (Files): Remove it.
32765         (configure.ac): Remove gl_HASH call.
32766         (Makefile.am): Augment lib_SOURCES.
32768 2011-05-23  Bruno Haible  <bruno@clisp.org>
32770         hard-locale: Move AC_LIBOBJ invocations to module description.
32771         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
32772         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
32774 2011-05-23  Bruno Haible  <bruno@clisp.org>
32776         getugroups: Move AC_LIBOBJ invocations to module description.
32777         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
32778         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
32780 2011-05-23  Bruno Haible  <bruno@clisp.org>
32782         gettime: Move AC_LIBOBJ invocations to module description.
32783         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
32784         * modules/gettime (Makefile.am): Augment lib_SOURCES.
32786 2011-05-23  Bruno Haible  <bruno@clisp.org>
32788         getndelim2: Move AC_LIBOBJ invocations to module description.
32789         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
32790         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
32792 2011-05-23  Bruno Haible  <bruno@clisp.org>
32794         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
32795         * m4/gc-pbkdf2-sha1.m4: Remove file.
32796         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
32797         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
32798         (Makefile.am): Augment lib_SOURCES.
32800 2011-05-23  Bruno Haible  <bruno@clisp.org>
32802         fts: Move AC_LIBOBJ invocations to module description.
32803         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
32804         * modules/fts (configure.ac): ... to here.
32806 2011-05-23  Bruno Haible  <bruno@clisp.org>
32808         file-type: Move AC_LIBOBJ invocations to module description.
32809         * m4/file-type.m4: Remove file.
32810         * modules/file-type (Files): Remove it.
32811         (configure.ac): Remove gl_FILE_TYPE call.
32812         (Makefile.am): Augment lib_SOURCES.
32814 2011-05-23  Bruno Haible  <bruno@clisp.org>
32816         filenamecat*: Respect rules for use of AC_LIBOBJ.
32817         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
32818         Remove AC_LIBOBJ invocation.
32819         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
32820         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
32822 2011-05-23  Bruno Haible  <bruno@clisp.org>
32824         filemode: Move AC_LIBOBJ invocations to module description.
32825         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
32826         * modules/filemode (Makefile.am): Augment lib_SOURCES.
32828 2011-05-23  Bruno Haible  <bruno@clisp.org>
32830         openat-safer: Move AC_LIBOBJ invocations to module description.
32831         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
32832         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
32834 2011-05-23  Bruno Haible  <bruno@clisp.org>
32836         fcntl-safer: Move AC_LIBOBJ invocations to module description.
32837         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
32838         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
32840 2011-05-23  Bruno Haible  <bruno@clisp.org>
32842         exclude: Move AC_LIBOBJ invocations to module description.
32843         * m4/exclude.m4: Remove file.
32844         * modules/exclude (Files): Remove it.
32845         (configure.ac): Remove gl_EXCLUDE call.
32846         (Makefile.am): Augment lib_SOURCES.
32848 2011-05-23  Bruno Haible  <bruno@clisp.org>
32850         dirname*: Respect rules for use of AC_LIBOBJ.
32851         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
32852         invocations.
32853         * modules/dirname (Makefile.am): Augment lib_SOURCES.
32854         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
32856 2011-05-23  Bruno Haible  <bruno@clisp.org>
32858         dirent-safer: Move AC_LIBOBJ invocations to module description.
32859         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
32860         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
32862 2011-05-23  Bruno Haible  <bruno@clisp.org>
32864         crypto/des: Move AC_LIBOBJ invocations to module description.
32865         * m4/des.m4: Remove file.
32866         * modules/crypto/des (Files): Remove it.
32867         (configure.ac): Remove gl_DES call.
32868         (Makefile.am): Augment lib_SOURCES.
32870 2011-05-23  Bruno Haible  <bruno@clisp.org>
32872         cycle-check: Move AC_LIBOBJ invocations to module description.
32873         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
32874         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
32876 2011-05-23  Bruno Haible  <bruno@clisp.org>
32878         c-strtold: Move AC_LIBOBJ invocations to module description.
32879         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
32880         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
32882 2011-05-23  Bruno Haible  <bruno@clisp.org>
32884         c-strtod: Move AC_LIBOBJ invocations to module description.
32885         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
32886         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
32888 2011-05-23  Bruno Haible  <bruno@clisp.org>
32890         crc: Move AC_LIBOBJ invocations to module description.
32891         * m4/crc.m4: Remove file.
32892         * modules/crc (Files): Remove it.
32893         (configure.ac): Remove gl_CRC call.
32894         (Makefile.am): Augment lib_SOURCES.
32896 2011-05-23  Bruno Haible  <bruno@clisp.org>
32898         close-stream: Move AC_LIBOBJ invocations to module description.
32899         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
32900         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
32902 2011-05-23  Bruno Haible  <bruno@clisp.org>
32904         closeout: Move AC_LIBOBJ invocations to module description.
32905         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
32906         * modules/closeout (Makefile.am): Augment lib_SOURCES.
32908 2011-05-23  Bruno Haible  <bruno@clisp.org>
32910         closein: Move AC_LIBOBJ invocations to module description.
32911         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
32912         * modules/closein (Makefile.am): Augment lib_SOURCES.
32914 2011-05-23  Bruno Haible  <bruno@clisp.org>
32916         cloexec: Move AC_LIBOBJ invocations to module description.
32917         * m4/cloexec.m4: Remove file.
32918         * modules/cloexec (Files): Remove it.
32919         (configure.ac): Remove gl_CLOEXEC call.
32920         (Makefile.am): Augment lib_SOURCES.
32922 2011-05-23  Bruno Haible  <bruno@clisp.org>
32924         check-version: Move AC_LIBOBJ invocations to module description.
32925         * m4/check-version.m4: Remove file.
32926         * modules/check-version (Files): Remove it.
32927         (configure.ac): Remove gl_CHECK_VERSION call.
32928         (Makefile.am): Augment lib_SOURCES.
32930 2011-05-23  Bruno Haible  <bruno@clisp.org>
32932         chdir-safer: Move AC_LIBOBJ invocations to module description.
32933         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
32934         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
32936 2011-05-23  Bruno Haible  <bruno@clisp.org>
32938         canonicalize: Move AC_LIBOBJ invocations to module description.
32939         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
32940         AC_LIBOBJ invocation.
32941         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
32943 2011-05-23  Bruno Haible  <bruno@clisp.org>
32945         canon-host: Move AC_LIBOBJ invocations to module description.
32946         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
32947         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
32948         instead of gl_CANON_HOST.
32949         (Makefile.am): Augment lib_SOURCES.
32951 2011-05-23  Bruno Haible  <bruno@clisp.org>
32953         backupfile: Move AC_LIBOBJ invocations to module description.
32954         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
32955         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
32957 2011-05-23  Bruno Haible  <bruno@clisp.org>
32959         argmatch: Move AC_LIBOBJ invocations to module description.
32960         * m4/argmatch.m4: Remove file.
32961         * modules/argmatch (Files): Remove it.
32962         (configure.ac): Remove gl_ARGMATCH call.
32963         (Makefile.am): Augment lib_SOURCES.
32965 2011-05-23  Bruno Haible  <bruno@clisp.org>
32967         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
32968         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
32969         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
32971 2011-05-23  Bruno Haible  <bruno@clisp.org>
32973         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
32974         * m4/arcfour.m4: Remove file.
32975         * modules/crypto/arcfour (Files): Remove it.
32976         (configure.ac): Remove gl_ARCFOUR call.
32977         (Makefile.am): Augment lib_SOURCES.
32979 2011-05-22  Bruno Haible  <bruno@clisp.org>
32981         write: Move AC_LIBOBJ invocations to module description.
32982         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
32983         * modules/write (configure.ac): ... to here.
32985 2011-05-22  Bruno Haible  <bruno@clisp.org>
32987         wmemset: Move AC_LIBOBJ invocations to module description.
32988         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
32989         here...
32990         * modules/wmemset (configure.ac): ... to here.
32992 2011-05-22  Bruno Haible  <bruno@clisp.org>
32994         wmemmove: Move AC_LIBOBJ invocations to module description.
32995         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
32996         here...
32997         * modules/wmemmove (configure.ac): ... to here.
32999 2011-05-22  Bruno Haible  <bruno@clisp.org>
33001         wmemcpy: Move AC_LIBOBJ invocations to module description.
33002         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
33003         here...
33004         * modules/wmemcpy (configure.ac): ... to here.
33006 2011-05-22  Bruno Haible  <bruno@clisp.org>
33008         wmemcmp: Move AC_LIBOBJ invocations to module description.
33009         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
33010         here...
33011         * modules/wmemcmp (configure.ac): ... to here.
33013 2011-05-22  Bruno Haible  <bruno@clisp.org>
33015         wmemchr: Move AC_LIBOBJ invocations to module description.
33016         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
33017         here...
33018         * modules/wmemchr (configure.ac): ... to here.
33020 2011-05-22  Bruno Haible  <bruno@clisp.org>
33022         wcswidth: Move AC_LIBOBJ invocations to module description.
33023         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
33024         here...
33025         * modules/wcswidth (configure.ac): ... to here.
33027 2011-05-22  Bruno Haible  <bruno@clisp.org>
33029         wcwidth: Respect rules for use of AC_LIBOBJ.
33030         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
33031         invocation from here...
33032         * modules/wcwidth (configure.ac): ... to here.
33033         (Depends-on): Update conditions.
33035 2011-05-22  Bruno Haible  <bruno@clisp.org>
33037         wctype: Move AC_LIBOBJ invocations to module description.
33038         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
33039         invocation from here...
33040         * modules/wctype (configure.ac): ... to here.
33041         (Depends-on): Update conditions.
33043 2011-05-22  Bruno Haible  <bruno@clisp.org>
33045         wctrans: Move AC_LIBOBJ invocations to module description.
33046         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
33047         invocation from here...
33048         * modules/wctrans (configure.ac): ... to here.
33050 2011-05-22  Bruno Haible  <bruno@clisp.org>
33052         wctomb: Move AC_LIBOBJ invocations to module description.
33053         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
33054         invocations from here...
33055         * modules/wctomb (configure.ac): ... to here.
33057 2011-05-22  Bruno Haible  <bruno@clisp.org>
33059         wctob: Move AC_LIBOBJ invocations to module description.
33060         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
33061         gl_PREREQ_WCTOB invocations from here...
33062         * modules/wctob (configure.ac): ... to here.
33063         (Depends-on): Update conditions.
33065 2011-05-22  Bruno Haible  <bruno@clisp.org>
33067         wcsxfrm: Move AC_LIBOBJ invocations to module description.
33068         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
33069         here...
33070         * modules/wcsxfrm (configure.ac): ... to here.
33072 2011-05-22  Bruno Haible  <bruno@clisp.org>
33074         wcstok: Move AC_LIBOBJ invocations to module description.
33075         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
33076         * modules/wcstok (configure.ac): ... to here.
33078 2011-05-22  Bruno Haible  <bruno@clisp.org>
33080         wcsstr: Move AC_LIBOBJ invocations to module description.
33081         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
33082         * modules/wcsstr (configure.ac): ... to here.
33084 2011-05-22  Bruno Haible  <bruno@clisp.org>
33086         wcsspn: Move AC_LIBOBJ invocations to module description.
33087         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
33088         * modules/wcsspn (configure.ac): ... to here.
33090 2011-05-22  Bruno Haible  <bruno@clisp.org>
33092         wcsrtombs: Move AC_LIBOBJ invocations to module description.
33093         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
33094         gl_PREREQ_WCSRTOMBS invocations from here...
33095         * modules/wcsrtombs (configure.ac): ... to here.
33097 2011-05-22  Bruno Haible  <bruno@clisp.org>
33099         wcsrchr: Move AC_LIBOBJ invocations to module description.
33100         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
33101         here...
33102         * modules/wcsrchr (configure.ac): ... to here.
33104 2011-05-22  Bruno Haible  <bruno@clisp.org>
33106         wcspbrk: Move AC_LIBOBJ invocations to module description.
33107         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
33108         here...
33109         * modules/wcspbrk (configure.ac): ... to here.
33111 2011-05-22  Bruno Haible  <bruno@clisp.org>
33113         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
33114         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
33115         gl_PREREQ_WCSNRTOMBS invocations from here...
33116         * modules/wcsnrtombs (configure.ac): ... to here.
33118 2011-05-22  Bruno Haible  <bruno@clisp.org>
33120         wcsnlen: Move AC_LIBOBJ invocations to module description.
33121         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
33122         here...
33123         * modules/wcsnlen (configure.ac): ... to here.
33125 2011-05-22  Bruno Haible  <bruno@clisp.org>
33127         wcsncpy: Move AC_LIBOBJ invocations to module description.
33128         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
33129         here...
33130         * modules/wcsncpy (configure.ac): ... to here.
33132 2011-05-22  Bruno Haible  <bruno@clisp.org>
33134         wcsncmp: Move AC_LIBOBJ invocations to module description.
33135         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
33136         here...
33137         * modules/wcsncmp (configure.ac): ... to here.
33139 2011-05-22  Bruno Haible  <bruno@clisp.org>
33141         wcsncat: Move AC_LIBOBJ invocations to module description.
33142         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
33143         here...
33144         * modules/wcsncat (configure.ac): ... to here.
33146 2011-05-22  Bruno Haible  <bruno@clisp.org>
33148         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
33149         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
33150         from here...
33151         * modules/wcsncasecmp (configure.ac): ... to here.
33153 2011-05-22  Bruno Haible  <bruno@clisp.org>
33155         wcslen: Move AC_LIBOBJ invocations to module description.
33156         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
33157         * modules/wcslen (configure.ac): ... to here.
33159 2011-05-22  Bruno Haible  <bruno@clisp.org>
33161         wcsdup: Move AC_LIBOBJ invocations to module description.
33162         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
33163         * modules/wcsdup (configure.ac): ... to here.
33165 2011-05-22  Bruno Haible  <bruno@clisp.org>
33167         wcscspn: Move AC_LIBOBJ invocations to module description.
33168         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
33169         here...
33170         * modules/wcscspn (configure.ac): ... to here.
33172 2011-05-22  Bruno Haible  <bruno@clisp.org>
33174         wcscpy: Move AC_LIBOBJ invocations to module description.
33175         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
33176         * modules/wcscpy (configure.ac): ... to here.
33178 2011-05-22  Bruno Haible  <bruno@clisp.org>
33180         wcscoll: Move AC_LIBOBJ invocations to module description.
33181         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
33182         here...
33183         * modules/wcscoll (configure.ac): ... to here.
33185 2011-05-22  Bruno Haible  <bruno@clisp.org>
33187         wcscmp: Move AC_LIBOBJ invocations to module description.
33188         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
33189         * modules/wcscmp (configure.ac): ... to here.
33191 2011-05-22  Bruno Haible  <bruno@clisp.org>
33193         wcschr: Move AC_LIBOBJ invocations to module description.
33194         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
33195         * modules/wcschr (configure.ac): ... to here.
33197 2011-05-22  Bruno Haible  <bruno@clisp.org>
33199         wcscat: Move AC_LIBOBJ invocations to module description.
33200         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
33201         * modules/wcscat (configure.ac): ... to here.
33203 2011-05-22  Bruno Haible  <bruno@clisp.org>
33205         wcscasecmp: Move AC_LIBOBJ invocations to module description.
33206         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
33207         here...
33208         * modules/wcscasecmp (configure.ac): ... to here.
33210 2011-05-22  Bruno Haible  <bruno@clisp.org>
33212         wcrtomb: Move AC_LIBOBJ invocations to module description.
33213         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
33214         invocations from here...
33215         * modules/wcrtomb (configure.ac): ... to here.
33217 2011-05-22  Bruno Haible  <bruno@clisp.org>
33219         wcpncpy: Move AC_LIBOBJ invocations to module description.
33220         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
33221         here...
33222         * modules/wcpncpy (configure.ac): ... to here.
33224 2011-05-22  Bruno Haible  <bruno@clisp.org>
33226         wcpcpy: Move AC_LIBOBJ invocations to module description.
33227         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
33228         * modules/wcpcpy (configure.ac): ... to here.
33230 2011-05-22  Bruno Haible  <bruno@clisp.org>
33232         waitpid: Move AC_LIBOBJ invocations to module description.
33233         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
33234         invocation from here...
33235         * modules/waitpid (configure.ac): ... to here.
33237 2011-05-22  Bruno Haible  <bruno@clisp.org>
33239         utimensat: Move AC_LIBOBJ invocations to module description.
33240         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
33241         here...
33242         * modules/utimensat (configure.ac): ... to here.
33244 2011-05-22  Bruno Haible  <bruno@clisp.org>
33246         usleep: Move AC_LIBOBJ invocations to module description.
33247         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
33248         here...
33249         * modules/usleep (configure.ac): ... to here.
33251 2011-05-22  Bruno Haible  <bruno@clisp.org>
33253         unlockpt: Move AC_LIBOBJ invocations to module description.
33254         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
33255         gl_PREREQ_UNLOCKPT invocations from here...
33256         * modules/unlockpt (configure.ac): ... to here.
33258 2011-05-22  Bruno Haible  <bruno@clisp.org>
33260         unlink: Respect rules for use of AC_LIBOBJ.
33261         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
33262         * modules/unlink (configure.ac): ... to here.
33264 2011-05-22  Bruno Haible  <bruno@clisp.org>
33266         uname: Move AC_LIBOBJ invocations to module description.
33267         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
33268         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
33269         here...
33270         * modules/uname (configure.ac): ... to here.
33272 2011-05-22  Bruno Haible  <bruno@clisp.org>
33274         ttyname_r: Move AC_LIBOBJ invocations to module description.
33275         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
33276         gl_PREREQ_TTYNAME_R invocations from here...
33277         * modules/ttyname_r (configure.ac): ... to here.
33279 2011-05-22  Bruno Haible  <bruno@clisp.org>
33281         tsearch: Move AC_LIBOBJ invocations to module description.
33282         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
33283         invocations from here...
33284         * modules/tsearch (configure.ac): ... to here.
33286 2011-05-22  Bruno Haible  <bruno@clisp.org>
33288         towctrans: Move AC_LIBOBJ invocations to module description.
33289         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
33290         AC_LIBOBJ invocation from here...
33291         * modules/towctrans (configure.ac): ... to here.
33293 2011-05-22  Bruno Haible  <bruno@clisp.org>
33295         tmpfile: Move AC_LIBOBJ invocations to module description.
33296         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
33297         invocations from here...
33298         * modules/tmpfile (configure.ac): ... to here.
33300 2011-05-22  Bruno Haible  <bruno@clisp.org>
33302         times: Move AC_LIBOBJ invocations to module description.
33303         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
33304         * modules/times (configure.ac): ... to here.
33306 2011-05-22  Bruno Haible  <bruno@clisp.org>
33308         time_r: Move AC_LIBOBJ invocations to module description.
33309         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
33310         invocations from here...
33311         * modules/time_r (configure.ac): ... to here.
33313 2011-05-22  Bruno Haible  <bruno@clisp.org>
33315         timegm: Move AC_LIBOBJ invocations to module description.
33316         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
33317         invocations from here...
33318         * modules/timegm (configure.ac): ... to here.
33320 2011-05-22  Bruno Haible  <bruno@clisp.org>
33322         tcgetsid: Move AC_LIBOBJ invocations to module description.
33323         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
33324         and gl_PREREQ_TCGETSID invocations from here...
33325         * modules/tcgetsid (configure.ac): ... to here.
33326         (Depends-on): Update conditions.
33328 2011-05-22  Bruno Haible  <bruno@clisp.org>
33330         symlinkat: Move AC_LIBOBJ invocations to module description.
33331         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
33332         here...
33333         * modules/symlinkat (configure.ac): ... to here.
33335 2011-05-22  Bruno Haible  <bruno@clisp.org>
33337         symlink: Move AC_LIBOBJ invocations to module description.
33338         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
33339         here...
33340         * modules/symlink (configure.ac): ... to here.
33342 2011-05-22  Bruno Haible  <bruno@clisp.org>
33344         strverscmp: Move AC_LIBOBJ invocations to module description.
33345         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
33346         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
33347         from here...
33348         * modules/strverscmp (configure.ac): ... to here.
33350 2011-05-22  Bruno Haible  <bruno@clisp.org>
33352         strtok_r: Move AC_LIBOBJ invocations to module description.
33353         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
33354         and gl_PREREQ_STRTOK_R invocations from here...
33355         * modules/strtok_r (configure.ac): ... to here.
33356         (Depends-on): Update conditions.
33358 2011-05-22  Bruno Haible  <bruno@clisp.org>
33360         strtoumax: Move AC_LIBOBJ invocations to module description.
33361         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
33362         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
33363         from here...
33364         * modules/strtoumax (configure.ac): ... to here.
33366 2011-05-22  Bruno Haible  <bruno@clisp.org>
33368         strtoimax: Move AC_LIBOBJ invocations to module description.
33369         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
33370         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
33371         from here...
33372         * modules/strtoimax (configure.ac): ... to here.
33374 2011-05-22  Bruno Haible  <bruno@clisp.org>
33376         strtoull: Move AC_LIBOBJ invocations to module description.
33377         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
33378         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
33379         from here...
33380         * modules/strtoull (configure.ac): ... to here.
33382 2011-05-22  Bruno Haible  <bruno@clisp.org>
33384         strtoll: Move AC_LIBOBJ invocations to module description.
33385         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
33386         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
33387         here...
33388         * modules/strtoll (configure.ac): ... to here.
33390 2011-05-22  Bruno Haible  <bruno@clisp.org>
33392         strtoul: Move AC_LIBOBJ invocations to module description.
33393         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
33394         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
33395         * modules/strtoul (configure.ac): ... to here.
33397 2011-05-22  Bruno Haible  <bruno@clisp.org>
33399         strtol: Move AC_LIBOBJ invocations to module description.
33400         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
33401         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
33402         * modules/strtol (configure.ac): ... to here.
33404 2011-05-22  Bruno Haible  <bruno@clisp.org>
33406         strtod: Move AC_LIBOBJ invocations to module description.
33407         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
33408         invocations from here...
33409         * modules/strtod (configure.ac): ... to here.
33411 2011-05-22  Bruno Haible  <bruno@clisp.org>
33413         strstr*: Move AC_LIBOBJ invocations to module description.
33414         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
33415         invocations from here...
33416         * modules/strstr-simple (configure.ac): ... to here.
33417         * modules/strstr (configure.ac): ... and here.
33419 2011-05-22  Bruno Haible  <bruno@clisp.org>
33421         strsignal: Move AC_LIBOBJ invocations to module description.
33422         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
33423         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
33424         * modules/strsignal (configure.ac): ... to here.
33425         (Depends-on): Update conditions.
33427 2011-05-22  Bruno Haible  <bruno@clisp.org>
33429         strsep: Move AC_LIBOBJ invocations to module description.
33430         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
33431         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
33432         here...
33433         * modules/strsep (configure.ac): ... to here.
33435 2011-05-22  Bruno Haible  <bruno@clisp.org>
33437         strptime: Move AC_LIBOBJ invocations to module description.
33438         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
33439         gl_PREREQ_STRPTIME invocations from here...
33440         * modules/strptime (configure.ac): ... to here.
33442 2011-05-22  Bruno Haible  <bruno@clisp.org>
33444         strpbrk: Move AC_LIBOBJ invocations to module description.
33445         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
33446         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
33447         here...
33448         * modules/strpbrk (configure.ac): ... to here.
33450 2011-05-22  Bruno Haible  <bruno@clisp.org>
33452         strnlen: Move AC_LIBOBJ invocations to module description.
33453         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
33454         invocations from here...
33455         * modules/strnlen (configure.ac): ... to here.
33457 2011-05-22  Bruno Haible  <bruno@clisp.org>
33459         strndup: Move AC_LIBOBJ invocations to module description.
33460         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
33461         invocations from here...
33462         * modules/strndup (configure.ac): ... to here.
33463         (Depends-on): Update conditions.
33465 2011-05-22  Bruno Haible  <bruno@clisp.org>
33467         strncat: Move AC_LIBOBJ invocations to module description.
33468         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
33469         invocations from here...
33470         * modules/strncat (configure.ac): ... to here.
33472 2011-05-22  Bruno Haible  <bruno@clisp.org>
33474         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
33475         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
33476         invocations from here...
33477         * modules/strdup (configure.ac): ... to here.
33478         * modules/strdup-posix (configure.ac): ... and here.
33480 2011-05-22  Bruno Haible  <bruno@clisp.org>
33482         strcspn: Move AC_LIBOBJ invocations to module description.
33483         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
33484         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
33485         here...
33486         * modules/strcspn (configure.ac): ... to here.
33488 2011-05-22  Bruno Haible  <bruno@clisp.org>
33490         strchrnul: Move AC_LIBOBJ invocations to module description.
33491         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
33492         gl_PREREQ_STRCHRNUL invocations from here...
33493         * modules/strchrnul (configure.ac): ... to here.
33495 2011-05-22  Bruno Haible  <bruno@clisp.org>
33497         strcasestr*: Move AC_LIBOBJ invocations to module description.
33498         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
33499         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
33500         * modules/strcasestr-simple (configure.ac): ... to here.
33501         * modules/strcasestr (configure.ac): ... and here.
33503 2011-05-22  Bruno Haible  <bruno@clisp.org>
33505         strcase: Move AC_LIBOBJ invocations to module description.
33506         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
33507         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
33508         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
33509         gl_PREREQ_STRNCASECMP invocations from here...
33510         * modules/strcase (configure.ac): ... to here.
33512 2011-05-22  Bruno Haible  <bruno@clisp.org>
33514         stpncpy: Move AC_LIBOBJ invocations to module description.
33515         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
33516         here...
33517         * modules/stpncpy (configure.ac): ... to here.
33519 2011-05-22  Bruno Haible  <bruno@clisp.org>
33521         stpcpy: Move AC_LIBOBJ invocations to module description.
33522         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
33523         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
33524         here...
33525         * modules/stpcpy (configure.ac): ... to here.
33527 2011-05-21  Bruno Haible  <bruno@clisp.org>
33529         stat: Move AC_LIBOBJ invocations to module description.
33530         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
33531         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
33532         here...
33533         * modules/stat (configure.ac): ... to here.
33535 2011-05-21  Bruno Haible  <bruno@clisp.org>
33537         sleep: Move AC_LIBOBJ invocations to module description.
33538         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
33539         * modules/sleep (configure.ac): ... to here.
33541 2011-05-21  Bruno Haible  <bruno@clisp.org>
33543         signbit: Move AC_LIBOBJ invocations to module description.
33544         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
33545         * modules/signbit (configure.ac): ... to here.
33547 2011-05-21  Bruno Haible  <bruno@clisp.org>
33549         sigprocmask: Move AC_LIBOBJ invocations to module description.
33550         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
33551         gl_PREREQ_SIGPROMASK invocations from here...
33552         * modules/sigprocmask (configure.ac): ... to here.
33554 2011-05-21  Bruno Haible  <bruno@clisp.org>
33556         sigaction: Move AC_LIBOBJ invocations to module description.
33557         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
33558         gl_PREREQ_SIGACTION invocations from here...
33559         * modules/sigaction (configure.ac): ... to here.
33561 2011-05-21  Bruno Haible  <bruno@clisp.org>
33563         sig2str: Move AC_LIBOBJ invocations to module description.
33564         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
33565         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
33566         here...
33567         * modules/sig2str (configure.ac): ... to here.
33569 2011-05-21  Bruno Haible  <bruno@clisp.org>
33571         setlocale: Move AC_LIBOBJ invocations to module description.
33572         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
33573         gl_PREREQ_SETLOCALE invocations from here...
33574         * modules/setlocale (configure.ac): ... to here.
33576 2011-05-21  Bruno Haible  <bruno@clisp.org>
33578         unsetenv: Move AC_LIBOBJ invocations to module description.
33579         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
33580         and gl_PREREQ_UNSETENV invocations from here...
33581         * modules/unsetenv (configure.ac): ... to here.
33582         (Depends-on): Update.
33584 2011-05-21  Bruno Haible  <bruno@clisp.org>
33586         setenv: Move AC_LIBOBJ invocations to module description.
33587         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
33588         here...
33589         * modules/setenv (configure.ac): ... to here.
33591 2011-05-21  Bruno Haible  <bruno@clisp.org>
33593         selinux-h: Move AC_LIBOBJ invocations to module description.
33594         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
33595         AC_LIBOBJ invocation from here...
33596         * modules/selinux-h (configure.ac): ... to here.
33598 2011-05-21  Bruno Haible  <bruno@clisp.org>
33600         select: Respect rules for use of AC_LIBOBJ.
33601         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
33602         here...
33603         * modules/select (configure.ac): ... to here.
33605 2011-05-21  Bruno Haible  <bruno@clisp.org>
33607         scandir: Move AC_LIBOBJ invocations to module description.
33608         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
33609         invocations from here...
33610         * modules/scandir (configure.ac): ... to here.
33612 2011-05-21  Bruno Haible  <bruno@clisp.org>
33614         rpmatch: Move AC_LIBOBJ invocations to module description.
33615         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
33616         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
33617         here...
33618         * modules/rpmatch (configure.ac): ... to here.
33620 2011-05-21  Bruno Haible  <bruno@clisp.org>
33622         rmdir: Respect rules for use of AC_LIBOBJ.
33623         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
33624         * modules/rmdir (configure.ac): ... to here.
33626 2011-05-21  Bruno Haible  <bruno@clisp.org>
33628         renameat: Move AC_LIBOBJ invocations to module description.
33629         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
33630         here...
33631         * modules/renameat (configure.ac): ... to here.
33633 2011-05-21  Bruno Haible  <bruno@clisp.org>
33635         rename: Respect rules for use of AC_LIBOBJ.
33636         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
33637         here...
33638         * modules/rename (configure.ac): ... to here.
33640 2011-05-21  Bruno Haible  <bruno@clisp.org>
33642         remove: Move AC_LIBOBJ invocations to module description.
33643         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
33644         here...
33645         * modules/remove (configure.ac): ... to here.
33647 2011-05-21  Bruno Haible  <bruno@clisp.org>
33649         relocatable-lib: Move AC_LIBOBJ invocations to module description.
33650         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
33651         macro.
33652         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
33653         * modules/relocatable-lib (configure.ac): ... to here.
33654         * modules/relocatable-prog-wrapper (configure.ac): Invoke
33655         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
33657 2011-05-21  Bruno Haible  <bruno@clisp.org>
33659         relocatable-prog: Move AC_LIBOBJ invocations to module description.
33660         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
33661         here...
33662         * modules/relocatable-prog (configure.ac): ... to here.
33664 2011-05-21  Bruno Haible  <bruno@clisp.org>
33666         regex: Move AC_LIBOBJ invocations to module description.
33667         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
33668         invocations from here...
33669         * modules/regex (configure.ac): ... to here.
33671 2011-05-21  Bruno Haible  <bruno@clisp.org>
33673         realloc-*: Move AC_LIBOBJ invocations to module description.
33674         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
33675         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
33676         AC_LIBOBJ invocations from here...
33677         * modules/realloc-gnu (configure.ac): ... to here.
33678         * modules/realloc-posix (configure.ac): ... and here.
33680 2011-05-21  Bruno Haible  <bruno@clisp.org>
33682         readutmp: Move AC_LIBOBJ invocations to module description.
33683         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
33684         * modules/readutmp (configure.ac): ... to here.
33686 2011-05-21  Bruno Haible  <bruno@clisp.org>
33688         readlinkat: Move AC_LIBOBJ invocations to module description.
33689         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
33690         here...
33691         * modules/readlinkat (configure.ac): ... to here.
33693 2011-05-21  Bruno Haible  <bruno@clisp.org>
33695         readlink: Move AC_LIBOBJ invocations to module description.
33696         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
33697         gl_PREREQ_READLINK invocations from here...
33698         * modules/readlink (configure.ac): ... to here.
33700 2011-05-21  Bruno Haible  <bruno@clisp.org>
33702         readline: Move AC_LIBOBJ invocations to module description.
33703         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
33704         gl_PREREQ_READLINE invocations from here...
33705         * modules/readline (configure.ac): ... to here.
33707 2011-05-21  Bruno Haible  <bruno@clisp.org>
33709         read: Move AC_LIBOBJ invocations to module description.
33710         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
33711         * modules/read (configure.ac): ... to here.
33713 2011-05-21  Bruno Haible  <bruno@clisp.org>
33715         rawmemchr: Move AC_LIBOBJ invocations to module description.
33716         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
33717         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
33718         from here...
33719         * modules/rawmemchr (configure.ac): ... to here.
33721 2011-05-21  Bruno Haible  <bruno@clisp.org>
33723         random_r: Move AC_LIBOBJ invocations to module description.
33724         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
33725         gl_PREREQ_RANDOM_R invocations from here...
33726         * modules/random_r (configure.ac): ... to here.
33728 2011-05-21  Bruno Haible  <bruno@clisp.org>
33730         pwrite: Move AC_LIBOBJ invocations to module description.
33731         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
33732         * modules/pwrite (configure.ac): ... to here.
33734 2011-05-21  Bruno Haible  <bruno@clisp.org>
33736         putenv: Move AC_LIBOBJ invocations to module description.
33737         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
33738         * modules/putenv (configure.ac): ... to here.
33740 2011-05-21  Bruno Haible  <bruno@clisp.org>
33742         login_tty: Move AC_LIBOBJ invocations to module description.
33743         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
33744         * modules/login_tty (configure.ac): ... to here.
33746 2011-05-21  Bruno Haible  <bruno@clisp.org>
33748         openpty: Move AC_LIBOBJ invocations to module description.
33749         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
33750         * modules/openpty (configure.ac): ... to here.
33752 2011-05-21  Bruno Haible  <bruno@clisp.org>
33754         forkpty: Move AC_LIBOBJ invocations to module description.
33755         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
33756         * modules/forkpty (configure.ac): ... to here.
33758 2011-05-21  Bruno Haible  <bruno@clisp.org>
33760         ptsname: Move AC_LIBOBJ invocations to module description.
33761         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
33762         invocations from here...
33763         * modules/ptsname (configure.ac): ... to here.
33765 2011-05-21  Bruno Haible  <bruno@clisp.org>
33767         pread: Move AC_LIBOBJ invocations to module description.
33768         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
33769         * modules/pread (configure.ac): ... to here.
33771 2011-05-21  Bruno Haible  <bruno@clisp.org>
33773         posix_spawn*: Move AC_LIBOBJ invocations to module description.
33774         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
33775         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
33776         * modules/posix_spawn (configure.ac): ... to here.
33777         * modules/posix_spawnp (configure.ac): ... and here.
33779 2011-05-21  Bruno Haible  <bruno@clisp.org>
33781         popen: Move AC_LIBOBJ invocations to module description.
33782         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
33783         invocations from here...
33784         * modules/popen (configure.ac): ... to here.
33786 2011-05-21  Bruno Haible  <bruno@clisp.org>
33788         poll: Move AC_LIBOBJ invocations to module description.
33789         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
33790         invocations from here...
33791         * modules/poll (configure.ac): ... to here.
33793 2011-05-21  Bruno Haible  <bruno@clisp.org>
33795         pipe-posix: Move AC_LIBOBJ invocations to module description.
33796         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
33797         * modules/pipe-posix (configure.ac): ... to here.
33799 2011-05-21  Bruno Haible  <bruno@clisp.org>
33801         openat: Respect rules for use of AC_LIBOBJ.
33802         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
33803         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
33804         * modules/openat (configure.ac): ... to here.
33806 2011-05-21  Bruno Haible  <bruno@clisp.org>
33808         obstack-printf*: Move AC_LIBOBJ invocations to module description.
33809         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
33810         invocation from here...
33811         * modules/obstack-printf (configure.ac): ... to here.
33812         * modules/obstack-printf-posix (configure.ac): ... and here.
33814 2011-05-21  Bruno Haible  <bruno@clisp.org>
33816         nl_langinfo: Move AC_LIBOBJ invocations to module description.
33817         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
33818         from here...
33819         * modules/nl_langinfo (configure.ac): ... to here.
33821 2011-05-21  Bruno Haible  <bruno@clisp.org>
33823         nanosleep: Move AC_LIBOBJ invocations to module description.
33824         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
33825         gl_PREREQ_NANOSLEEP invocations from here...
33826         * modules/nanosleep (configure.ac): ... to here.
33828 2011-05-21  Bruno Haible  <bruno@clisp.org>
33830         mountlist: Move AC_LIBOBJ invocations to module description.
33831         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
33832         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
33833         * modules/mountlist (configure.ac): ... to here.
33835 2011-05-21  Bruno Haible  <bruno@clisp.org>
33837         mktime: Respect rules for use of AC_LIBOBJ.
33838         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
33839         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
33840         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
33841         (gl_FUNC_MKTIME_INTERNAL): ... and here...
33842         * modules/mktime (configure.ac): ... to here.
33843         * modules/mktime-internal (configure.ac): ... and here.
33844         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
33846 2011-05-21  Bruno Haible  <bruno@clisp.org>
33848         mkstemps: Move AC_LIBOBJ invocations to module description.
33849         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
33850         here...
33851         * modules/mkstemps (configure.ac): ... to here.
33853 2011-05-21  Bruno Haible  <bruno@clisp.org>
33855         mkstemp: Move AC_LIBOBJ invocations to module description.
33856         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
33857         gl_PREREQ_MKSTEMP invocations from here...
33858         * modules/mkstemp (configure.ac): ... to here.
33860 2011-05-21  Bruno Haible  <bruno@clisp.org>
33862         mkostemps: Move AC_LIBOBJ invocations to module description.
33863         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
33864         here...
33865         * modules/mkostemps (configure.ac): ... to here.
33867 2011-05-21  Bruno Haible  <bruno@clisp.org>
33869         mkostemp: Move AC_LIBOBJ invocations to module description.
33870         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
33871         gl_PREREQ_MKOSTEMP invocations from here...
33872         * modules/mkostemp (configure.ac): ... to here.
33874 2011-05-21  Bruno Haible  <bruno@clisp.org>
33876         mknod: Move AC_LIBOBJ invocations to module description.
33877         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
33878         * modules/mknod (configure.ac): ... to here.
33880 2011-05-21  Bruno Haible  <bruno@clisp.org>
33882         mkfifoat: Move AC_LIBOBJ invocations to module description.
33883         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
33884         here...
33885         * modules/mkfifoat (configure.ac): ... to here.
33887 2011-05-21  Bruno Haible  <bruno@clisp.org>
33889         mkfifo: Respect rules for use of AC_LIBOBJ.
33890         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
33891         here...
33892         * modules/mkfifo (configure.ac): ... to here.
33894 2011-05-21  Bruno Haible  <bruno@clisp.org>
33896         mkdtemp: Move AC_LIBOBJ invocations to module description.
33897         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
33898         invocations from here...
33899         * modules/mkdtemp (configure.ac): ... to here.
33901 2011-05-21  Bruno Haible  <bruno@clisp.org>
33903         mkdir: Move AC_LIBOBJ invocations to module description.
33904         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
33905         * modules/mkdir (configure.ac): ... to here.
33907 2011-05-21  Bruno Haible  <bruno@clisp.org>
33909         memset: Move AC_LIBOBJ invocations to module description.
33910         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
33911         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
33912         here...
33913         * modules/memset (configure.ac): ... to here.
33915 2011-05-21  Bruno Haible  <bruno@clisp.org>
33917         memrchr: Move AC_LIBOBJ invocations to module description.
33918         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
33919         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
33920         here...
33921         * modules/memrchr (configure.ac): ... to here.
33923 2011-05-21  Bruno Haible  <bruno@clisp.org>
33925         mempcpy: Move AC_LIBOBJ invocations to module description.
33926         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
33927         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
33928         here...
33929         * modules/mempcpy (configure.ac): ... to here.
33931 2011-05-21  Bruno Haible  <bruno@clisp.org>
33933         memmove: Move AC_LIBOBJ invocations to module description.
33934         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
33935         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
33936         here...
33937         * modules/memmove (configure.ac): ... to here.
33939 2011-05-21  Bruno Haible  <bruno@clisp.org>
33941         memmem*: Move AC_LIBOBJ invocations to module description.
33942         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
33943         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
33944         here...
33945         (gl_FUNC_MEMMEM): ... and here...
33946         * modules/memmem-simple (configure.ac): ... to here.
33947         * modules/memmem (configure.ac): ... and here.
33949 2011-05-21  Bruno Haible  <bruno@clisp.org>
33951         memcpy: Move AC_LIBOBJ invocations to module description.
33952         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
33953         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
33954         here...
33955         * modules/memcpy (configure.ac): ... to here.
33957 2011-05-21  Bruno Haible  <bruno@clisp.org>
33959         memcmp: Simplify autoconf macro.
33960         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
33961         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
33962         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
33964 2011-05-21  Bruno Haible  <bruno@clisp.org>
33966         memcmp: Move AC_LIBOBJ invocations to module description.
33967         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
33968         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
33969         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
33970         * modules/memcmp (configure.ac): ... to here.
33971         (Depends-on): Update conditions.
33973 2011-05-21  Bruno Haible  <bruno@clisp.org>
33975         memchr: Respect rules for use of AC_LIBOBJ.
33976         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
33977         invocations from here...
33978         * modules/memchr (configure.ac): ... to here.
33980 2011-05-21  Bruno Haible  <bruno@clisp.org>
33982         mbtowc: Move AC_LIBOBJ invocations to module description.
33983         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
33984         invocations from here...
33985         * modules/mbtowc (configure.ac): ... to here.
33987 2011-05-21  Bruno Haible  <bruno@clisp.org>
33989         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
33990         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
33991         gl_PREREQ_MBSRTOWCS invocations from here...
33992         * modules/mbsrtowcs (configure.ac): ... to here.
33994 2011-05-21  Bruno Haible  <bruno@clisp.org>
33996         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
33997         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
33998         gl_PREREQ_MBSNRTOWCS invocations from here...
33999         * modules/mbsnrtowcs (configure.ac): ... to here.
34001 2011-05-21  Bruno Haible  <bruno@clisp.org>
34003         mbsinit: Move AC_LIBOBJ invocations to module description.
34004         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
34005         invocations from here...
34006         * modules/mbsinit (configure.ac): ... to here.
34008 2011-05-21  Bruno Haible  <bruno@clisp.org>
34010         mbrlen: Move AC_LIBOBJ invocations to module description.
34011         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
34012         invocations from here...
34013         * modules/mbrlen (configure.ac): ... to here.
34015 2011-05-21  Bruno Haible  <bruno@clisp.org>
34017         mbrtowc: Respect rules for use of AC_LIBOBJ.
34018         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
34019         invocations from here...
34020         * modules/mbrtowc (configure.ac): ... to here.
34022 2011-05-21  Bruno Haible  <bruno@clisp.org>
34024         malloc-*: Move AC_LIBOBJ invocations to module description.
34025         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
34026         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
34027         AC_LIBOBJ invocations from here...
34028         * modules/malloc-gnu (configure.ac): ... to here.
34029         * modules/malloc-posix (configure.ac): ... and here.
34031 2011-05-21  Bruno Haible  <bruno@clisp.org>
34033         lstat, openat: Respect rules for use of AC_LIBOBJ.
34034         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
34035         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
34036         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
34037         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
34038         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
34039         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
34040         here.
34041         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
34043 2011-05-21  Bruno Haible  <bruno@clisp.org>
34045         lseek: Move AC_LIBOBJ invocations to module description.
34046         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
34047         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
34048         * modules/lseek (configure.ac): ... to here.
34050 2011-05-21  Bruno Haible  <bruno@clisp.org>
34052         linkat: Move AC_LIBOBJ invocations to module description.
34053         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
34054         here...
34055         * modules/linkat (configure.ac): ... to here.
34057 2011-05-21  Bruno Haible  <bruno@clisp.org>
34059         link: Respect rules for use of AC_LIBOBJ.
34060         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
34061         * modules/link (configure.ac): ... to here.
34063 2011-05-21  Bruno Haible  <bruno@clisp.org>
34065         lchown: Move AC_LIBOBJ invocations to module description.
34066         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
34067         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
34068         * modules/lchown (configure.ac): ... to here.
34070 2011-05-21  Bruno Haible  <bruno@clisp.org>
34072         iswctype: Move AC_LIBOBJ invocations to module description.
34073         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
34074         here...
34075         * modules/iswctype (configure.ac): ... to here.
34077 2011-05-21  Bruno Haible  <bruno@clisp.org>
34079         iswblank: Move AC_LIBOBJ invocations to module description.
34080         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
34081         here...
34082         * modules/iswblank (configure.ac): ... to here.
34084 2011-05-21  Bruno Haible  <bruno@clisp.org>
34086         atanl: Move AC_LIBOBJ invocations to module description.
34087         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
34088         * modules/atanl (configure.ac): ... to here.
34090 2011-05-21  Bruno Haible  <bruno@clisp.org>
34092         acosl: Move AC_LIBOBJ invocations to module description.
34093         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
34094         * modules/acosl (configure.ac): ... to here.
34096 2011-05-21  Bruno Haible  <bruno@clisp.org>
34098         asinl: Respect rules for use of AC_LIBOBJ.
34099         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
34100         * modules/asinl (configure.ac): ... to here.
34102 2011-05-21  Bruno Haible  <bruno@clisp.org>
34104         tanl: Move AC_LIBOBJ invocations to module description.
34105         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
34106         * modules/tanl (configure.ac): ... to here.
34108 2011-05-21  Bruno Haible  <bruno@clisp.org>
34110         cosl: Move AC_LIBOBJ invocations to module description.
34111         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
34112         * modules/cosl (configure.ac): ... to here.
34114 2011-05-21  Bruno Haible  <bruno@clisp.org>
34116         sinl: Move AC_LIBOBJ invocations to module description.
34117         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
34118         * modules/sinl (configure.ac): ... to here.
34120 2011-05-21  Bruno Haible  <bruno@clisp.org>
34122         logl: Move AC_LIBOBJ invocations to module description.
34123         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
34124         * modules/logl (configure.ac): ... to here.
34126 2011-05-21  Bruno Haible  <bruno@clisp.org>
34128         expl: Move AC_LIBOBJ invocations to module description.
34129         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
34130         * modules/expl (configure.ac): ... to here.
34132 2011-05-21  Bruno Haible  <bruno@clisp.org>
34134         roundl: Move AC_LIBOBJ invocations to module description.
34135         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
34136         * modules/roundl (configure.ac): ... to here.
34138 2011-05-21  Bruno Haible  <bruno@clisp.org>
34140         round: Move AC_LIBOBJ invocations to module description.
34141         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
34142         * modules/round (configure.ac): ... to here.
34144 2011-05-21  Bruno Haible  <bruno@clisp.org>
34146         roundf: Move AC_LIBOBJ invocations to module description.
34147         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
34148         * modules/roundf (configure.ac): ... to here.
34150 2011-05-21  Bruno Haible  <bruno@clisp.org>
34152         truncl: Move AC_LIBOBJ invocations to module description.
34153         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
34154         * modules/truncl (configure.ac): ... to here.
34156 2011-05-21  Bruno Haible  <bruno@clisp.org>
34158         trunc: Move AC_LIBOBJ invocations to module description.
34159         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
34160         * modules/trunc (configure.ac): ... to here.
34162 2011-05-21  Bruno Haible  <bruno@clisp.org>
34164         truncf: Move AC_LIBOBJ invocations to module description.
34165         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
34166         * modules/truncf (configure.ac): ... to here.
34168 2011-05-21  Bruno Haible  <bruno@clisp.org>
34170         ceill: Move AC_LIBOBJ invocations to module description.
34171         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
34172         * modules/ceill (configure.ac): ... to here.
34174 2011-05-21  Bruno Haible  <bruno@clisp.org>
34176         ceil: Move AC_LIBOBJ invocations to module description.
34177         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
34178         * modules/ceil (configure.ac): ... to here.
34180 2011-05-21  Bruno Haible  <bruno@clisp.org>
34182         ceilf: Move AC_LIBOBJ invocations to module description.
34183         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
34184         * modules/ceilf (configure.ac): ... to here.
34186 2011-05-21  Bruno Haible  <bruno@clisp.org>
34188         floorl: Respect rules for use of AC_LIBOBJ.
34189         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
34190         * modules/floorl (configure.ac): ... to here.
34192 2011-05-21  Bruno Haible  <bruno@clisp.org>
34194         floor: Respect rules for use of AC_LIBOBJ.
34195         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
34196         * modules/floor (configure.ac): ... to here.
34198 2011-05-21  Bruno Haible  <bruno@clisp.org>
34200         floorf: Move AC_LIBOBJ invocations to module description.
34201         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
34202         * modules/floorf (configure.ac): ... to here.
34204 2011-05-20  Bruno Haible  <bruno@clisp.org>
34206         sqrtl: Respect rules for use of AC_LIBOBJ.
34207         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
34208         * modules/sqrtl (configure.ac): ... to here.
34210 2011-05-20  Bruno Haible  <bruno@clisp.org>
34212         ldexpl: Respect rules for use of AC_LIBOBJ.
34213         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
34214         * modules/ldexpl (configure.ac): ... to here.
34216 2011-05-20  Bruno Haible  <bruno@clisp.org>
34218         frexpl*: Respect rules for use of AC_LIBOBJ.
34219         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
34220         invocation from here...
34221         * modules/frexpl (configure.ac): ... to here.
34222         * modules/frexpl-nolibm (configure.ac): ... and here.
34224 2011-05-20  Bruno Haible  <bruno@clisp.org>
34226         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
34227         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
34228         invocation from here...
34229         * modules/frexp (configure.ac): ... to here.
34230         * modules/frexp-nolibm (configure.ac): ... and here.
34232 2011-05-20  Bruno Haible  <bruno@clisp.org>
34234         isnan: Respect rules for use of AC_LIBOBJ.
34235         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
34236         invocations here.
34237         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
34238         REPLACE_ISNAN.
34239         * modules/isnand (configure.ac): Likewise.
34240         * modules/isnanl (configure.ac): Likewise.
34242 2011-05-20  Bruno Haible  <bruno@clisp.org>
34244         isnanl*: Respect rules for use of AC_LIBOBJ.
34245         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
34246         invocation from here...
34247         * modules/isnanl (configure.ac): ... to here.
34248         * modules/isnanl-nolibm (configure.ac): ... and here.
34250 2011-05-20  Bruno Haible  <bruno@clisp.org>
34252         isnand*: Move AC_LIBOBJ invocations to module description.
34253         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
34254         invocation from here...
34255         * modules/isnand (configure.ac): ... to here.
34256         * modules/isnand-nolibm (configure.ac): ... and here.
34258 2011-05-20  Bruno Haible  <bruno@clisp.org>
34260         isnanf*: Move AC_LIBOBJ invocations to module description.
34261         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
34262         invocation from here...
34263         * modules/isnanf (configure.ac): ... to here.
34264         * modules/isnanf-nolibm (configure.ac): ... and here.
34266 2011-05-20  Bruno Haible  <bruno@clisp.org>
34268         isnan*: Separate the AC_LIBOBJ invocations.
34269         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
34270         AC_LIBOBJ invocation.
34271         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
34272         here.
34273         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
34274         AC_LIBOBJ invocation.
34275         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
34276         here.
34277         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
34278         AC_LIBOBJ invocation.
34279         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
34280         here.
34281         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
34283 2011-05-08  Bruno Haible  <bruno@clisp.org>
34285         isinf: Move AC_LIBOBJ invocations to module description.
34286         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
34287         * modules/isinf (configure.ac): ... to here.
34289 2011-05-08  Bruno Haible  <bruno@clisp.org>
34291         isfinite: Move AC_LIBOBJ invocations to module description.
34292         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
34293         * modules/isfinite (configure.ac): ... to here.
34295 2011-05-08  Bruno Haible  <bruno@clisp.org>
34297         isblank: Move AC_LIBOBJ invocations to module description.
34298         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
34299         here...
34300         * modules/isblank (configure.ac): ... to here.
34302 2011-05-08  Bruno Haible  <bruno@clisp.org>
34304         isapipe: Move AC_LIBOBJ invocations to module description.
34305         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
34306         gl_PREREQ_ISAPIPE invocations from here...
34307         * modules/isapipe (configure.ac): ... to here.
34308         (Depends-on): Update condition.
34310 2011-05-08  Bruno Haible  <bruno@clisp.org>
34312         ioctl: Move AC_LIBOBJ invocations to module description.
34313         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
34314         invocations from here...
34315         * modules/ioctl (configure.ac): ... to here.
34316         (Depends-on): Update condition.
34318 2011-05-08  Bruno Haible  <bruno@clisp.org>
34320         imaxdiv: Move AC_LIBOBJ invocations to module description.
34321         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
34322         invocations from here...
34323         * modules/imaxdiv (configure.ac): ... to here.
34325 2011-05-08  Bruno Haible  <bruno@clisp.org>
34327         imaxabs: Move AC_LIBOBJ invocations to module description.
34328         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
34329         invocations from here...
34330         * modules/imaxabs (configure.ac): ... to here.
34332 2011-05-08  Bruno Haible  <bruno@clisp.org>
34334         getaddrinfo: Move AC_LIBOBJ invocations to module description.
34335         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
34336         AC_LIBOBJ invocations from here...
34337         * modules/getaddrinfo (configure.ac): ... to here.
34338         (Depends-on): Add conditions.
34340 2011-05-08  Bruno Haible  <bruno@clisp.org>
34342         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
34343         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
34344         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
34345         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
34346         (gl_PREREQ_INET_PTON): ... from here.
34347         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
34348         gl_PREREQ_INET_PTON here.
34349         (Depends-on): Update condition.
34351 2011-05-08  Bruno Haible  <bruno@clisp.org>
34353         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
34354         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
34355         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
34356         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
34357         (gl_PREREQ_INET_NTOP): ... from here.
34358         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
34359         gl_PREREQ_INET_NTOP here.
34360         (Depends-on): Update condition.
34362 2011-05-08  Bruno Haible  <bruno@clisp.org>
34364         iconv_open: Move AC_LIBOBJ invocations to module description.
34365         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
34366         AC_LIBOBJ invocations from here...
34367         * modules/iconv_open (configure.ac): ... to here.
34369 2011-05-08  Bruno Haible  <bruno@clisp.org>
34371         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
34372         If module 'iconv_open' is among the main modules and module
34373         'iconv_open-utf' is among the tests dependencies, then
34374         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
34375         return the special iconv_t values. Therefore iconv() and iconv_close()
34376         must support these special iconv_t values, already in lib, not only in
34377         tests.
34378         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
34379         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
34380         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
34381         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
34382         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
34383         (Depends-on): Add the dependencies of iconv_open-utf.
34384         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
34385         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
34386         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
34388 2011-05-08  Bruno Haible  <bruno@clisp.org>
34390         group-member: Move AC_LIBOBJ invocations to module description.
34391         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
34392         gl_PREREQ_GROUP_MEMBER invocations from here...
34393         * modules/group-member (configure.ac): ... to here.
34395 2011-05-08  Bruno Haible  <bruno@clisp.org>
34397         grantpt: Move AC_LIBOBJ invocations to module description.
34398         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
34399         invocations from here...
34400         * modules/grantpt (configure.ac): ... to here.
34402 2011-05-08  Bruno Haible  <bruno@clisp.org>
34404         glob: Move AC_LIBOBJ invocations to module description.
34405         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
34406         from here...
34407         * modules/glob (configure.ac): ... to here.
34409 2011-05-08  Bruno Haible  <bruno@clisp.org>
34411         getusershell: Move AC_LIBOBJ invocations to module description.
34412         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
34413         Move AC_LIBOBJ invocation from here...
34414         * modules/getusershell (configure.ac): ... to here.
34415         (Depends-on): Update condition.
34417 2011-05-08  Bruno Haible  <bruno@clisp.org>
34419         gettimeofday: Move AC_LIBOBJ invocations to module description.
34420         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
34421         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
34422         gl_PREREQ_GETTIMEOFDAY invocations from here...
34423         * modules/gettimeofday (configure.ac): ... to here.
34425 2011-05-08  Bruno Haible  <bruno@clisp.org>
34427         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
34428         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
34429         just gl_FUNC_TZSET.
34430         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
34431         (gl_FUNC_TZSET_CLOBBER): Remove actions.
34432         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
34433         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
34435 2011-05-08  Bruno Haible  <bruno@clisp.org>
34437         getsubopt: Move AC_LIBOBJ invocations to module description.
34438         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
34439         gl_PREREQ_GETSUBOPT invocations from here...
34440         * modules/getsubopt (configure.ac): ... to here.
34442 2011-05-08  Bruno Haible  <bruno@clisp.org>
34444         getpass-gnu: Move AC_LIBOBJ invocations to module description.
34445         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
34446         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
34447         * modules/getpass-gnu (configure.ac): ... to here.
34449 2011-05-08  Bruno Haible  <bruno@clisp.org>
34451         getpass: Move AC_LIBOBJ invocations to module description.
34452         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
34453         gl_PREREQ_GETPASS invocations from here...
34454         * modules/getpass (configure.ac): ... to here.
34456 2011-05-08  Bruno Haible  <bruno@clisp.org>
34458         getpagesize: Move AC_LIBOBJ invocations to module description.
34459         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
34460         from here...
34461         * modules/getpagesize (configure.ac): ... to here.
34463 2011-05-08  Bruno Haible  <bruno@clisp.org>
34465         getopt: Move AC_LIBOBJ invocations to module description.
34466         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
34467         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
34468         invocations from here...
34469         * modules/getopt-gnu (configure.ac): ... to here.
34470         * modules/getopt-posix (configure.ac): ... and here.
34471         (Depends-on): Update condition.
34473 2011-05-08  Bruno Haible  <bruno@clisp.org>
34475         getopt, argp: Respect rules for use of AC_LIBOBJ.
34476         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
34477         (gl_REPLACE_GETOPT_ALWAYS): New macro.
34478         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
34479         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
34481 2011-05-08  Bruno Haible  <bruno@clisp.org>
34483         getlogin_r: Move AC_LIBOBJ invocations to module description.
34484         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
34485         gl_PREREQ_GETLOGIN_R invocations from here...
34486         * modules/getlogin_r (configure.ac): ... to here.
34488 2011-05-08  Bruno Haible  <bruno@clisp.org>
34490         getlogin: Move AC_LIBOBJ invocations to module description.
34491         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
34492         here...
34493         * modules/getlogin (configure.ac): ... to here.
34495 2011-05-08  Bruno Haible  <bruno@clisp.org>
34497         getloadavg: Move AC_LIBOBJ invocations to module description.
34498         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
34499         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
34500         * modules/getloadavg (configure.ac): ... to here.
34502 2011-05-08  Bruno Haible  <bruno@clisp.org>
34504         gethrxtime: Move AC_LIBOBJ invocations to module description.
34505         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
34506         LIB_GETHRXTIME from here...
34507         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
34508         invocations from here...
34509         * modules/gethrxtime (configure.ac): ... to here.
34511 2011-05-08  Bruno Haible  <bruno@clisp.org>
34513         gethostname: Move AC_LIBOBJ invocations to module description.
34514         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
34515         gl_PREREQ_GETHOSTNAME invocations from here...
34516         * modules/gethostname (configure.ac): ... to here.
34518 2011-05-08  Bruno Haible  <bruno@clisp.org>
34520         getgroups: Move AC_LIBOBJ invocations to module description.
34521         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
34522         here...
34523         * modules/getgroups (configure.ac): ... to here.
34525 2011-05-08  Bruno Haible  <bruno@clisp.org>
34527         getdtablesize: Move AC_LIBOBJ invocations to module description.
34528         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
34529         invocation from here...
34530         * modules/getdtablesize (configure.ac): ... to here.
34532 2011-05-08  Bruno Haible  <bruno@clisp.org>
34534         getdomainname: Move AC_LIBOBJ invocations to module description.
34535         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
34536         gl_PREREQ_GETDOMAINNAME invocations from here...
34537         * modules/getdomainname (configure.ac): ... to here.
34539 2011-05-08  Bruno Haible  <bruno@clisp.org>
34541         getline: Move AC_LIBOBJ invocations to module description.
34542         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
34543         invocations from here...
34544         * modules/getline (configure.ac): ... to here.
34546 2011-05-08  Bruno Haible  <bruno@clisp.org>
34548         getline: Simplify.
34549         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
34550         It's already handled through the module dependency.
34552 2011-05-08  Bruno Haible  <bruno@clisp.org>
34554         getdelim: Move AC_LIBOBJ invocations to module description.
34555         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
34556         and gl_PREREQ_GETDELIM invocations from here...
34557         * modules/getdelim (configure.ac): ... to here.
34558         (Depends-on): Fix condition.
34560 2011-05-08  Bruno Haible  <bruno@clisp.org>
34562         getcwd: Move AC_LIBOBJ invocations to module description.
34563         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
34564         invocations from here...
34565         * modules/getcwd (configure.ac): ... to here.
34567 2011-05-08  Bruno Haible  <bruno@clisp.org>
34569         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
34570         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
34571         here...
34572         * modules/getcwd-lgpl (configure.ac): ... to here.
34574 2011-05-07  Bruno Haible  <bruno@clisp.org>
34576         crypto/gc: Move AC_LIBOBJ invocations to module description.
34577         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
34578         * modules/crypto/gc (configure.ac): ... to here.
34580 2011-05-07  Bruno Haible  <bruno@clisp.org>
34582         fwriting: Move AC_LIBOBJ invocations to module description.
34583         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
34584         here...
34585         * modules/fwriting (configure.ac): ... to here.
34587 2011-05-07  Bruno Haible  <bruno@clisp.org>
34589         fwritable: Move AC_LIBOBJ invocations to module description.
34590         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
34591         here...
34592         * modules/fwritable (configure.ac): ... to here.
34594 2011-05-07  Bruno Haible  <bruno@clisp.org>
34596         futimens: Move AC_LIBOBJ invocations to module description.
34597         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
34598         here...
34599         * modules/futimens (configure.ac): ... to here.
34601 2011-05-07  Bruno Haible  <bruno@clisp.org>
34603         ftruncate: Move AC_LIBOBJ invocations to module description.
34604         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
34605         gl_PREREQ_FTRUNCATE invocations from here...
34606         * modules/ftruncate (configure.ac): ... to here.
34608 2011-05-07  Bruno Haible  <bruno@clisp.org>
34610         fsync: Move AC_LIBOBJ invocations to module description.
34611         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
34612         invocations from here...
34613         * modules/fsync (configure.ac): ... to here.
34615 2011-05-07  Bruno Haible  <bruno@clisp.org>
34617         fsusage: Move AC_LIBOBJ invocations to module description.
34618         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
34619         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
34620         * modules/fsusage (configure.ac): ... to here.
34622 2011-05-07  Bruno Haible  <bruno@clisp.org>
34624         freopen: Move AC_LIBOBJ invocations to module description.
34625         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
34626         invocations from here...
34627         * modules/freopen (configure.ac): ... to here.
34629 2011-05-07  Bruno Haible  <bruno@clisp.org>
34631         free: Move AC_LIBOBJ invocations to module description.
34632         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
34633         invocations from here...
34634         * modules/free (configure.ac): ... to here.
34636 2011-05-07  Bruno Haible  <bruno@clisp.org>
34638         freadable: Move AC_LIBOBJ invocations to module description.
34639         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
34640         here...
34641         * modules/freadable (configure.ac): ... to here.
34643 2011-05-07  Bruno Haible  <bruno@clisp.org>
34645         fpurge: Move AC_LIBOBJ invocations to module description.
34646         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
34647         invocations from here...
34648         * modules/fpurge (configure.ac): ... to here.
34650 2011-05-07  Bruno Haible  <bruno@clisp.org>
34652         fpending: Move AC_LIBOBJ invocations to module description.
34653         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
34654         gl_FUNC_FPENDING.
34655         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
34656         invocations from here...
34657         * modules/fpending (configure.ac): ... to here.
34659 2011-05-07  Bruno Haible  <bruno@clisp.org>
34661         fopen: Move AC_LIBOBJ invocations to module description.
34662         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
34663         invocations from here...
34664         * modules/fopen (configure.ac): ... to here.
34666 2011-05-07  Bruno Haible  <bruno@clisp.org>
34668         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
34669         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
34670         gl_FUNC_FNMATCH_POSIX.
34671         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
34672         invocations from here...
34673         * modules/fnmatch (configure.ac): ... to here.
34674         * modules/fnmatch-gnu (configure.ac): ... and here.
34676 2011-05-07  Bruno Haible  <bruno@clisp.org>
34678         flock: Move AC_LIBOBJ invocations to module description.
34679         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
34680         invocations from here...
34681         * modules/flock (configure.ac): ... to here.
34683 2011-05-07  Bruno Haible  <bruno@clisp.org>
34685         fileblocks: Move AC_LIBOBJ invocations to module description.
34686         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
34687         gl_PREREQ_FILEBLOCKS invocations from here...
34688         * modules/fileblocks (configure.ac): ... to here.
34690 2011-05-06  Bruno Haible  <bruno@clisp.org>
34692         fflush: Move AC_LIBOBJ invocations to module description.
34693         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
34694         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
34695         invocations from here...
34696         * modules/fflush (configure.ac): ... to here.
34698 2011-05-06  Bruno Haible  <bruno@clisp.org>
34700         fdopendir: Move AC_LIBOBJ invocations to module description.
34701         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
34702         here...
34703         * modules/fdopendir (configure.ac): ... to here.
34704         (Depends-on): Improve conditions.
34706 2011-05-06  Bruno Haible  <bruno@clisp.org>
34708         _Exit: Move AC_LIBOBJ invocations to module description.
34709         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
34710         invocations from here...
34711         * modules/_Exit (configure.ac): ... to here.
34713 2011-05-21  Bruno Haible  <bruno@clisp.org>
34715         euidaccess: Respect rules for use of AC_LIBOBJ.
34716         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
34717         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
34718         from here...
34719         * modules/euidaccess (configure.ac): ... to here.
34721 2011-05-06  Bruno Haible  <bruno@clisp.org>
34723         error: Move AC_LIBOBJ invocations to module description.
34724         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
34725         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
34726         invocations from here...
34727         * modules/error (configure.ac): ... to here.
34729 2011-05-06  Bruno Haible  <bruno@clisp.org>
34731         duplocale: Move AC_LIBOBJ invocations to module description.
34732         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
34733         gl_PREREQ_DUPLOCALE invocations from here...
34734         * modules/duplocale (configure.ac): ... to here.
34736 2011-05-05  Bruno Haible  <bruno@clisp.org>
34738         dirfd: Move AC_LIBOBJ invocations to module description.
34739         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
34740         gl_FUNC_DIRFD.
34741         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
34742         here...
34743         * modules/dirfd (configure.ac): ... to here.
34744         (Depends-on): Fix condition.
34746 2011-05-05  Bruno Haible  <bruno@clisp.org>
34748         chown: Respect rules for use of AC_LIBOBJ.
34749         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
34750         * modules/chown (configure.ac): ... to here.
34752 2011-05-05  Bruno Haible  <bruno@clisp.org>
34754         chdir-long: Move AC_LIBOBJ invocations to module description.
34755         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
34756         gl_PREREQ_CHDIR_LONG invocations from here...
34757         * modules/chdir-long (configure.ac): ... to here.
34759 2011-05-05  Bruno Haible  <bruno@clisp.org>
34761         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
34762         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
34763         from here...
34764         * modules/canonicalize-lgpl (configure.ac): ... to here.
34766 2011-05-05  Bruno Haible  <bruno@clisp.org>
34768         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
34769         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
34770         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
34771         REPLACE_CALLOC.
34772         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
34773         * modules/calloc-gnu (configure.ac): Likewise.
34775 2011-05-05  Bruno Haible  <bruno@clisp.org>
34777         btowc: Move AC_LIBOBJ invocations to module description.
34778         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
34779         invocations from here...
34780         * modules/btowc (configure.ac): ... to here.
34782 2011-05-21  Bruno Haible  <bruno@clisp.org>
34784         atexit: Move AC_LIBOBJ invocations to module description.
34785         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
34786         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
34787         here...
34788         * modules/atexit (configure.ac): ... to here.
34790 2011-05-05  Bruno Haible  <bruno@clisp.org>
34792         atoll: Move AC_LIBOBJ invocations to module description.
34793         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
34794         invocations from here...
34795         * modules/atoll (configure.ac): ... to here.
34797 2011-05-05  Bruno Haible  <bruno@clisp.org>
34799         argz: Move AC_LIBOBJ invocations to module description.
34800         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
34801         * modules/argz (configure.ac): ... to here.
34803 2011-05-05  Bruno Haible  <bruno@clisp.org>
34805         alphasort: Move AC_LIBOBJ invocations to module description.
34806         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
34807         gl_PREREQ_ALPHASORT invocations from here...
34808         * modules/alphasort (configure.ac): ... to here.
34810 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
34812         verify: new macro verify_expr; verify_true deprecated
34813         * NEWS: Mention this.
34814         * doc/verify.texi (Compile-time Assertions): Document this.
34815         * lib/verify.h (verify_true): Deprecate.
34816         (verify_expr): New macro.
34817         * tests/test-verify.c (function): Test verify_expr.
34819 2011-06-14  Jim Meyering  <meyering@redhat.com>
34821         init.sh: give more portable redirection-related advice in a comment
34822         * tests/init.sh (stderr_fileno_): Update the advice in comments.
34823         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
34824         for lots of discussion.  Stefano Lattarini suggested the solution
34825         of putting "9>&2" after the command.  Reported by Bruno Haible.
34827 2011-06-13  Bruno Haible  <bruno@clisp.org>
34829         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
34830         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
34831         'none'.
34833 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
34835         ftoastr: use strtof only if HAVE_STRTOF
34836         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
34837         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
34838         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
34839         * modules/ftoastr (configure.ac): Check for strtof.
34841 2011-06-13  Bruno Haible  <bruno@clisp.org>
34843         gnulib-tool: Addendum to 2011-06-08 commit.
34844         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
34845         and --witness-c-macro have been given, augment AM_CPPFLAGS.
34847 2011-06-13  Bruno Haible  <bruno@clisp.org>
34849         fseeko: Provide a non-inline replacement of fseek().
34850         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
34851         * modules/fseeko (Depends-on): Add fseek.
34852         * modules/fseek (License): Change to LGPLv2+.
34854 2011-06-13  Bruno Haible  <bruno@clisp.org>
34856         ftello: Provide a non-inline replacement of ftell().
34857         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
34858         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
34859         not have ftello() (such as on mingw).
34860         * modules/ftello (Depends-on): Add ftell.
34861         * modules/ftell (License): Change to LGPLv2+.
34863 2011-05-07  Bruno Haible  <bruno@clisp.org>
34865         ftell: Move AC_LIBOBJ invocations to module description.
34866         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
34867         * modules/ftell (configure.ac): ... to here.
34869 2011-05-07  Bruno Haible  <bruno@clisp.org>
34871         ftello: Respect rules for use of AC_LIBOBJ.
34872         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
34873         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
34874         here...
34875         * modules/ftello (configure.ac): ... to here.
34877 2011-05-07  Bruno Haible  <bruno@clisp.org>
34879         fseeko: Simplify.
34880         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
34881         (gl_FUNC_FSEEKO): Inline it here.
34883 2011-05-07  Bruno Haible  <bruno@clisp.org>
34885         fseek: Move AC_LIBOBJ invocations to module description.
34886         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
34887         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
34888         * modules/fseek (configure.ac): ... to here.
34890 2011-05-07  Bruno Haible  <bruno@clisp.org>
34892         fseek: Respect rules for use of AC_LIBOBJ.
34893         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
34894         here...
34895         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
34897 2011-05-07  Bruno Haible  <bruno@clisp.org>
34899         fseeko: Respect rules for use of AC_LIBOBJ.
34900         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
34901         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
34902         here...
34903         * modules/fseeko (configure.ac): ... to here.
34905 2011-06-13  Bruno Haible  <bruno@clisp.org>
34907         gnulib-tool: Allow comments in the 'Depends-on' section.
34908         * doc/gnulib.texi (Module description): Mention comment syntax in the
34909         Depends-on section.
34910         * gnulib-tool (func_get_dependencies): Filter out comment lines.
34912 2011-06-13  Bruno Haible  <bruno@clisp.org>
34914         file-set.h: guard __attibute__ use, now that it's not always defined
34915         * lib/file-set.h (record_file): Use __attribute__ only with compiler
34916         versions that support it.  This fixes a coreutils build failure with
34917         the vendor cc on HP-UX 11.31.
34919 2011-06-12  Bruno Haible  <bruno@clisp.org>
34921         acl: Add support for HP-UX >= 11.11 JFS ACLs.
34922         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
34923         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
34924         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
34925         (acl, aclsort): New declarations.
34926         (aclv_nontrivial): New declaration.
34927         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
34928         (file_has_acl): Read also the second kind of HP-UX ACLs.
34929         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
34930         kind of HP-UX ACLs if the first kind fails.
34931         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
34932         second kind of HP-UX ACLs.
34933         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
34934         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
34935         agree.
34936         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
34937         hpuxjfs.
34938         Handle hpuxjfs.
34939         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
34940         hpuxjfs.
34941         Handle hpuxjfs.
34942         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
34943         (func_test_same_acls): Use both lsacl and getacl.
34944         Handle hpuxjfs.
34945         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
34946         (func_test_same_acls): Use both lsacl and getacl.
34947         Handle hpuxjfs.
34949 2011-06-12  Bruno Haible  <bruno@clisp.org>
34951         acl: Complete the 2010-08-10 fix.
34952         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
34953         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
34954         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
34955         explicitly.
34956         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
34957         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
34959 2011-06-12  Bruno Haible  <bruno@clisp.org>
34961         spawn-pipe tests: Comments.
34962         * tests/test-spawn-pipe-child.c (main): Update comment.
34963         Reported by James Youngman <jay@gnu.org>.
34965 2011-06-11  James Youngman  <jay@gnu.org>
34967         New module 'stat-size'.
34968         * modules/stat-size: New module.  Provides macros for accessing
34969         file size information in instances of struct stat.  Depends on the
34970         fileblocks module because it calls st_blocks.
34971         * lib/stat-size.h: New file, adapted from coreutils' system.h.
34972         * doc/gnulib.texi: Include stat-size.texi.
34973         * doc/stat-size.texi: Documentation for this module.
34974         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
34975         * m4/fileblocks.m4: Mention that stat-size depends on the call to
34976         AC_STRUCT_ST_BLOCKS.
34978 2011-06-09  Bruno Haible  <bruno@clisp.org>
34980         thread: Support pthreads-win32.
34981         * lib/glthread/thread.h (gl_thread_self): Define differently on
34982         pthreads-win32.
34983         (gl_null_thread): New declaration.
34984         (gl_thread_self_pointer): New macro.
34985         * lib/glthread/thread.c (gl_null_thread): New constant.
34986         * tests/test-lock.c: Use gl_thread_self_pointer instead of
34987         gl_thread_self.
34988         * tests/test-tls.c: Likewise.
34989         Suggested by Paul Eggert. Reported by Eric Blake.
34991 2011-06-09  Bruno Haible  <bruno@clisp.org>
34993         thread: Fix confusion between NULL and 0.
34994         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
34995         Reported by Paul Eggert.
34997 2011-06-09  Bruno Haible  <bruno@clisp.org>
34999         spawn-pipe tests: Avoid test failure on HP-UX 11.
35000         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
35001         is closed.
35003 2011-06-09  Bruno Haible  <bruno@clisp.org>
35005         acl tests: Fix compilation error on HP-UX 11.
35006         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
35008 2011-06-09  Bruno Haible  <bruno@clisp.org>
35010         rmdir: Avoid test failure on HP-UX 10.20.
35011         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
35012         EEXIST.
35014 2011-06-08  Eric Blake  <eblake@redhat.com>
35016         perror: fix test on mingw
35017         * modules/perror-tests (Depends-on): Add dup2.
35019         strerror_r-posix: fix on MacOS
35020         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
35021         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
35022         logic bug.
35023         * lib/strerror_r.c (strerror_r): Fix the bug.
35024         * lib/strerror.c (strerror): Likewise.
35025         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
35026         problem.
35027         * doc/posix-functions/strerror.texi (strerror): Likewise.
35028         * doc/posix-functions/perror.texi (perror): Likewise.
35029         * tests/test-strerror.c (main): Enhance test.
35030         * tests/test-strerror_r.c (main): Likewise.
35032 2011-06-08  Bruno Haible  <bruno@clisp.org>
35034         gnulib-tool: Better isolation between different gnulib-tool invocations.
35035         * gnulib-tool: New option --witness-c-macro.
35036         (witness_c_macro): New variable.
35037         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
35038         AM_CPPFLAGS define it as a C macro.
35039         (func_emit_tests_Makefile_am): Likewise.
35040         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
35041         read it from there.
35042         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
35043         m4_define, not AC_DEFUN.
35044         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
35045         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
35046         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
35047         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
35048         s|...|...|, to substitute the values of the GNULIB_* module indicator
35049         variables.
35050         * modules/dirent (Makefile.am): Likewise.
35051         * modules/fcntl-h (Makefile.am): Likewise.
35052         * modules/iconv-h (Makefile.am): Likewise.
35053         * modules/langinfo (Makefile.am): Likewise.
35054         * modules/locale (Makefile.am): Likewise.
35055         * modules/math (Makefile.am): Likewise.
35056         * modules/netdb (Makefile.am): Likewise.
35057         * modules/poll-h (Makefile.am): Likewise.
35058         * modules/pty (Makefile.am): Likewise.
35059         * modules/search (Makefile.am): Likewise.
35060         * modules/signal (Makefile.am): Likewise.
35061         * modules/spawn (Makefile.am): Likewise.
35062         * modules/stdio (Makefile.am): Likewise.
35063         * modules/stdlib (Makefile.am): Likewise.
35064         * modules/string (Makefile.am): Likewise.
35065         * modules/sys_ioctl (Makefile.am): Likewise.
35066         * modules/sys_select (Makefile.am): Likewise.
35067         * modules/sys_socket (Makefile.am): Likewise.
35068         * modules/sys_stat (Makefile.am): Likewise.
35069         * modules/sys_times (Makefile.am): Likewise.
35070         * modules/sys_utsname (Makefile.am): Likewise.
35071         * modules/sys_wait (Makefile.am): Likewise.
35072         * modules/termios (Makefile.am): Likewise.
35073         * modules/time (Makefile.am): Likewise.
35074         * modules/unistd (Makefile.am): Likewise.
35075         * modules/wchar (Makefile.am): Likewise.
35077 2011-06-08  Eric Blake  <eblake@redhat.com>
35079         strerror: simplify replacement
35080         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
35081         * modules/strerror (configure.ac): No prereqs needed here...
35082         * modules/strerror-override (configure.ac): ...but this needs it.
35083         (Files): Add file for needed prereq macro.
35085 2011-06-08  Bruno Haible  <bruno@clisp.org>
35087         strerror_r-posix: Tweaks.
35088         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
35089         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
35090         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
35091         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
35092         (gl_FUNC_STRERROR_R): ... to here.
35093         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
35095 2011-06-07  Eric Blake  <eblake@redhat.com>
35097         perror: document fixed bugs
35098         * doc/posix-functions/perror.texi (perror): Document recent
35099         patches.
35101 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
35103         stat-time: get_stat_birthtime failure is better-defined
35104         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
35105         return a timestamp whose tv_sec and tv_nsec values are both -1.
35106         Previously, the spec said only that the tv_nsec value was negative.
35107         This upward-compatible change simplifies GNU tar a bit.
35109 2011-06-07  Eric Blake  <eblake@redhat.com>
35111         strerror_r-posix: work around cygwin 1.7.9
35112         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
35113         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
35114         bug without replacing strerror_r.
35115         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
35116         strerror_r is buggy, but without requiring strerror_r compilation.
35117         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
35119         test-perror: relax test to ignore cygwin bug
35120         * tests/test-perror2.c (main): Relax test on requiring detection
35121         of stream errors, and use unbuffered stream.
35122         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
35123         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
35124         * doc/posix-functions/fputc.texi (fputc): Likewise.
35125         * doc/posix-functions/fputs.texi (fputs): Likewise.
35126         * doc/posix-functions/fputws.texi (fputws): Likewise.
35127         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
35128         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
35129         * doc/posix-functions/getopt.texi (getopt): Likewise.
35130         * doc/posix-functions/perror.texi (perror): Likewise.
35131         * doc/posix-functions/printf.texi (printf): Likewise.
35132         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
35133         * doc/posix-functions/psignal.texi (psignal): Likewise.
35134         * doc/posix-functions/putc.texi (putc): Likewise.
35135         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
35136         Likewise.
35137         * doc/posix-functions/putchar.texi (putchar): Likewise.
35138         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
35139         Likewise.
35140         * doc/posix-functions/puts.texi (puts): Likewise.
35141         * doc/posix-functions/putwc.texi (putwc): Likewise.
35142         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
35143         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
35144         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
35145         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
35146         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
35147         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
35148         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
35149         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
35151 2011-05-22  Bruno Haible  <bruno@clisp.org>
35153         strerror: Move AC_LIBOBJ invocations to module description.
35154         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
35155         gl_PREREQ_STRERROR invocations from here...
35156         * modules/strerror (configure.ac): ... to here.
35158 2011-05-21  Bruno Haible  <bruno@clisp.org>
35160         perror: Use common idiom.
35161         * modules/perror (configure.ac): Reorder statements.
35163 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
35165         tests: fix usage message in 'mktempd_'
35166         * tests/init.sh (mktempd_): In the usage message, use literal
35167         'mktempd_', not '$ME' (which is even undefined), as the name of
35168         the subroutine.
35170 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
35172         tests init: new function 'fatal_', for hard errors
35173         Before this patch, the only way offered by tests/init.sh to
35174         properly signal a hard error was the `framework_failure_'
35175         function.  But the error message issued by that function,
35176         as its name would suggest, refers to a set-up failure in the
35177         testsuite, while hard errors can obviously also be due to
35178         other reasons.  The best way to fix this inconsistency is to
35179         introduce a new function with a more general error message.
35180         * tests/init.sh (fatal_): New function.
35182 2011-06-06  Eric Blake  <eblake@redhat.com>
35184         canonicalize-lgpl: use common idiom
35185         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
35186         over newer POSIX -Rf.
35187         Reported by Bruno Haible.
35189         canonicalize-lgpl: work around AIX realpath bug
35190         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
35191         * doc/posix-functions/realpath.texi (realpath): Document it.
35192         Reported by Bruno Haible.
35194         strerror: work around FreeBSD bug
35195         * lib/strerror.c (strerror): Special case 0.
35196         Reported by Bruno Haible.
35198         strerror-override: avoid bloating errno module
35199         * modules/errno (Files, configure.ac): Move replacement strings...
35200         * modules/strerror-override: ...to new module.
35201         * modules/strerror (Depends-on): Add strerror-override.
35202         * modules/strerror_r-posix (Depends-on): Likewise.
35203         * MODULES.html.sh: Document new module.
35204         Reported by Bruno Haible.
35206 2011-06-06  Bruno Haible  <bruno@clisp.org>
35208         spawn-pipe tests: Rename program.
35209         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
35210         * tests/test-spawn-pipe-child.c: Update comment.
35211         * tests/test-spawn-pipe.sh: Update.
35212         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
35214         spawn-pipe tests: Link the child program only against libc.
35215         * tests/test-spawn-pipe-child.c: New file, extracted from
35216         tests/test-spawn-pipe.c.
35217         (main): Expect only one argument.
35218         (is_open): New function, copied from tests/test-pipe.c.
35219         * tests/test-spawn-pipe.c: Don't include <errno.h>.
35220         (child_main): Remove function.
35221         (test_pipe): Pass only one argument to the child program.
35222         (main): Remove child process code. Expect the child program's name as
35223         first argument.
35224         * tests/test-spawn-pipe.sh: Pass the child program's name as first
35225         argument.
35226         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
35227         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
35228         test-spawn-pipe-child against no libraries.
35230 2011-06-06  Bruno Haible  <bruno@clisp.org>
35232         careadlinkat: Avoid mismatch between ssize_t and int.
35233         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
35234         * lib/careadlinkat.c (careadlinkatcwd): Define always.
35236 2011-06-06  Jim Meyering  <meyering@redhat.com>
35238         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
35239         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
35240         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
35242 2011-06-05  Bruno Haible  <bruno@clisp.org>
35244         ansi-c++-opt: Interoperability with libtool.
35245         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
35246         set the variable to "no", not to ":".
35247         * NEWS: Mention the change.
35249 2011-06-05  Bruno Haible  <bruno@clisp.org>
35251         acl: Fix test failure on AIX 7.
35252         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
35253         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
35255 2011-06-05  Bruno Haible  <bruno@clisp.org>
35257         pipe-filter-ii: Fix test failure on AIX and IRIX.
35258         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
35259         with EAGAIN, retry with a smaller buffer size.
35261 2011-06-05  Bruno Haible  <bruno@clisp.org>
35263         localename: Fix link dependencies.
35264         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
35265         * modules/localename-tests (Makefile.am): Link test-localename with
35266         $(LIBTHREAD).
35268 2011-06-05  Bruno Haible  <bruno@clisp.org>
35270         error: Avoid gcc warning.
35271         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
35273 2011-06-05  Bruno Haible  <bruno@clisp.org>
35275         unsetenv: Avoid gcc warning.
35276         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
35278 2011-06-05  Bruno Haible  <bruno@clisp.org>
35280         setenv: Avoid gcc warning.
35281         * lib/setenv.c (setenv): Provide declaration if system lacks it.
35283 2011-06-05  Bruno Haible  <bruno@clisp.org>
35285         sys_select: Ensure memset is declared also on AIX 7.
35286         * lib/sys_select.in.h: Include <string.h> also on AIX.
35287         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
35288         self-contained also on AIX 7.1.
35290 2011-06-04  Jim Meyering  <meyering@redhat.com>
35292         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
35293         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
35294         function name, "error".
35295         (_gl_translatable_diag_func_re): New configurable variable.
35297 2011-06-04  Bruno Haible  <bruno@clisp.org>
35299         getopt: Avoid gcc warning.
35300         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
35302 2011-06-04  Bruno Haible  <bruno@clisp.org>
35304         strerror_r: Fix comments.
35305         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
35306         commit.
35308 2011-06-04  Bruno Haible  <bruno@clisp.org>
35310         perror: Fix compilation error.
35311         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
35312         Undefine fprintf, not sprintf.
35313         * modules/perror (Depends-on): Remove intprops, verify.
35315 2011-06-04  Bruno Haible  <bruno@clisp.org>
35317         setlocale: Enable replacement on Cygwin 1.5.
35318         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
35319         Cygwin 1.5.x.
35320         * doc/posix-functions/setlocale.texi: Mention that the problem with the
35321         LC_CTYPE category also exists on Cygwin 1.5.x.
35323 2011-06-04  Bruno Haible  <bruno@clisp.org>
35325         strerror-override: Don't disable symbol renamings.
35326         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
35327         * lib/strerror-override.c: Include config.h.
35328         (strerror_override): Don't undefine.
35330 2011-06-03  Bruno Haible  <bruno@clisp.org>
35332         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
35333         * lib/localename.h: Update copyright header.
35334         * lib/localename.c: Likewise.
35335         * lib/relocatable.h: Likewise.
35336         * lib/relocatable.c: Likewise.
35338 2011-06-02  Bruno Haible  <bruno@clisp.org>
35340         doc: Fix a module name.
35341         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
35343 2011-06-02  Bruno Haible  <bruno@clisp.org>
35345         pipe2: Remove dependency on 'nonblocking' module.
35346         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
35347         O_NONBLOCK is defined by gnulib.
35348         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
35349         is zero.
35350         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
35351         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
35352         defined by gnulib.
35353         (get_nonblocking_flag): New function.
35354         (main): Test O_NONBLOCK flag only if it is nonzero.
35355         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
35357 2011-06-03  Jim Meyering  <meyering@redhat.com>
35359         maint: three new prohibit-header-without-use rules
35360         Prohibit use of cloexec.h, posixver.h, same.h without use.
35361         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
35362         (sc_prohibit_posixver_without_use): Likewise.
35363         (sc_prohibit_same_without_use): Likewise.
35365 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
35367         allocator: 'die' routine is now given requested size
35368         * lib/allocator.h (struct allocator.die): New size arg.
35369         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
35370         If the actual problem is an ssize_t limitation, not a size_t or
35371         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
35373 2011-06-01  Eric Blake  <eblake@redhat.com>
35375         strerror: drop strerror_r dependency
35376         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
35377         * lib/strerror-override.c (strerror_override): ...to new file.
35378         * lib/strerror-override.h: Add prototype.
35379         * lib/strerror-impl.h: Delete.
35380         * lib/strerror.c (strerror): New implementation.
35381         * modules/errno (Files): Add new files.
35382         (configure.ac): Compile new file as appropriate.
35383         * modules/strerror (Files): Drop unused file.
35384         (Depends-on): Drop strerror_r-posix.
35385         * MODULES.html.sh: Document strerror_r-posix.
35386         Requested by Sam Steingold.
35388         perror: call strerror_r directly
35389         * modules/perror (Files): Drop strerror-impl.h.
35390         * lib/perror.c (perror): Use our own stack buffer, rather than
35391         calling a wrapper that uses static storage.
35392         * doc/posix-functions/perror.texi (perror): Document a limitation
35393         of our replacement.
35395         strerror_r: fix includes for FreeBSD
35396         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
35397         since we use abort on some platforms.
35398         Reported by Matthias Bolte.
35400 2011-05-31  Bruno Haible  <bruno@clisp.org>
35402         Fix link errors in tests: openat-die uses gettext-h.
35403         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
35404         against $(LIBINTL).
35405         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
35406         against $(LIBINTL).
35407         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
35408         $(LIBINTL).
35409         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
35410         against $(LIBINTL).
35411         * modules/linkat-tests (Makefile.am): Link test-linkat against
35412         $(LIBINTL).
35413         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
35414         $(LIBINTL).
35415         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
35416         against $(LIBINTL).
35417         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
35418         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
35419         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
35420         $(LIBINTL).
35421         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
35422         $(LIBINTL).
35423         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
35424         $(LIBINTL).
35425         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35427 2011-05-31  Bruno Haible  <bruno@clisp.org>
35429         Fix link errors in tests: wait-process uses gettext-h.
35430         * modules/nonblocking-pipe-tests (Makefile.am): Set
35431         test_nonblocking_pipe_main_LDADD.
35432         * modules/nonblocking-socket-tests (Makefile.am): Link
35433         test-nonblocking-socket-main against $(LIBINTL).
35434         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35436 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
35438         assert-h: work around 'verify' incompatibility
35439         * lib/verify.h: Use @...@ directives, not ifdef.
35440         * modules/assert-h (assert.h): Implement the directives.
35441         (assert.h): Substitute the symbol-prefix more consistently.
35443 2011-05-29  Jim Meyering  <meyering@redhat.com>
35445         trim: remove three superfluous assignments
35446         * lib/trim.c (trim2): Remove three superfluous assignments
35447         and correct brace positioning.
35449 2011-05-29  Bruno Haible  <bruno@clisp.org>
35451         wctype-h: Avoid namespace pollution on Solaris 2.6.
35452         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
35453         identifiers.
35454         * doc/posix-headers/wctype.texi: Mention the problem.
35455         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35457 2011-05-28  Jim Meyering  <meyering@redhat.com>
35459         parse-datetime.y: accommodate -Wstrict-overflow
35460         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
35461         placate -Wstrict-overflow.
35463         trim: avoid a warning from -O2 -Wstrict-overflow
35464         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
35466 2011-05-29  Bruno Haible  <bruno@clisp.org>
35468         gnulib-tool: Fix bug in yesterday's commit.
35469         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
35470         twice.
35472 2011-05-29  Bruno Haible  <bruno@clisp.org>
35474         Allow multiple gnulib generated include files to be combined.
35475         * gnulib-tool (func_compute_include_guard_prefix): New function.
35476         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
35477         ${gl_include_guard_prefix} references.
35478         (func_import, func_create_testdir): Invoke
35479         func_compute_include_guard_prefix.
35480         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
35481         * lib/ctype.in.h: Likewise.
35482         * lib/dirent.in.h: Likewise.
35483         * lib/errno.in.h: Likewise.
35484         * lib/fcntl.in.h: Likewise.
35485         * lib/float.in.h: Likewise.
35486         * lib/getopt.in.h: Likewise.
35487         * lib/iconv.in.h: Likewise.
35488         * lib/langinfo.in.h: Likewise.
35489         * lib/locale.in.h: Likewise.
35490         * lib/math.in.h: Likewise.
35491         * lib/netdb.in.h: Likewise.
35492         * lib/netinet_in.in.h: Likewise.
35493         * lib/poll.in.h: Likewise.
35494         * lib/pthread.in.h: Likewise.
35495         * lib/pty.in.h: Likewise.
35496         * lib/sched.in.h: Likewise.
35497         * lib/se-selinux.in.h: Likewise.
35498         * lib/search.in.h: Likewise.
35499         * lib/signal.in.h: Likewise.
35500         * lib/spawn.in.h: Likewise.
35501         * lib/stdarg.in.h: Likewise.
35502         * lib/stddef.in.h: Likewise.
35503         * lib/stdint.in.h: Likewise.
35504         * lib/stdio.in.h: Likewise.
35505         * lib/stdlib.in.h: Likewise.
35506         * lib/string.in.h: Likewise.
35507         * lib/strings.in.h: Likewise.
35508         * lib/sys_file.in.h: Likewise.
35509         * lib/sys_ioctl.in.h: Likewise.
35510         * lib/sys_select.in.h: Likewise.
35511         * lib/sys_socket.in.h: Likewise.
35512         * lib/sys_stat.in.h: Likewise.
35513         * lib/sys_time.in.h: Likewise.
35514         * lib/sys_times.in.h: Likewise.
35515         * lib/sys_uio.in.h: Likewise.
35516         * lib/sys_utsname.in.h: Likewise.
35517         * lib/sys_wait.in.h: Likewise.
35518         * lib/sysexits.in.h: Likewise.
35519         * lib/termios.in.h: Likewise.
35520         * lib/time.in.h: Likewise.
35521         * lib/unistd.in.h: Likewise.
35522         * lib/wchar.in.h: Likewise.
35523         * lib/wctype.in.h: Likewise.
35524         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
35525         * modules/ctype (Makefile.am): Likewise.
35526         * modules/dirent (Makefile.am): Likewise.
35527         * modules/errno (Makefile.am): Likewise.
35528         * modules/fcntl-h (Makefile.am): Likewise.
35529         * modules/float (Makefile.am): Likewise.
35530         * modules/getopt-posix (Makefile.am): Likewise.
35531         * modules/iconv-h (Makefile.am): Likewise.
35532         * modules/langinfo (Makefile.am): Likewise.
35533         * modules/locale (Makefile.am): Likewise.
35534         * modules/math (Makefile.am): Likewise.
35535         * modules/netdb (Makefile.am): Likewise.
35536         * modules/netinet_in (Makefile.am): Likewise.
35537         * modules/poll-h (Makefile.am): Likewise.
35538         * modules/pthread (Makefile.am): Likewise.
35539         * modules/pty (Makefile.am): Likewise.
35540         * modules/sched (Makefile.am): Likewise.
35541         * modules/search (Makefile.am): Likewise.
35542         * modules/selinux-h (Makefile.am): Likewise.
35543         * modules/signal (Makefile.am): Likewise.
35544         * modules/spawn (Makefile.am): Likewise.
35545         * modules/stdarg (Makefile.am): Likewise.
35546         * modules/stddef (Makefile.am): Likewise.
35547         * modules/stdint (Makefile.am): Likewise.
35548         * modules/stdio (Makefile.am): Likewise.
35549         * modules/stdlib (Makefile.am): Likewise.
35550         * modules/string (Makefile.am): Likewise.
35551         * modules/strings (Makefile.am): Likewise.
35552         * modules/sys_file (Makefile.am): Likewise.
35553         * modules/sys_ioctl (Makefile.am): Likewise.
35554         * modules/sys_select (Makefile.am): Likewise.
35555         * modules/sys_socket (Makefile.am): Likewise.
35556         * modules/sys_stat (Makefile.am): Likewise.
35557         * modules/sys_time (Makefile.am): Likewise.
35558         * modules/sys_times (Makefile.am): Likewise.
35559         * modules/sys_uio (Makefile.am): Likewise.
35560         * modules/sys_utsname (Makefile.am): Likewise.
35561         * modules/sys_wait (Makefile.am): Likewise.
35562         * modules/sysexits (Makefile.am): Likewise.
35563         * modules/termios (Makefile.am): Likewise.
35564         * modules/time (Makefile.am): Likewise.
35565         * modules/unistd (Makefile.am): Likewise.
35566         * modules/wchar (Makefile.am): Likewise.
35567         * modules/wctype-h (Makefile.am): Likewise.
35568         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
35570 2011-05-29  Bruno Haible  <bruno@clisp.org>
35572         assert-h: Allow multiple gnulib generated replacements to coexist.
35573         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
35575 2011-05-29  Bruno Haible  <bruno@clisp.org>
35577         argp: Allow coexistence with strerror_r-posix module.
35578         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
35579         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
35580         by gnulib's <string.h> replacement), assume it has the POSIX signature,
35581         not the glibc signature.
35583 2011-05-28  Bruno Haible  <bruno@clisp.org>
35585         gnulib-tool: Alternative structure of testdirs, similar to --import.
35586         * gnulib-tool: New option --single-configure.
35587         (func_usage): Document it.
35588         (single_configure): New variable.
35589         (func_modules_transitive_closure_separately,
35590         func_modules_transitive_closure_separately,
35591         func_determine_use_libtests, func_modules_add_dummy_separately,
35592         func_modules_to_filelist_separately): New functions, extracted from
35593         func_import.
35594         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
35595         (func_import): Use the new functions.
35596         (func_create_testdir): Set final_modules. Handle $single_configure =
35597         true case.
35599 2011-05-28  Bruno Haible  <bruno@clisp.org>
35601         getloadavg: Remove an unreliable safety check.
35602         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
35603         getloadavg.c is in place.
35604         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
35605         Reported by Sam Steingold <sds@gnu.org>.
35607 2011-05-28  Bruno Haible  <bruno@clisp.org>
35609         doc: Cleanup yet another file produced by texinfo.tex.
35610         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
35612 2011-05-28  Bruno Haible  <bruno@clisp.org>
35614         Finish the conditional dependencies mechanism.
35615         * gnulib-tool: New option --no-conditional-dependencies.
35616         (func_usage): Document it. Don't mark --conditional-dependencies as
35617         experimental.
35618         (cond_dependencies): The possible values can now be true, false, empty.
35619         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
35620         (func_import): Store setting in gnulib-cache.m4 and read it from there.
35621         * doc/gnulib-tool.texi (Conditional dependencies): New section.
35623 2011-05-28  Bruno Haible  <bruno@clisp.org>
35625         doc: Use a recent texinfo.tex.
35626         * doc/Makefile (tex_opts): New variable.
35627         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
35629 2011-05-28  Jim Meyering  <meyering@redhat.com>
35631         intprops.h: adjust comment to match code change
35632         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
35633         only once, it *may* have side effects.  Also fix an unrelated typo.
35634         (_GL_INT_SIGNED): Likewise.
35636 2011-05-26  Simon Josefsson  <simon@josefsson.org>
35638         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
35640 2011-05-26  Bruno Haible  <bruno@clisp.org>
35642         mbsrchr: Avoid collision with system function on Interix.
35643         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
35644         Reported by Markus Duft <mduft@gentoo.org>.
35646 2011-05-15  James Youngman  <jay@gnu.org>
35648         getopt: for ambiguous options, enumerate the possibilities.
35649         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
35650         the ambiguous options when an ambiguous prefix is given. This was
35651         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
35652         glibc change was
35653         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
35655 2011-05-25  Eric Blake  <eblake@redhat.com>
35657         getcwd: work around mingw bug
35658         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
35659         * doc/posix-functions/getcwd.texi (getcwd): Document it.
35660         Reported by Matthias Bolte.
35662 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
35664         test-intprops: disable -Wtype-limits diagnostics
35665         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
35666         diagnostics.  Otherwise, the integer overflow macros generate many
35667         diagnostics.  Reported by Jim Meyering in
35668         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
35670         intprops: shorten, to pacify gcc -Woverlength-strings
35671         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
35672         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
35673         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
35674         likely to run afoul of C compiler limits for string constant lengths.
35675         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
35677 2011-05-24  Eric Blake  <eblake@redhat.com>
35679         docs: document recently fixed glibc printf bug
35680         * doc/posix-functions/fprintf.texi (fprintf): Document it.
35681         * doc/posix-functions/printf.texi (printf): Likewise.
35682         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
35683         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
35685         closein-tests: convert to init.sh
35686         * modules/closein-tests (Files): Add init.sh
35687         * tests/test-closein.sh Use it.
35689         yesno-tests: convert to init.sh
35690         * modules/yesno-tests (Files): Add init.sh.
35691         * tests/test-yesno.sh: Use it.
35693         atexit-tests: ensure reliable exit status
35694         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
35695         Reported by Bruno Haible.
35697 2011-05-24  Bruno Haible  <bruno@clisp.org>
35699         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
35700         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
35701         gl_PREREQ_STRERROR_R invocations from here...
35702         * modules/strerror_r-posix (configure.ac): ... to here.
35704 2011-05-24  Eric Blake  <eblake@redhat.com>
35706         strerror_r: fix missing header
35707         * lib/strerror_r.c: Avoid compiler warning about snprintf.
35709         strerror_r: fix AIX test failures
35710         * lib/strerror_r.c (strerror_r): Convert silent truncation to
35711         ERANGE failure.
35713         strerror_r: fix Solaris test failures
35714         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
35715         failures.
35716         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
35718         strerror_r: enforce POSIX recommendations
35719         * lib/strerror_r.c (safe_copy): New helper method.
35720         (strerror_r): Guarantee a non-empty string.
35721         * tests/test-strerror_r.c (main): Enhance tests to incorporate
35722         recent POSIX rulings and to match our strerror guarantees.
35723         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
35725 2011-05-24  Jim Meyering  <meyering@redhat.com>
35727         test-perror2.c: avoid warning about unused variable
35728         * tests/test-perror2.c (main): Remove declaration of unused "fp".
35730 2011-05-24  Eric Blake  <eblake@redhat.com>
35732         perror: avoid spurious test failure on HP-UX
35733         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
35735         tests: fix logic bug in init.sh
35736         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
35737         shell.
35739 2011-05-24  Jim Meyering  <meyering@redhat.com>
35741         utimensat: do not reference an out-of-scope buffer
35742         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
35743         declared in an inner scope, yet "times" would be dereferenced outside
35744         the scope in which "ts" was valid.
35745         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
35746         of ts[2] "out/up", so that the use of aliased "times" (via
35747         "times = ts;") does not end up referencing an out-of-scope "ts"
35749         opendir-safer.c: don't clobber errno; don't close negative FD
35750         * lib/opendir-safer.c (opendir_safer):
35751         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
35752         file descriptor, and more importantly, don't clobber the
35753         offending errno value with EINVAL.  Before, upon failure
35754         of dup_safer, we would pass the negative file descriptor to
35755         fdopendir, which would clobber errno.
35757 2011-05-23  Bruno Haible  <bruno@clisp.org>
35759         idcache: Fix module description.
35760         * modules/idcache (Include): Set to "idcache.h".
35762 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
35764         gnulib-tool: fix portability problem with MacOS sed
35765         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
35766         before the "}".  Problem reported by Leo in
35767         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
35768         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
35769         sed_extract_condition1, sed_extract_condition2.
35771 2011-05-23  Bruno Haible  <bruno@clisp.org>
35773         hash: Simplify autoconf macro.
35774         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
35776 2011-05-23  Bruno Haible  <bruno@clisp.org>
35778         getugroups: Fix module description.
35779         * modules/getugroups (Include): Set to "getugroups.h".
35781 2011-05-23  Bruno Haible  <bruno@clisp.org>
35783         linkat: Simplify autoconf macro.
35784         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
35786 2011-05-23  Bruno Haible  <bruno@clisp.org>
35787             Eric Blake  <eblake@redhat.com>
35789         linkat, renameat: Update dependencies.
35790         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
35791         * modules/linkat (Depends-on): Likewise. Remove also readlink,
35792         symlinkat.
35794 2011-05-23  Jim Meyering  <meyering@redhat.com>
35796         maint.mk: more tight_scope improvements
35797         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
35798         (_gl_TS_headers): Define only in if-0'd block.
35799         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
35800         sometimes we must *not* use it.  Adjust uses accordingly.
35801         (sc_tight_scope): Use much simpler grep-based test to determine
35802         whether we skip this rule.
35804         maint.mk: generalize/improve the tight-scope rule
35805         * top/maint.mk: Emit a warning when the test is skipped.
35806         (_gl_TS_dir): Add $(srcdir)/ prefix.
35807         (_gl_TS_function_match): Simplify, rather than trying
35808         to enumerate common types.  Otherwise, it would fail to match an
35809         "extern unsigned char const *" declaration in idutils.
35810         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
35811         a way to support use of that type of macro.
35812         (_gl_TS_var_match): Simplify regexp.
35813         (_gl_TS_obj_files): New configurable variable.
35814         (_gl_TS_headers): Likewise.
35816 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
35818         verify: fix bug when gnulib <assert.h> is also included
35819         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
35820         is defined, not if _GL_STATIC_ASSERT_H is not defined.
35821         Perhaps there's a better way, but this fixes the immediate problem.
35822         Problem reported by Bruno Haible in
35823         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
35825 2011-05-22  Bruno Haible  <bruno@clisp.org>
35827         xgetcwd: Simplify autoconf macro.
35828         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
35830 2011-05-22  Bruno Haible  <bruno@clisp.org>
35832         New module 'mktime-internal'.
35833         * modules/mktime-internal: New file.
35834         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
35835         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
35836         mktime_internal as a C macro if libc has __mktime_internal.
35837         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
35838         conditions.
35839         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
35841 2011-05-22  Bruno Haible  <bruno@clisp.org>
35843         timegm: Correct mktime replacement statements.
35844         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
35845         defining mktime as a C macro. This completes a 2009-07-28 commit.
35847 2011-05-22  Bruno Haible  <bruno@clisp.org>
35849         timegm: Simplify autoconf macro.
35850         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
35852 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
35854         clock-time: change to LGPLv2+.
35855         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
35856         BSD-like but we have no mark for that; this is good enough for now.
35858 2011-05-21  Bruno Haible  <bruno@clisp.org>
35860         strerror_r: Fix comments.
35861         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
35863 2011-05-21  Bruno Haible  <bruno@clisp.org>
35865         relocatable-prog-wrapper: Fix possible link error.
35866         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
35867         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
35868         (gl_FUNC_SETENV): ... to here.
35869         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
35870         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
35872 2011-05-21  Bruno Haible  <bruno@clisp.org>
35874         relocatable-prog-wrapper: Assume strerror() exists.
35875         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
35876         m4/strerror.m4.
35877         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
35878         * lib/relocwrapper.c: Remove mention of strerror module.
35879         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
35880         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
35881         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
35882         C macro.
35884 2011-05-21  Bruno Haible  <bruno@clisp.org>
35886         select: Simplify replacement idiom.
35887         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
35888         Win32 platforms.
35889         * lib/sys_select.in.h (select): Simplify accordingly.
35890         * modules/select (Depends-on): Likewise.
35892 2011-05-21  Bruno Haible  <bruno@clisp.org>
35894         mkdir-p: Simplify autoconf macro.
35895         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
35896         gl_FUNC_LCHOWN.
35898 2011-05-21  Eric Blake  <eblake@redhat.com>
35900         strerror_r: avoid clobbering strerror on cygwin
35901         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
35902         fall back instead to sys_errlist.
35903         * modules/strerror (configure.ac): Add witness.
35904         * tests/test-strerror_r.c (main): Enhance test.
35905         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
35906         * tests/test-perror2.c (main): Free memory before exit.
35908 2011-05-21  Bruno Haible  <bruno@clisp.org>
35910         mkdtemp: Use gnulib naming conventions.
35911         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
35912         * modules/mkdtemp (configure.ac): Update.
35914 2011-05-20  Eric Blake  <eblake@redhat.com>
35916         strerror_r: avoid corrupting errno on Solaris
35917         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
35918         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
35920         strerror_r: avoid compiler warning
35921         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
35923         strerror_r: simplify AIX code
35924         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
35926         test-perror: avoid spurious failure on FreeBSD
35927         * modules/perror-tests (Depends-on): Add strerror, now that
35928         strerror_r no longer pulls it in.
35930 2011-05-20  Bruno Haible  <bruno@clisp.org>
35932         strerror_r-posix: Remove unused dependencies.
35933         * modules/strerror_r-posix (Depends-on): Remove strerror.
35934         Reported by Eric Blake.
35936 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
35938         intprops: remove assumption about A|B representation
35939         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
35940         is a valid integer if both A and B are.  Although this is true for
35941         all known practical hosts, the C standard doesn't guarantee it,
35942         and the code need not assume it.  Also, this change may work around
35943         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
35944         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
35946 2011-05-20  Eric Blake  <eblake@redhat.com>
35948         perror: work around FreeBSD bug
35949         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
35950         is broken.  Move AC_LIBOBJ...
35951         * modules/perror (configure.ac): Here.
35952         * doc/posix-functions/perror.texi (perror): Document this.
35953         * tests/test-perror2.c (main): Enhance test.
35955         test-perror: check for strerror interactions
35956         * tests/macros.h (STREQ): Add macro.
35957         * modules/perror-tests (Files): Add second test.
35958         * tests/test-perror2.c (main): New file.
35959         * doc/posix-functions/perror.texi (perror): Document glibc bug.
35961         test-perror: rewrite to use init script
35962         * modules/perror-tests (Files): Add init.sh.
35963         * tests/test-perror.sh: Use temporary directory.
35965 2011-05-20  Jim Meyering  <meyering@redhat.com>
35967         maint: replace misused "a" with "an"
35968         * doc/intprops.texi: "a integer"
35969         * doc/regex.texi: "a explanation"
35970         * lib/alignof.h: "a object"
35971         * lib/argmatch.h: "a explanation"
35972         * lib/argp-help.c: "a option" and "a OPTION_DOC"
35973         * lib/stdint.in.h: "a integer"
35974         * lib/userspec.c: "a owner"
35975         * doc/gnulib.texi: Fix "a idea", and reword.
35977 2011-05-19  Jim Meyering  <meyering@redhat.com>
35979         maint: correct misuse of "a" and "an"
35980         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
35981         * lib/argp-help.c: "an docum...": s/an/a/
35982         * lib/argp-parse.c: "An vector": s/An/A/
35983         * lib/execute.c: "an native": s/an/a/
35984         * lib/spawn-pipe.c: Likewise.
35985         * lib/gc.h: "an Gc_rc": s/an/a/
35986         * lib/unigbrk.in.h: "an grapheme": s/an/a/
35987         * lib/fts.c: "an stat.st_dev": s/an/a/
35989 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
35991         intprops-tests: work around HP-UX 11.23 cc bug with constants
35992         * tests/test-intprops.c (VERIFY): New macro.
35993         (main): Use it, instead of verify, to work around the compiler bug; see
35994         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
35996         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
35997         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
35998         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
35999         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
36000         (_GL_REMAINDER_OVERFLOW): Use it.
36002         intprops-tests: revert unsigned part of previous change
36003         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
36004         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
36005         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
36006         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
36008 2011-05-19  Bruno Haible  <bruno@clisp.org>
36010         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
36011         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
36012         strerror_r() returned without filling the buffer.
36013         Reported by Eric Blake.
36015 2011-05-19  Eric Blake  <eblake@redhat.com>
36017         strerror_r: guarantee unchanged errno
36018         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
36019         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
36020         failure.
36021         * tests/test-strerror_r.c (main): Enhance test.
36023 2011-05-19  Bruno Haible  <bruno@clisp.org>
36025         strerror_r: Reorder #if blocks.
36026         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
36027         for consistency with the previous commit.
36029 2011-05-19  Bruno Haible  <bruno@clisp.org>
36031         perror: Avoid clobbering the strerror buffer when possible.
36032         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
36033         * lib/strerror.c: Include it.
36034         * modules/strerror (Files): Add lib/strerror-impl.h.
36035         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
36036         (my_strerror): New function, defined through lib/strerror-impl.h.
36037         (perror): Use it instead of strerror.
36038         * modules/perror (Files): Add lib/strerror-impl.h.
36039         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
36041 2011-05-19  Eric Blake  <eblake@redhat.com>
36043         strerror_r: fix on newer cygwin
36044         * lib/strerror_r.c (strerror_r): Cygwin now has
36045         __xpg_strerror_r, use it.
36047 2011-05-19  Bruno Haible  <bruno@clisp.org>
36049         strerror_r: Avoid clobbering the strerror buffer when possible.
36050         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
36051         (sys_nerr, sys_errlist): New declarations.
36052         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
36053         HP-UX, native Win32, IRIX, and 32-bit Solaris.
36054         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
36056 2011-05-19  Bruno Haible  <bruno@clisp.org>
36058         strerror_r: Fix test failure on mingw.
36059         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
36060         EXTEND_STRERROR_R.
36061         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
36062         macros from errno.in.h instead.
36064 2011-05-19  Eric Blake  <eblake@redhat.com>
36066         strerror: relax test for Solaris
36067         * tests/test-strerror.c (main): Permit Solaris behavior.
36068         * tests/test-strerror_r.c (main): Likewise.
36070         strerror: enforce POSIX ruling on strerror(0)
36071         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
36072         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
36073         * lib/strerror_r.c (rpl_strerror_r): Work around it.
36074         * doc/posix-functions/strerror.texi (strerror): Document it.
36075         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
36076         * tests/test-strerror.c (main): Strengthen test.
36077         * tests/test-strerror_r.c (main): Likewise.
36079 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
36081         intprop-tests: port to older and more-pedantic compilers
36082         * modules/intprops-tests (Files): Add tests/macros.h.
36083         * tests/test-intprops.c: Include macros.h.
36084         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
36085         it's no longer documented to expand to an integer constant expression.
36086         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
36087         argument is floating point, as it's no longer documented to expand
36088         to an integer constant expression in that case.
36089         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
36090         compiler bugs reported by Bruno Haible.  See
36091         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
36092         (U0, U1): New constants, to work around the same bugs.  Also,
36093         in tests, use e.g., "(unsigned int) 39" rather than "39u".
36095         intprops: work around C compiler bugs
36096         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
36097         bug in Sun C 5.11 2010/08/13 and other compilers; see
36098         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
36100         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
36101         * doc/intprops.texi (Integer Type Determination): Fix
36102         documentation for TYPE_IS_INTEGER: it returns an constant
36103         expression, not an integer constant expression.  Fix doc for
36104         TYPE_SIGNED: it returns an integer constant expression only if its
36105         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
36106         hardly worth documented that way....)
36108 2011-05-18  Bruno Haible  <bruno@clisp.org>
36110         strerror_r: Avoid clobbering the strerror buffer when possible.
36111         * lib/strerror_r.c (strerror_r): Merge the three implementations.
36112         Handle gnulib defined errno values here. When strerror() returns NULL
36113         or an empty string, return EINVAL.
36114         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
36115         gnulib defined errno values here.
36116         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
36118 2011-05-18  Eric Blake  <eblake@redhat.com>
36120         fnmatch: avoid compiler warning
36121         * lib/fnmatch_loop.c (FCT): Use correct type.
36122         Reported by Matthias Bolte.
36124 2011-05-13  Jim Meyering  <meyering@redhat.com>
36126         maint.mk: three new prohibit_<HDR>_without_use rules
36127         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
36128         (sc_prohibit_stdio-safer_without_use): Likewise.
36129         (sc_prohibit_xfreopen_without_use): Likewise.
36131 2011-05-17  Jim Meyering  <meyering@redhat.com>
36133         announce-gen: fail if the NEWS delta is empty
36134         If there's nothing noteworthy in NEWS, then either you forgot
36135         or you shouldn't be releasing.
36136         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
36138 2011-05-17  Pádraig Brady  <P@draigBrady.com>
36140         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
36141         reserved symbols starting with double underscore from the check.
36143 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
36145         intprops: add doc
36146         * doc/intprops.texi: New file, documenting intprops.
36147         * doc/gnulib.texi (Particular Modules): Include it.
36149         verify: add doc to gnulib manual and fix example
36150         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
36151         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
36152         (Compile-time Assertions): Fix example so it can't overflow.
36154 2011-05-17  Jim Meyering  <meyering@redhat.com>
36156         warnings.m4: don't usurp save_CPPFLAGS variable name
36157         * m4/warnings.m4: Prefix local temporary variable name with gl_.
36159         doc: fix typo
36160         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
36162 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
36163             Bruno Haible  <bruno@clisp.org>
36165         doc: Tweak recent change.
36166         * README (Portability guidelines): Tweak new text.
36167         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
36168         Interix 6.1.
36170 2011-05-16  Eric Blake  <eblake@redhat.com>
36172         inttypes: avoid autoconf warning
36173         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
36174         * m4/stdint.m4 (gl_STDINT_H): Likewise.
36176 2011-05-16  Sam Steingold  <sds@gnu.org>
36177         and Eric Blake  <eblake@redhat.com>
36179         vc-list-files: accept multiple directory operands
36180         * build-aux/vc-list-files: Iterate over all remaining operands.
36182 2011-05-16  Bruno Haible  <bruno@clisp.org>
36184         Fix confusion regarding deprecated modules.
36185         * modules/calloc (Status, Notice): Mark module as deprecated, not
36186         obsolete.
36187         * modules/fnmatch-posix (Status, Notice): Likewise.
36188         * modules/getdate (Status, Notice): Likewise.
36189         * modules/getopt (Status, Notice): Likewise.
36190         * modules/malloc (Status, Notice): Likewise.
36191         * modules/pipe (Status, Notice): Likewise.
36192         * modules/realloc (Status, Notice): Likewise.
36193         * modules/rename-dest-slash (Status, Notice): Likewise.
36194         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
36195         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
36196         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
36197         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
36198         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
36200 2011-05-16  Bruno Haible  <bruno@clisp.org>
36202         doc: List the target platforms.
36203         * doc/gnulib-intro.texi (Target Platforms): New section.
36204         * doc/gnulib.texi (Introduction): Update menu.
36205         * README (Portability guidelines): Refer to the new section. Update
36206         statement about oldest supported environment. Remove rationale why
36207         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
36208         unportable C89 function.
36209         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
36210         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
36212 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
36214         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
36216 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
36218         intprops-tests: new module
36219         * modules/intprops-tests, tests/test-intprops.c: New files.
36221         intprops: add safe, portable integer overflow checking
36222         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
36223         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
36224         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
36225         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
36226         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
36227         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
36228         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
36229         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
36230         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
36231         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
36232         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
36234 2011-05-12  James Youngman  <jay@gnu.org>
36236         Add a test for glibc's Bugzilla bug #12378.
36237         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
36238         doesn't allow the literal matching of a lone "[" (which is
36239         required by POSIX).
36240         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
36242 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
36244         Sync glibc change fixing Bugzilla bug #12378.
36245         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
36246         beginning and fall back to matching as normal character if the
36247         string ends before the matching ']' is found.  This is what POSIX
36248         requires.
36250 2011-05-13  Eric Blake  <eblake@redhat.com>
36252         getcwd-lgpl: relax test for FreeBSD
36253         * doc/posix-functions/getcwd.texi (getcwd): Document portability
36254         issue.
36255         * tests/test-getcwd-lgpl.c (main): Relax test.
36256         Reported by Matthias Bolte.
36258 2011-05-11  Eric Blake  <eblake@redhat.com>
36260         test-fflush: silence compiler warning
36261         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
36263 2011-05-11  Bruno Haible  <bruno@clisp.org>
36265         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
36266         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
36267         * modules/canonicalize (Depends-on): Add 'nocrash'.
36268         * modules/canonicalize-lgpl (Depends-on): Likewise.
36269         * doc/posix-functions/realpath.texi: Update platforms list.
36270         Reported by Ryan Schmidt <ryandesign@macports.org>.
36272 2011-05-11  Bruno Haible  <bruno@clisp.org>
36274         group-member: Declare function in <unistd.h>.
36275         * lib/unistd.in.h (group_member): New declaration.
36276         * lib/group-member.h: Remove file.
36277         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
36278         * tests/test-unistd-c++.cc: Check signature of group_member.
36279         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
36280         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
36281         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
36282         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
36283         HAVE_GROUP_MEMBER.
36284         * modules/group-member (Files): Remove lib/group-member.h.
36285         (Depends-on): Add unistd. Specify conditions.
36286         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36287         (Include): Change to <unistd.h>.
36288         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
36289         HAVE_GROUP_MEMBER.
36290         * NEWS: Mention the change.
36291         * lib/euidaccess.c: Don't include group-member.h.
36293 2011-05-11  Bruno Haible  <bruno@clisp.org>
36295         group-member: Document module.
36296         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
36297         module.
36299 2011-05-11  Bruno Haible  <bruno@clisp.org>
36301         fclose: Fix mistake earlier today.
36302         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
36304 2011-05-11  Eric Blake  <eblake@redhat.com>
36306         fclose: preserve fflush errors
36307         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
36308         Reported by Jim Meyering.
36310         bootstrap: support a prereq of 'rpcgen -' on RHEL5
36311         * build-aux/bootstrap (check_versions): When no specific version
36312         is required, merely check that the app produces an exit status
36313         that indicates its existence.
36315         maint.mk: drop redundant check
36316         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
36317         the same but better.
36319 2011-05-11  Bruno Haible  <bruno@clisp.org>
36321         fclose: Fix possible link error.
36322         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
36323         unregister_shadow_fd. Improve comments.
36324         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
36325         Eric Blake.
36327 2011-05-11  Jim Meyering  <meyering@redhat.com>
36329         maint.mk: improve "can not" detection and generalize rule name
36330         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
36331         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
36332         Use the same technique as in sc_prohibit_doubled_word, so that
36333         we recognize "can not" also when the words are separated by a newline.
36334         Suggested by Eric Blake.
36335         (perl_filename_lineno_text_): Define.  Factored out of...
36336         (prohibit_doubled_word_): ...here.  Use the new definition.
36337         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
36338         (prohibit_undesirable_word_seq_RE_): New overridable variable.
36339         (ignore_undesirable_word_sequence_RE_): New overridable variable.
36341 2011-05-10  Eric Blake  <eblake@redhat.com>
36343         fclose: avoid double close race when possible
36344         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
36345         all but WINDOWS_SOCKETS.
36347 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
36349         openat: correct new comment
36350         * lib/openat-proc.c (openat_proc_name): Correct the comment.
36352 2011-05-10  Jim Meyering  <meyering@redhat.com>
36354         openat: add comments
36355         * lib/openat-proc.c (openat_proc_name): Add comments,
36356         mostly from Eric Blake.
36358 2011-05-09  Eric Blake  <eblake@redhat.com>
36360         openat: reduce syscalls in first probe of /proc
36361         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
36362         be a directory.  Simplify the probe for .. bugs.
36363         * modules/openat (Depends-on): Drop same-inode.
36364         Reported by Bastien ROUCARIES.
36366 2011-05-09  Jim Meyering  <meyering@redhat.com>
36368         maint.mk: change semantics/name of tight_scope variables
36369         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
36370         Rename variables to align with semantics that make them more useful.
36372         maint.mk: tweak new rule's name not to impinge
36373         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
36374         (sc_tight_scope): Use new rule name rather than $@-0.
36376         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
36377         * top/maint.mk (sc_tight_scope): New rule.
36378         (sc_tight_scope-0): New rule, ifdef'd out.
36379         (_gl_TS_dir): Default.
36380         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
36381         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
36383 2011-05-09  Simon Josefsson  <simon@josefsson.org>
36385         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
36386         Haible <bruno@clisp.org>.
36388 2011-05-08  Bruno Haible  <bruno@clisp.org>
36390         Comments.
36391         * m4/isnanf.m4: Add comment.
36392         * m4/isnanl.m4: Likewise.
36394 2011-05-08  Bruno Haible  <bruno@clisp.org>
36396         glob: Remove obsolete macro.
36397         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
36399 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
36401         intprops: Sun C 5.11 supports __typeof__
36402         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
36403         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
36404         which is new.
36405         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
36407         intprops: switch to usual gnulib indenting and naming
36408         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
36409         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
36411         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
36413 2011-05-08  Jim Meyering  <meyering@redhat.com>
36415         maint.mk: suppress "Entering/Leaving directory" diag in announcement
36416         * top/maint.mk (release-prep): Use make's --no-print-directory
36417         option when generating the announcement.  This eliminates the
36418         pesky "make[2]: Entering/Leaving directory" diagnostics in the
36419         generated announcement template.
36421 2011-05-08  Bruno Haible  <bruno@clisp.org>
36423         tzset: Fix gettimeofday wrapper on Solaris 2.6.
36424         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
36425         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
36427 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
36429         ignore-value, verify: Omit include files from lib_SOURCES.
36430         * modules/ignore-value, modules/verify (Makefile.am):
36431         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
36432         that leads Automake to duplicate use of am__objects_... variables
36433         in Makefile.in.  See
36434         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
36436 2011-05-07  Bruno Haible  <bruno@clisp.org>
36438         fclose: Simplify autoconf macro.
36439         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
36440         defined.
36442 2011-05-07  Bruno Haible  <bruno@clisp.org>
36444         canonicalize-lgpl: Fix autoconf macro ordering bug.
36445         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
36446         gl_STDLIB_H_DEFAULTS.
36448 2011-05-06  Eric Blake  <eblake@redhat.com>
36450         maintainer-makefile: make sc_po_check easier to tune
36451         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
36452         to probe for strings, such as an alternate location for gnulib.
36454         fclose: guarantee behavior on seekable stdin
36455         * modules/fclose (Depends-on): Add fflush.
36456         * doc/posix-functions/fclose.texi (fclose): Document this.
36457         * tests/test-fclose.c (main): Make test for this unconditional.
36459 2011-05-06  Bruno Haible  <bruno@clisp.org>
36461         fflush, fpurge: Relicense under LGPLv2+.
36462         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
36463         * modules/fpurge (License): Likewise.
36464         With permission from Eric Blake and Jim Meyering.
36465         Suggested by Eric Blake.
36467 2011-05-06  Karl Berry  <karl@gnu.org>
36469         * MODULES.html.sh (func_all_modules): remove exit.
36471 2011-05-06  Jim Meyering  <meyering@redhat.com>
36473         maint.mk: use info-gnu@ as the default only for a stable release
36474         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
36475         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
36476         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
36477         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
36479 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
36481         assert-h: new module, which supports C1X-style static_assert
36482         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
36483         * lib/verify.h: Revamp so that this can be copied into assert.h,
36484         while retaining the ability to use it standalone as before.
36485         Rename private identifiers so as not to encroach on the
36486         standard C namespace, since this is now used by assert.h.
36487         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
36488         the old verify_true.
36489         (_GL_VERIFY_TRUE): New macro, with much of the contents of
36490         the old verify_true.  Use _GL_VERIFY_TYPE.
36491         (_GL_VERIFY): New macro, with much of the contents of the old verify.
36492         (static_assert): New macro, if _GL_STATIC_ASSERT_H
36493         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
36494         defined when this file is copied into the replacement assert.h.
36495         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
36496         and _Static_assert is not built in.
36497         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
36498         defined, and use the new macros mentioned above.
36499         * doc/posix-headers/assert.texi: Document this.
36501 2011-05-05  Bruno Haible  <bruno@clisp.org>
36503         fclose, fflush: Respect rules for use of AC_LIBOBJ.
36504         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
36505         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
36506         gl_REPLACE_FCLOSE here.
36507         * modules/fflush (Depends-on): Remove fclose.
36508         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
36509         combination with module 'fclose'.
36511 2011-05-05  Bruno Haible  <bruno@clisp.org>
36513         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
36514         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
36515         gl_FUNC_FFLUSH.
36516         (gl_FUNC_FFLUSH): Use it.
36517         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
36518         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
36519         gl_REPLACE_FSEEKO here.
36521 2011-05-05  Bruno Haible  <bruno@clisp.org>
36523         tzset: Relicense under LGPL.
36524         * modules/tzset (License): Change to LGPL.
36525         No agreement needed; it's a no-op.
36527         strtoimax, strtoumax: Relicense under LGPL.
36528         * modules/strtoimax (License): Change to LGPL.
36529         * modules/strtoumax (License): Likewise.
36530         With permission from Jim Meyering, Paul Eggert:
36531         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
36532         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
36534         getgroups: Relicense under LGPL.
36535         * modules/getgroups (License): Change to LGPL.
36536         With permission from Jim Meyering, Paul Eggert, Eric Blake:
36537         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
36538         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
36539         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
36541         nanosleep: Relicense under LGPL.
36542         * modules/nanosleep (License): Change to LGPL.
36543         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
36544         Haible:
36545         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
36546         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
36547         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
36548         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
36550         futimens: Relicense under LGPL.
36551         * modules/futimens (License): Change to LGPL.
36552         With permission from Eric Blake:
36553         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
36555         fflush: Relicense under LGPL.
36556         * modules/fflush (License): Change to LGPL.
36557         With permission from Eric Blake, Bruno Haible, Jim Meyering:
36558         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
36559         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
36560         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
36562         tmpfile: Relicense under LGPL.
36563         * modules/tmpfile (License): Change to LGPL.
36564         With permission from Ben Pfaff:
36565         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
36567         isfinite: Relicense under LGPL.
36568         * modules/isfinite (License): Change to LGPL.
36569         With permission from Ben Pfaff, Bruno Haible:
36570         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
36571         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
36573         acosl..tanl: Relicense under LGPL.
36574         * modules/acosl (License): Change to LGPL.
36575         * modules/asinl (License): Likewise.
36576         * modules/atanl (License): Likewise.
36577         * modules/cosl (License): Likewise.
36578         * modules/expl (License): Likewise.
36579         * modules/logl (License): Likewise.
36580         * modules/sinl (License): Likewise.
36581         * modules/sqrtl (License): Likewise.
36582         * modules/tanl (License): Likewise.
36583         Source code originally from glibc and Paolo Bonzini. Agreements:
36584         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
36585         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
36587 2011-05-05  Bruno Haible  <bruno@clisp.org>
36589         signal: Define sighandler_t.
36590         * lib/signal.in.h (sighandler_t): New type.
36591         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
36592         whether sighandler_t is defined.
36593         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
36594         * modules/signal (Depends-on): Add extensions.
36595         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
36596         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
36597         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
36599 2011-05-05  Eric Blake  <eblake@redhat.com>
36601         maint: remove useless REPLACE_*_H macros
36602         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
36603         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
36604         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
36605         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
36606         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
36607         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
36608         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
36609         * m4/btowc.m4: Update callers.
36610         * m4/dirfd.m4: Likewise.
36611         * m4/duplocale.m4: Likewise.
36612         * m4/fchdir.m4: Likewise.
36613         * m4/fdopendir.m4: Likewise.
36614         * m4/inet_ntop.m4: Likewise.
36615         * m4/inet_pton.m4: Likewise.
36616         * m4/ioctl.m4: Likewise.
36617         * m4/mbrlen.m4: Likewise.
36618         * m4/mbrtowc.m4: Likewise.
36619         * m4/mbsinit.m4: Likewise.
36620         * m4/mbsnrtowcs.m4: Likewise.
36621         * m4/mbsrtowcs.m4: Likewise.
36622         * m4/poll.m4: Likewise.
36623         * m4/setlocale.m4: Likewise.
36624         * m4/wcrtomb.m4: Likewise.
36625         * m4/wcsnrtombs.m4: Likewise.
36626         * m4/wcsrtombs.m4: Likewise.
36627         * m4/wctob.m4: Likewise.
36628         * m4/wcwidth.m4: Likewise.
36629         * modules/posix_spawn: Likewise.
36630         * modules/posix_spawn_file_actions_addclose: Likewise.
36631         * modules/posix_spawn_file_actions_adddup2: Likewise.
36632         * modules/posix_spawn_file_actions_addopen: Likewise.
36633         * modules/posix_spawn_file_actions_destroy: Likewise.
36634         * modules/posix_spawn_file_actions_init: Likewise.
36635         * modules/posix_spawnattr_destroy: Likewise.
36636         * modules/posix_spawnattr_getflags: Likewise.
36637         * modules/posix_spawnattr_getpgroup: Likewise.
36638         * modules/posix_spawnattr_getschedparam: Likewise.
36639         * modules/posix_spawnattr_getschedpolicy: Likewise.
36640         * modules/posix_spawnattr_getsigdefault: Likewise.
36641         * modules/posix_spawnattr_getsigmask: Likewise.
36642         * modules/posix_spawnattr_init: Likewise.
36643         * modules/posix_spawnattr_setflags: Likewise.
36644         * modules/posix_spawnattr_setpgroup: Likewise.
36645         * modules/posix_spawnattr_setschedparam: Likewise.
36646         * modules/posix_spawnattr_setschedpolicy: Likewise.
36647         * modules/posix_spawnattr_setsigdefault: Likewise.
36648         * modules/posix_spawnattr_setsigmask: Likewise.
36649         * modules/posix_spawnp: Likewise.
36651 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
36653         Add option to do-release-commit-and-tag to specify branch.
36654         * build-aux/do-release-commit-and-tag: Add --branch.
36656 2011-05-03  Bruno Haible  <bruno@clisp.org>
36658         Avoid unnecessary compilation units, through conditional dependencies.
36659         * modules/accept (Depends-on): Add conditions to the dependencies.
36660         * modules/acosl (Depends-on): Likewise.
36661         * modules/argz (Depends-on): Likewise.
36662         * modules/asinl (Depends-on): Likewise.
36663         * modules/atanl (Depends-on): Likewise.
36664         * modules/atoll (Depends-on): Likewise.
36665         * modules/bind (Depends-on): Likewise.
36666         * modules/btowc (Depends-on): Likewise.
36667         * modules/canonicalize-lgpl (Depends-on): Likewise.
36668         * modules/ceil (Depends-on): Likewise.
36669         * modules/ceilf (Depends-on): Likewise.
36670         * modules/ceill (Depends-on): Likewise.
36671         * modules/chdir-long (Depends-on): Likewise.
36672         * modules/chown (Depends-on): Likewise.
36673         * modules/close (Depends-on): Likewise.
36674         * modules/connect (Depends-on): Likewise.
36675         * modules/cosl (Depends-on): Likewise.
36676         * modules/dirfd (Depends-on): Likewise.
36677         * modules/dprintf (Depends-on): Likewise.
36678         * modules/dprintf-posix (Depends-on): Likewise.
36679         * modules/error (Depends-on): Likewise.
36680         * modules/euidaccess (Depends-on): Likewise.
36681         * modules/expl (Depends-on): Likewise.
36682         * modules/faccessat (Depends-on): Likewise.
36683         * modules/fchdir (Depends-on): Likewise.
36684         * modules/fclose (Depends-on): Likewise.
36685         * modules/fcntl (Depends-on): Likewise.
36686         * modules/fdopendir (Depends-on): Likewise.
36687         * modules/fflush (Depends-on): Likewise.
36688         * modules/floor (Depends-on): Likewise.
36689         * modules/floorf (Depends-on): Likewise.
36690         * modules/floorl (Depends-on): Likewise.
36691         * modules/fnmatch (Depends-on): Likewise.
36692         * modules/fopen (Depends-on): Likewise.
36693         * modules/fprintf-posix (Depends-on): Likewise.
36694         * modules/frexp (Depends-on): Likewise.
36695         * modules/frexp-nolibm (Depends-on): Likewise.
36696         * modules/frexpl (Depends-on): Likewise.
36697         * modules/frexpl-nolibm (Depends-on): Likewise.
36698         * modules/fseek (Depends-on): Likewise.
36699         * modules/fsusage (Depends-on): Likewise.
36700         * modules/ftell (Depends-on): Likewise.
36701         * modules/ftello (Depends-on): Likewise.
36702         * modules/futimens (Depends-on): Likewise.
36703         * modules/getcwd (Depends-on): Likewise.
36704         * modules/getcwd-lgpl (Depends-on): Likewise.
36705         * modules/getdelim (Depends-on): Likewise.
36706         * modules/getdomainname (Depends-on): Likewise.
36707         * modules/getgroups (Depends-on): Likewise.
36708         * modules/gethostname (Depends-on): Likewise.
36709         * modules/getline (Depends-on): Likewise.
36710         * modules/getlogin_r (Depends-on): Likewise.
36711         * modules/getopt-posix (Depends-on): Likewise.
36712         * modules/getpeername (Depends-on): Likewise.
36713         * modules/getsockname (Depends-on): Likewise.
36714         * modules/getsockopt (Depends-on): Likewise.
36715         * modules/getsubopt (Depends-on): Likewise.
36716         * modules/getusershell (Depends-on): Likewise.
36717         * modules/glob (Depends-on): Likewise.
36718         * modules/grantpt (Depends-on): Likewise.
36719         * modules/iconv_open (Depends-on): Likewise.
36720         * modules/iconv_open-utf (Depends-on): Likewise.
36721         * modules/inet_ntop (Depends-on): Likewise.
36722         * modules/inet_pton (Depends-on): Likewise.
36723         * modules/ioctl (Depends-on): Likewise.
36724         * modules/isapipe (Depends-on): Likewise.
36725         * modules/isfinite (Depends-on): Likewise.
36726         * modules/isinf (Depends-on): Likewise.
36727         * modules/lchown (Depends-on): Likewise.
36728         * modules/ldexpl (Depends-on): Likewise.
36729         * modules/link (Depends-on): Likewise.
36730         * modules/linkat (Depends-on): Likewise.
36731         * modules/listen (Depends-on): Likewise.
36732         * modules/logl (Depends-on): Likewise.
36733         * modules/lstat (Depends-on): Likewise.
36734         * modules/mbrlen (Depends-on): Likewise.
36735         * modules/mbrtowc (Depends-on): Likewise.
36736         * modules/mbsinit (Depends-on): Likewise.
36737         * modules/mbsnrtowcs (Depends-on): Likewise.
36738         * modules/mbsrtowcs (Depends-on): Likewise.
36739         * modules/mbtowc (Depends-on): Likewise.
36740         * modules/memcmp (Depends-on): Likewise.
36741         * modules/mkdir (Depends-on): Likewise.
36742         * modules/mkdtemp (Depends-on): Likewise.
36743         * modules/mkfifo (Depends-on): Likewise.
36744         * modules/mkfifoat (Depends-on): Likewise.
36745         * modules/mknod (Depends-on): Likewise.
36746         * modules/mkostemp (Depends-on): Likewise.
36747         * modules/mkostemps (Depends-on): Likewise.
36748         * modules/mkstemp (Depends-on): Likewise.
36749         * modules/mkstemps (Depends-on): Likewise.
36750         * modules/mktime (Depends-on): Likewise.
36751         * modules/nanosleep (Depends-on): Likewise.
36752         * modules/open (Depends-on): Likewise.
36753         * modules/openat (Depends-on): Likewise.
36754         * modules/perror (Depends-on): Likewise.
36755         * modules/poll (Depends-on): Likewise.
36756         * modules/popen (Depends-on): Likewise.
36757         * modules/posix_spawn (Depends-on): Likewise.
36758         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
36759         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
36760         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
36761         * modules/posix_spawnp (Depends-on): Likewise.
36762         * modules/pread (Depends-on): Likewise.
36763         * modules/printf-posix (Depends-on): Likewise.
36764         * modules/ptsname (Depends-on): Likewise.
36765         * modules/putenv (Depends-on): Likewise.
36766         * modules/pwrite (Depends-on): Likewise.
36767         * modules/readline (Depends-on): Likewise.
36768         * modules/readlink (Depends-on): Likewise.
36769         * modules/readlinkat (Depends-on): Likewise.
36770         * modules/recv (Depends-on): Likewise.
36771         * modules/recvfrom (Depends-on): Likewise.
36772         * modules/regex (Depends-on): Likewise.
36773         * modules/remove (Depends-on): Likewise.
36774         * modules/rename (Depends-on): Likewise.
36775         * modules/renameat (Depends-on): Likewise.
36776         * modules/rmdir (Depends-on): Likewise.
36777         * modules/round (Depends-on): Likewise.
36778         * modules/roundf (Depends-on): Likewise.
36779         * modules/roundl (Depends-on): Likewise.
36780         * modules/rpmatch (Depends-on): Likewise.
36781         * modules/select (Depends-on): Likewise.
36782         * modules/send (Depends-on): Likewise.
36783         * modules/sendto (Depends-on): Likewise.
36784         * modules/setenv (Depends-on): Likewise.
36785         * modules/setlocale (Depends-on): Likewise.
36786         * modules/setsockopt (Depends-on): Likewise.
36787         * modules/shutdown (Depends-on): Likewise.
36788         * modules/sigaction (Depends-on): Likewise.
36789         * modules/signbit (Depends-on): Likewise.
36790         * modules/sigprocmask (Depends-on): Likewise.
36791         * modules/sinl (Depends-on): Likewise.
36792         * modules/sleep (Depends-on): Likewise.
36793         * modules/snprintf (Depends-on): Likewise.
36794         * modules/snprintf-posix (Depends-on): Likewise.
36795         * modules/socket (Depends-on): Likewise.
36796         * modules/sprintf-posix (Depends-on): Likewise.
36797         * modules/sqrtl (Depends-on): Likewise.
36798         * modules/stat (Depends-on): Likewise.
36799         * modules/strchrnul (Depends-on): Likewise.
36800         * modules/strdup-posix (Depends-on): Likewise.
36801         * modules/strerror (Depends-on): Likewise.
36802         * modules/strerror_r-posix (Depends-on): Likewise.
36803         * modules/strndup (Depends-on): Likewise.
36804         * modules/strnlen (Depends-on): Likewise.
36805         * modules/strptime (Depends-on): Likewise.
36806         * modules/strsep (Depends-on): Likewise.
36807         * modules/strsignal (Depends-on): Likewise.
36808         * modules/strstr-simple (Depends-on): Likewise.
36809         * modules/strtod (Depends-on): Likewise.
36810         * modules/strtoimax (Depends-on): Likewise.
36811         * modules/strtok_r (Depends-on): Likewise.
36812         * modules/strtoumax (Depends-on): Likewise.
36813         * modules/symlink (Depends-on): Likewise.
36814         * modules/symlinkat (Depends-on): Likewise.
36815         * modules/tanl (Depends-on): Likewise.
36816         * modules/tcgetsid (Depends-on): Likewise.
36817         * modules/tmpfile (Depends-on): Likewise.
36818         * modules/trunc (Depends-on): Likewise.
36819         * modules/truncf (Depends-on): Likewise.
36820         * modules/truncl (Depends-on): Likewise.
36821         * modules/uname (Depends-on): Likewise.
36822         * modules/unlink (Depends-on): Likewise.
36823         * modules/unlockpt (Depends-on): Likewise.
36824         * modules/unsetenv (Depends-on): Likewise.
36825         * modules/usleep (Depends-on): Likewise.
36826         * modules/utimensat (Depends-on): Likewise.
36827         * modules/vasprintf (Depends-on): Likewise.
36828         * modules/vdprintf (Depends-on): Likewise.
36829         * modules/vdprintf-posix (Depends-on): Likewise.
36830         * modules/vfprintf-posix (Depends-on): Likewise.
36831         * modules/vprintf-posix (Depends-on): Likewise.
36832         * modules/vsnprintf (Depends-on): Likewise.
36833         * modules/vsnprintf-posix (Depends-on): Likewise.
36834         * modules/vsprintf-posix (Depends-on): Likewise.
36835         * modules/wcrtomb (Depends-on): Likewise.
36836         * modules/wcscasecmp (Depends-on): Likewise.
36837         * modules/wcscspn (Depends-on): Likewise.
36838         * modules/wcsdup (Depends-on): Likewise.
36839         * modules/wcsncasecmp (Depends-on): Likewise.
36840         * modules/wcsnrtombs (Depends-on): Likewise.
36841         * modules/wcspbrk (Depends-on): Likewise.
36842         * modules/wcsrtombs (Depends-on): Likewise.
36843         * modules/wcsspn (Depends-on): Likewise.
36844         * modules/wcsstr (Depends-on): Likewise.
36845         * modules/wcstok (Depends-on): Likewise.
36846         * modules/wcswidth (Depends-on): Likewise.
36847         * modules/wctob (Depends-on): Likewise.
36848         * modules/wctomb (Depends-on): Likewise.
36849         * modules/wctype (Depends-on): Likewise.
36850         * modules/wcwidth (Depends-on): Likewise.
36851         * modules/write (Depends-on): Likewise.
36853 2011-05-03  Bruno Haible  <bruno@clisp.org>
36855         Support for conditional dependencies.
36856         * doc/gnulib.texi (Module description): Document the syntax of
36857         conditional dependencies.
36858         * gnulib-tool: New option --conditional-dependencies.
36859         (func_usage): Document it.
36860         (cond_dependencies): New variable.
36861         (func_get_automake_snippet_conditional,
36862         func_get_automake_snippet_unconditional): New functions, extracted from
36863         func_get_automake_snippet.
36864         (func_get_automake_snippet): Use them.
36865         (sed_first_32_chars): New variable.
36866         (func_module_shellfunc_name): New function.
36867         (func_module_shellvar_name): New function.
36868         (func_module_conditional_name): New function.
36869         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
36870         func_cond_module_condition): New functions.
36871         (func_modules_transitive_closure): Add support for conditional
36872         dependencies.
36873         (func_emit_lib_Makefile_am): For a conditional module, enclose the
36874         conditional automake snippet in an automake conditional.
36875         (func_emit_autoconf_snippets): Emit shell functions that contain the
36876         code for conditional modules.
36877         (func_import, func_create_testdir): Update specification.
36879 2011-05-03  Eric Blake  <eblake@redhat.com>
36881         test-getaddrinfo: report error information
36882         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
36884 2011-05-03  Jim Meyering  <meyering@redhat.com>
36886         bootstrap: avoid build failure when $GZIP is set
36887         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
36888         program name.  If defined at all, it is supposed to list gzip options.
36889         Reported by Alan Curry in http://debbugs.gnu.org/8609
36891 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
36893         readme-release: new module with release instructions
36894         * modules/readme-release: New module.
36895         * top/README-release: New file, from coreutils, grep, diffutils.
36896         * MODULES.html.sh (Support for maintaining and releasing): Add it.
36898 2011-05-02  Eric Blake  <eblake@redhat.com>
36900         fflush: also replace fclose when fixing fflush
36901         * modules/fflush (Depends-on): Add fclose.
36902         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
36903         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
36904         memstreams with no backing fd.
36905         * doc/posix-functions/fclose.texi (fclose): Document the use of
36906         fflush module to fix the bug.
36907         * tests/test-fclose.c (main): Relax test when fclose is used in
36908         isolation.
36910         fclose: add some tests
36911         * modules/fclose-tests: New test module.
36912         * tests/test-fclose.c: New file.
36913         * doc/posix-functions/fclose.texi (fclose): Document the bug.
36915         fclose: reduced dependencies
36916         * modules/fclose (Depends-on): Switch from fflush/fseeko to
36917         simpler lseek.
36918         * lib/fclose.c (rpl_fclose): Likewise.
36919         Reported by Simon Josefsson.
36921         exit: drop remaining clients
36922         * modules/argmatch (Depends-on): Replace exit with stdlib.
36923         * modules/copy-file (Depends-on): Likewise.
36924         * modules/execute (Depends-on): Likewise.
36925         * modules/exitfail (Depends-on): Likewise.
36926         * modules/obstack (Depends-on): Likewise.
36927         * modules/pagealign_alloc (Depends-on): Likewise.
36928         * modules/pipe-filter-gi (Depends-on): Likewise.
36929         * modules/pipe-filter-ii (Depends-on): Likewise.
36930         * modules/savewd (Depends-on): Likewise.
36931         * modules/spawn-pipe (Depends-on): Likewise.
36932         * modules/wait-process (Depends-on): Likewise.
36933         * modules/xsetenv (Depends-on): Likewise.
36934         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
36935         * modules/git-merge-changelog (Depends-on): Likewise.
36936         * modules/long-options (Depends-on): Likewise.
36937         * modules/pt_chown (Depends-on): Likewise.
36938         * modules/sysexits (Depends-on): Likewise.
36940         freading: relax license from LGPLv3+ to LGPLv2+
36941         * modules/freading (License): Relax LGPL version.
36943 2011-05-02  Bruno Haible  <bruno@clisp.org>
36945         fchdir: Remove unused dependencies.
36946         * modules/fchdir (Depends-on): Remove include_next.
36948 2011-05-02  Bruno Haible  <bruno@clisp.org>
36950         gnulib-tool: Refactor.
36951         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
36952         from func_emit_autoconf_snippets.
36953         (func_emit_autoconf_snippets): Use it.
36955 2011-05-02  Simon Josefsson  <simon@josefsson.org>
36957         * NEWS: Document removal of 'exit'.
36958         * modules/exit: Remove file.
36960 2011-05-01  Bruno Haible  <bruno@clisp.org>
36962         Update DEPENDENCIES.
36963         * DEPENDENCIES (gettext): Recommend the newest release.
36964         Reported by Simon Josefsson.
36966 2011-05-01  Bruno Haible  <bruno@clisp.org>
36968         gnulib-tool: Reduce code duplication.
36969         * gnulib-tool (func_emit_autoconf_snippets): New function.
36970         (func_import, func_create_testdir): Use it.
36972 2011-04-30  Eric Blake  <eblake@redhat.com>
36974         fclose: don't fail on non-seekable input stream
36975         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
36976         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
36977         since fflush is allowed to fail in that case.
36979 2011-04-30  Bruno Haible  <bruno@clisp.org>
36981         dup3: cleanup
36982         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
36984 2011-04-30  Bruno Haible  <bruno@clisp.org>
36986         netdb: Make it work in C++ mode.
36987         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
36988         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
36989         module.
36990         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
36991         gl_MODULE_INDICATOR_FOR_TESTS.
36992         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
36993         * modules/netdb-c++-tests: New file.
36994         * tests/test-netdb-c++.cc: New file.
36996 2011-04-30  Bruno Haible  <bruno@clisp.org>
36998         New modules 'vfscanf', 'vscanf'.
36999         * modules/vfscanf: New file.
37000         * modules/vscanf: New file.
37001         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
37002         here.
37003         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
37004         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
37006 2011-04-30  Bruno Haible  <bruno@clisp.org>
37008         passfd: Add comments.
37009         * lib/passfd.c: Add comments about platforms.
37011 2011-04-30  Bruno Haible  <bruno@clisp.org>
37013         sys_uio: Make <sys/uio.h> self-contained.
37014         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
37015         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
37017 2011-04-30  Bruno Haible  <bruno@clisp.org>
37019         sys_socket: Ensure 'struct iovec' definition.
37020         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
37021         <sys/socket.h>.
37022         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
37024 2011-04-30  Bruno Haible  <bruno@clisp.org>
37026         sys_uio: Protect definition of 'struct iovec'.
37027         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
37028         it as a C struct.
37030 2011-04-30  Bruno Haible  <bruno@clisp.org>
37032         manywarnings: fix indentation
37033         * m4/manywarnings.m4: Indent by 2 spaces consistently.
37035 2011-04-30  Pádraig Brady  <P@draigBrady.com>
37037         manywarnings: add -Wno-missing-field-initializers if needed.
37038         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
37039         option if it's needed to allow initialization with { 0, }
37041 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
37043         announce-gen: cosmetic improvement
37044         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
37046 2011-04-29  Jim Meyering  <meyering@redhat.com>
37048         vc-list-files: indent with spaces, not TABs
37049         * build-aux/vc-list-files: Convert leading TABs to spaces,
37050         to match the style of most other files in gnulib.
37052         announce-gen: indent with spaces, not TABs
37053         * build-aux/announce-gen: Convert all TABs to spaces, to match
37054         the style of most other files in gnulib.
37056 2011-04-29  Eric Blake  <eblake@redhat.com>
37058         quotearg: avoid uninitialized variable use
37059         * lib/quotearg.c (quoting_options_from_style): Initialize
37060         remaining fields, and ensure that custom styles are only used via
37061         quoting_options rather than quoting_style.
37063 2011-04-29  Jim Meyering  <meyering@redhat.com>
37065         maint.mk: remove unused VC-tag variable
37066         * top/maint.mk (VC-tag): Remove unused variable.
37068 2011-04-29  Bruno Haible  <bruno@clisp.org>
37070         netdb: fix gai_strerror replacements
37071         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
37072         * modules/netdb: Substitute it.
37074 2011-04-29  Jim Meyering  <meyering@redhat.com>
37076         test-getcwd.c: avoid new set-but-not-used warning
37077         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
37078         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
37079         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
37080         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
37082         test-hash.c: avoid a new shadowing warning
37083         * tests/test-hash.c (main): Don't shadow "dup".
37085 2011-04-28  Eric Blake  <eblake@redhat.com>
37087         getaddrinfo: fix gai_strerror signature
37088         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
37089         and work around mingw with UNICODE defined.
37090         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
37091         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
37092         * modules/netdb (Makefile.am): Substitute it.
37093         * lib/netdb.in.h (gai_strerror): Declare replacement.
37094         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
37095         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
37096         the fix.
37098         getsockopt: avoid compiler warning
37099         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
37100         Reported by Matthias Bolte.
37102         tests: drop unused link dependency
37103         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
37104         * modules/dirent-safer-tests (Makefile.am): Likewise.
37105         * modules/fdopendir-tests (Makefile.am): Likewise.
37106         * modules/mkfifoat-tests (Makefile.am): Likewise.
37107         * modules/openat-safer-tests (Makefile.am): Likewise.
37108         * modules/openat-tests (Makefile.am): Likewise.
37109         * modules/readlinkat-tests (Makefile.am): Likewise.
37110         * modules/symlinkat-tests (Makefile.am): Likewise.
37111         * modules/linkat-tests (Makefile.am): Likewise.
37112         (Depends-on): Switch to filenamecat-lgpl.
37113         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
37114         LIBINTL.
37115         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
37116         * tests/test-linkat.c (main): Don't require xalloc.
37118         hash, mgetgroups: drop xalloc dependency
37119         * lib/hash.c (includes): Adjust includes.
37120         * lib/mgetgroups.c (includes): Likewise.
37121         (xgetgroups): Move...
37122         * lib/xgetgroups.c: ...to new file.
37123         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
37124         * modules/xgetgroups: New file, split from...
37125         * modules/mgetgroups: ...here.
37126         (Depends-on): Add xalloc-oversized.
37127         * modules/hash (Depends-on): Likewise.
37128         * modules/hash-tests (Depends-on): Drop xalloc.
37129         (test_hash_LDADD): Drop unused library.
37130         * tests/test-hash.c (main): Break xalloc dependency.
37131         (includes): Drop unused include.
37133         xalloc-oversized: new module
37134         * modules/xalloc-oversized: New module.
37135         * modules/xalloc (Depends-on): Add it.
37136         * lib/xalloc.h (xalloc_oversized): Move...
37137         * lib/xalloc-oversized.h: ...into new file.
37139         utimecmp: drop dependency on xmalloc
37140         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
37141         due to memory pressure.
37142         * modules/utimecmp (Depends-on): Drop xalloc.
37144 2011-04-27  Eric Blake  <eblake@redhat.com>
37146         getcwd: fix mingw bugs
37147         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
37148         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
37149         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
37151 2011-04-27  Bruno Haible  <bruno@clisp.org>
37153         mkstemps: Ensure declaration on MacOS X 10.5.
37154         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
37155         * doc/glibc-functions/mkstemps.texi: Document header file problem on
37156         MacOS X.
37158 2011-04-27  Bruno Haible  <bruno@clisp.org>
37160         mkstemp: More documentation.
37161         * doc/posix-functions/mkstemp.texi: Document header file problem on
37162         MacOS X.
37164 2011-04-27  Bruno Haible  <bruno@clisp.org>
37166         mkstemp: Tweak configure message when cross-compiling.
37167         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
37168         result as a guess.
37170 2011-04-27  Bruno Haible  <bruno@clisp.org>
37172         clean-temp: Clarify what it does.
37173         * lib/clean-temp.h: Add more comments.
37174         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
37175         module.
37176         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
37177         * doc/glibc-functions/mkstemps.texi: Likewise.
37178         * doc/glibc-functions/mkostemps.texi: Likewise.
37180 2011-04-27  Eric Blake  <eblake@redhat.com>
37182         fchdir: avoid extra chdir and fix test
37183         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
37184         getcwd-lgpl.
37185         * lib/fchdir.c (get_name): Any absolute name will do; it does not
37186         have to be canonical.
37187         (canonicalize_file_name): Drop unused macro.
37188         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
37190         filenamecat-lgpl: fix licence
37191         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
37192         when it was first created.
37194         linkat, renameat: add missing dependency
37195         * modules/linkat (Depends-on): Require getcwd-lgpl.
37196         * modules/renameat (Depends-on): Likewise.
37198         tests: reduce dependencies
37199         * tests/test-linkat.c (main): Use lighter-weight getcwd.
37200         * tests/test-renameat.c (main): Likewise.
37201         * modules/linkat-tests (Depends-on): Relax dependency.
37202         * modules/renameat-tests (Depends-on): Likewise.
37203         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
37204         dependency explicit.
37206         save-cwd: reduce default dependency
37207         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
37208         * lib/save-cwd.c: Update comments.
37209         * NEWS: Document the semantic change.
37211         getcwd: enhance tests
37212         * tests/test-getcwd-lgpl.c: New file, taken from...
37213         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
37214         repeat long path stress tests from m4 probe.
37215         * modules/getcwd-lgpl-tests: New module.
37216         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
37217         * m4/getcwd-abort-bug.m4: Update comment.
37218         * m4/getcwd-path-max.m4: Likewise.
37220         getcwd-lgpl: new module
37221         * modules/getcwd-lgpl: New module.
37222         * lib/getcwd-lgpl.c: New file.
37223         * doc/posix-functions/getcwd.texi (getcwd): Document it.
37224         * MODULES.html.sh (lacking POSIX:2008): Likewise.
37225         * modules/getcwd (configure.ac): Set C witness.
37226         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
37228         getcwd: tweak comments
37229         * m4/getcwd-abort-bug.m4: Fix comments.
37230         * m4/getcwd-path-max.m4: Likewise.
37231         * m4/getcwd.m4: Likewise.
37233 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
37234         and Eric Blake  <eblake@redhat.com>
37236         mkstemp: replace if system version uses wrong permissions
37237         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
37238         read/write mode bits set in file created by mkstemp.
37239         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
37241 2011-04-27  Eric Blake  <eblake@redhat.com>
37243         passfd: avoid compiler warning
37244         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
37245         Reported by Laine Stump.
37247 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
37249         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
37250         required by the NetBSD (and perhaps other 4.4BSD derived) join.
37252 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
37253         and Eric Blake  <eblake@redhat.com>
37255         mkstemp: mention clean-temp module
37256         * lib/mkstemp.c: Add comment.
37257         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
37259 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
37261         inttypes: also provide default values for 32-bit tests
37262         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
37263         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
37265 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
37267         strtoumax: remove dependency on strtoimax
37268         This is like the strtoull change of yesterday.
37269         * modules/strtoumax (Files): Add lib/strtoimax.c.
37270         (Depends-on): Remove strtoimax and add verify.
37272         inttypes-incomplete: new module
37273         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
37274         all but the PRI* and SCN* parts of gl_INTTYPES_H.
37275         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
37276         of gl_INTTYPES_H.
37277         (gl_INTTYPES_H): Rewrite in terms of these new macros.
37278         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
37279         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
37280         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
37281         * modules/strtoumax, modules/xstrtol (Depends-on):
37282         Depend on inttypes-incomplete, not inttypes.
37283         * modules/inttypes-incomplete: New module, containing the contents
37284         of the old modules/inttypes module, except that the Files: section
37285         omits m4/inttypes-pri.m4, and the configure.ac section invokes
37286         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
37287         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
37288         (Depends-on): Depend only on inttypes-incomplete.
37289         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
37291         inttypes: omit now-redundant strtoimax and strtoumax work
37292         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
37293         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
37295         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
37296         This supports apps that need pointers to strtoimax and strtoumax,
37297         and ports to HP-UX 11.00 64.bit, which has macros that expand to
37298         nonexistent functions.  See
37299         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
37300         et seq.
37301         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
37302         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
37303         a macro.
37304         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
37306 2011-04-25  Simon Josefsson  <simon@josefsson.org>
37308         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
37310 2011-04-25  Bruno Haible  <bruno@clisp.org>
37312         strtol, strtoul: Mark modules as obsolete.
37313         * modules/strtol (Status, Notice): New sections.
37314         * modules/strtoul (Status, Notice): New sections.
37316 2011-04-25  Bruno Haible  <bruno@clisp.org>
37318         strtod: Remove check for strtod, unless supporting old platforms.
37319         * modules/strtod-obsolete: New file.
37320         * m4/strtod-obsolete.m4: New file.
37321         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
37322         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
37323         * modules/strtod (Depends-on): Add strtod-obsolete.
37324         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
37326 2011-04-25  Bruno Haible  <bruno@clisp.org>
37328         strcase: Make module obsolete.
37329         * modules/strcase (Status, Notice): New sections.
37331 2011-04-25  Bruno Haible  <bruno@clisp.org>
37333         dup2: Remove check for dup2, unless supporting old obsolete platforms.
37334         * modules/dup2-obsolete: New file.
37335         * m4/dup2-obsolete.m4: New file.
37336         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
37337         gl_FUNC_DUP2_OBSOLETE is not also defined.
37338         * modules/dup2 (Depends-on): Add dup2-obsolete.
37339         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
37341 2011-04-25  Bruno Haible  <bruno@clisp.org>
37343         strnlen: Avoid memchr related link error on old obsolete platforms.
37344         * modules/memchr-obsolete: New file.
37345         * m4/memchr-obsolete.m4: New file.
37346         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
37347         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
37348         * modules/memchr (Depends-on): Add memchr-obsolete.
37349         * modules/strnlen (Depends-on): Likewise.
37350         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
37352 2011-04-25  Jim Meyering  <meyering@redhat.com>
37354         maint.mk: makefile_at_at_check extend and clean up
37355         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
37356         in addition to */Makefile.am.
37357         Exempt legitimate uses of @VAR@ notation, e.g.,
37358         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
37359         Remove obsolete coreutils-specific comment.
37360         Prompted by discussion here:
37361         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
37363 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
37365         strtoul: remove dependency on strtol
37366         This is so that 'configure' need not check for strtol merely because
37367         the application needs strtoul.
37368         * modules/strtoul (Files): Add lib/strtol.c.
37369         (Depends-on): Remove strtol.
37371         strtoull: remove dependency on strtoul
37372         This is like the strtoll change.
37373         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
37374         (Depends-on): Remove strtoul.
37376         strtoll: remove dependency on strtol
37377         This is so that 'configure' need not check for strtol merely because
37378         the application needs strtoll.
37379         * modules/strtoll (Files): Add lib/strtol.c.
37380         (Depends-on): Remove strtol.
37382 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
37384         inttypes: Move some configure check to module 'imaxdiv'.
37385         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
37386         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
37387         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
37389 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
37391         inttypes: Move some configure check to module 'imaxabs'.
37392         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
37393         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
37394         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
37396 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
37398         inttypes: Remove configure tests that are not needed since 2009-12-31.
37399         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
37400         gl_cv_header_working_inttypes_h.
37402 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
37404         * modules/strnlen (Depends-on): Remove memchr.
37405         The strnlen implementation doesn't need the memchr module's fixes; see
37406         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
37408         strtol: remove dependency on wchar
37409         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
37410         * modules/strtol (Depends-on): Remove wchar.
37412 2011-04-21  Eric Blake  <eblake@redhat.com>
37414         passfd: fix test regression on Linux
37415         * modules/passfd-tests (configure.ac): Correct socketpair check.
37417         passfd: speed up configure and drop unused code
37418         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
37419         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
37420         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
37421         Instead of probing at configure for unix_scm_rights_bsd44_way,
37422         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
37423         check to a struct member probe.
37424         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
37425         (sendfd, recvfd): Update preprocessor checks.
37426         * modules/passfd (Files): Reflect rename, and drop unused file.
37427         (Depends-on): Drop unused dependency.
37429         passfd: allow compilation on mingw
37430         * modules/sys_socket (Depends-on): Add sys_uio.
37431         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
37432         iovec and a minimal struct msghdr.
37433         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
37434         * tests/test-sys_socket.c (main): Enhance test.
37435         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
37436         guaranteed to provide what we need.
37437         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
37438         * modules/passfd-tests (Depends-on): Add sys_wait.
37439         * tests/test-passfd.c (main): Skip test on mingw, for now.
37440         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
37441         partial 'struct msghdr' implementation.
37443         sys_uio: new module
37444         * modules/sys_uio: New module.
37445         * modules/sys_uio-tests: Likewise.
37446         * lib/sys_uio.in.h: New file.
37447         * m4/sys_uio_h.m4: Likewise.
37448         * tests/test-sys_uio.c: Likewise.
37449         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
37450         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
37452 2011-04-20  Jim Meyering  <meyering@redhat.com>
37454         useless-if-before-free: avoid false-positive
37455         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
37456         disjunct so that it too requires a terminating ";".  Without that,
37457         this script would identify as useless one statement from gcc that
37458         was not:
37459           if (aligned_ptr)
37460             free (((void **) aligned_ptr) [-1]);
37462 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
37464         doc: update users.txt.
37465         * users.txt: Add barcode.
37467 2011-04-19  Bruno Haible  <bruno@clisp.org>
37469         ioctl: Remove link dependency on native Windows.
37470         * lib/fd-hook.h: Renamed from lib/close-hook.h.
37471         (gl_close_fn, gl_ioctl_fn): New types.
37472         (struct fd_hook): Renamed from struct close_hook. Change type of
37473         private_close_fn field. Add private_ioctl_fn field.
37474         (close_hook_fn): Add parameter for primary close method.
37475         (execute_close_hooks, execute_all_close_hooks): Likewise.
37476         (ioctl_hook_fn): New type.
37477         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
37478         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
37479         argument.
37480         (unregister_fd_hook): Renamed from unregister_close_hook.
37481         * lib/fd-hook.c: Renamed from lib/close-hook.c.
37482         Don't include <unistd.h>.
37483         (close): Remove undef.
37484         (anchor): Update.
37485         (execute_close_hooks): Add argument for primary close method.
37486         (execute_all_close_hooks): Likewise.
37487         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
37488         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
37489         argument. Allow each argument to be NULL.
37490         (unregister_fd_hook): Renamed from unregister_close_hook.
37491         * lib/close.c (rpl_close): Pass 'close' function pointer to
37492         execute_all_close_hooks.
37493         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
37494         (primary_ioctl): New function.
37495         (ioctl): Don't call ioctlsocket here. Instead, call
37496         execute_all_ioctl_hooks.
37497         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
37498         close method.
37499         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
37500         (fd_sockets_hook): Renamed from close_sockets_hook.
37501         (gl_sockets_startup, gl_sockets_cleanup): Update.
37502         * modules/fd-hook: Renamed from modules/close-hook. Update.
37503         * modules/close (Depends-on): Add fd-hook, remove close-hook.
37504         * modules/sockets (Depends-on): Likewise.
37505         * modules/ioctl (Depends-on): Add fd-hook.
37506         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
37507         GNULIB_SOCKET.
37509 2011-04-19  Bruno Haible  <bruno@clisp.org>
37511         Move the support of O_NONBLOCK in open() to the 'open' module.
37512         * modules/nonblocking (Depends-on): Remove 'open'.
37513         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
37514         gl_cv_have_open_O_NONBLOCK.
37515         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
37516         O_NONBLOCK support.
37517         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
37519 2011-04-17  Bruno Haible  <bruno@clisp.org>
37521         pipe2: Simplify code.
37522         * lib/pipe2.c (pipe2): Reduce code duplication.
37524 2011-04-17  Bruno Haible  <bruno@clisp.org>
37526         nonblocking: Add comment.
37527         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
37529 2011-04-17  Bruno Haible  <bruno@clisp.org>
37531         nonblocking: Add tests for sockets.
37532         * tests/test-nonblocking-socket.sh: New file.
37533         * tests/test-nonblocking-socket-main.c: New file.
37534         * tests/test-nonblocking-socket-child.c: New file.
37535         * tests/test-nonblocking-socket.h: New file.
37536         * tests/socket-server.h: New file.
37537         * tests/socket-client.h: New file.
37538         * modules/nonblocking-socket-tests: New file.
37539         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
37541 2011-04-17  Bruno Haible  <bruno@clisp.org>
37543         nonblocking: Add tests for pipes.
37544         * tests/test-nonblocking-pipe.sh: New file.
37545         * tests/test-nonblocking-pipe-main.c: New file.
37546         * tests/test-nonblocking-pipe-child.c: New file.
37547         * tests/test-nonblocking-pipe.h: New file.
37548         * tests/test-nonblocking-writer.h: New file.
37549         * tests/test-nonblocking-reader.h: New file.
37550         * tests/test-nonblocking-misc.h: New file.
37551         * modules/nonblocking-pipe-tests: New file.
37552         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
37554 2011-04-16  Bruno Haible  <bruno@clisp.org>
37556         gettext: Clarify the needed programmer actions.
37557         * modules/gettext (Notice): New field.
37558         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
37560 2011-04-16  Bruno Haible  <bruno@clisp.org>
37562         strchrnul: Tweak last commit.
37563         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
37564         bug.
37565         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
37566         as in _GL_FUNCDECL_SYS.
37567         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
37568         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
37570 2011-04-15  Eric Blake  <eblake@redhat.com>
37572         strchrnul: work around cygwin bug
37573         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
37574         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
37575         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
37576         * modules/string (Makefile.am): Substitute it.
37577         * lib/string.in.h (strchrnul): Use it.
37579 2011-04-15  Bruno Haible  <bruno@clisp.org>
37581         Don't require lib/stdio-write.c when only module 'stdio' is used.
37582         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
37583         invocation.
37584         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
37586 2011-04-14  Bruno Haible  <bruno@clisp.org>
37588         Support non-blocking pipe I/O in read() on native Windows.
37589         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
37590         (read): New declaration.
37591         * lib/read.c: New file.
37592         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
37593         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
37594         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
37595         vscanf): New declarations.
37596         * lib/stdio-read.c: New file.
37597         * m4/read.m4: New file.
37598         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
37599         REPLACE_READ.
37600         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
37601         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
37602         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
37603         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
37604         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
37605         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
37606         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
37607         * modules/read: New file.
37608         * modules/nonblocking (Files): Add lib/stdio-read.c.
37609         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
37610         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
37611         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
37612         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
37613         * modules/pread (Depends-on): Add read.
37614         * modules/safe-read (Depends-on): Likewise.
37615         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
37616         gets, scanf, vfscanf, vscanf): Verify signatures.
37617         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
37618         problem with non-blocking pipes.
37619         * doc/posix-functions/fgetc.texi: Likewise.
37620         * doc/posix-functions/fgets.texi: Likewise.
37621         * doc/posix-functions/fread.texi: Likewise.
37622         * doc/posix-functions/fscanf.texi: Likewise.
37623         * doc/posix-functions/getc.texi: Likewise.
37624         * doc/posix-functions/getchar.texi: Likewise.
37625         * doc/posix-functions/gets.texi: Likewise.
37626         * doc/posix-functions/scanf.texi: Likewise.
37627         * doc/posix-functions/vfscanf.texi: Likewise.
37628         * doc/posix-functions/vscanf.texi: Likewise.
37630 2011-04-14  Bruno Haible  <bruno@clisp.org>
37632         Support non-blocking pipe I/O in write() on native Windows.
37633         * lib/write.c (rpl_write): Split a write request that failed merely
37634         because the byte count was larger than the pipe buffer's size.
37635         * doc/posix-functions/write.texi: Mention the problem with large byte
37636         counts.
37638 2011-04-14  Bruno Haible  <bruno@clisp.org>
37640         wchar: Ensure that wchar_t gets defined on uClibc.
37641         * lib/wchar.in.h: On uClibc, include <stddef.h>.
37642         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
37644 2011-04-13  Bruno Haible  <bruno@clisp.org>
37646         safe-write, full-read: Avoid unnecessary compilation units.
37647         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
37648         (Depends-on): Remove safe-read. Add ssize_t.
37649         * modules/full-read (Files): Add lib/full-write.c.
37650         (Depends-on): Add full-write.
37652 2011-04-13  Bruno Haible  <bruno@clisp.org>
37654         Support non-blocking pipe I/O and SIGPIPE in pwrite().
37655         * modules/pwrite (Depends-on): Add 'write'.
37657 2011-04-13  Bruno Haible  <bruno@clisp.org>
37659         Support non-blocking pipe I/O in write() on native Windows.
37660         * lib/unistd.in.h (write): Enable replacement also if
37661         GNULIB_UNISTD_H_NONBLOCKING is 1.
37662         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
37663         (rpl_write): When failing to write on a non-blocking pipe, change
37664         errno from ENOSPC to EAGAIN.
37665         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
37666         putchar, puts, vfprintf, vprintf): Enable replacement also if
37667         GNULIB_STDIO_H_NONBLOCKING is 1.
37668         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
37669         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
37670         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
37671         CALL_WITH_SIGPIPE_EMULATION.
37672         (CALL_WITH_SIGPIPE_EMULATION): Use them.
37673         * m4/nonblocking.m4: New file.
37674         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
37675         for non-blocking I/O support.
37676         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37677         GNULIB_UNISTD_H_NONBLOCKING.
37678         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
37679         required for non-blocking I/O support.
37680         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
37681         * modules/nonblocking (Files): Add m4/nonblocking.m4,
37682         lib/stdio-write.c, m4/asm-underscore.m4.
37683         (Depends-on): Add stdio, unistd.
37684         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
37685         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
37686         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
37687         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
37688         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
37689         problem with non-blocking pipes.
37690         * doc/posix-functions/fputc.texi: Likewise.
37691         * doc/posix-functions/fputs.texi: Likewise.
37692         * doc/posix-functions/fwrite.texi: Likewise.
37693         * doc/posix-functions/printf.texi: Likewise.
37694         * doc/posix-functions/putc.texi: Likewise.
37695         * doc/posix-functions/putchar.texi: Likewise.
37696         * doc/posix-functions/puts.texi: Likewise.
37697         * doc/posix-functions/vfprintf.texi: Likewise.
37698         * doc/posix-functions/vprintf.texi: Likewise.
37699         * doc/posix-functions/write.texi: Likewise.
37701 2011-04-10  Jim Meyering  <meyering@redhat.com>
37703         maint.mk: prohibit doubled words
37704         Detect them also when they're separated by a newline.
37705         There are 3 ways to customize it:
37706           - disable the test on a per file basis, as usual with rules using
37707             $(VC_LIST_EXCEPT)
37708           - replace the default doubled-word-selecting regexp (affects all files)
37709           - ignore a particular file-vs-doubled-word match
37710         I nearly used that last one to ignore the "is is" match in
37711         coreutils' NEWS file, since the text was "ls -is is ..."
37712         To do that, I would have added this line to cfg.mk:
37713           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
37714         but it would have ignored any "is is" match in NEWS.
37715         Low probability, but still...
37716         Instead, I changed the text, slightly:
37717           -  ls -is is now consistent with ls -lis in ignoring values returned
37718           +  "ls -is" is now consistent with ls -lis in ignoring values returned
37719         * top/maint.mk (prohibit_double_word_RE_): Provide default.
37720         (prohibit_doubled_word_): Define.
37721         (sc_prohibit_doubled_word): New rule.
37722         (sc_prohibit_the_the): Remove.  Subsumed by the above.
37724 2011-04-10  Jim Meyering  <meyering@redhat.com>
37726         maint: fix doubled-word typo in comment
37727         * m4/gethostname.m4: s/is is/it is/
37728         * m4/getdomainname.m4: Likewise.
37730 2011-04-10  Jim Meyering  <meyering@redhat.com>
37732         maint: remove doubled word: s/it it/it/
37733         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
37735 2011-04-10  Jim Meyering  <meyering@redhat.com>
37737         maint.mk: remove useless semicolon and backslash
37738         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
37739         semicolon and backslash.
37741 2011-04-10  Bruno Haible  <bruno@clisp.org>
37743         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
37744         * modules/stdint-tests (Depends-on): Add wchar.
37746 2011-04-10  Jim Meyering  <meyering@redhat.com>
37748         maint: remove doubled words in comments, e.g., s/a a/a/
37749         * lib/strptime.c (day_of_the_week): s/the the/the/
37750         * tests/test-chown.h (test_chown): s/a a/a/
37752         test-chown.h: correct a cast
37753         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
37754         when the destination is a stat.st_gid.
37756 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
37758         getaddrinfo: Fix test for sa_len member.
37759         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
37760         include <sys/types.h> before <sys/socket.h>.
37762 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
37764         maint: change "can not" to "cannot"
37765         * doc/posix-functions/iconv.texi (iconv): This one crossed line
37766         boundaries.
37768 2011-04-09  Jim Meyering  <meyering@redhat.com>
37770         maint: change "a a" to "a"
37771         * tests/test-lchown.h (test_lchown): s/a a/a/
37773         maint.mk: prohibit \<the the\>
37774         * top/maint.mk (sc_prohibit_the_the): New rule.
37776         maint: fix "the the" in comment
37777         * lib/count-one-bits.h: s/the the/the/
37779         maint: change "can not" to "cannot"
37780         But do not change the occurrences in maintain.texi or in
37781         build-aux/po/Makefile.in.in, which I presume comes from gettext.
37782         * doc/gnulib-tool.texi: s/can not/cannot/
37783         * doc/posix-functions/accept.texi (accept): Likewise.
37784         * doc/posix-functions/socket.texi (socket): Likewise.
37785         * lib/mbrtowc.c: Likewise.
37787         maint.mk: prohibit use of "can not"
37788         * top/maint.mk (sc_prohibit_can_not): New rule.
37789         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
37791 2011-04-09  Bruno Haible  <bruno@clisp.org>
37793         careadlinkat: Guard against misuse of careadlinkatcwd.
37794         * lib/careadlinkat.c: Include <stdlib.h>.
37795         (careadlinkatcwd): Check that the fd argument is as expected.
37797 2011-04-09  Bruno Haible  <bruno@clisp.org>
37799         careadlinkat: Use common coding style.
37800         * lib/careadlinkat.c: Move gnulib includes after system includes.
37802 2011-04-09  Bruno Haible  <bruno@clisp.org>
37804         careadlinkat: Clarify specification.
37805         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
37806         (careadlinkatcwd): Add comment.
37807         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
37809 2011-04-09  Bruno Haible  <bruno@clisp.org>
37811         areadlinkat: Avoid link error on many platforms.
37812         * modules/areadlinkat (Depends-on): Add areadlink.
37814 2011-04-09  Bruno Haible  <bruno@clisp.org>
37816         allocator, careadlinkat: Fix double-inclusion guard.
37817         * lib/allocator.h: Fix double-inclusion guard.
37818         * lib/careadlinkat.h: Likewise.
37820 2011-04-09  Bruno Haible  <bruno@clisp.org>
37822         relocatable-prog-wrapper: Update after module 'areadlink' changed.
37823         * lib/relocwrapper.c: Update dependencies hierarchy.
37824         * build-aux/install-reloc: Update list of files to be compiled.
37825         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
37826         lib/allocator.[hc].
37828 2011-04-08  Eric Blake  <eblake@redhat.com>
37830         strftime: silence gnulib-tool warning
37831         * modules/strftime-tests (Depends-on): Drop automatic dependency.
37833 2011-04-08  Bruno Haible  <bruno@clisp.org>
37835         verify: Fix syntax error with GCC 4.6 in C++ mode.
37836         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
37837         (HAVE_STATIC_ASSERT): New macro.
37838         (verify_true, verify): Use 'static_assert' if it is supported and
37839         '_Static_assert' is not supported.
37841 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
37843         allocator: New module.
37844         * modules/allocator, lib/allocator.c: New files.
37845         * lib/allocator.h (stdlib_allocator): New decl.
37846         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
37847         Remove.  Do not include <stdlib.h>.
37848         (careadlinkat): Use stdlib_allocator instead of rolling our own.
37849         * modules/careadlinkat (Files): Remove lib/allocator.h.
37850         (Depends-on): Add allocator.
37852         stdlib: let modules use system malloc, realloc
37853         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
37854         if !_GL_USE_STDLIB_ALLOC.
37855         (malloc, realloc): Limit this change to a smaller scope.
37857         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
37858         (malloc, realloc): Don't #undef; no longer needed.
37859         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
37860         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
37861         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
37862         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
37863         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
37864         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
37865         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
37866         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
37868         careadlinkat: rename members to avoid problem
37869         * lib/allocator.h (struct allocator): Rename members from
37870         malloc/realloc to allocate/reallocate, to avoid problems if malloc
37871         and realloc are #define'd.  Reported by Eric Blake in
37872         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
37873         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
37875 2011-04-08  Eric Blake  <eblake@redhat.com>
37877         nonblocking: reduce dependency
37878         * tests/test-nonblocking.c: Only test sockets when in use.
37879         * modules/nonblocking-tests (Depends-on): Drop socket.
37880         (Makefile.am): Link even if sockets are not present.
37881         * modules/pipe2-tests (Makefile.am): Likewise.
37882         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
37884         pipe2: fix O_NONBLOCK support on mingw
37885         * modules/pipe2 (Depends-on): Add nonblocking.
37886         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
37887         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
37888         * tests/test-nonblocking.c (main): Likewise.
37889         * modules/pipe2-tests (Makefile.am): Avoid link failure.
37891         fcntl-h: fix O_ACCMODE on cygwin
37892         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
37893         * lib/fcntl.in.h (O_ACCMODE): Fix it.
37895         pipe-filter: drop O_NONBLOCK workarounds
37896         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
37897         * modules/pipe-filter-ii (Depends-on): Likewise.
37898         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
37900         nonblocking: provide O_NONBLOCK for mingw
37901         * modules/nonblocking (Depends-on): Add open.
37902         (configure.ac): Set new witness macro.
37903         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
37904         * modules/fcntl-h (Makefile.am): Substitute it.
37905         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
37906         nonblocking module is in use.
37907         * lib/nonblocking.c: Adjust portability test.
37908         * lib/open.c (open): Don't let native open see gnulib flag.
37909         * tests/test-fcntl-h.c (main): Enhance test.
37910         * tests/test-open.h (test_open): Likewise.
37911         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
37913         careadlinkat: fix compilation error on mingw
37914         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
37915         within struct allocator.
37917 2011-04-06  Eric Blake  <eblake@redhat.com>
37919         binary-io: relicense under LGPLv2+
37920         * modules/binary-io (License): Relax to LGPLv2+.
37921         Requested for libvirt, and required by pipe2.
37923 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
37925         verify: use _Static_assert if available
37926         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
37927         (verify_true, verify): Use it if available.  This generates better
37928         diagnostics with GCC 4.6.0 and later.
37930 2011-04-05  Bruno Haible  <bruno@clisp.org>
37932         Remove leftover generated .h files after config.status changed.
37934         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
37935         GL_GENERATE_ALLOCA_H.
37936         * modules/alloca-opt (Makefile.am): Remove alloca.h if
37937         GL_GENERATE_ALLOCA_H evaluates to false.
37939         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
37940         GL_GENERATE_ARGZ_H.
37941         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
37942         evaluates to false.
37944         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
37945         GL_GENERATE_BYTESWAP_H.
37946         * modules/byteswap (Makefile.am): Remove byteswap.h if
37947         GL_GENERATE_BYTESWAP_H evaluates to false.
37949         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
37950         GL_GENERATE_ERRNO_H.
37951         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
37952         evaluates to false.
37954         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
37955         GL_GENERATE_FLOAT_H.
37956         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
37957         evaluates to false.
37959         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
37960         GL_GENERATE_FNMATCH_H.
37961         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
37962         GL_GENERATE_FNMATCH_H evaluates to false.
37964         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
37965         GL_GENERATE_GLOB_H.
37966         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
37967         evaluates to false.
37969         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
37970         automake conditional GL_GENERATE_ICONV_H.
37971         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
37972         evaluates to false.
37974         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
37975         GL_GENERATE_NETINET_IN_H.
37976         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
37977         GL_GENERATE_NETINET_IN_H evaluates to false.
37979         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
37980         conditional GL_GENERATE_PTHREAD_H.
37981         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
37982         * modules/pthread (Makefile.am): Remove pthread.h if
37983         GL_GENERATE_PTHREAD_H evaluates to false.
37985         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
37986         GL_GENERATE_SCHED_H.
37987         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
37988         evaluates to false.
37990         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
37991         conditional GL_GENERATE_SELINUX_CONTEXT_H.
37992         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
37993         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
37995         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
37996         GL_GENERATE_STDARG_H.
37997         * modules/stdarg (Makefile.am): Remove stdarg.h if
37998         GL_GENERATE_STDARG_H evaluates to false.
38000         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
38001         GL_GENERATE_STDBOOL_H.
38002         * modules/stdbool (Makefile.am): Remove stdbool.h if
38003         GL_GENERATE_STDBOOL_H evaluates to false.
38005         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
38006         conditional GL_GENERATE_STDDEF_H.
38007         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
38008         * modules/stddef (Makefile.am): Remove stddef.h if
38009         GL_GENERATE_STDDEF_H evaluates to false.
38011         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
38012         GL_GENERATE_STDINT_H.
38013         * modules/stdint (Makefile.am): Remove stdint.h if
38014         GL_GENERATE_STDINT_H evaluates to false.
38016         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
38017         GL_GENERATE_SYSEXITS_H.
38018         * modules/sysexits (Makefile.am): Remove sysexits.h if
38019         GL_GENERATE_SYSEXITS_H evaluates to false.
38021         Reported by Karl Berry and Ralf Wildenhues.
38023 2011-04-05  Bruno Haible  <bruno@clisp.org>
38025         Ensure to rebuild generated .h files when config.status has changed.
38026         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
38027         config.status.
38028         * modules/ctype (Makefile.am): Likewise.
38029         * modules/dirent (Makefile.am): Likewise.
38030         * modules/errno (Makefile.am): Likewise.
38031         * modules/fcntl-h (Makefile.am): Likewise.
38032         * modules/float (Makefile.am): Likewise.
38033         * modules/getopt-posix (Makefile.am): Likewise.
38034         * modules/glob (Makefile.am): Likewise.
38035         * modules/iconv-h (Makefile.am): Likewise.
38036         * modules/inttypes (Makefile.am): Likewise.
38037         * modules/langinfo (Makefile.am): Likewise.
38038         * modules/locale (Makefile.am): Likewise.
38039         * modules/math (Makefile.am): Likewise.
38040         * modules/netdb (Makefile.am): Likewise.
38041         * modules/netinet_in (Makefile.am): Likewise.
38042         * modules/poll-h (Makefile.am): Likewise.
38043         * modules/pthread (Makefile.am): Likewise.
38044         * modules/pty (Makefile.am): Likewise.
38045         * modules/sched (Makefile.am): Likewise.
38046         * modules/search (Makefile.am): Likewise.
38047         * modules/selinux-h (Makefile.am): Likewise.
38048         * modules/signal (Makefile.am): Likewise.
38049         * modules/spawn (Makefile.am): Likewise.
38050         * modules/stdarg (Makefile.am): Likewise.
38051         * modules/stdbool (Makefile.am): Likewise.
38052         * modules/stddef (Makefile.am): Likewise.
38053         * modules/stdint (Makefile.am): Likewise.
38054         * modules/stdio (Makefile.am): Likewise.
38055         * modules/stdlib (Makefile.am): Likewise.
38056         * modules/string (Makefile.am): Likewise.
38057         * modules/strings (Makefile.am): Likewise.
38058         * modules/sys_file (Makefile.am): Likewise.
38059         * modules/sys_ioctl (Makefile.am): Likewise.
38060         * modules/sys_select (Makefile.am): Likewise.
38061         * modules/sys_socket (Makefile.am): Likewise.
38062         * modules/sys_stat (Makefile.am): Likewise.
38063         * modules/sys_time (Makefile.am): Likewise.
38064         * modules/sys_times (Makefile.am): Likewise.
38065         * modules/sys_utsname (Makefile.am): Likewise.
38066         * modules/sys_wait (Makefile.am): Likewise.
38067         * modules/sysexits (Makefile.am): Likewise.
38068         * modules/termios (Makefile.am): Likewise.
38069         * modules/time (Makefile.am): Likewise.
38070         * modules/unistd (Makefile.am): Likewise.
38071         * modules/wchar (Makefile.am): Likewise.
38072         * modules/wctype-h (Makefile.am): Likewise.
38073         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
38075 2011-04-05  Bruno Haible  <bruno@clisp.org>
38077         pipe2: Relicense under LGPLv2+.
38078         * modules/pipe2 (License): Change to LGPLv2+.
38079         Requested by Eric Blake, for libvirt.
38081 2011-04-05  Bruce Korb  <bkorb@gnu.org>
38083         bootstrap: compute gnulib_extra_files after updating build_aux
38084         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
38085         change build_aux or also supply gnulib_extra_files.  Handle correctly.
38087 2011-04-05  Eric Blake  <eblake@redhat.com>
38089         bootstrap: preserve git whitelist item sorting
38090         * build-aux/bootstrap (sort_patterns): New function.
38091         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
38093 2011-04-05  Simon Josefsson  <simon@josefsson.org>
38095         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
38096         sc_space_tab check.
38098 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
38100         areadlink, areadlinkat: rewrite in terms of careadlinkat
38101         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
38102         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
38103         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
38104         (malloc, realloc): Remove #undefs.
38105         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
38106         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
38107         readlink, ssize_t, stdint, unistd.
38108         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
38109         areadlink, stdint.
38111         careadlinkat: new module
38112         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
38113         * modules/careadlinkat: New files, written by me with
38114         a review and feedback from Ben Pfaff in
38115         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
38117 2011-04-01  Bruno Haible  <bruno@clisp.org>
38119         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
38120         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
38121         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
38122         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
38123         Reported by Bruce Korb <bruce.korb@gmail.com>.
38125 2011-04-01  Bruno Haible  <bruno@clisp.org>
38127         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
38128         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
38129         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
38130         * modules/wcpcpy (Depends-on): Add extensions.
38131         * modules/wcpncpy (Depends-on): Likewise.
38132         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
38133         systems.
38134         * doc/posix-functions/wcpncpy.texi: Likewise.
38135         * doc/posix-functions/wcwidth.texi: Likewise.
38137 2011-03-31  Eric Blake  <eblake@redhat.com>
38139         nonblocking: fix mingw test failures
38140         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
38141         non-blocking flag on regular file.
38142         (get_nonblocking_flag): Set errno on invalid fd.
38143         * tests/test-nonblocking.c (main): Avoid test failure on
38144         directories if fchdir is not active.
38145         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
38147 2011-03-31  Bruno Haible  <bruno@clisp.org>
38149         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
38150         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
38151         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
38152         Reported by Simon Josefsson <simon@josefsson.org>.
38154 2011-03-31  Bruno Haible  <bruno@clisp.org>
38155         and Eric Blake  <eblake@redhat.com>
38157         nonblocking: new module
38158         * modules/nonblocking: New module.
38159         * modules/nonblocking-tests: Likewise.
38160         * lib/nonblocking.h: New file.
38161         * lib/nonblocking.c: Likewise.
38162         * tests/test-nonblocking.c: New test.
38163         * lib/ioctl.c (ioctl) [mingw]: Update comment.
38165 2011-03-30  Bruno Haible  <bruno@clisp.org>
38167         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
38168         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
38169         instead of 'printf' format for GCC >= 4.4.
38170         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
38171         (fprintf, printf, vfprintf, vprintf): Declare with
38172         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
38173         the system's vfprintf() function.
38174         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
38176 2011-03-30  Eric Blake  <eblake@redhat.com>
38178         passfd: fix scoping bug
38179         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
38180         before sendmsg/recvmsg.
38182         passfd: standardize coding conventions
38183         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
38184         can be learned at compile time.
38185         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
38186         ifdefs.
38187         (sendfd, recvfd): Follow gnulib code conventions.
38189         passfd: fix incorrect sendmsg arguments
38190         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
38191         incorrect msg_controllen value.
38192         * modules/passfd-tests (Depends-on): Check for alarm.
38193         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
38194         Reported by Bastien ROUCARIES.
38196 2011-03-30  Bruno Haible  <bruno@clisp.org>
38198         c-strcasestr: Relicense under LGPLv2+.
38199         * modules/c-strcasestr (License): Change to LGPLv2+.
38200         Requested by Eric Blake, for libvirt.
38202 2011-03-30  Simon Josefsson  <simon@josefsson.org>
38204         * users.txt: Add libidn2.  Fix libtasn1 link.
38206 2011-03-30  Jim Meyering  <meyering@redhat.com>
38208         tests: readlink* ("",... fails with EINVAL on newer kernels
38209         readlink and readlinkat have typically failed with ENOENT for
38210         the invalid, empty file name,  "".  However, with the advent
38211         of linux-2.6.39, they fail with EINVAL.
38212         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
38213         when operating on the empty file name.
38214         * tests/test-readlink.h (test_readlink): Likewise.
38216 2011-03-29  Bruno Haible  <bruno@clisp.org>
38218         Relicense some modules under LGPLv2+, for libidn2.
38219         * modules/array-mergesort (License): Change to LGPLv2+.
38220         * modules/c-strcaseeq (License): Likewise.
38221         * modules/striconveh (License): Likewise.
38222         * modules/striconveha (License): Likewise.
38223         * modules/uniconv/base (License): Likewise.
38224         * modules/uniconv/u8-conv-from-enc (License): Likewise.
38225         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
38226         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
38227         * modules/unictype/base (License): Likewise.
38228         * modules/unictype/bidiclass-of (License): Likewise.
38229         * modules/unictype/category-M (License): Likewise.
38230         * modules/unictype/category-none (License): Likewise.
38231         * modules/unictype/category-of (License): Likewise.
38232         * modules/unictype/category-test (License): Likewise.
38233         * modules/unictype/category-test-withtable (License): Likewise.
38234         * modules/unictype/combining-class (License): Likewise.
38235         * modules/unictype/joiningtype-of (License): Likewise.
38236         * modules/unictype/scripts (License): Likewise.
38237         * modules/uninorm/base (License): Likewise.
38238         * modules/uninorm/canonical-decomposition (License): Likewise.
38239         * modules/uninorm/composition (License): Likewise.
38240         * modules/uninorm/decompose-internal (License): Likewise.
38241         * modules/uninorm/decomposition-table (License): Likewise.
38242         * modules/uninorm/nfc (License): Likewise.
38243         * modules/uninorm/nfd (License): Likewise.
38244         * modules/uninorm/u32-normalize (License): Likewise.
38245         * modules/unistr/base (License): Likewise.
38246         * modules/unistr/u32-cpy (License): Likewise.
38247         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
38248         * modules/unistr/u32-to-u8 (License): Likewise.
38249         * modules/unistr/u32-uctomb (License): Likewise.
38250         * modules/unistr/u8-check (License): Likewise.
38251         * modules/unistr/u8-mblen (License): Likewise.
38252         * modules/unistr/u8-mbtouc (License): Likewise.
38253         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
38254         * modules/unistr/u8-mbtoucr (License): Likewise.
38255         * modules/unistr/u8-prev (License): Likewise.
38256         * modules/unistr/u8-strlen (License): Likewise.
38257         * modules/unistr/u8-to-u32 (License): Likewise.
38258         * modules/unistr/u8-uctomb (License): Likewise.
38259         * modules/unitypes (License): Likewise.
38260         Requested by Simon Josefsson.
38262 2011-03-29  Simon Josefsson  <simon@josefsson.org>
38264         lib-symbol-visibility: Add a notice.
38265         * modules/lib-symbol-visibility (Notice): New field.
38267 2011-03-29  Bruno Haible  <bruno@clisp.org>
38269         getaddrinfo: Doc fix.
38270         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
38271         section "fixed in Gnulib".
38273 2011-03-28  Simon Josefsson  <simon@josefsson.org>
38275         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
38276         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
38278 2011-03-26  Bruno Haible  <bruno@clisp.org>
38280         unictype/property-byname: Reduce the number of load-time relocations.
38281         * lib/unictype/pr_byname.c: Include <stdlib.h>.
38282         (UC_PROPERTY_INDEX_*): New enumeration values.
38283         (uc_property_byname): Convert an index from the lookup table to an
38284         uc_property_t.
38285         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
38286         values.
38288 2011-03-26  Bruno Haible  <bruno@clisp.org>
38290         unictype/property-byname: Allow omitted word separators and aliases.
38291         * lib/unictype/pr_byname.gperf: Add property names without word
38292         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
38293         for 'space'.
38295 2011-03-26  Bruno Haible  <bruno@clisp.org>
38297         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
38298         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
38299         also hyphens to space.
38300         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
38301         without spaces.
38302         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
38304 2011-03-26  Bruno Haible  <bruno@clisp.org>
38306         unictype/joiningtype-byname: Recognize long names as well.
38307         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
38308         a long name.
38309         * lib/unictype/joiningtype_byname.c: Include <string.h>,
38310         unictype/joiningtype_byname.h.
38311         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
38312         * lib/unictype/joiningtype_byname.gperf: New file.
38313         * modules/unictype/joiningtype-byname (Files): Add
38314         lib/unictype/joiningtype_byname.gperf.
38315         (Depends-on): Add gperf.
38316         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
38317         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
38318         long names.
38320         Tests for module 'unictype/joiningtype-longname'.
38321         * modules/unictype/joiningtype-longname-tests: New file.
38322         * tests/unictype/test-joiningtype_longname.c: New file.
38324         New module 'unictype/joiningtype-longname'.
38325         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
38326         * lib/unictype/joiningtype_longname.c: New file.
38327         * modules/unictype/joiningtype-longname: New file.
38328         * modules/unictype/joiningtype-all (Depends-on): Add
38329         unictype/joiningtype-longname.
38331 2011-03-26  Bruno Haible  <bruno@clisp.org>
38333         unictype/bidiclass-byname: Recognize long names as well.
38334         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
38335         name.
38336         * lib/unictype/bidi_byname.c: Include <string.h>,
38337         unictype/bidi_byname.h.
38338         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
38339         * lib/unictype/bidi_byname.gperf: New file.
38340         * modules/unictype/bidiclass-byname (Files): Add
38341         lib/unictype/bidi_byname.gperf.
38342         (Depends-on): Add gperf.
38343         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
38344         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
38345         long names.
38347         Tests for module 'unictype/bidiclass-longname'.
38348         * modules/unictype/bidiclass-longname-tests: New file.
38349         * tests/unictype/test-bidi_longname.c: New file.
38351         New module 'unictype/bidiclass-longname'.
38352         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
38353         * lib/unictype/bidi_longname.c: New file.
38354         * modules/unictype/bidiclass-longname: New file.
38355         * modules/unictype/bidiclass-all (Depends-on): Add
38356         unictype/bidiclass-longname.
38358 2011-03-26  Bruno Haible  <bruno@clisp.org>
38360         unictype/bidi*: Rename modules.
38361         * modules/unictype/bidiclass-all: Renamed from
38362         modules/unictype/bidicategory-all.
38363         * modules/unictype/bidiclass-name: Renamed from
38364         modules/unictype/bidiclass-name.
38365         (Description): Update.
38366         * modules/unictype/bidiclass-name-tests: Renamed from
38367         modules/unictype/bidicategory-name-tests.
38368         * modules/unictype/bidiclass-byname: Renamed from
38369         modules/unictype/bidicategory-byname.
38370         (Description): Update.
38371         * modules/unictype/bidiclass-byname-tests: Renamed from
38372         modules/unictype/bidicategory-byname-tests.
38373         * modules/unictype/bidiclass-of: Renamed from
38374         modules/unictype/bidicategory-of.
38375         (Description): Update.
38376         * modules/unictype/bidiclass-of-tests: Renamed from
38377         modules/unictype/bidicategory-of-tests.
38378         * modules/unictype/bidiclass-test: Renamed from
38379         modules/unictype/bidicategory-test.
38380         (Description): Update.
38381         * modules/unictype/bidiclass-test-tests: Renamed from
38382         modules/unictype/bidicategory-test-tests.
38383         * modules/unictype/bidicategory-all: New file, a simple redirection.
38384         * modules/unictype/bidicategory-name: Likewise.
38385         * modules/unictype/bidicategory-byname: Likewise.
38386         * modules/unictype/bidicategory-of: Likewise.
38387         * modules/unictype/bidicategory-test: Likewise.
38388         * modules/unictype/property-bidi-* (Dependencies): Update.
38389         * lib/unictype/bidi_*.c: Update comment.
38391 2011-03-26  Bruno Haible  <bruno@clisp.org>
38393         unictype/bidi*: Rename functions, part 2.
38394         * modules/unictype/bidicategory-name (configure.ac): Update required
38395         libunistring version.
38396         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
38398 2011-03-25  Bruno Haible  <bruno@clisp.org>
38400         New module 'unictype/combining-class-all'.
38401         * modules/unictype/combining-class-all: New file.
38403         Tests for module 'unictype/combining-class-byname'.
38404         * modules/unictype/combining-class-byname-tests: New file.
38405         * tests/unictype/test-combiningclass_byname.c: New file.
38407         New module 'unictype/combining-class-byname'.
38408         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
38409         * lib/unictype/combiningclass_byname.c: New file.
38410         * lib/unictype/combiningclass_byname.gperf: New file.
38411         * modules/unictype/combining-class-byname: New file.
38413         Tests for module 'unictype/combining-class-longname'.
38414         * modules/unictype/combining-class-longname-tests: New file.
38415         * tests/unictype/test-combiningclass_longname.c: New file.
38417         New module 'unictype/combining-class-longname'.
38418         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
38419         * lib/unictype/combiningclass_longname.c: New file.
38420         * modules/unictype/combining-class-longname: New file.
38422         Tests for module 'unictype/combining-class-name'.
38423         * modules/unictype/combining-class-name-tests: New file.
38424         * tests/unictype/test-combiningclass_name.c: New file.
38426         New module 'unictype/combining-class-name'.
38427         * lib/unictype.in.h (uc_combining_class_name): New declaration.
38428         * lib/unictype/combiningclass_name.c: New file.
38429         * modules/unictype/combining-class-name: New file.
38431 2011-03-25  Bruno Haible  <bruno@clisp.org>
38433         unictype/combining-class: Rename source files.
38434         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
38435         of unictype/combining.h.
38436         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
38437         Update.
38438         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
38439         * modules/unictype/combining-class (Description): Fix.
38440         (Files, Makefile.am): Update.
38441         * tests/unictype/test-combiningclass.c: Renamed from
38442         tests/unictype/test-combining.c.
38443         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
38445 2011-03-25  Bruno Haible  <bruno@clisp.org>
38447         unictype: Update list of canonical combining classes.
38448         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
38450 2011-03-25  Bruno Haible  <bruno@clisp.org>
38452         unictype/category-byname: Recognize long names as well.
38453         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
38454         a long name.
38455         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
38456         unictype/categ_byname.h.
38457         (UC_CATEGORY_INDEX_*): New enumeration values.
38458         (uc_general_category_byname): Use uc_general_category_lookup and
38459         convert from index to value.
38460         * lib/unictype/categ_byname.gperf: New file.
38461         * modules/unictype/category-byname (Files): Add
38462         lib/unictype/categ_byname.gperf.
38463         (Depends-on): Add gperf.
38464         (Makefile.am): Add rule for generating unictype/categ_byname.h.
38465         * tests/unictype/test-categ_byname.c (main): Test the recognition of
38466         long names.
38468         Tests for module 'unictype/category-longname'.
38469         * modules/unictype/category-longname-tests: New file.
38470         * tests/unictype/test-categ_longname.c: New file.
38472         New module 'unictype/category-longname'.
38473         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
38474         * lib/unictype/categ_longname.c: New file.
38475         * modules/unictype/category-longname: New file.
38476         * modules/unictype/category-all (Depends-on): Add it.
38478 2011-03-25  Bruno Haible  <bruno@clisp.org>
38480         Tests for module 'unictype/category-LC'.
38481         * modules/unictype/category-LC-tests: New file.
38482         * tests/unictype/test-categ_LC.c: New file, automatically generated.
38484         New module 'unictype/category-LC'.
38485         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
38486         (UC_CATEGORY_LC): New declaration.
38487         (UC_CASED_LETTER): New macro.
38488         * lib/gen-uni-tables.c (is_category_LC): New function.
38489         (output_categories): Also handle category LC.
38490         (UC_CATEGORY_MASK_LC): New enumeration value.
38491         (general_category_byname): Also handle category LC.
38492         * lib/unictype/categ_LC.c: New file.
38493         * lib/unictype/categ_LC.h: New file, automatically generated.
38494         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
38495         category LC.
38496         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
38497         * modules/unictype/category-LC: New file.
38498         * modules/unictype/category-byname (Depends-on): Add
38499         unictype/category-LC.
38500         * modules/unictype/category-all (Depends-on): Likewise.
38502 2011-03-25  Eric Blake  <eblake@redhat.com>
38504         xmalloc: revert yesterday's regression
38505         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
38506         realloc's underlying behavior (allowing allocation of zero-size
38507         objects, especially if malloc-gnu is also in use).
38509 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
38511         maint.mk: add missing version to VC-tag
38512         * top/maint.mk: git tag was missing actual tag name; add it.
38514         valgrind: do leak checking, and exit with code 1 on error (not 0)
38515         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
38516         to VALGRIND.
38518 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
38520         posix-modules: say what it does.
38521         * posix-modules: Add a line to the --help output saying what it does.
38523 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
38525         xmalloc: Do not leak if underlying realloc is C99 compatible.
38526         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
38527         This avoids a leak on C99-based systems.  See
38528         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
38530 2011-03-24  Eric Blake  <eblake@redhat.com>
38532         realloc: document portability problem
38533         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
38534         passing 0 size to realloc.
38536 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
38538         doc: update users.txt
38539         * users.txt: Add cvsps, tmpwatch
38541 2011-03-23  Matt Rice  <ratmice@gmail.com>
38543         doc: update users.txt
38544         * users.txt: Add gdb.
38546 2011-03-23  Jim Meyering  <meyering@redhat.com>
38548         doc: update users.txt
38549         Looking through matches up to the following URL (there are still
38550         several more pages), I found several projects that use gnulib:
38551         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
38552         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
38553         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
38555 2011-03-22  Bruno Haible  <bruno@clisp.org>
38557         unictype/bidi*: Rename functions.
38558         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
38559         uc_bidi_class, uc_is_bidi_class): New declarations.
38560         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
38561         uc_bidi_category_byname.
38562         (uc_bidi_category_byname): New function.
38563         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
38564         u_bidi_category_name.
38565         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
38566         (uc_bidi_category_name): New function.
38567         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
38568         uc_bidi_category.
38569         (uc_bidi_category): New function.
38570         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
38571         uc_is_bidi_category. Invoke uc_bidi_class.
38572         (uc_is_bidi_category): New function.
38573         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
38574         instead of uc_bidi_category_byname.
38575         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
38576         instead of uc_bidi_category_name.
38577         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
38578         uc_bidi_category.
38579         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
38580         instead of uc_is_bidi_category.
38582 2011-03-21  Bruno Haible  <bruno@clisp.org>
38584         New module 'unictype/joininggroup-all'.
38585         * modules/unictype/joininggroup-all: New file.
38587         Tests for module 'unictype/joininggroup-of'.
38588         * modules/unictype/joininggroup-of-tests: New file.
38589         * tests/unictype/test-joininggroup_of.c: New file.
38590         * tests/unictype/test-joininggroup_of.h: New file, automatically
38591         generated by gen-uni-tables.
38593         New module 'unictype/joininggroup-of'.
38594         * modules/unictype/joininggroup-of: New file.
38595         * lib/unictype/joininggroup_of.c: New file.
38596         * lib/unictype/joininggroup_of.h: New file, automatically generated by
38597         gen-uni-tables.
38599         Tests for module 'unictype/joininggroup-byname'.
38600         * modules/unictype/joininggroup-byname-tests: New file.
38601         * tests/unictype/test-joininggroup_byname.c: New file.
38603         New module 'unictype/joininggroup-byname'.
38604         * modules/unictype/joininggroup-byname: New file.
38605         * lib/unictype/joininggroup_byname.c: New file.
38606         * lib/unictype/joininggroup_byname.gperf: New file.
38608         Tests for module 'unictype/joininggroup-name'.
38609         * modules/unictype/joininggroup-name-tests: New file.
38610         * tests/unictype/test-joininggroup_name.c: New file.
38612         New module 'unictype/joininggroup-name'.
38613         * modules/unictype/joininggroup-name: New file.
38614         * lib/unictype/joininggroup_name.c: New file.
38615         * lib/unictype/joininggroup_name.h: New file.
38617         New module 'unictype/joiningtype-all'.
38618         * modules/unictype/joiningtype-all: New file.
38620         Tests for module 'unictype/joiningtype-of'.
38621         * modules/unictype/joiningtype-of-tests: New file.
38622         * tests/unictype/test-joiningtype_of.c: New file.
38623         * tests/unictype/test-joiningtype_of.h: New file, automatically
38624         generated by gen-uni-tables.
38626         New module 'unictype/joiningtype-of'.
38627         * modules/unictype/joiningtype-of: New file.
38628         * lib/unictype/joiningtype_of.c: New file.
38629         * lib/unictype/joiningtype_of.h: New file, automatically generated by
38630         gen-uni-tables.
38632         Tests for module 'unictype/joiningtype-byname'.
38633         * modules/unictype/joiningtype-byname-tests: New file.
38634         * tests/unictype/test-joiningtype_byname.c: New file.
38636         New module 'unictype/joiningtype-byname'.
38637         * modules/unictype/joiningtype-byname: New file.
38638         * lib/unictype/joiningtype_byname.c: New file.
38640         Tests for module 'unictype/joiningtype-name'.
38641         * modules/unictype/joiningtype-name-tests: New file.
38642         * tests/unictype/test-joiningtype_name.c: New file.
38644         New module 'unictype/joiningtype-name'.
38645         * modules/unictype/joiningtype-name: New file.
38646         * lib/unictype/joiningtype_name.c: New file.
38648         unictype: Add support for Arabic shaping properties.
38649         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
38650         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
38651         declarations.
38652         (UC_JOINING_GROUP_*): New enumeration values.
38653         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
38654         declarations.
38655         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
38656         (unicode_joining_type): New variable.
38657         (UC_JOINING_GROUP_*): New enumeration values.
38658         (unicode_joining_group): New variable.
38659         (fill_arabicshaping, joining_type_as_c_identifier,
38660         output_joining_type_test, output_joining_type,
38661         joining_group_as_c_identifier, output_joining_group_test,
38662         output_joining_group): New functions.
38663         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
38664         fill_arabicshaping and output_joining_type_test, output_joining_type,
38665         output_joining_group_test, output_joining_group.
38666         Reported by Simon Josefsson.
38668 2011-03-21  Jim Meyering  <meyering@redhat.com>
38670         strftime: fix a bug in yesterday's change
38671         * lib/strftime.c (add): Accommodate width's initial value of -1.
38672         Otherwise, nstrftime would copy uninitialized data into
38673         the result buffer.
38675 2011-03-21  Jim Meyering  <meyering@redhat.com>
38677         tests: add strftime-tests module
38678         * tests/test-strftime.c: New file.
38679         * modules/strftime-tests: New module.
38681 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
38683         strftime: don't assume a byte count fits in 'int'
38684         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
38685         found this problem by static analysis, using gcc -Wstrict-overflow
38686         (GCC 4.5.2, x86-64).  This reported an optimization that depended
38687         on an integer overflow having undefined behavior, but it turns out
38688         that the argument is a size, which might not fit in 'int' anyway,
38690 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
38692         stdio: don't require ignore_value around fwrite
38694         This patch works around libc bug 11959
38695         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
38696         Without this patch, applications must often write
38697         ignore_value (fwrite (...)) even though the ignore_value is
38698         not helpful here.  It's common to write many objects, using
38699         fwrite/printf/etc., and then use ferror to detect output error.
38701         I considered making this patch optional, but decided against it,
38702         because libc is obviously being inconsistent here: there is no
38703         reason libc should insist that user code must inspect fwrite
38704         return's value without also insisting that it inspect printf's,
38705         putchar's, etc.  If user code wants to have a strict style where
38706         all these functions' values are checked (so that ferror need not
38707         be checked), we could add support for that style in a new gnulib
38708         module, but in the meantime it's better to be consistent and to
38709         support common usage.
38711         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
38712         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
38713         that we are compiling in checking mode, and if not C++, and
38714         if not already wrapping fwrite for some other reason.
38715         (fwrite): #define to rpl_fwrite if the latter is defined.
38717 2011-03-20  Bruno Haible  <bruno@clisp.org>
38719         verror: Fix compilation error introduced on 2011-02-13.
38720         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
38721         instead of __attribute__.
38722         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38724 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
38725             Bruno Haible  <bruno@clisp.org>
38727         socklen: do not depend on sys_socket
38728         While trying to modify Emacs to use gnulib's socklen module,
38729         I discovered a circular dependency: socklen depends on sys_socket
38730         and vice versa.  Emacs can use socklen, but it does not need
38731         sys_socket because it has its own substitute for sys/socket.h.
38732         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
38733         gl_TYPE_SOCKLEN_T.
38734         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
38735         gl_PREREQ_SYS_H_SOCKET.
38736         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
38737         gl_PREREQ_SYS_H_SOCKET.
38738         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
38739         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
38740         * modules/socklen (Depends-on): Do not depend on sys_socket.
38741         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
38743 2011-03-20  Jim Meyering  <meyering@redhat.com>
38745         maint.mk: sort file names *after* new transformation
38746         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
38747         prefix would have led to an unwarranted failure in GNU parted.
38748         Sort after that transformation.
38750 2011-03-19  Jim Meyering  <meyering@redhat.com>
38752         maint.mk: fix po-file syntax-check rule
38753         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
38754         Patch by Bruno Haible.
38756 2011-03-19  Bruno Haible  <bruno@clisp.org>
38758         socklen: Update comment.
38759         * m4/socklen.m4: Update comment about platforms.
38761 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
38762             Bruno Haible  <bruno@clisp.org>
38764         inet_ntop, inet_pton: Simplify.
38765         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
38766         documented to provide socklen_t and we already depend on sys_socket.
38767         * modules/inet_pton (Depends-on): Likewise.
38768         * lib/arpa_inet.in.h: Adjust comment.
38770 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
38771             Bruno Haible  <bruno@clisp.org>
38773         netdb: Simplify.
38774         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
38775         documented to provide socklen_t and we already depend on sys_socket.
38776         * lib/netdb.in.h: Adjust comment.
38778 2011-03-19  Bruno Haible  <bruno@clisp.org>
38780         sys_socket, netdb: Document problem with socklen_t.
38781         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
38782         platforms.
38783         * doc/posix-headers/netdb.texi: Likewise.
38785 2011-03-18  Eric Blake  <eblake@redhat.com>
38787         maint.mk: let po check work in VPATH build
38788         * top/maint.mk (po_file): Allow cfg.mk override.
38789         (sc_po_check): Allow VPATH use.
38790         Reported by Jiri Denemark.
38792 2011-03-16  Jim Meyering  <meyering@redhat.com>
38794         maint.mk: allow fine-grained syntax-check exclusion via Make variables
38795         Before, you would have had to create one .x-sc_ file per rule in order
38796         to exempt offending files.  Now, you may instead use a Make variable --
38797         usually defined in cfg.mk -- whose name identifies the affected rule.
38798         * top/maint.mk (_sc_excl): Define.
38799         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
38800         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
38802 2011-03-13  Bruno Haible  <bruno@clisp.org>
38804         ignore-value tests: Avoid warnings.
38805         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
38806         empty for gcc < 3.4.
38808 2011-03-13  Bruno Haible  <bruno@clisp.org>
38810         passfd: Fix link error on Solaris.
38811         * modules/passfd (Description): Correct.
38812         (Depends-on): Add socketlib.
38813         (Link): New section.
38814         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
38816 2011-03-13  Bruno Haible  <bruno@clisp.org>
38818         passfd: Fix link error on AIX 5.2.
38819         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
38821 2011-03-13  Bruno Haible  <bruno@clisp.org>
38823         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
38824         * lib/sys_socket.in.h: Include <stddef.h>.
38825         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
38826         CMSG_FIRSTHDR. Remove unused variable.
38828 2011-03-13  Bruno Haible  <bruno@clisp.org>
38830         passfd: Fix compilation error on OpenBSD.
38831         * lib/passfd.c: Include <sys/uio.h>.
38833 2011-03-13  Bruno Haible  <bruno@clisp.org>
38835         passfd test: Fix warnings.
38836         * tests/test-passfd.c: Include <sys/wait.h>.
38837         (main): Fix typo.
38839 2011-03-13  Bruno Haible  <bruno@clisp.org>
38841         passfd module, part 4, tweaks.
38842         * tests/test-passfd.c: Reorder includes.
38843         (main): Fix perror and printf calls.
38845 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
38847         passfd module, part 4.
38848         * modules/passfd-tests: New file.
38849         * tests/test-passfd.c: New file.
38851 2011-03-13  Jim Meyering  <meyering@redhat.com>
38853         Makefile: rely on GNU make; derive syntax-check rule names
38854         Rather than requiring that each sc_ rule be listed as a dependent
38855         of "check", use features of GNU make to derive the list.
38856         * Makefile (syntax-check-rules): Define.
38857         (check): Depend on the new variable, not the hard-coded list.
38859 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
38860             Bruno Haible  <bruno@clisp.org>
38862         passfd module, part 3.
38863         * lib/passfd.h (recvfd): Add a flags argument.
38864         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
38865         (recvfd): Add a flags argument.
38866         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
38867         exists.
38868         * modules/passfd (Depends-on): Add cloexec.
38869         Suggested by Eric Blake.
38871 2011-03-13  Bruno Haible  <bruno@clisp.org>
38873         passfd module, part 2, tweaks.
38874         * modules/passfd (Files): Reorder.
38875         (Depends-on): Remove errno.
38876         (Include): Remove <sys/socket.h>, <sys/un.h>.
38877         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
38878         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
38879         specification header. Include <sys/socket.h> always. Don't include
38880         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
38881         (sendfd): Clarify that it sets errno when it fails.
38882         (recvfd): Fix specification.
38884 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
38886         passfd module, part 2.
38887         * modules/passfd: New file.
38888         * lib/passfd.h: New file.
38889         * lib/passfd.c: New file.
38891 2011-03-12  Bruno Haible  <bruno@clisp.org>
38893         wcswidth, mbswidth: Avoid integer overflow.
38894         * lib/wcswidth.c: Include <limits.h>.
38895         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
38896         * lib/mbswidth.c: Include <limits.h>.
38897         (mbsnwidth): Avoid 'int' overflow.
38898         Reported by Jim Meyering.
38900 2011-03-12  Bruno Haible  <bruno@clisp.org>
38902         futimens, utimensat: Avoid endless recursion on Solaris 10.
38903         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
38904         Solaris.
38905         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
38906         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
38908 2011-03-11  Jim Meyering  <meyering@redhat.com>
38910         maint.mk: relax a regexp to accommodate other formatting styles
38911         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
38912         between "ngettext" and the following "(".
38914 2011-03-11  Pádraig Brady  <P@draigBrady.com>
38916         maint.mk: suppress a false positive warning
38917         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
38918         diagnostics are marked with ngettext.
38920 2011-03-10  Eric Blake  <eblake@redhat.com>
38922         wchar: add explicit dependencies, for Tru64
38923         * modules/mbmemcasecoll (Depends-on): Add wchar.
38924         * modules/mbtowc (Depends-on): Likewise.
38925         * modules/vasnprintf (Depends-on): Likewise.
38926         * modules/unistdio/u-printf-args (Depends-on): Likewise.
38927         * modules/wctomb (Depends-on): Likewise.
38928         Reported by Peter O'Gorman.
38930 2011-03-08  Bruno Haible  <bruno@clisp.org>
38932         passfd module, part 1, tweaks.
38933         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
38934         Improve indentation. Improve AC_MSG_CHECKING messages.
38935         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
38936         gl_SOCKET_FAMILIES.
38938 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
38940         passfd module, part 1.
38941         * m4/afunix.m4: New file.
38942         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
38943         sockets.
38945 2011-03-08  Bruno Haible  <bruno@clisp.org>
38947         regex-quote: New API.
38948         * lib/regex-quote.h: Include <stdbool.h>.
38949         (struct regex_quote_spec): New type.
38950         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
38951         New declarations.
38952         (regex_quote_length, regex_quote_copy, regex_quote): Take a
38953         'const struct regex_quote_spec *' argument.
38954         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
38955         (pcre_special): New constant.
38956         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
38957         New functions.
38958         (regex_quote_length, regex_quote_copy, regex_quote): Take a
38959         'const struct regex_quote_spec *' argument.
38960         * modules/regex-quote (Depends-on): Add stdbool.
38961         * tests/test-regex-quote.c (check): Update for new API. Add test for
38962         anchored results.
38963         * NEWS: Mention the API change.
38964         Reported by Reuben Thomas and Eric Blake.
38966 2011-03-06  Bruno Haible  <bruno@clisp.org>
38968         regex-quote: Fix creation of POSIX extended regular expressions.
38969         * lib/regex-quote.c (ere_special): Add grouping and alternation
38970         operators.
38972 2011-03-05  Bruno Haible  <bruno@clisp.org>
38974         doc: Improve doc regarding autopoint vs. gnulib.
38975         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
38976         disable autopoint while running autoreconf.
38977         Suggested by Ralf Wildenhues.
38979 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38981         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
38982         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
38984 2011-03-03  Bruce Korb  <bkorb@gnu.org>
38986         parse-duration: remove xalloc.h dependency
38987         * lib/parse-duration.c (parse_period): handle NULL return from
38988         strdup instead of calling xstrdup().
38989         * modules/parse-duration: remove "xalloc" dependency
38991 2011-03-03  Matthew Booth  <mbooth@redhat.com>
38993         bootstrap: honor m4_base when running aclocal
38994         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
38996 2011-03-02  Jim Meyering  <meyering@redhat.com>
38998         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
38999         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
39000         on request from Matt Booth.
39002 2011-03-01  Eric Blake  <eblake@redhat.com>
39004         test-link: work on Hurd
39005         * tests/test-link.h (test_link): Hurd rejects linking directories
39006         with EISDIR instead of the POSIX-mandated EPERM.
39008 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
39010         stdio: simplify by moving files to printf-posix, sigpipe
39011         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
39012         since this symbol is needed only if printf is replaced.
39013         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
39014         Require gl_ASM_SYMBOL_PREFIX.
39015         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
39016         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
39017         (Depends-on): Add 'raise'.
39018         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
39019         * modules/stdio (Files): Remove lib/stdio-write.c,
39020         m4/asm-underscore.m4.
39021         (Depends-on): Remove 'raise'.
39023         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
39024         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
39025         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
39026         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
39028 2011-02-28  Bruno Haible  <bruno@clisp.org>
39030         localcharset: Assume ANSI C behaviour of free().
39031         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
39032         calling free().
39033         Suggested by Simon Josefsson <simon@josefsson.org>.
39035 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
39036             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
39037             Bruno Haible  <bruno@clisp.org>  (tiny change)
39039         On Cygwin, use /proc file system instead of win32 API.
39040         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
39041         Win32 file names.
39042         (DllMain): Simplify by removing Cygwin specific code.
39043         (find_shared_library_fullname): Use Linux specific implementation also
39044         for Cygwin.
39045         (get_shared_library_fullname): Update accordingly.
39046         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
39047         Win32 file names.
39048         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
39049         Cygwin specific code.
39051 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
39052             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
39054         Fix OpenMP flag detection for various Fortran compilers.
39055         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
39056         OpenMP-conditional compilation construct, to force compile
39057         failure with missing OpenMP flag.
39058         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
39060 2011-02-25  Eric Blake  <eblake@redhat.com>
39062         strstr: expand test coverage
39063         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
39064         compilation.
39065         * tests/test-memmem.c (main): Duplicate tests.
39066         * tests/test-strcasestr.c (main): Likewise.
39067         * tests/test-c-strcasestr.c (main): Likewise.
39069 2011-02-25  Jim Meyering  <meyering@redhat.com>
39071         maint.mk: detect missing-NL-at-EOF, too
39072         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
39073         it also detects when a file lacks a newline at EOF.
39074         (require_exactly_one_NL_at_EOF_): Renamed from
39075         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
39076         since people may well have .x-sc_... file names tied to the
39077         existing name.  Suggested by Eric Blake.
39079 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
39081         dirname: move m4/dos.m4 functionality into lib/dosname.h
39083         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
39084         extracts symbols from it, puts them into config.h; but it's much
39085         easier to use the symbols directly.  filename.h already does this,
39086         but it disagrees with dos.m4 in some respects.  This patch
39087         introduces a different include file dosname.h that packages up
39088         dos.m4, and then later we can work on merging filename.h and
39089         dosname.h.  Applications that need only the easy-to-configure
39090         symbols should consider including dosname.h rather than dirname.h.
39091         * NEWS: Mention incompatible changes.
39092         * m4/dos.m4: Remove.
39093         * lib/dosname.h, modules/dosname: New files.
39094         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
39095         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
39096         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
39097         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
39098         Include dosname.h, not dirname.h.
39099         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
39100         Include dosname.h, for definitions of symbols like ISSLASH
39101         that used to be in config.h.
39102         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
39103         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
39104         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
39105         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
39106         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
39107         * modules/rmdir (Files): Likewise.
39108         * modules/stat (Files): Likewise.
39109         * modules/unlink (Files): Likewise.
39110         * modules/dirname-lgpl (Depends-on): Add dosname.
39111         * modules/lstat (Depends-on): Likewise.
39112         * modules/openat (Depends-on): Likewise.
39113         * modules/rmdir (Depends-on): Likewise.
39114         * modules/savewd (Depends-on): Likewise.
39115         * modules/stat (Depends-on): Likewise.
39116         * modules/unlink (Depends-on): Likewise.
39117         * modules/openat (Depends-on): Remove dirname-lgpl.
39118         * modules/savewd (Depends-on): Likewise.
39119         * tests/test-dirname.c: Do not use removed symbols like
39120         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
39121         the remaining symbols, e.g., ISSLASH ('\\').
39123 2011-02-25  Eric Blake  <eblake@redhat.com>
39125         strstr: revert patches that introduced bug and pessimization
39126         * lib/str-two-way.h: Add another reference.
39127         (two_way_short_needle, two_way_long_needle): Revert changes from
39128         2011-02-24; they pessimize search speed.
39129         (critical_factorization): Partially revert changes from
39130         2010-06-22; they violate the requirement that the left half of the
39131         needle be smaller than the period of the needle.
39133 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
39135         filenamecat: remove unnecessary dependency on dirname-lgpl
39136         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
39137         is no direct dependency, just an indirect one via filenamecat-lgpl.
39139         remove: remove unnecessary use of m4/dos.m4
39140         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
39141         * modules/remove (FILES): Remove m4/dos.m4.
39143         * lib/openat-proc.c: Don't include dirname.h; not needed.
39145         backupfile: remove unnecessary use of m4/dos.m4
39146         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
39147         of its symbols are used by the backupfile code.  backupfile.c does
39148         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
39149         for the rare case of programs that want all their backup file
39150         names to live within 8+3 limits, and dos.m4 doesn't address that.
39151         * modules/backupfile (Files): Remove m4/dos.m4.
39153 2011-02-24  Jim Meyering  <meyering@redhat.com>
39155         strstr: fix a bug whereby strstr would mistakenly return NULL
39156         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
39157         in period calculation.
39158         (two_way_long_needle): Likewise.
39159         The original problem was reported by Mike Stump in
39160         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
39161         Ralf Wildenhues provided the short needle and haystack.
39162         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
39163         Add a more involved test to trigger the bug in two_way_long_needle.
39165 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
39167         gnulib-tool: remove use of bold display in help screen
39168         * gnulib-tool (func_usage): Do not use bold display anymore in the
39169         help screen.  That was just meant to be a temporary emphasis for a
39170         backward-incompatible change.
39172 2011-02-23  Bruno Haible  <bruno@clisp.org>
39174         Fix misindentation of preprocessor directives.
39175         * lib/argp-namefrob.h: Reindent preprocessor directives.
39176         * lib/getopt_int.h (struct _getopt_data): Likewise.
39177         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
39178         * lib/vasnprintf.c (decode_long_double): Likewise.
39179         * tests/test-argmatch.c: Insert blank lines, for clarity.
39180         * tests/test-exclude.c: Likewise.
39182 2011-02-22  Bruno Haible  <bruno@clisp.org>
39184         ioctl: Fix for MacOS X in 64-bit mode.
39185         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
39186         value.
39187         Suggested by Eric Blake.
39188         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
39190 2011-02-22  Jim Meyering  <meyering@redhat.com>
39192         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
39193         * Makefile (sc_cpp_indent_check): Don't limit the check to files
39194         in lib/.
39196 2011-02-22  Eric Blake  <eblake@redhat.com>
39198         maint: avoid any CDPATH issue
39199         * Makefile (sc_cpp_indent_check): Anchor cd argument.
39201         maint: adjust cpp indentation for my modules, as well
39202         * Makefile (sc_cpp_indent_check): Add my name.
39203         * lib/fbufmode.c: Filter through cppi.
39204         * lib/fpurge.c: Likewise.
39205         * lib/freadable.c: Likewise.
39206         * lib/freading.c: Likewise.
39207         * lib/fwritable.c: Likewise.
39208         * lib/fwriting.c: Likewise.
39209         * lib/sigaction.c: Likewise.
39211 2011-02-22  Jim Meyering  <meyering@redhat.com>
39213         maint: adjust cpp indentation to reflect nesting depth
39214         I.e., in a block of code that begins with an unnested "#if",
39215         put one space between the "#" in column 1 and following token.
39216         For example,
39217         -#include <sys/vfs.h>
39218         +# include <sys/vfs.h>
39219         Do this only in .c files that are part of a module I maintain.
39220         * lib/linkat.c: Filter through cppi.
39221         * lib/nanosleep.c: Likewise.
39222         * lib/openat.c: Likewise.
39223         * lib/openat-die.c: Likewise.
39224         * lib/dup3.c: Likewise.
39225         * lib/fchownat.c: Likewise.
39226         * lib/flock.c: Likewise.
39227         * lib/fsync.c: Likewise.
39228         * lib/fts.c: Likewise.
39229         * lib/getpass.c: Likewise.
39230         * lib/gettimeofday.c: Likewise.
39231         * lib/userspec.c: Likewise.
39232         * Makefile (sc_cpp_indent_check): New rule, to check this.
39234 2011-02-22  Bruno Haible  <bruno@clisp.org>
39236         New module 'wctomb'.
39237         * lib/stdlib.in.h (wctomb): New declaration.
39238         * lib/wctomb.c: New file.
39239         * lib/wctomb-impl.h: New file.
39240         * m4/wctomb.m4: New file.
39241         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
39242         REPLACE_WCTOMB.
39243         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
39244         REPLACE_WCTOMB.
39245         * modules/wctomb: New file.
39246         * tests/test-stdlib-c++.cc: Test signature of wctomb.
39247         * doc/posix-functions/wctomb.texi: Mention the new module.
39248         * modules/wctob (Depends-on): Add wctomb.
39250 2011-02-22  Bruno Haible  <bruno@clisp.org>
39252         New module 'mbtowc'.
39253         * lib/stdlib.in.h (mbtowc): New declaration.
39254         * lib/mbtowc.c: New file.
39255         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
39256         * m4/mbtowc.m4: New file.
39257         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
39258         REPLACE_MBTOWC.
39259         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
39260         REPLACE_MBTOWC.
39261         * modules/mbtowc: New file.
39262         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
39263         * doc/posix-functions/mbtowc.texi: Mention the new module.
39264         * modules/btowc (Depends-on): Add mbtowc.
39266 2011-02-22  Bruno Haible  <bruno@clisp.org>
39268         wcrtomb: Add more tests for native Windows platforms.
39269         * tests/test-wcrtomb-w32-1.sh: New file.
39270         * tests/test-wcrtomb-w32-2.sh: New file.
39271         * tests/test-wcrtomb-w32-3.sh: New file.
39272         * tests/test-wcrtomb-w32-4.sh: New file.
39273         * tests/test-wcrtomb-w32-5.sh: New file.
39274         * tests/test-wcrtomb-w32.c: New file.
39275         * modules/wcrtomb-tests (Files): Add them.
39276         (Makefile.am): Arrange to run these tests.
39277         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
39278         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
39280 2011-02-20  Bruno Haible  <bruno@clisp.org>
39282         wcrtomb: Enhance test.
39283         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
39285 2011-02-20  Bruno Haible  <bruno@clisp.org>
39287         mbrtowc: Tiny optimization.
39288         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
39290 2011-02-20  Jim Meyering  <meyering@redhat.com>
39292         test-exclude.c: remove unmatched #endif
39293         * tests/test-exclude.c: Remove stray #endif, left over from
39294         the change of a week ago.
39296 2011-02-19  Jim Meyering  <meyering@redhat.com>
39298         git-version-gen: skip "-dirty" check when appropriate
39299         * build-aux/git-version-gen: Don't run any git commands when the
39300         version string comes from .tarball-version.  Prior to this, we
39301         would run git update-index --refresh even from a just-unpacked
39302         tarball directory, and that could affect a .git/ directory in a
39303         parent of the build directory.  Reported by Mike Frysinger.
39305 2011-02-19  Bruno Haible  <bruno@clisp.org>
39307         unictype/property-byname: Reduce the size of the 'data' segment.
39308         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
39310 2011-02-19  Bruno Haible  <bruno@clisp.org>
39312         unictype/scripts: Reduce the size of the 'data' segment.
39313         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
39314         '%pic'.
39315         * lib/unictype/scripts_byname.gperf: Regenerated.
39317 2011-02-19  Bruno Haible  <bruno@clisp.org>
39319         stdint: Update documentation.
39320         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
39322 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
39324         stdint: omit redundant check for wchar.h
39325         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
39326         always tests whether wchar.h exists, so remove the now-redundant test.
39328 2011-02-18  Bruno Haible  <bruno@clisp.org>
39330         stdint: Cut dependency to module 'wchar'.
39331         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
39332         include the necessary prerequisites.
39333         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
39334         * modules/stdint (Depends-on): Remove wchar.
39335         (Makefile.am): Substitute HAVE_WCHAR_H.
39336         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
39338 2011-02-18  Eric Blake  <eblake@redhat.com>
39340         longlong: skip, rather than fail, on cross-compilation
39341         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
39342         when cross-compiling; regression from 2011-02-16.
39344 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
39346         * NEWS: Mention 2011-02-08 change to stdlib.
39348 2011-02-17  Bruno Haible  <bruno@clisp.org>
39350         getloadavg: Add comments about platforms.
39351         * m4/getloadavg.m4: Add comment.
39352         * lib/getloadavg.c: Likewise.
39354 2011-02-17  Bruno Haible  <bruno@clisp.org>
39356         getloadavg: Fix link error on Solaris 2.6.
39357         * modules/getloadavg (Link): New section.
39358         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
39359         linking test-getloadavg.
39360         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
39361         getloadavg.
39363 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
39365         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
39366         It was 'int', but this doesn't match the IRIX 6.5 manual.
39367         Suggested by Bruno Haible in
39368         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
39370 2011-02-17  Bruno Haible  <bruno@clisp.org>
39372         havelib: Fix comments.
39373         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
39374         change.
39376 2011-02-17  Bruno Haible  <bruno@clisp.org>
39378         havelib: Update config.rpath.
39379         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
39381 2011-02-17  Bruno Haible  <bruno@clisp.org>
39383         getloadavg test: Add some plausibility checks.
39384         * tests/test-getloadavg.c (check_avg): Print a warning when the value
39385         is improbable.
39387 2011-02-16  Eric Blake  <eblake@redhat.com>
39389         maintainer-makefile: make syntax-check a no-op from tarballs
39390         * top/maint.mk (no-vc-detected): New rule.
39391         (local-checks-available): Use it to avoid hanging if someone tries
39392         'make syntax-check' from a tarball.  Also append to any non-syntax
39393         checks already defined in cfg.mk.
39395 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
39397         longlong: tune, particularly for common case of c99
39399         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
39400         or running anything if c99, or if unsigned long long int does not
39401         work.  In either case, we know the answer without further tests.
39402         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
39403         it at most once, and use its results for both long long int and
39404         unsigned long long int.  This is more likely to be efficient in
39405         the common case where the program wants to check for both long
39406         long int and unsigned long long int.
39407         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
39408         since the answer is already known.
39410 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
39412         getloadavg: set errno
39413         * lib/getloadavg.c: Set errno when returning -1.  If no other
39414         error number looks appropriate, set it to ENOSYS if the getloadavg
39415         looks like it can't possibly ever work, ENOTSUP otherwise.
39416         Suggested by Bruno Haible in
39417         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
39419         getloadavg: trim unused parts and speed up 'configure'
39420         * NEWS: Document this.
39421         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
39422         always compiled if getloadavg is absent.
39423         Move test code to ...
39424         * tests/test-getloadavg.c: New file, containing previous
39425         contents of test from lib/getloadavg.c.  It also contains
39426         suggestions by Bruno Haible in
39427         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
39428         * modules/getloadavg-tests: New file.
39429         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
39430         Do tests in the same order as they're needed for getloadavg.c.
39431         Omit setgid-related tests that generate symbols KMEM_GROUP,
39432         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
39433         Do only the tests that are needed to see whether the system has
39434         getloadavg, moving the other tests into ...
39435         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
39436         NLIST_NAME_UNION; nobody should be using it.  Do not define
39437         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
39438         relevant, as the user of this module shouldn't care how getloadavg
39439         is implemented.
39441         getloadavg: omit unused var
39442         * lib/getloadavg.c (getloadavg): Omit unused local variable.
39444 2011-02-15  Jim Meyering  <meyering@redhat.com>
39446         doc: update users.txt
39447         * users.txt: Update iwhd's URL.
39449 2011-02-13  Bruno Haible  <bruno@clisp.org>
39451         Consistent macro naming for macros that use GCC __attribute__.
39452         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
39453         _ATTRIBUTE_NONNULL_.
39454         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
39455         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
39456         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
39457         ATTRIBUTE_DEPRECATED.
39458         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
39459         ATTRIBUTE_NORETURN.
39460         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
39461         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
39462         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
39463         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
39464         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
39465         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
39466         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
39467         ATTRIBUTE_SENTINEL.
39468         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
39469         ATTRIBUTE_RETURN_CHECK.
39470         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
39471         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
39472         ATTRIBUTE_NORETURN.
39473         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
39474         Reported by Paul Eggert.
39476 2011-02-13  Bruno Haible  <bruno@clisp.org>
39478         Don't interfere with a program's definition of __attribute__.
39479         * lib/argp.h (__attribute__): Remove definition.
39480         (_GL_ATTRIBUTE_FORMAT): New macro.
39481         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
39482         * lib/argp-fmtstream.h (__attribute__): Remove definition.
39483         (_GL_ATTRIBUTE_FORMAT): New macro.
39484         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
39485         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
39486         GCC 3 or newer.
39487         * lib/error.h (__attribute__): Remove definition.
39488         (_GL_ATTRIBUTE_FORMAT): New macro.
39489         (error, error_at_line): Use it.
39490         * lib/hash.h (__attribute__): Remove definition.
39491         (ATTRIBUTE_WUR): Update definition. Define always.
39492         * lib/openat.h (__attribute__): Remove definition.
39493         (ATTRIBUTE_NORETURN): Update definition. Define always.
39494         * lib/sigpipe-die.h (__attribute__): Remove definition.
39495         (ATTRIBUTE_NORETURN): Update definition. Define always.
39496         * lib/vasnprintf.h (__attribute__): Remove definition.
39497         (_GL_ATTRIBUTE_FORMAT): New macro.
39498         (asnprintf, vasnprintf): Use it.
39499         * lib/xalloc.h (__attribute__): Remove definition.
39500         (ATTRIBUTE_NORETURN): Update definition. Define always.
39501         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
39502         * lib/xmemdup0.h (__attribute__): Remove definition.
39503         (ATTRIBUTE_NORETURN): Update definition. Define always.
39504         * lib/xprintf.h (__attribute__): Remove definition.
39505         (_GL_ATTRIBUTE_FORMAT): New macro.
39506         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
39507         * lib/xstrtol.h (__attribute__): Remove definition.
39508         (ATTRIBUTE_NORETURN): Update definition. Define always.
39509         * lib/xvasprintf.h (__attribute__): Remove definition.
39510         (_GL_ATTRIBUTE_FORMAT): New macro.
39511         (xasprintf, xvasprintf): Use it.
39512         * tests/test-argmatch.c (__attribute__): Remove definition.
39513         (ATTRIBUTE_NORETURN): Update definition. Define always.
39514         * tests/test-exclude.c (__attribute__): Remove definition.
39515         (ATTRIBUTE_NORETURN): Update definition. Define always.
39516         Reported by Paul Eggert.
39518 2011-02-13  Bruno Haible  <bruno@clisp.org>
39520         mbrtowc: Add more tests for native Windows platforms.
39521         * tests/test-mbrtowc-w32-1.sh: New file.
39522         * tests/test-mbrtowc-w32-2.sh: New file.
39523         * tests/test-mbrtowc-w32-3.sh: New file.
39524         * tests/test-mbrtowc-w32-4.sh: New file.
39525         * tests/test-mbrtowc-w32-5.sh: New file.
39526         * tests/test-mbrtowc-w32.c: New file.
39527         * modules/mbrtowc-tests (Files): Add them.
39528         (Makefile.am): Arrange to run these tests.
39529         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
39530         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
39532 2011-02-13  Bruno Haible  <bruno@clisp.org>
39534         mbrtowc: Work around native Windows bug.
39535         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
39536         guess when no suitable locale for testing was found.
39537         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
39539 2011-02-13  Bruno Haible  <bruno@clisp.org>
39541         mbsinit: Work around mingw bug.
39542         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
39543         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
39544         Windows.
39545         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
39547 2011-02-13  Bruno Haible  <bruno@clisp.org>
39549         mbsinit: Don't crash for a NULL argument.
39550         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
39551         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
39553 2011-02-13  Bruno Haible  <bruno@clisp.org>
39555         Don't interfere with a program's definition of __attribute__.
39556         * lib/stdio.in.h (__attribute__): Remove definition.
39557         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
39558         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
39559         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
39560         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
39561         * lib/string.in.h (__attribute__): Remove definition.
39562         Reported by Paul Eggert.
39564 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
39566         stdlib: don't get in the way of non-GCC __attribute__
39567         See thread starting at
39568         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
39569         Revert previous stdlib change, installing the following instead:
39570         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
39571         to get in the way of a non-GCC compiler that supports __attribute__.
39572         (_GL_ATTRIBUTE_RETURN): New macro.
39573         (_Exit): Use it instead of __attribute__.
39575 2011-02-12  Bruno Haible  <bruno@clisp.org>
39577         quotearg test: Avoid test failure on mingw.
39578         * tests/test-quotearg.sh: Convert the locale identifier from native
39579         Windows syntax to Unix syntax.
39581 2011-02-12  Bruno Haible  <bruno@clisp.org>
39583         setlocale: Prefer gnulib's override over libintl's override.
39584         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
39585         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
39586         GNULIB_defined_setlocale is set.
39588 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
39590         stdlib: support non-GCC __attribute__
39592         Fix a serious and tricky problem encountered when attempting to
39593         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
39594         5.5, but it crashed due to memory corruption on Solaris 10 with
39595         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
39596         bits that are otherwise zero.  This tagging is optional inside
39597         Emacs but is preferred and is used when __attribute__ ((__aligned
39598         (8))) works, as it does with both recent-enough GCC and with Sun C
39599         5.11.  However, Sun C 5.11 is not GCC and does not #define
39600         __GNUC__ and __GNUC_MINOR__.
39602         When I added the getloadavg module to Emacs, it brought in
39603         stdlib.in.h, which contained this fragment:
39605            #ifndef __attribute__
39606            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
39607            #  define __attribute__(Spec)   /* empty */
39608            # endif
39609            #endif
39611         When files that include <stdlib.h> were compiled with Sun C 5.11,
39612         the above code disabled __attribute__ ((__aligned (8))), which
39613         caused variables to not be properly aligned, which eventually led
39614         to the pointer corruption mentioned above.  (This was a bit hard
39615         to diagnose, unfortunately.)
39617         Several "#define __attribute__(X) /* empty */" code snippets need
39618         to be eradicated from Gnulib to work with non-GCC compilers that
39619         support __attribute__.  The Autoconf way to do this is to test for
39620         each kind of attribute that we want support for, and selectively
39621         enable that in source code.
39623         Fix this problem just for stdlib.h, by adding a test for the
39624         __noreturn__ attribute, and change stdlib.in.h to use that test
39625         when needed.  This technique can be easily generalized to the
39626         other *.in.h files and attributes, and a similar technique can be
39627         used for *.h and *.c files.  This patch is enough to solve the
39628         problem for Emacs + getloadavg, and I thought I'd publish it for
39629         feedback before undertaking further, similar fixes in other
39630         modules.
39632         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
39633         because it's not needed for stdlib.h.  It merely substitutes the
39634         value directly into stdlib.h.  We may well need to #define it, or
39635         similar symbols, for other modules, but it's nice to also have an
39636         option to not #define it for applications like Emacs that do not
39637         need it.
39639         * lib/stdlib.in.h (__attribute__): Do not #define.
39640         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
39641         be defined only if the _Exit module is also used.
39642         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
39643         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
39644         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
39645         platforms.
39646         * modules/_Exit (Files): Add m4/attribute.m4.
39647         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
39648         * m4/attribute.m4: New file.
39650 2011-02-12  Bruno Haible  <bruno@clisp.org>
39652         wcsrtombs: Work around bug on native Windows.
39653         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
39654         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
39655         instead of len.
39656         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
39658 2011-02-12  Bruno Haible  <bruno@clisp.org>
39660         mbsrtowcs: Work around bug on native Windows.
39661         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
39662         against mingw bug.
39663         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
39665 2011-02-12  Bruno Haible  <bruno@clisp.org>
39667         Avoid setlocale bugs in tests.
39668         * modules/btowc (Dependencies): Add setlocale.
39669         * modules/c-strcase (Dependencies): Likewise.
39670         * modules/mbmemcasecmp (Dependencies): Likewise.
39671         * modules/mbmemcasecoll (Dependencies): Likewise.
39672         * modules/mbrtowc (Dependencies): Likewise.
39673         * modules/mbscasecmp (Dependencies): Likewise.
39674         * modules/mbscasestr (Dependencies): Likewise.
39675         * modules/mbschr (Dependencies): Likewise.
39676         * modules/mbscspn (Dependencies): Likewise.
39677         * modules/mbsinit (Dependencies): Likewise.
39678         * modules/mbsncasecmp (Dependencies): Likewise.
39679         * modules/mbsnrtowcs (Dependencies): Likewise.
39680         * modules/mbspbrk (Dependencies): Likewise.
39681         * modules/mbspcasecmp (Dependencies): Likewise.
39682         * modules/mbsrchr (Dependencies): Likewise.
39683         * modules/mbsrtowcs (Dependencies): Likewise.
39684         * modules/mbsspn (Dependencies): Likewise.
39685         * modules/mbsstr (Dependencies): Likewise.
39686         * modules/nl_langinfo (Dependencies): Likewise.
39687         * modules/quotearg (Dependencies): Likewise.
39688         * modules/unicase/locale-language (Dependencies): Likewise.
39689         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
39690         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
39691         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
39692         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
39693         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
39694         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
39695         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
39696         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
39697         * modules/vasnprintf-posix (Dependencies): Likewise.
39698         * modules/wcrtomb (Dependencies): Likewise.
39699         * modules/wcsnrtombs (Dependencies): Likewise.
39700         * modules/wcsrtombs (Dependencies): Likewise.
39702 2011-02-12  Bruno Haible  <bruno@clisp.org>
39704         setlocale: Workaround native Windows bug.
39705         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
39706         succeeds but sets LC_CTYPE to "C", report a failure.
39707         * tests/test-setlocale2.sh: New file.
39708         * tests/test-setlocale2.c: New file.
39709         * modules/setlocale-tests (Files): Add the new files.
39710         (Makefile.am): Enable test-setlocale2.sh test.
39711         * doc/posix-functions/setlocale.texi: Mention workaround.
39713 2011-02-11  Bruno Haible  <bruno@clisp.org>
39715         Tests for module 'setlocale'.
39716         * modules/setlocale-tests: New file.
39717         * tests/test-setlocale1.sh: New file.
39718         * tests/test-setlocale1.c: New file.
39720         New module 'setlocale'.
39721         * lib/locale.in.h (setlocale): New declaration.
39722         * lib/setlocale.c: New file, based on
39723         gettext/gettext-runtime/intl/setlocale.c.
39724         * m4/setlocale.m4: New file.
39725         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
39726         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
39727         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
39728         REPLACE_SETLOCALE.
39729         * modules/setlocale: New file.
39730         * tests/test-locale-c++.cc: Test the declaration of setlocale.
39731         * doc/posix-functions/setlocale.texi: Mention the new module.
39733 2011-02-11  Bruno Haible  <bruno@clisp.org>
39735         Prepare for locale dependent tests on mingw.
39736         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
39737         because it has the wrong locale encoding.
39738         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
39739         French_France.1252 instead of "fr".
39740         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
39741         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
39742         because it has the wrong locale encoding.
39743         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
39744         native Windows, try Turkish_Turkey.65001.
39745         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
39746         Chinese_China.54936.
39748         Prepare for locale dependent tests on mingw.
39749         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
39750         differently.
39751         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
39752         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
39753         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
39754         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
39756 2011-02-11  Eric Blake  <eblake@redhat.com>
39758         strptime: avoid compiler warnings
39759         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
39760         compiler warnings about dead code.
39761         Reported by Daniel P. Berrange.
39763 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
39765         doc: update users.txt
39766         * users.txt: Add rcs.
39768 2011-02-10  John W. Eaton  <jwe@gnu.org>
39770         doc: update users.txt
39771         * users.txt: Add octave.
39773 2011-02-10  Jim Meyering  <meyering@redhat.com>
39775         doc: update users.txt
39776         * users.txt: Add iwhd.
39778 2011-02-09  Bruno Haible  <bruno@clisp.org>
39780         gnulib-tool: Make copyright notice adjustment more robust.
39781         * gnulib-tool (func_import): In sed_transform_main_lib_file,
39782         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
39783         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
39784         License".
39785         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
39787 2011-02-06  Bruno Haible  <bruno@clisp.org>
39789         New module 'towctrans'.
39790         * modules/towctrans: New file.
39791         * lib/wctype.in.h (towctrans): New declaration.
39792         * lib/towctrans.c: New file.
39793         * lib/towctrans-impl.h: New file.
39794         * m4/towctrans.m4: New file.
39795         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
39796         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
39797         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
39798         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
39799         * doc/posix-functions/towctrans.texi: Mention the new module.
39801 2011-02-06  Bruno Haible  <bruno@clisp.org>
39803         New module 'wctrans'.
39804         * modules/wctrans: New file.
39805         * lib/wctype.in.h (wctrans): New declaration.
39806         * lib/wctrans.c: New file.
39807         * lib/wctrans-impl.h: New file.
39808         * m4/wctrans.m4: New file.
39809         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
39810         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
39811         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
39812         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
39813         * doc/posix-functions/wctrans.texi: Mention the new module.
39815 2011-02-06  Bruno Haible  <bruno@clisp.org>
39817         New module 'iswctype'.
39818         * modules/iswctype: New file.
39819         * lib/wctype.in.h (iswctype): New declaration.
39820         * lib/iswctype.c: New file.
39821         * lib/iswctype-impl.h: New file.
39822         * m4/iswctype.m4: New file.
39823         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
39824         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
39825         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
39826         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
39827         * doc/posix-functions/iswctype.texi: Mention the new module and the
39828         HP-UX 11.00 problem.
39830 2011-02-06  Bruno Haible  <bruno@clisp.org>
39832         New module 'wctype'.
39833         * modules/wctype: Change to represent the wctype() substitute.
39834         * lib/wctype.in.h (wctype): New declaration.
39835         * lib/wctype.c: New file.
39836         * lib/wctype-impl.h: New file.
39837         * m4/wctype.m4: New file.
39838         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
39839         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
39840         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
39841         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
39842         * doc/posix-functions/wctype.texi: Mention the new module and the
39843         HP-UX 11.00 problem.
39845 2011-02-06  Bruno Haible  <bruno@clisp.org>
39847         wctype-h: Ensure wctype_t and wctrans_t are defined.
39848         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
39849         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
39850         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
39851         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
39852         HAVE_WCTRANS_T.
39853         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
39855 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
39857         flock: fix license typo
39859         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
39860         omitted.
39862 2011-02-08  Bruno Haible  <bruno@clisp.org>
39864         Split large sed scripts, for HP-UX sed.
39865         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
39866         to avoid HP-UX limit of 99 commands, in the near future.
39867         * modules/stdlib (Makefile.am): Likewise.
39868         * modules/unistd (Makefile.am): Likewise.
39869         * modules/wchar (Makefile.am): Likewise.
39870         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39871         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
39872         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
39874 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
39875             Bruno Haible  <bruno@clisp.org>
39877         stdlib: improve random_r modularization
39878         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
39879         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
39880         you also need the random_r module to get this material right.
39881         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
39882         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
39883         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
39885 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
39887         stdlib: don't depend on stdint
39888         * lib/stdlib.in.h: Don't include <stdint.h> merely because
39889         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
39890         be independent of whether stdint.h is needed.
39891         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
39892         here, instead of ...
39893         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
39894         struct random_data should be using the random_r module, not just
39895         the stdlib module (which wouldn't make sense: what package needs
39896         just struct random_data without also needing random_r?).
39897         * modules/stdlib (Depends-on): Remove stdint.
39899         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
39900         See the thread rooted at
39901         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
39902         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
39903         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
39904         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
39905         __VMS)); previously it was always included (via fcntl--.h).
39906         (getloadavg): Do not use c_strtod.  Instead, approximate it by
39907         hand; this is good enough for load averages.  Also, do not use
39908         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
39909         flags directly if available and don't bother otherwise.  (Packages
39910         that need the extra reliability should use the modules that define
39911         these flags on older platforms that lack them.)
39912         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
39913         fcntl-safer.
39915 2011-02-08  Jim Meyering  <meyering@redhat.com>
39917         di-set.h, ino-map.h: add multiple-inclusion guard
39918         Technically, the guard is required only for ino-map.h, due to its
39919         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
39920         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
39921         * lib/ino-map.h: Likewise.
39923 2011-02-06  Bruno Haible  <bruno@clisp.org>
39925         iswblank: Ensure declaration on glibc systems.
39926         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
39927         * modules/iswblank (Dependencies): Add 'extensions'.
39928         * doc/posix-functions/iswblank.texi: Document the glibc problem.
39930 2011-02-06  Bruno Haible  <bruno@clisp.org>
39932         New module 'iswblank'.
39933         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
39934         * modules/iswblank: New file.
39935         * modules/wctype-h (Files): Remove lib/iswblank.c.
39936         (Makefile.am): Substitute GNULIB_ISWBLANK.
39937         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
39938         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
39939         (gl_WCTYPE_H_DEFAULTS): New macro.
39940         (gl_WCTYPE_H): Require it. Remove iswblank related code.
39941         * modules/iswblank-tests: New file.
39942         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
39943         * tests/test-wctype-h.c (main): Remove iswblank tests.
39944         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
39945         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
39946         of 'wctype-h'.
39947         * NEWS: Mention the change.
39948         * modules/mbchar (Depends-on): Add iswblank.
39950 2011-02-08  Bruno Haible  <bruno@clisp.org>
39952         di-set tests: Refactor.
39953         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
39954         unnecessary includes.
39955         (ASSERT): Remove macro.
39956         (main): Make C90 compliant by avoiding variable declaration after
39957         statement.
39958         * modules/di-set-tests (Files): Add tests/macros.h.
39960 2011-02-08  Bruno Haible  <bruno@clisp.org>
39962         ino-map tests: Refactor.
39963         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
39964         unnecessary includes.
39965         (ASSERT): Remove macro.
39966         (main): Make C90 compliant by avoiding variable declaration after
39967         statement.
39968         * modules/ino-map-tests (Files): Add tests/macros.h.
39970 2011-02-08  Jim Meyering  <meyering@redhat.com>
39972         di-set: add "const" to a cast
39973         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
39974         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
39976 2011-02-06  Bruno Haible  <bruno@clisp.org>
39978         Rename module 'wctype' to 'wctype-h'.
39979         * modules/wctype-h: Renamed from modules/wctype.
39980         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
39981         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
39982         (Files, Depends-on, Makefile.am): Update.
39983         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
39984         (Files, Makefile.am): Update.
39985         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
39986         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
39987         * doc/posix-headers/wctype.texi: Update.
39988         * doc/posix-functions/iswalnum.texi: Update.
39989         * doc/posix-functions/iswalpha.texi: Update.
39990         * doc/posix-functions/iswblank.texi: Update.
39991         * doc/posix-functions/iswcntrl.texi: Update.
39992         * doc/posix-functions/iswdigit.texi: Update.
39993         * doc/posix-functions/iswgraph.texi: Update.
39994         * doc/posix-functions/iswlower.texi: Update.
39995         * doc/posix-functions/iswprint.texi: Update.
39996         * doc/posix-functions/iswpunct.texi: Update.
39997         * doc/posix-functions/iswspace.texi: Update.
39998         * doc/posix-functions/iswupper.texi: Update.
39999         * doc/posix-functions/iswxdigit.texi: Update.
40000         * doc/posix-functions/towlower.texi: Update.
40001         * doc/posix-functions/towupper.texi: Update.
40002         * NEWS: Mention the change.
40003         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
40004         * modules/mbchar (Dependencies): Likewise.
40005         * modules/mbswidth (Dependencies): Likewise.
40006         * modules/quotearg (Dependencies): Likewise.
40007         * modules/regex (Dependencies): Likewise.
40008         * modules/wcscasecmp (Dependencies): Likewise.
40009         * modules/wcsncasecmp (Dependencies): Likewise.
40010         * modules/wcwidth (Dependencies): Likewise.
40012 2011-02-06  Bruno Haible  <bruno@clisp.org>
40014         New module 'wcswidth'.
40015         * modules/wcswidth: New file.
40016         * lib/wchar.in.h (wcswidth): New declaration.
40017         * lib/wcswidth.c: New file.
40018         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
40019         * m4/wcswidth.m4: New file.
40020         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
40021         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
40022         REPLACE_WCSWIDTH.
40023         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
40024         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
40025         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
40026         * doc/posix-functions/wcswidth.texi: Mention the new module.
40028 2011-02-06  Bruno Haible  <bruno@clisp.org>
40030         New module 'wcstok'.
40031         * modules/wcstok: New file.
40032         * lib/wchar.in.h (wcstok): New declaration.
40033         * lib/wcstok.c: New file.
40034         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
40035         * m4/wcstok.m4: New file.
40036         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
40037         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
40038         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
40039         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
40040         * doc/posix-functions/wcstok.texi: Mention the new module.
40042 2011-02-06  Bruno Haible  <bruno@clisp.org>
40044         New module 'wcsstr'.
40045         * modules/wcsstr: New file.
40046         * lib/wchar.in.h (wcsstr): New declaration.
40047         * lib/wcsstr.c: New file.
40048         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
40049         * m4/wcsstr.m4: New file.
40050         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
40051         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
40052         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
40053         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
40054         * doc/posix-functions/wcsstr.texi: Mention the new module.
40056 2011-02-06  Bruno Haible  <bruno@clisp.org>
40058         New module 'wcspbrk'.
40059         * modules/wcspbrk: New file.
40060         * lib/wchar.in.h (wcspbrk): New declaration.
40061         * lib/wcspbrk.c: New file.
40062         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
40063         * m4/wcspbrk.m4: New file.
40064         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
40065         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
40066         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
40067         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
40068         * doc/posix-functions/wcspbrk.texi: Mention the new module.
40070 2011-02-06  Bruno Haible  <bruno@clisp.org>
40072         New module 'wcsspn'.
40073         * modules/wcsspn: New file.
40074         * lib/wchar.in.h (wcsspn): New declaration.
40075         * lib/wcsspn.c: New file.
40076         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
40077         * m4/wcsspn.m4: New file.
40078         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
40079         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
40080         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
40081         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
40082         * doc/posix-functions/wcsspn.texi: Mention the new module.
40084 2011-02-06  Bruno Haible  <bruno@clisp.org>
40086         New module 'wcscspn'.
40087         * modules/wcscspn: New file.
40088         * lib/wchar.in.h (wcscspn): New declaration.
40089         * lib/wcscspn.c: New file.
40090         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
40091         * m4/wcscspn.m4: New file.
40092         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
40093         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
40094         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
40095         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
40096         * doc/posix-functions/wcscspn.texi: Mention the new module.
40098 2011-02-06  Bruno Haible  <bruno@clisp.org>
40100         New module 'wcsrchr'.
40101         * modules/wcsrchr: New file.
40102         * lib/wchar.in.h (wcsrchr): New declaration.
40103         * lib/wcsrchr.c: New file.
40104         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
40105         * m4/wcsrchr.m4: New file.
40106         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
40107         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
40108         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
40109         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
40110         * doc/posix-functions/wcsrchr.texi: Mention the new module.
40112 2011-02-06  Bruno Haible  <bruno@clisp.org>
40114         New module 'wcschr'.
40115         * modules/wcschr: New file.
40116         * lib/wchar.in.h (wcschr): New declaration.
40117         * lib/wcschr.c: New file.
40118         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
40119         * m4/wcschr.m4: New file.
40120         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
40121         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
40122         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
40123         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
40124         * doc/posix-functions/wcschr.texi: Mention the new module.
40126 2011-02-06  Bruno Haible  <bruno@clisp.org>
40128         New module 'wcsdup'.
40129         * modules/wcsdup: New file.
40130         * lib/wchar.in.h (wcsdup): New declaration.
40131         * lib/wcsdup.c: New file.
40132         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
40133         * m4/wcsdup.m4: New file.
40134         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
40135         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
40136         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
40137         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
40138         * doc/posix-functions/wcsdup.texi: Mention the new module.
40140 2011-02-06  Bruno Haible  <bruno@clisp.org>
40142         New module 'wcsxfrm'.
40143         * modules/wcsxfrm: New file.
40144         * lib/wchar.in.h (wcsxfrm): New declaration.
40145         * lib/wcsxfrm.c: New file.
40146         * lib/wcsxfrm-impl.h: New file.
40147         * m4/wcsxfrm.m4: New file.
40148         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
40149         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
40150         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
40151         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
40152         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
40154 2011-02-06  Bruno Haible  <bruno@clisp.org>
40156         New module 'wcscoll'.
40157         * modules/wcscoll: New file.
40158         * lib/wchar.in.h (wcscoll): New declaration.
40159         * lib/wcscoll.c: New file.
40160         * lib/wcscoll-impl.h: New file.
40161         * m4/wcscoll.m4: New file.
40162         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
40163         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
40164         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
40165         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
40166         * doc/posix-functions/wcscoll.texi: Mention the new module.
40168 2011-02-06  Bruno Haible  <bruno@clisp.org>
40170         New module 'wcsncasecmp'.
40171         * modules/wcsncasecmp: New file.
40172         * lib/wchar.in.h (wcsncasecmp): New declaration.
40173         * lib/wcsncasecmp.c: New file.
40174         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
40175         * m4/wcsncasecmp.m4: New file.
40176         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
40177         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
40178         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
40179         HAVE_WCSNCASECMP.
40180         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
40181         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
40183 2011-02-06  Bruno Haible  <bruno@clisp.org>
40185         New module 'wcscasecmp'.
40186         * modules/wcscasecmp: New file.
40187         * lib/wchar.in.h (wcscasecmp): New declaration.
40188         * lib/wcscasecmp.c: New file.
40189         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
40190         * m4/wcscasecmp.m4: New file.
40191         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
40192         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
40193         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
40194         HAVE_WCSCASECMP.
40195         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
40196         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
40198 2011-02-05  Bruno Haible  <bruno@clisp.org>
40200         New module 'wcsncmp'.
40201         * modules/wcsncmp: New file.
40202         * lib/wchar.in.h (wcsncmp): New declaration.
40203         * lib/wcsncmp.c: New file.
40204         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
40205         * m4/wcsncmp.m4: New file.
40206         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
40207         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
40208         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
40209         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
40210         * doc/posix-functions/wcsncmp.texi: Mention the new module.
40212 2011-02-05  Bruno Haible  <bruno@clisp.org>
40214         New module 'wcscmp'.
40215         * modules/wcscmp: New file.
40216         * lib/wchar.in.h (wcscmp): New declaration.
40217         * lib/wcscmp.c: New file.
40218         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
40219         * m4/wcscmp.m4: New file.
40220         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
40221         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
40222         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
40223         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
40224         * doc/posix-functions/wcscmp.texi: Mention the new module.
40226 2011-02-05  Bruno Haible  <bruno@clisp.org>
40228         New module 'wcsncat'.
40229         * modules/wcsncat: New file.
40230         * lib/wchar.in.h (wcsncat): New declaration.
40231         * lib/wcsncat.c: New file.
40232         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
40233         * m4/wcsncat.m4: New file.
40234         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
40235         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
40236         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
40237         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
40238         * doc/posix-functions/wcsncat.texi: Mention the new module.
40240 2011-02-05  Bruno Haible  <bruno@clisp.org>
40242         New module 'wcscat'.
40243         * modules/wcscat: New file.
40244         * lib/wchar.in.h (wcscat): New declaration.
40245         * lib/wcscat.c: New file.
40246         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
40247         * m4/wcscat.m4: New file.
40248         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
40249         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
40250         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
40251         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
40252         * doc/posix-functions/wcscat.texi: Mention the new module.
40254 2011-02-05  Bruno Haible  <bruno@clisp.org>
40256         New module 'wcpncpy'.
40257         * modules/wcpncpy: New file.
40258         * lib/wchar.in.h (wcpncpy): New declaration.
40259         * lib/wcpncpy.c: New file.
40260         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
40261         * m4/wcpncpy.m4: New file.
40262         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
40263         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
40264         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
40265         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
40266         * doc/posix-functions/wcpncpy.texi: Mention the new module.
40268 2011-02-05  Bruno Haible  <bruno@clisp.org>
40270         New module 'wcsncpy'.
40271         * modules/wcsncpy: New file.
40272         * lib/wchar.in.h (wcsncpy): New declaration.
40273         * lib/wcsncpy.c: New file.
40274         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
40275         * m4/wcsncpy.m4: New file.
40276         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
40277         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
40278         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
40279         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
40280         * doc/posix-functions/wcsncpy.texi: Mention the new module.
40282 2011-02-05  Bruno Haible  <bruno@clisp.org>
40284         New module 'wcpcpy'.
40285         * modules/wcpcpy: New file.
40286         * lib/wchar.in.h (wcpcpy): New declaration.
40287         * lib/wcpcpy.c: New file.
40288         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
40289         * m4/wcpcpy.m4: New file.
40290         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
40291         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
40292         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
40293         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
40294         * doc/posix-functions/wcpcpy.texi: Mention the new module.
40296 2011-02-05  Bruno Haible  <bruno@clisp.org>
40298         New module 'wcscpy'.
40299         * modules/wcscpy: New file.
40300         * lib/wchar.in.h (wcscpy): New declaration.
40301         * lib/wcscpy.c: New file.
40302         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
40303         * m4/wcscpy.m4: New file.
40304         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
40305         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
40306         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
40307         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
40308         * doc/posix-functions/wcscpy.texi: Mention the new module.
40310 2011-02-05  Bruno Haible  <bruno@clisp.org>
40312         New module 'wcsnlen'.
40313         * modules/wcsnlen: New file.
40314         * lib/wchar.in.h (wcsnlen): New declaration.
40315         * lib/wcsnlen.c: New file.
40316         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
40317         * m4/wcsnlen.m4: New file.
40318         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
40319         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
40320         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
40321         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
40322         * doc/posix-functions/wcsnlen.texi: Mention the new module.
40324 2011-02-05  Bruno Haible  <bruno@clisp.org>
40326         New module 'wcslen'.
40327         * modules/wcslen: New file.
40328         * lib/wchar.in.h (wcslen): New declaration.
40329         * lib/wcslen.c: New file.
40330         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
40331         * m4/wcslen.m4: New file.
40332         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
40333         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
40334         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
40335         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
40336         * doc/posix-functions/wcslen.texi: Mention the new module.
40338 2011-02-05  Bruno Haible  <bruno@clisp.org>
40340         New module 'wmemset'.
40341         * modules/wmemset: New file.
40342         * lib/wchar.in.h (wmemset): New declaration.
40343         * lib/wmemset.c: New file.
40344         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
40345         * m4/wmemset.m4: New file.
40346         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
40347         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
40348         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
40349         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
40350         * doc/posix-functions/wmemset.texi: Mention the new module.
40352 2011-02-05  Bruno Haible  <bruno@clisp.org>
40354         New module 'wmemmove'.
40355         * modules/wmemmove: New file.
40356         * lib/wchar.in.h (wmemmove): New declaration.
40357         * lib/wmemmove.c: New file.
40358         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
40359         * m4/wmemmove.m4: New file.
40360         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
40361         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
40362         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
40363         HAVE_WMEMMOVE.
40364         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
40365         * doc/posix-functions/wmemmove.texi: Mention the new module.
40367 2011-02-05  Bruno Haible  <bruno@clisp.org>
40369         New module 'wmemcpy'.
40370         * modules/wmemcpy: New file.
40371         * lib/wchar.in.h (wmemcpy): New declaration.
40372         * lib/wmemcpy.c: New file.
40373         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
40374         * m4/wmemcpy.m4: New file.
40375         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
40376         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
40377         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
40378         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
40379         * doc/posix-functions/wmemcpy.texi: Mention the new module.
40381 2011-02-05  Bruno Haible  <bruno@clisp.org>
40383         New module 'wmemcmp'.
40384         * modules/wmemcmp: New file.
40385         * lib/wchar.in.h (wmemcmp): New declaration.
40386         * lib/wmemcmp.c: New file.
40387         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
40388         * m4/wmemcmp.m4: New file.
40389         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
40390         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
40391         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
40392         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
40393         * doc/posix-functions/wmemcmp.texi: Mention the new module.
40395 2011-02-07  Jim Meyering  <meyering@redhat.com>
40397         di-set, ino-map: new modules, from coreutils
40398         * lib/di-set.c: New file.
40399         * lib/di-set.h: Likewise.
40400         * lib/ino-map.c: Likewise.
40401         * lib/ino-map.h: Likewise.
40402         * modules/di-set: Likewise.
40403         * modules/di-set-tests: Likewise.
40404         * modules/ino-map: Likewise.
40405         * modules/ino-map-tests: Likewise.
40406         * tests/test-di-set.c: Likewise.
40407         * tests/test-ino-map.c: Likewise.
40409 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
40411         getloadavg: merge minor changes from Emacs
40413         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
40414         (getloadavg): Use memset, not bzero.
40416         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
40417         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
40418         clash (bug#86).
40420 2010-11-14  Bruno Haible  <bruno@clisp.org>
40422         Allow multiple gnulib generated replacements to coexist.
40423         * lib/getopt.in.h (struct option): Avoid identical redefinition.
40424         * lib/inttypes.in.h (imaxdiv_t): Likewise.
40425         * lib/langinfo.in.h (nl_item): Likewise.
40426         * lib/math.in.h (_NaN, NAN): Likewise.
40427         * lib/netdb.in.h (struct addrinfo): Likewise.
40428         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
40429         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
40430         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
40431         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
40432         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
40433         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
40434         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
40435         pthread_mutexattr_init, pthread_mutexattr_settype,
40436         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
40437         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
40438         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
40439         pthread_spin_trylock, pthread_spin_unlock): Likewise.
40440         * lib/sched.in.h (struct sched_param): Likewise.
40441         * lib/se-selinux.in.h (security_class_t, security_context_t,
40442         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
40443         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
40444         lsetfilecon, fsetfilecon, security_check_context,
40445         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
40446         Likewise.
40447         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
40448         Likewise.
40449         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
40450         _gl_function_taking_int_returning_void_t, union sigval,
40451         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
40452         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
40453         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
40454         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
40455         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
40456         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
40457         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
40458         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
40459         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
40460         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
40461         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
40462         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
40463         socklen_t, rpl_fd_isset): Likewise.
40464         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
40465         * lib/sys_time.in.h (struct timeval): Likewise.
40466         * lib/sys_times.in.h (struct tms): Likewise.
40467         * lib/sys_utsname.in.h (struct utsname):
40468         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
40469         * lib/unistd.in.h (getpagesize): Likewise.
40470         * lib/wchar.in.h (mbstate_t): Likewise.
40471         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
40472         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
40473         towlower, towupper): Likewise.
40474         Reported by Sam Steingold <sds@gnu.org>.
40476 2011-02-05  Eric Blake  <eblake@redhat.com>
40478         unsetenv: work around Haiku issues
40479         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
40480         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
40482 2010-12-30  Bruce Korb  <bkorb@gnu.org>
40484         libposix: avoid calling error() within libposix
40485         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
40486         is defined.
40488 2011-02-05  Eric Blake  <eblake@redhat.com>
40490         strerror_r-posix: port to cygwin
40491         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
40492         implementation.
40493         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
40494         * tests/test-strerror_r.c (main): Fix test.
40495         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
40496         issue.
40498 2011-02-05  Bruno Haible  <bruno@clisp.org>
40500         New module 'wmemchr'.
40501         * modules/wmemchr: New file.
40502         * lib/wchar.in.h (wmemchr): New declaration.
40503         * lib/wmemchr.c: New file.
40504         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
40505         * m4/wmemchr.m4: New file.
40506         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
40507         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
40508         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
40509         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
40510         * doc/posix-functions/wmemchr.texi: Mention the new module.
40512 2011-02-04  Eric Blake  <eblake@redhat.com>
40514         fdopendir: detect FreeBSD bug
40515         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
40516         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
40518 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
40520         stdbool: do not define HAVE_STDBOOL_H
40521         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
40522         AC_HEADER_STDBOOL.  All uses changed.  Do not define
40523         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
40524         imported from the latest Autoconf git.  It was motivated by Emacs,
40525         which uses gnulib but does not need HAVE_STDBOOL_H.
40527 2011-02-04  Bruno Haible  <bruno@clisp.org>
40529         wcsnrtombs: Prepare for new module wwcsnrtombs.
40530         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
40531         * lib/wcsnrtombs.c: Include it.
40532         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
40534         wcsrtombs: Prepare for new module wwcsrtombs.
40535         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
40536         * lib/wcsrtombs.c: Include it.
40537         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
40539         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
40540         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
40541         * lib/mbsnrtowcs.c: Include it.
40542         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
40544         mbsrtowcs: Prepare for new module mbsrtowwcs.
40545         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
40546         * lib/mbsrtowcs.c: Include it.
40547         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
40549 2011-02-04  Bruno Haible  <bruno@clisp.org>
40551         vasnprintf: Reduce use of malloc for small format strings.
40552         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
40553         (arguments): Add room for the first 7 arguments.
40554         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
40555         (char_directives, u8_directives, u16_directives, u32_directives): Add
40556         room for the first 7 directives.
40557         * lib/printf-parse.c: Include <string.h>.
40558         (PRINTF_PARSE): Change memory handling code so that it uses the first
40559         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
40560         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
40561         Reported by Pádraig Brady <P@draigbrady.com>.
40563 2011-01-31  Eric Blake  <eblake@redhat.com>
40565         dup2: work around Haiku bug
40566         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
40567         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
40568         * doc/posix-functions/dup2.texi (dup2): Document the bug.
40569         * tests/test-dup2.c (main): Enhance test.
40571 2011-01-31  Simon Josefsson  <simon@josefsson.org>
40573         doc: off_t is not available in eglibc 2.11.2 stdio.h.
40574         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
40575         declared by eglibc 2.11.2.
40576         * lib/stdio.in.h: Likewise.
40578 2011-01-31  Eric Blake  <eblake@redhat.com>
40580         ignore-value: add missing test dependency
40581         * tests/test-ignore-value.c: Revert previous change; stdio.h
40582         provides off_t.
40583         * modules/ignore-value-tests (Depends-on): Add missing dependency.
40585 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
40587         mktime: clarify long_int width checking
40588         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
40589         the top level, to make it clearer that the assumption about
40590         long_int width is being checked.  See
40591         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
40593 2011-01-30  Simon Josefsson  <simon@josefsson.org>
40595         ignore-value: Fix self-test.
40596         * tests/test-ignore-value.c: Include sys/types.h for off_t.
40598 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
40600         TYPE_MAXIMUM: avoid theoretically undefined behavior
40601         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
40602         negative number, which the C Standard says has undefined behavior.
40603         In practice this is not a problem, but might as well do it by the book.
40604         Reported by Rich Felker and Eric Blake; see
40605         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
40606         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
40607         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
40608         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40609         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
40610         * m4/stdint.m4 (gl_STDINT_H): Likewise.
40611         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
40613         mktime: #undef mktime before #defining it
40614         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
40616         mktime: systematically normalize tm_isdst comparisons
40617         * lib/mktime.c (isdst_differ): New function.
40618         (__mktime_internal): Use it systematically for all isdst comparisons.
40619         This completes the fix for libc BZ #6723, and removes the need for
40620         normalizing tm_isdst.  See
40621         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
40622         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
40624         mktime: fix some integer overflow issues and sidestep the rest
40626         This was prompted by a bug report by Benjamin Lindner for MinGW
40627         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
40628         His bug is due to signed integer overflow (0 - INT_MIN), and I
40629         I scanned through mktime.c looking for other integer overflow
40630         problems, fixing all the bugs I found.
40632         Although the C Standard says the resulting code is still not safe
40633         in the presence of integer overflow, in practice it should be good
40634         enough for all real-world two's-complement implementations, except
40635         for debugging environments that deliberately trap on integer
40636         overflow (e.g., gcc -ftrapv).
40638         * lib/mktime.c (WRAPV): New macro.
40639         (SHR): Also check that long_int and time_t shift right in the
40640         usual way, before using the fast-but-unportable method.
40641         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
40642         used.  The code already assumed two's complement, so there's
40643         no need to test for alternatives.  All uses removed.
40644         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
40645         the C standard.  Problem reported by Rich Felker in
40646         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
40647         (twos_complement_arithmetic): Also check long_int and time_t.
40648         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
40649         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
40650         (__mktime_internal): Avoid integer overflow with unary subtraction
40651         in two instances where -1 - X is an adequate replacement for -X,
40652         since the calculations are approximate.
40654 2011-01-29  Eric Blake  <eblake@redhat.com>
40656         mktime: avoid infinite loop
40657         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
40658         type; behavior is still undefined but portable to all known targets.
40659         Reported by Rich Felker.
40661 2011-01-29  Simon Josefsson  <simon@josefsson.org>
40663         rename, unlink, same-inode: Relicense.
40664         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
40665         * modules/unlink (License): Likewise.
40666         * modules/same-inode (License): Likewise.
40668 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
40670         mktime: avoid problems on NetBSD 5 / i386
40671         * lib/mktime.c (long_int): New type.  This works around a problem
40672         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
40673         but time_t is 64 bits, and where I expect the existing code is
40674         wrong in some cases.
40675         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
40676         (ydhms_diff): Bring back the compile-time check for wide-enough
40677         year and yday.
40679         mktime: fix misspelling in comment
40680         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
40681         This merges all recent glibc changes of importance.
40683 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40685         move-if-change: cope with concurrent mv of identical file.
40686         * build-aux/move-if-change (CMPPROG): Accept environment
40687         variable as an override for `cmp'.
40688         (usage): Document CMPPROG.
40689         Adjust comparison to drop stdout.  Cope with failure of mv if
40690         the target file exists and is identical to the source, for
40691         parallel builds.
40692         Report from H.J. Lu against binutils in PR binutils/12283.
40694 2011-01-28  Bruce Korb  <bkorb@gnu.org>
40696         * users.txt: Mention sharutils.
40698 2011-01-28  Simon Josefsson  <simon@josefsson.org>
40700         * users.txt: Mention OATH Toolkit.
40702 2011-01-27  Bruno Haible  <bruno@clisp.org>
40704         Prepare for supporting FreeBSD 10.
40705         * build-aux/config.libpath: Remove handling of freebsd1*.
40707 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
40709         Prepare for supporting FreeBSD 10.
40710         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
40711         match FreeBSD 10.0.
40713 2011-01-27  Bruno Haible  <bruno@clisp.org>
40715         vma-iter, get-rusage-as: Add OpenBSD support.
40716         * modules/vma-iter (configure.ac): Test for mquery.
40717         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
40718         * lib/vma-iter.c: Include <sys/mman.h>.
40719         (vma_iterate): Add an implementation based on mquery().
40720         * lib/resource-ext.h (get_rusage_as): Update comments.
40721         * lib/get-rusage-as.c: Likewise.
40722         * lib/get-rusage-data.c: Likewise.
40724 2011-01-26  Karl Berry  <karl@gnu.org>
40726         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
40727         variables to make it easier to override the makeinfo program used.
40729 2011-01-26  Eric Blake  <eblake@redhat.com>
40731         fcntl: work around Haiku F_DUPFD bugs
40732         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
40733         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
40734         cloexec bit on duplication.
40735         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
40737 2011-01-26  Bruno Haible  <bruno@clisp.org>
40739         Enable memory leak tests on AIX.
40740         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
40741         * tests/test-fprintf-posix3.c (main): Likewise.
40743 2011-01-26  Bruno Haible  <bruno@clisp.org>
40745         Tests for module 'get-rusage-data'.
40746         * modules/get-rusage-data-tests: New file.
40747         * tests/test-get-rusage-data.c: New file.
40749         New module 'get-rusage-data'.
40750         * lib/resource-ext.h (get_rusage_data): New declaration.
40751         * lib/get-rusage-data.c: New file.
40752         * modules/get-rusage-data: New file.
40754 2011-01-25  Bruno Haible  <bruno@clisp.org>
40756         get-rusage-as: Allow for easier testing.
40757         * lib/resource-ext.h (get_rusage_as): Add comment.
40758         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
40759         (main): New function for interactive testing.
40761 2011-01-25  Bruno Haible  <bruno@clisp.org>
40763         vma-iter: Treat Haiku like BeOS.
40764         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
40765         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
40767 2011-01-25  Eric Blake  <eblake@redhat.com>
40769         c-stack: fix regression on cygwin when libsigsegv is present
40770         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
40772 2011-01-24  Bruno Haible  <bruno@clisp.org>
40774         vma-iter: Avoid empty intervals.
40775         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
40776         on an empty interval.
40778 2011-01-24  Jim Meyering  <meyering@redhat.com>
40780         u64: remove unnecessary #include
40781         * lib/u64.h: Don't include <stddef.h>.  It was not used.
40783 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
40785         Allow the user to avoid the HAVE_RAW_DECL_* macros.
40786         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
40788 2011-01-23  Bruno Haible  <bruno@clisp.org>
40790         New module 'vma-iter'.
40791         * lib/vma-iter.h: New file.
40792         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
40793         * modules/vma-iter: New file.
40794         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
40795         for get_rusage_as_via_iterator.
40796         (vma_iterate_callback): New function.
40797         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
40798         * modules/get-rusage-as (Depends-on): Add vma-iter.
40800 2011-01-23  Bruno Haible  <bruno@clisp.org>
40802         uninorm: Tweak includes.
40803         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
40804         Reported by Jim Meyering.
40806 2011-01-23  Bruno Haible  <bruno@clisp.org>
40808         get-rusage-as: Improve on NetBSD.
40809         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
40810         /proc, like on FreeBSD.
40812 2011-01-23  Jim Meyering  <meyering@redhat.com>
40814         xreadlink.h: remove unnecessary #include
40815         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
40817         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
40818         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
40820 2011-01-23  Bruno Haible  <bruno@clisp.org>
40822         get-rusage-as: Fix bug.
40823         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
40824         original limit when aborting the first loop.
40826 2011-01-23  Bruno Haible  <bruno@clisp.org>
40828         wctype: Ensure valid C syntax.
40829         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
40830         unconditionally, instead of gl_NEXT_HEADERS conditionally.
40832 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
40834         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
40835         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
40836         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
40837         as they are needed only for configure's test case.
40838         This removes two unnecessary symbols from config.h.
40840         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
40841         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
40842         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
40843         AC_CHECK_HEADERS_ONCE on a header that we also invoke
40844         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
40845         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
40846         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
40847         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
40848         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
40849         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
40850         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
40851         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40852         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
40853         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
40854         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
40855         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
40856         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
40857         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
40859 2011-01-21  Eric Blake  <eblake@redhat.com>
40861         maintainer-makefile: work with older git for submodule check
40862         * top/maint.mk (public-submodule-commit): Rewrite to avoid
40863         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
40864         Reported by Matthias Bolte.
40866         bootstrap: minor portability fixes
40867         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
40868         (usage): Omit leading capital and trailing . on help phrases, per
40869         GNU Coding Standards.
40870         (check_versions, top level): Prefix messages with script name.
40872 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
40874         bootstrap: support --no-git option
40875         * build-aux/bootstrap: Add --no-git option, to be used when
40876         --gnulib-srcdir points to the exact desired checkout.
40878 2011-01-21  Eric Blake  <eblake@redhat.com>
40880         strerror_r-posix: work with glibc 2.13
40881         * lib/strerror_r.c (strerror_r): Fix return type.
40883 2011-01-21  Pádraig Brady  <P@draigBrady.com>
40884             Bruno Haible  <bruno@clisp.org>
40886         uN_strstr: New unit tests.
40887         * modules/unistr/u8-strstr-tests: New file.
40888         * modules/unistr/u16-strstr-tests: New file.
40889         * modules/unistr/u32-strstr-tests: New file.
40890         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
40891         * tests/unistr/test-u8-strstr.c: New file.
40892         * tests/unistr/test-u16-strstr.c: New file.
40893         * tests/unistr/test-u32-strstr.c: New file.
40895 2011-01-21  Pádraig Brady  <P@draigBrady.com>
40896             Bruno Haible  <bruno@clisp.org>
40898         Make uN_strstr functions O(n) worst-case.
40899         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
40900         16-bit and 32-bit unit cases, use the unibyte algorithm from
40901         lib/mbsstr.c.
40902         * lib/unistr/u8-strstr.c: Include <string.h>.
40903         (UNIT_IS_UINT8_T): New macro.
40904         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
40905         (U_STRLEN, U_STRNLEN): New macros.
40906         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
40907         (U_STRLEN, U_STRNLEN): New macros.
40908         * modules/unistr/u8-strstr (Depends-on): Add strstr.
40909         (configure.ac): Update required libunistring version.
40910         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
40911         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
40912         malloca.
40913         (configure.ac): Update required libunistring version.
40914         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
40915         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
40916         malloca.
40917         (configure.ac): Update required libunistring version.
40919 2011-01-21  Pádraig Brady  <P@draigBrady.com>
40920             Bruno Haible  <bruno@clisp.org>
40922         Prepare for faster uN_strstr functions.
40923         * lib/str-kmp.h: Support definable UNITs.
40924         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
40925         needle_len argument.
40926         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
40927         * lib/mbscasestr.c (mbscasestr): Likewise.
40929 2011-01-21  Pádraig Brady  <P@draigBrady.com>
40931         malloca-tests: make faster by unsetting MALLOC_PERTURB_
40932         * tests/test-malloca.c (main): Unset the environment variable
40933         to greatly speed up the test.
40934         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
40935         * modules/malloca-tests: Depend on unsetenv.
40937 2011-01-21  Pádraig Brady  <P@draigBrady.com>
40939         ignore-value: remove stdint dependency
40940         * lib/ignore-value.h: Remove <stdint.h>
40941         * modules/ignore-value: Remove stdint dependency.
40943 2011-01-21  Jim Meyering  <meyering@redhat.com>
40945         maint.mk: adjust variable name to be consistent with other gl_ vars
40946         * top/maint.mk (gl_public_submodule_commit): Rename the variable
40947         to be lower case.
40949 2011-01-20  Jim Meyering  <meyering@redhat.com>
40951         maint.mk: make "check" depend on public-submodule-commit by default
40952         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
40954 2011-01-20  Bruno Haible  <bruno@clisp.org>
40956         mbfile, mbiter: Complete change from 2008-12-21.
40957         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
40958         * m4/mbiter.m4 (gl_MBITER): Likewise.
40960 2011-01-20  Jim Meyering  <meyering@redhat.com>
40962         init.sh: insert space between each function name and "()"
40963         * tests/init.sh: Make it a little easier to see that a function's
40964         name is "warn_", and not "warn" when looking at the first part of
40965         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
40967 2011-01-20  Jim Meyering  <meyering@redhat.com>
40969         mountlist: clean up code formatting
40970         * lib/mountlist.c (read_file_system_list): Split a long line,
40971         correct bracing style, use NULL in place of "(struct statfs *)0",
40972         don't parenthesize return value, add spaces around "=" and after
40973         ";-in-for-stmt".
40975 2011-01-14  Markus Duft  <mduft@gentoo.org>
40977         mountlist: add support for Interix
40978         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
40979         Apply statvfs to all entries of /dev/fs.
40980         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
40981         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
40983 2011-01-20  Jim Meyering  <meyering@redhat.com>
40985         maint.mk: improve the public-submodule-commit rule
40986         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
40987         to suppress printing of its commands... unless V=1.
40988         Add git submodule's --quiet option to suppress printing of e.g.,
40989         "Entering gnulib" output.
40990         "cd" into $(srcdir) before running git submodule.
40992 2011-01-20  Bruno Haible  <bruno@clisp.org>
40994         include_next: Fix bug introduced on 2011-01-18.
40995         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
40996         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
40997         ac_cv_header_... variable if the second argument is not 'check'.
40998         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
40999         gl_NEXT_HEADERS_INTERNAL.
41001 2011-01-20  Bruno Haible  <bruno@clisp.org>
41003         Allow the user to avoid the GNULIB_TEST_* macros.
41004         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
41005         Suggested by Paul Eggert.
41007 2011-01-14  Jim Meyering  <meyering@redhat.com>
41009         bootstrap: avoid failure when there is no .gitmodules file
41010         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
41011         has been assigned to, even when its value is the empty string.
41012         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
41013         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
41014         Reported by John W. Eaton <jwe@gnu.org>.
41016 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
41018         assume <ctype.h>, ..., <time.h> exist
41019         For years gnulib has been assuming the existence of the headers
41020         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
41021         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
41022         them, since they don't appear to be needed.
41023         * README (Portability guidelines): Document this.
41024         * lib/flock.c: Assume <fcntl.h> exists.
41025         * lib/regex_internal.h: Assume <locale.h> exists.
41026         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
41027         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
41028         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
41029         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
41030         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
41031         * m4/regex.m4 (gl_REGEX): Likewise.
41032         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
41033         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
41034         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
41035         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
41036         * tests/test-argp.c: Likewise.
41037         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
41039         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
41040         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
41041         AA_APPLE_UNIVERSAL_BUILD.  See
41042         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
41043         * NEWS: Document this.
41045 2011-01-19  Eric Blake  <eblake@redhat.com>
41047         c-stack: assume stack overflow if SA_SIGINFO unsupported
41048         * lib/c-stack.c (SIGACTION_WORKS): Rename...
41049         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
41050         sigaction will work.
41051         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
41052         behavior match Linux.
41053         * tests/test-c-stack.c (main): Prefer NULL for pointers.
41055         stdbool-tests: accommodate Haiku
41056         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
41058         binary-io: fix O_TEXT on Haiku
41059         * modules/binary-io (Depends-on): Add fcntl-h.
41060         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
41061         than blindly undefining O_TEXT.
41062         Reported by Scott McCreary.
41064 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
41066         include_next: do not check for standard headers like stddef.h
41068         I found this problem when modifying Emacs to use gnulib.
41069         I noticed that it added HAVE_STDDEF_H to config.h, even though
41070         gnulib always assumes <stddef.h> exists as per README and this
41071         symbol is unnecessary.
41072         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
41073         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
41074         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
41075         faster for headers like stddef.h that are known to exist.
41076         (gl_CHECK_NEXT_HEADERS): Use it.
41077         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
41078         rather than gl_CHECK_NEXT_HEADERS.
41079         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
41080         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
41082 2011-01-18  Eric Blake  <eblake@redhat.com>
41084         ansi-c++-opt: skip C++ dependency style if C++ is unused
41085         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
41086         tests when we know C++ compilation is not desired.
41087         Reported by Scott McCreary.
41089 2011-01-18  Bruno Haible  <bruno@clisp.org>
41091         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
41092         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
41093         (main): Perform test also when getrlimit and setrlimit don't exist or
41094         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
41095         limiting the address space size using setrlimit, compare the address
41096         space size before and after the test.
41097         * tests/test-dprintf-posix2.c: Likewise.
41098         * tests/test-fprintf-posix3.sh: Update skip messages.
41099         * tests/test-dprintf-posix2.sh: Likewise.
41100         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
41101         * modules/dprintf-posix-tests (Depends-on): Likewise.
41102         Reported by Bruce Korb <bkorb@gnu.org> and
41103         Gary V. Vaughan <gary@gnu.org>.
41105 2011-01-18  Bruno Haible  <bruno@clisp.org>
41107         get-rusage-as: Improvement for Cygwin.
41108         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
41109         areas that are merely reserved.
41111 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
41113         strftime: remove dependencies on multibyte modules
41115         strftime depended on mbrlen, mbsinit, and wchar, but these modules
41116         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
41117         only if __osf__ is defined, and I suspect OSF doesn't need these
41118         other modules.  If my guess is wrong, we'll need to come up with a
41119         variant of strftime that doesn't need the multibyte modules.
41121         I discovered this problem when attempting modify Emacs to use the
41122         strftime module.  With the previous gnulib, this caused Emacs to
41123         need 31 new files, ranging from lib/config.charset to
41124         m4/wint_t.m4.  This was overkill and I expect would be offputting
41125         to the Emacs maintainers.  After this change, only 6 new files are
41126         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
41127         stdbool.m4, and tm_gmtoff.m4.
41129         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
41130         Suggested by Bruno Haible in
41131         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
41132         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
41133         and do not check for wchar.h.
41134         * modules/strftime (Files): Remove m4/mbstate_t.m4.
41135         (Depends-on): Remove mbrlen, mbsinit, wchar.
41137 2011-01-18  Bruno Haible  <bruno@clisp.org>
41139         Tests for module 'get-rusage-as'.
41140         * modules/get-rusage-as-tests: New file.
41141         * tests/test-get-rusage-as.c: New file.
41143         New module 'get-rusage-as'.
41144         * modules/get-rusage-as: New file.
41145         * lib/resource-ext.h: New file.
41146         * lib/get-rusage-as.c: New file.
41148 2011-01-17  Eric Blake  <eblake@redhat.com>
41150         sigaction: relax license from LGPLv3+ to LGPLv2+
41151         * modules/sigaction (License): Relax to LGPLv2+.
41153 2011-01-14  Bruno Haible  <bruno@clisp.org>
41155         filemode: Make function declarations usable in C++ mode.
41156         * lib/filemode.h: Enclose function declarations in extern "C" block.
41157         Reported by John W. Eaton <jwe@gnu.org>.
41159 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
41161         save-cwd: no longer include "xgetcwd.h"
41162         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
41163         This avoids a compilation failure in projects that use save-cwd
41164         without also using the xgetcwd module.
41166 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
41168         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
41169         This is so that a program like Emacs, which needs only dtoastr,
41170         does not have to bother with distributing and compiling ftoastr
41171         and ldtoastr.
41172         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
41173         * modules/dtoastr, modules/ldtoastr: New files.
41174         * modules/ftoastr: Now works just for 'float'.
41175         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
41176         (Makefile.am): Remove ftoastr.h (not needed and no effect),
41177         dtoastr.c, ldtoastr.c.
41179 2011-01-11  Jim Meyering  <meyering@redhat.com>
41181         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
41182         There is no need to work around the lack of the fchdir function,
41183         since gnulib can now provide a replacement when required.
41184         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
41185         * modules/save-cwd (Depends-on): Add fchdir.
41187 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
41189         openat, save-cwd: avoid xmalloc
41191         This removes a direct (but undocumented) dependency of openat on
41192         xalloc, along with an indirect dependency via save-cwd.  It also
41193         removes a dependency of save-cwd on xgetcwd, and thereby
41194         indirectly on xalloc.  This change causes the openat substitute
41195         to fall back on save_cwd when memory is tight, and for save_cwd to
41196         fail instead of dying when memory is tight, but that's good enough.
41197         Problem and initial idea for fix reported by Bastien Roucaries in
41198         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
41200         * lib/openat-proc.c: Include stdlib.h (for malloc), not
41201         xalloc.h (for xmalloc).
41202         (openat_proc_name): Use malloc, not xmalloc.
41203         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
41204         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
41206         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
41207         This avoids heap allocation for file names whose lengths are in
41208         the range 512..1023, with the upper bound increasing to at most
41209         4031 depending on the platform's PATH_MAX.  (We do not want
41210         pathmax.h here as it might supply a non-constant PATH_MAX.)
41211         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
41212         Perhaps they should be moved to malloca.h?
41213         (OPENAT_BUFFER_SIZE): Use them.
41215 2011-01-10  Bruno Haible  <bruno@clisp.org>
41217         doc: Update users.txt.
41218         * users.txt: Add recutils.
41220 2011-01-09  Karl Berry  <karl@gnu.org>
41222         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
41224         * doc/configmake.texi: New file.
41225         * doc/gnulib.texi: Include it.
41226         * modules/configmake: Move documentation from here.
41228 2011-01-09  Bruno Haible  <bruno@clisp.org>
41230         Update to Unicode 6.0.0.
41231         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
41232         (get_lbp): Update for Unicode 6.0.0.
41233         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
41234         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
41235         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
41236         U+11001, U+11038..U+11046. Remove U+06DE.
41237         (uc_width): Fix bounds of planes.
41238         * tests/uniwidth/test-uc_width2.sh: Same updates as in
41239         lib/uniwidth/width.c.
41240         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
41241         trailing whitespace removed.
41242         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
41243         without comments, but with the original copyright notice.
41244         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
41245         * lib/unicase/ignorable.h: Likewise.
41246         * lib/unicase/tocasefold.h: Likewise.
41247         * lib/unicase/tolower.h: Likewise.
41248         * lib/unicase/totitle.h: Likewise.
41249         * lib/unicase/toupper.h: Likewise.
41250         * lib/unictype/bidi_of.h: Likewise.
41251         * lib/unictype/blocks.h: Likewise.
41252         * lib/unictype/categ_C.h: Likewise.
41253         * lib/unictype/categ_Cn.h: Likewise.
41254         * lib/unictype/categ_L.h: Likewise.
41255         * lib/unictype/categ_Ll.h: Likewise.
41256         * lib/unictype/categ_Lm.h: Likewise.
41257         * lib/unictype/categ_Lo.h: Likewise.
41258         * lib/unictype/categ_Lu.h: Likewise.
41259         * lib/unictype/categ_M.h: Likewise.
41260         * lib/unictype/categ_Mc.h: Likewise.
41261         * lib/unictype/categ_Me.h: Likewise.
41262         * lib/unictype/categ_Mn.h: Likewise.
41263         * lib/unictype/categ_N.h: Likewise.
41264         * lib/unictype/categ_Nd.h: Likewise.
41265         * lib/unictype/categ_No.h: Likewise.
41266         * lib/unictype/categ_P.h: Likewise.
41267         * lib/unictype/categ_Po.h: Likewise.
41268         * lib/unictype/categ_S.h: Likewise.
41269         * lib/unictype/categ_Sc.h: Likewise.
41270         * lib/unictype/categ_Sk.h: Likewise.
41271         * lib/unictype/categ_Sm.h: Likewise.
41272         * lib/unictype/categ_So.h: Likewise.
41273         * lib/unictype/categ_of.h: Likewise.
41274         * lib/unictype/combining.h: Likewise.
41275         * lib/unictype/ctype_alnum.h: Likewise.
41276         * lib/unictype/ctype_alpha.h: Likewise.
41277         * lib/unictype/ctype_graph.h: Likewise.
41278         * lib/unictype/ctype_lower.h: Likewise.
41279         * lib/unictype/ctype_print.h: Likewise.
41280         * lib/unictype/ctype_punct.h: Likewise.
41281         * lib/unictype/ctype_upper.h: Likewise.
41282         * lib/unictype/decdigit.h: Likewise.
41283         * lib/unictype/digit.h: Likewise.
41284         * lib/unictype/numeric.h: Likewise.
41285         * lib/unictype/pr_alphabetic.h: Likewise.
41286         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
41287         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
41288         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
41289         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
41290         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
41291         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
41292         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
41293         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
41294         * lib/unictype/pr_case_ignorable.h: Likewise.
41295         * lib/unictype/pr_cased.h: Likewise.
41296         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
41297         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
41298         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
41299         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
41300         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
41301         * lib/unictype/pr_combining.h: Likewise.
41302         * lib/unictype/pr_composite.h: Likewise.
41303         * lib/unictype/pr_currency_symbol.h: Likewise.
41304         * lib/unictype/pr_decimal_digit.h: Likewise.
41305         * lib/unictype/pr_deprecated.h: Likewise.
41306         * lib/unictype/pr_format_control.h: Likewise.
41307         * lib/unictype/pr_grapheme_base.h: Likewise.
41308         * lib/unictype/pr_grapheme_extend.h: Likewise.
41309         * lib/unictype/pr_grapheme_link.h: Likewise.
41310         * lib/unictype/pr_id_continue.h: Likewise.
41311         * lib/unictype/pr_id_start.h: Likewise.
41312         * lib/unictype/pr_ideographic.h: Likewise.
41313         * lib/unictype/pr_lowercase.h: Likewise.
41314         * lib/unictype/pr_math.h: Likewise.
41315         * lib/unictype/pr_numeric.h: Likewise.
41316         * lib/unictype/pr_other_alphabetic.h: Likewise.
41317         * lib/unictype/pr_other_id_continue.h: Likewise.
41318         * lib/unictype/pr_other_math.h: Likewise.
41319         * lib/unictype/pr_punctuation.h: Likewise.
41320         * lib/unictype/pr_sentence_terminal.h: Likewise.
41321         * lib/unictype/pr_terminal_punctuation.h: Likewise.
41322         * lib/unictype/pr_unassigned_code_value.h: Likewise.
41323         * lib/unictype/pr_unified_ideograph.h: Likewise.
41324         * lib/unictype/pr_uppercase.h: Likewise.
41325         * lib/unictype/pr_xid_continue.h: Likewise.
41326         * lib/unictype/pr_xid_start.h: Likewise.
41327         * lib/unictype/scripts.h: Likewise.
41328         * lib/unictype/scripts_byname.gperf: Likewise.
41329         * lib/unictype/sy_java_ident.h: Likewise.
41330         * lib/unigbrk/gbrkprop.h: Likewise.
41331         * lib/unilbrk/lbrkprop1.h: Likewise.
41332         * lib/unilbrk/lbrkprop2.h: Likewise.
41333         * lib/uninorm/decomposition-table2.h: Likewise.
41334         * lib/uniwbrk/wbrkprop.h: Likewise.
41335         * tests/unicase/test-cased.c: Likewise.
41336         * tests/unicase/test-ignorable.c: Likewise.
41337         * tests/unicase/test-uc_tolower.c: Likewise.
41338         * tests/unicase/test-uc_totitle.c: Likewise.
41339         * tests/unicase/test-uc_toupper.c: Likewise.
41340         * tests/unictype/test-categ_C.c: Likewise.
41341         * tests/unictype/test-categ_Cn.c: Likewise.
41342         * tests/unictype/test-categ_L.c: Likewise.
41343         * tests/unictype/test-categ_Ll.c: Likewise.
41344         * tests/unictype/test-categ_Lm.c: Likewise.
41345         * tests/unictype/test-categ_Lo.c: Likewise.
41346         * tests/unictype/test-categ_Lu.c: Likewise.
41347         * tests/unictype/test-categ_M.c: Likewise.
41348         * tests/unictype/test-categ_Mc.c: Likewise.
41349         * tests/unictype/test-categ_Me.c: Likewise.
41350         * tests/unictype/test-categ_Mn.c: Likewise.
41351         * tests/unictype/test-categ_N.c: Likewise.
41352         * tests/unictype/test-categ_Nd.c: Likewise.
41353         * tests/unictype/test-categ_No.c: Likewise.
41354         * tests/unictype/test-categ_P.c: Likewise.
41355         * tests/unictype/test-categ_Po.c: Likewise.
41356         * tests/unictype/test-categ_S.c: Likewise.
41357         * tests/unictype/test-categ_Sc.c: Likewise.
41358         * tests/unictype/test-categ_Sk.c: Likewise.
41359         * tests/unictype/test-categ_Sm.c: Likewise.
41360         * tests/unictype/test-categ_So.c: Likewise.
41361         * tests/unictype/test-ctype_alnum.c: Likewise.
41362         * tests/unictype/test-ctype_alpha.c: Likewise.
41363         * tests/unictype/test-ctype_graph.c: Likewise.
41364         * tests/unictype/test-ctype_lower.c: Likewise.
41365         * tests/unictype/test-ctype_print.c: Likewise.
41366         * tests/unictype/test-ctype_punct.c: Likewise.
41367         * tests/unictype/test-ctype_upper.c: Likewise.
41368         * tests/unictype/test-decdigit.h: Likewise.
41369         * tests/unictype/test-digit.h: Likewise.
41370         * tests/unictype/test-numeric.h: Likewise.
41371         * tests/unictype/test-pr_alphabetic.c: Likewise.
41372         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
41373         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
41374         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
41375         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
41376         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
41377         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
41378         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
41379         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
41380         * tests/unictype/test-pr_case_ignorable.c: Likewise.
41381         * tests/unictype/test-pr_cased.c: Likewise.
41382         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
41383         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
41384         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
41385         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
41386         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
41387         * tests/unictype/test-pr_combining.c: Likewise.
41388         * tests/unictype/test-pr_composite.c: Likewise.
41389         * tests/unictype/test-pr_currency_symbol.c: Likewise.
41390         * tests/unictype/test-pr_decimal_digit.c: Likewise.
41391         * tests/unictype/test-pr_deprecated.c: Likewise.
41392         * tests/unictype/test-pr_format_control.c: Likewise.
41393         * tests/unictype/test-pr_grapheme_base.c: Likewise.
41394         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
41395         * tests/unictype/test-pr_grapheme_link.c: Likewise.
41396         * tests/unictype/test-pr_id_continue.c: Likewise.
41397         * tests/unictype/test-pr_id_start.c: Likewise.
41398         * tests/unictype/test-pr_ideographic.c: Likewise.
41399         * tests/unictype/test-pr_lowercase.c: Likewise.
41400         * tests/unictype/test-pr_math.c: Likewise.
41401         * tests/unictype/test-pr_numeric.c: Likewise.
41402         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
41403         * tests/unictype/test-pr_other_id_continue.c: Likewise.
41404         * tests/unictype/test-pr_other_math.c: Likewise.
41405         * tests/unictype/test-pr_punctuation.c: Likewise.
41406         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
41407         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
41408         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
41409         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
41410         * tests/unictype/test-pr_uppercase.c: Likewise.
41411         * tests/unictype/test-pr_xid_continue.c: Likewise.
41412         * tests/unictype/test-pr_xid_start.c: Likewise.
41413         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
41414         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
41415         changes.
41416         * lib/unictype/categ_Cc.h: Likewise.
41417         * lib/unictype/categ_Cf.h: Likewise.
41418         * lib/unictype/categ_Co.h: Likewise.
41419         * lib/unictype/categ_Cs.h: Likewise.
41420         * lib/unictype/categ_Lt.h: Likewise.
41421         * lib/unictype/categ_Nl.h: Likewise.
41422         * lib/unictype/categ_Pc.h: Likewise.
41423         * lib/unictype/categ_Pd.h: Likewise.
41424         * lib/unictype/categ_Pe.h: Likewise.
41425         * lib/unictype/categ_Pf.h: Likewise.
41426         * lib/unictype/categ_Pi.h: Likewise.
41427         * lib/unictype/categ_Ps.h: Likewise.
41428         * lib/unictype/categ_Z.h: Likewise.
41429         * lib/unictype/categ_Zl.h: Likewise.
41430         * lib/unictype/categ_Zp.h: Likewise.
41431         * lib/unictype/categ_Zs.h: Likewise.
41432         * lib/unictype/ctype_blank.h: Likewise.
41433         * lib/unictype/ctype_cntrl.h: Likewise.
41434         * lib/unictype/ctype_digit.h: Likewise.
41435         * lib/unictype/ctype_space.h: Likewise.
41436         * lib/unictype/ctype_xdigit.h: Likewise.
41437         * lib/unictype/mirror.h: Likewise.
41438         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
41439         * lib/unictype/pr_bidi_block_separator.h: Likewise.
41440         * lib/unictype/pr_bidi_common_separator.h: Likewise.
41441         * lib/unictype/pr_bidi_control.h: Likewise.
41442         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
41443         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
41444         * lib/unictype/pr_bidi_european_digit.h: Likewise.
41445         * lib/unictype/pr_bidi_pdf.h: Likewise.
41446         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
41447         * lib/unictype/pr_bidi_whitespace.h: Likewise.
41448         * lib/unictype/pr_dash.h: Likewise.
41449         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
41450         * lib/unictype/pr_diacritic.h: Likewise.
41451         * lib/unictype/pr_extender.h: Likewise.
41452         * lib/unictype/pr_hex_digit.h: Likewise.
41453         * lib/unictype/pr_hyphen.h: Likewise.
41454         * lib/unictype/pr_ids_binary_operator.h: Likewise.
41455         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
41456         * lib/unictype/pr_ignorable_control.h: Likewise.
41457         * lib/unictype/pr_iso_control.h: Likewise.
41458         * lib/unictype/pr_join_control.h: Likewise.
41459         * lib/unictype/pr_left_of_pair.h: Likewise.
41460         * lib/unictype/pr_line_separator.h: Likewise.
41461         * lib/unictype/pr_logical_order_exception.h: Likewise.
41462         * lib/unictype/pr_non_break.h: Likewise.
41463         * lib/unictype/pr_not_a_character.h: Likewise.
41464         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
41465         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
41466         * lib/unictype/pr_other_id_start.h: Likewise.
41467         * lib/unictype/pr_other_lowercase.h: Likewise.
41468         * lib/unictype/pr_other_uppercase.h: Likewise.
41469         * lib/unictype/pr_paired_punctuation.h: Likewise.
41470         * lib/unictype/pr_paragraph_separator.h: Likewise.
41471         * lib/unictype/pr_pattern_syntax.h: Likewise.
41472         * lib/unictype/pr_pattern_white_space.h: Likewise.
41473         * lib/unictype/pr_private_use.h: Likewise.
41474         * lib/unictype/pr_quotation_mark.h: Likewise.
41475         * lib/unictype/pr_radical.h: Likewise.
41476         * lib/unictype/pr_soft_dotted.h: Likewise.
41477         * lib/unictype/pr_space.h: Likewise.
41478         * lib/unictype/pr_titlecase.h: Likewise.
41479         * lib/unictype/pr_variation_selector.h: Likewise.
41480         * lib/unictype/pr_white_space.h: Likewise.
41481         * lib/unictype/pr_zero_width.h: Likewise.
41482         * lib/unictype/sy_c_ident.h: Likewise.
41483         * lib/unictype/sy_c_whitespace.h: Likewise.
41484         * lib/unictype/sy_java_whitespace.h: Likewise.
41485         * lib/uninorm/composition-table.gperf: Likewise.
41486         * lib/uninorm/decomposition-table1.h: Likewise.
41487         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
41488         LB8.
41489         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
41490         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
41491         * modules/unictype/*: Bump version number of expected libunistring
41492         version.
41494 2011-01-09  Bruno Haible  <bruno@clisp.org>
41496         Update to Unicode 5.2.0.
41497         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
41498         trailing whitespace removed.
41500 2011-01-09  Bruno Haible  <bruno@clisp.org>
41502         New Unicode character properties, from Unicode 5.2.0.
41503         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
41504         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
41505         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
41506         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
41507         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
41508         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
41509         uc_is_property_cased, uc_is_property_case_ignorable,
41510         uc_is_property_changes_when_lowercased,
41511         uc_is_property_changes_when_uppercased,
41512         uc_is_property_changes_when_titlecased,
41513         uc_is_property_changes_when_casefolded,
41514         uc_is_property_changes_when_casemapped): New declarations.
41515         * lib/unictype/pr_byname.gperf: Add the new properties.
41516         * modules/unictype/property-byname (Depends-on): Depend on the new
41517         properties modules.
41518         * modules/unictype/property-all (Depends-on): Likewise.
41519         * MODULES.html.sh (Unicode string functions): Add
41520         unictype/property-case-ignorable, unictype/property-cased,
41521         unictype/property-changes-when-casefolded,
41522         unictype/property-changes-when-casemapped,
41523         unictype/property-changes-when-lowercased,
41524         unictype/property-changes-when-titlecased,
41525         unictype/property-changes-when-uppercased.
41527         New module 'unictype/property-changes-when-casemapped'.
41528         * modules/unictype/property-changes-when-casemapped: New file.
41529         * lib/unictype/pr_changes_when_casemapped.c: New file.
41530         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
41531         generated by gen-uni-tables.
41532         * modules/unictype/property-changes-when-casemapped-tests: New file.
41533         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
41534         automatically generated by gen-uni-tables.
41536         New module 'unictype/property-changes-when-casefolded'.
41537         * modules/unictype/property-changes-when-casefolded: New file.
41538         * lib/unictype/pr_changes_when_casefolded.c: New file.
41539         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
41540         generated by gen-uni-tables.
41541         * modules/unictype/property-changes-when-casefolded-tests: New file.
41542         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
41543         automatically generated by gen-uni-tables.
41545         New module 'unictype/property-changes-when-titlecased'.
41546         * modules/unictype/property-changes-when-titlecased: New file.
41547         * lib/unictype/pr_changes_when_titlecased.c: New file.
41548         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
41549         generated by gen-uni-tables.
41550         * modules/unictype/property-changes-when-titlecased-tests: New file.
41551         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
41552         automatically generated by gen-uni-tables.
41554         New module 'unictype/property-changes-when-uppercased'.
41555         * modules/unictype/property-changes-when-uppercased: New file.
41556         * lib/unictype/pr_changes_when_uppercased.c: New file.
41557         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
41558         generated by gen-uni-tables.
41559         * modules/unictype/property-changes-when-uppercased-tests: New file.
41560         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
41561         automatically generated by gen-uni-tables.
41563         New module 'unictype/property-changes-when-lowercased'.
41564         * modules/unictype/property-changes-when-lowercased: New file.
41565         * lib/unictype/pr_changes_when_lowercased.c: New file.
41566         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
41567         generated by gen-uni-tables.
41568         * modules/unictype/property-changes-when-lowercased-tests: New file.
41569         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
41570         automatically generated by gen-uni-tables.
41572         New module 'unictype/property-case-ignorable'.
41573         * modules/unictype/property-case-ignorable: New file.
41574         * lib/unictype/pr_case_ignorable.c: New file.
41575         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
41576         by gen-uni-tables.
41577         * modules/unictype/property-case-ignorable-tests: New file.
41578         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
41579         generated by gen-uni-tables.
41581         New module 'unictype/property-cased'.
41582         * modules/unictype/property-cased: New file.
41583         * lib/unictype/pr_cased.c: New file.
41584         * lib/unictype/pr_cased.h: New file, automatically generated by
41585         gen-uni-tables.
41586         * modules/unictype/property-cased-tests: New file.
41587         * tests/unictype/test-pr_cased.c: New file, automatically generated by
41588         gen-uni-tables.
41590 2011-01-09  Bruno Haible  <bruno@clisp.org>
41592         Update to Unicode 5.2.0.
41593         * lib/gen-uni-tables.c (output_predicate, output_category,
41594         output_combclass, output_bidi_category, output_decimal_digit_test,
41595         output_decimal_digit, output_digit_test, output_digit,
41596         output_numeric_test, output_numeric, output_mirror, output_scripts,
41597         output_scripts_byname, output_blocks, output_ident_category): Fix
41598         comment header.
41599         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
41600         get_wbp.
41601         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
41602         items.
41603         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
41604         Changes_When_Lowercased, Changes_When_Uppercased,
41605         Changes_When_Titlecased, Changes_When_Casefolded,
41606         Changes_When_Casemapped.
41607         (is_property_alphabetic, is_property_default_ignorable_code_point):
41608         Update for Unicode 5.2.0.
41609         (is_property_cased, is_property_case_ignorable,
41610         is_property_changes_when_lowercased,
41611         is_property_changes_when_uppercased,
41612         is_property_changes_when_titlecased,
41613         is_property_changes_when_casefolded,
41614         is_property_changes_when_casemapped): New functions.
41615         (output_properties): Output also the properties cased, case_ignorable,
41616         changes_when_lowercased, changes_when_uppercased,
41617         changes_when_titlecased, changes_when_casefolded,
41618         changes_when_casemapped.
41619         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
41620         Unicode TR#11 revision 17 -> 19.
41621         (LBP_CP): New enumeration value.
41622         (LBP_*): Adjust values accordingly.
41623         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
41624         TR#14 revision 22 -> 24.
41625         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
41626         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
41627         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
41628         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
41629         is_WBP_MIDLETTER.
41630         (output_composition_tables): Allow for 24 bits instead of 16 bits in
41631         the code1 and code2 of each composition rule.
41632         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
41633         * lib/unicase/ignorable.h: Likewise.
41634         * lib/unicase/tocasefold.h: Likewise.
41635         * lib/unicase/tolower.h: Likewise.
41636         * lib/unicase/totitle.h: Likewise.
41637         * lib/unicase/toupper.h: Likewise.
41638         * lib/unictype/bidi_of.h: Likewise.
41639         * lib/unictype/blocks.h: Likewise.
41640         * lib/unictype/categ_C.h: Likewise.
41641         * lib/unictype/categ_Cf.h: Likewise.
41642         * lib/unictype/categ_Cn.h: Likewise.
41643         * lib/unictype/categ_L.h: Likewise.
41644         * lib/unictype/categ_Ll.h: Likewise.
41645         * lib/unictype/categ_Lm.h: Likewise.
41646         * lib/unictype/categ_Lo.h: Likewise.
41647         * lib/unictype/categ_Lu.h: Likewise.
41648         * lib/unictype/categ_M.h: Likewise.
41649         * lib/unictype/categ_Mc.h: Likewise.
41650         * lib/unictype/categ_Mn.h: Likewise.
41651         * lib/unictype/categ_N.h: Likewise.
41652         * lib/unictype/categ_Nd.h: Likewise.
41653         * lib/unictype/categ_Nl.h: Likewise.
41654         * lib/unictype/categ_No.h: Likewise.
41655         * lib/unictype/categ_P.h: Likewise.
41656         * lib/unictype/categ_Pd.h: Likewise.
41657         * lib/unictype/categ_Po.h: Likewise.
41658         * lib/unictype/categ_S.h: Likewise.
41659         * lib/unictype/categ_Sc.h: Likewise.
41660         * lib/unictype/categ_So.h: Likewise.
41661         * lib/unictype/categ_of.h: Likewise.
41662         * lib/unictype/combining.h: Likewise.
41663         * lib/unictype/ctype_alnum.h: Likewise.
41664         * lib/unictype/ctype_alpha.h: Likewise.
41665         * lib/unictype/ctype_graph.h: Likewise.
41666         * lib/unictype/ctype_lower.h: Likewise.
41667         * lib/unictype/ctype_print.h: Likewise.
41668         * lib/unictype/ctype_punct.h: Likewise.
41669         * lib/unictype/ctype_upper.h: Likewise.
41670         * lib/unictype/decdigit.h: Likewise.
41671         * lib/unictype/digit.h: Likewise.
41672         * lib/unictype/numeric.h: Likewise.
41673         * lib/unictype/pr_alphabetic.h: Likewise.
41674         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
41675         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
41676         * lib/unictype/pr_bidi_european_digit.h: Likewise.
41677         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
41678         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
41679         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
41680         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
41681         * lib/unictype/pr_combining.h: Likewise.
41682         * lib/unictype/pr_composite.h: Likewise.
41683         * lib/unictype/pr_currency_symbol.h: Likewise.
41684         * lib/unictype/pr_dash.h: Likewise.
41685         * lib/unictype/pr_decimal_digit.h: Likewise.
41686         * lib/unictype/pr_deprecated.h: Likewise.
41687         * lib/unictype/pr_diacritic.h: Likewise.
41688         * lib/unictype/pr_extender.h: Likewise.
41689         * lib/unictype/pr_grapheme_base.h: Likewise.
41690         * lib/unictype/pr_grapheme_extend.h: Likewise.
41691         * lib/unictype/pr_grapheme_link.h: Likewise.
41692         * lib/unictype/pr_id_continue.h: Likewise.
41693         * lib/unictype/pr_id_start.h: Likewise.
41694         * lib/unictype/pr_ideographic.h: Likewise.
41695         * lib/unictype/pr_ignorable_control.h: Likewise.
41696         * lib/unictype/pr_logical_order_exception.h: Likewise.
41697         * lib/unictype/pr_lowercase.h: Likewise.
41698         * lib/unictype/pr_numeric.h: Likewise.
41699         * lib/unictype/pr_other_alphabetic.h: Likewise.
41700         * lib/unictype/pr_punctuation.h: Likewise.
41701         * lib/unictype/pr_sentence_terminal.h: Likewise.
41702         * lib/unictype/pr_terminal_punctuation.h: Likewise.
41703         * lib/unictype/pr_unassigned_code_value.h: Likewise.
41704         * lib/unictype/pr_unified_ideograph.h: Likewise.
41705         * lib/unictype/pr_uppercase.h: Likewise.
41706         * lib/unictype/pr_xid_continue.h: Likewise.
41707         * lib/unictype/pr_xid_start.h: Likewise.
41708         * lib/unictype/pr_zero_width.h: Likewise.
41709         * lib/unictype/scripts.h: Likewise.
41710         * lib/unictype/scripts_byname.gperf: Likewise.
41711         * lib/unictype/sy_java_ident.h: Likewise.
41712         * lib/unigbrk/gbrkprop.h: Likewise.
41713         * lib/unilbrk/lbrkprop1.h: Likewise.
41714         * lib/unilbrk/lbrkprop2.h: Likewise.
41715         * lib/unilbrk/lbrktables.h: Likewise.
41716         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
41717         LBP_CP. Implement rule LB30.
41718         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
41719         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
41720         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
41721         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
41722         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
41723         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
41724         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
41725         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
41726         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
41727         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
41728         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
41729         bits instead of 16 bits in the code1 and code2 of each composition
41730         rule.
41731         (uc_composition): Update for Unicode 5.2.0.
41732         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
41733         * lib/uninorm/decomposition-table2.h: Likewise.
41734         * lib/uniwbrk/wbrkprop.h: Likewise.
41735         * tests/unicase/test-cased.c: Likewise.
41736         * tests/unicase/test-ignorable.c: Likewise.
41737         * tests/unicase/test-uc_tolower.c: Likewise.
41738         * tests/unicase/test-uc_totitle.c: Likewise.
41739         * tests/unicase/test-uc_toupper.c: Likewise.
41740         * tests/unictype/test-categ_C.c: Likewise.
41741         * tests/unictype/test-categ_Cf.c: Likewise.
41742         * tests/unictype/test-categ_Cn.c: Likewise.
41743         * tests/unictype/test-categ_L.c: Likewise.
41744         * tests/unictype/test-categ_Ll.c: Likewise.
41745         * tests/unictype/test-categ_Lm.c: Likewise.
41746         * tests/unictype/test-categ_Lo.c: Likewise.
41747         * tests/unictype/test-categ_Lu.c: Likewise.
41748         * tests/unictype/test-categ_M.c: Likewise.
41749         * tests/unictype/test-categ_Mc.c: Likewise.
41750         * tests/unictype/test-categ_Mn.c: Likewise.
41751         * tests/unictype/test-categ_N.c: Likewise.
41752         * tests/unictype/test-categ_Nd.c: Likewise.
41753         * tests/unictype/test-categ_Nl.c: Likewise.
41754         * tests/unictype/test-categ_No.c: Likewise.
41755         * tests/unictype/test-categ_P.c: Likewise.
41756         * tests/unictype/test-categ_Pd.c: Likewise.
41757         * tests/unictype/test-categ_Po.c: Likewise.
41758         * tests/unictype/test-categ_S.c: Likewise.
41759         * tests/unictype/test-categ_Sc.c: Likewise.
41760         * tests/unictype/test-categ_So.c: Likewise.
41761         * tests/unictype/test-ctype_alnum.c: Likewise.
41762         * tests/unictype/test-ctype_alpha.c: Likewise.
41763         * tests/unictype/test-ctype_graph.c: Likewise.
41764         * tests/unictype/test-ctype_lower.c: Likewise.
41765         * tests/unictype/test-ctype_print.c: Likewise.
41766         * tests/unictype/test-ctype_punct.c: Likewise.
41767         * tests/unictype/test-ctype_upper.c: Likewise.
41768         * tests/unictype/test-decdigit.h: Likewise.
41769         * tests/unictype/test-digit.h: Likewise.
41770         * tests/unictype/test-numeric.h: Likewise.
41771         * tests/unictype/test-pr_alphabetic.c: Likewise.
41772         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
41773         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
41774         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
41775         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
41776         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
41777         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
41778         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
41779         * tests/unictype/test-pr_combining.c: Likewise.
41780         * tests/unictype/test-pr_composite.c: Likewise.
41781         * tests/unictype/test-pr_currency_symbol.c: Likewise.
41782         * tests/unictype/test-pr_dash.c: Likewise.
41783         * tests/unictype/test-pr_decimal_digit.c: Likewise.
41784         * tests/unictype/test-pr_deprecated.c: Likewise.
41785         * tests/unictype/test-pr_diacritic.c: Likewise.
41786         * tests/unictype/test-pr_extender.c: Likewise.
41787         * tests/unictype/test-pr_grapheme_base.c: Likewise.
41788         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
41789         * tests/unictype/test-pr_grapheme_link.c: Likewise.
41790         * tests/unictype/test-pr_id_continue.c: Likewise.
41791         * tests/unictype/test-pr_id_start.c: Likewise.
41792         * tests/unictype/test-pr_ideographic.c: Likewise.
41793         * tests/unictype/test-pr_ignorable_control.c: Likewise.
41794         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
41795         * tests/unictype/test-pr_lowercase.c: Likewise.
41796         * tests/unictype/test-pr_numeric.c: Likewise.
41797         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
41798         * tests/unictype/test-pr_punctuation.c: Likewise.
41799         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
41800         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
41801         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
41802         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
41803         * tests/unictype/test-pr_uppercase.c: Likewise.
41804         * tests/unictype/test-pr_xid_continue.c: Likewise.
41805         * tests/unictype/test-pr_xid_start.c: Likewise.
41806         * tests/unictype/test-pr_zero_width.c: Likewise.
41807         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
41808         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
41809         changed behaviour: line breaking is now disallowed between a letter
41810         or '=' and '('.
41811         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
41812         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
41813         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
41814         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
41815         * tests/uniwidth/test-uc_width2.sh: Same updates as in
41816         lib/uniwidth/width.c.
41817         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
41818         without comments, but with the original copyright notice.
41819         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
41820         changes.
41821         * lib/unictype/categ_Cc.h: Likewise.
41822         * lib/unictype/categ_Co.h: Likewise.
41823         * lib/unictype/categ_Cs.h: Likewise.
41824         * lib/unictype/categ_Lt.h: Likewise.
41825         * lib/unictype/categ_Me.h: Likewise.
41826         * lib/unictype/categ_Pc.h: Likewise.
41827         * lib/unictype/categ_Pe.h: Likewise.
41828         * lib/unictype/categ_Pf.h: Likewise.
41829         * lib/unictype/categ_Pi.h: Likewise.
41830         * lib/unictype/categ_Ps.h: Likewise.
41831         * lib/unictype/categ_Sk.h: Likewise.
41832         * lib/unictype/categ_Sm.h: Likewise.
41833         * lib/unictype/categ_Z.h: Likewise.
41834         * lib/unictype/categ_Zl.h: Likewise.
41835         * lib/unictype/categ_Zp.h: Likewise.
41836         * lib/unictype/categ_Zs.h: Likewise.
41837         * lib/unictype/ctype_blank.h: Likewise.
41838         * lib/unictype/ctype_cntrl.h: Likewise.
41839         * lib/unictype/ctype_digit.h: Likewise.
41840         * lib/unictype/ctype_space.h: Likewise.
41841         * lib/unictype/ctype_xdigit.h: Likewise.
41842         * lib/unictype/mirror.h: Likewise.
41843         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
41844         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
41845         * lib/unictype/pr_bidi_block_separator.h: Likewise.
41846         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
41847         * lib/unictype/pr_bidi_common_separator.h: Likewise.
41848         * lib/unictype/pr_bidi_control.h: Likewise.
41849         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
41850         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
41851         * lib/unictype/pr_bidi_pdf.h: Likewise.
41852         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
41853         * lib/unictype/pr_bidi_whitespace.h: Likewise.
41854         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
41855         * lib/unictype/pr_format_control.h: Likewise.
41856         * lib/unictype/pr_hex_digit.h: Likewise.
41857         * lib/unictype/pr_hyphen.h: Likewise.
41858         * lib/unictype/pr_ids_binary_operator.h: Likewise.
41859         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
41860         * lib/unictype/pr_iso_control.h: Likewise.
41861         * lib/unictype/pr_join_control.h: Likewise.
41862         * lib/unictype/pr_left_of_pair.h: Likewise.
41863         * lib/unictype/pr_line_separator.h: Likewise.
41864         * lib/unictype/pr_math.h: Likewise.
41865         * lib/unictype/pr_non_break.h: Likewise.
41866         * lib/unictype/pr_not_a_character.h: Likewise.
41867         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
41868         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
41869         * lib/unictype/pr_other_id_continue.h: Likewise.
41870         * lib/unictype/pr_other_id_start.h: Likewise.
41871         * lib/unictype/pr_other_lowercase.h: Likewise.
41872         * lib/unictype/pr_other_math.h: Likewise.
41873         * lib/unictype/pr_other_uppercase.h: Likewise.
41874         * lib/unictype/pr_paired_punctuation.h: Likewise.
41875         * lib/unictype/pr_paragraph_separator.h: Likewise.
41876         * lib/unictype/pr_pattern_syntax.h: Likewise.
41877         * lib/unictype/pr_pattern_white_space.h: Likewise.
41878         * lib/unictype/pr_private_use.h: Likewise.
41879         * lib/unictype/pr_quotation_mark.h: Likewise.
41880         * lib/unictype/pr_radical.h: Likewise.
41881         * lib/unictype/pr_soft_dotted.h: Likewise.
41882         * lib/unictype/pr_space.h: Likewise.
41883         * lib/unictype/pr_titlecase.h: Likewise.
41884         * lib/unictype/pr_variation_selector.h: Likewise.
41885         * lib/unictype/pr_white_space.h: Likewise.
41886         * lib/unictype/sy_c_ident.h: Likewise.
41887         * lib/unictype/sy_c_whitespace.h: Likewise.
41888         * lib/unictype/sy_java_whitespace.h: Likewise.
41889         * modules/uni*/*: Bump version number of expected libunistring version.
41890         Reported by Simon Josefsson.
41892 2011-01-09  Karl Heuer  <kwzh@gnu.org>
41894         useless-if-before-free: fix typo in --help and make the internal,
41895         automatic version date update process work once again.
41896         --help output contained a NUL character instead of the
41897         backslash-zero that was intended.  Also, the "must lie within
41898         the first 8 lines" line is on line 9, and hence not getting
41899         automatically updated.
41900         * build-aux/useless-if-before-free: Fix the former by adding a
41901         backslash, and the latter by condensing the three lines of what-it-does
41902         to a single line, leaving one line of slack for the future.
41904 2011-01-09  Bruno Haible  <bruno@clisp.org>
41906         uniwidth/width: Fix width of U+1D173..U+1D17A.
41907         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
41908         symbolic_width, output_width_property_test): New functions.
41909         (main): Invoke output_nonspacing_property, output_width_property_test.
41910         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
41911         U+1D173..U+1D17A.
41912         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
41913         1.
41914         * modules/uniwidth/*: Bump version number of expected libunistring
41915         version.
41916         * modules/unilbrk/*: Likewise.
41918 2011-01-08  Bruno Haible  <bruno@clisp.org>
41920         uninorm tests: Preserve copyright of Unicode data file.
41921         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
41922         Mention modifications.
41924 2011-01-08  Bruno Haible  <bruno@clisp.org>
41926         gen-uni-tables: Prepare for Unicode 5.2.0.
41927         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
41928         (debug_output_lbp, output_lbp): Update.
41930 2011-01-08  Bruno Haible  <bruno@clisp.org>
41932         unilbrk: Clarify gen-uni-tables.c code.
41933         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
41934         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
41935         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
41937 2011-01-07  Bruno Haible  <bruno@clisp.org>
41939         strtod: Restore errno when successfully parsing Infinity or NaN.
41940         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
41941         restore the original errno.
41943 2011-01-07  Bruno Haible  <bruno@clisp.org>
41945         remove test: Avoid failure on HP-UX 11.
41946         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
41948 2011-01-07  Bruno Haible  <bruno@clisp.org>
41950         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
41951         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
41952         error code.
41954 2011-01-07  Pádraig Brady  <P@draigBrady.com>
41956         ignore-value: fixup comments, and add Eric Blake
41957         as an author since he rewrote the macros.
41958         * lib/ignore-value.h (ignore_value):  State that
41959         we now support aggregates.  Also specify exactly
41960         when the GCC warn_unused_result feature was added.
41962 2011-01-06  Eric Blake  <eblake@redhat.com>
41964         ignore-value: support aggregate types
41965         * lib/ignore-value.h (ignore_value): Provide separate gcc
41966         definition.
41967         * modules/ignore-value-tests: New test module.
41968         * tests/test-ignore-value.c: New test.
41970         maint.mk: improve sc_prohibit_strcmp regex
41971         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
41972         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
41973         definition of STRNEQ.
41975         signal: work around Haiku issue with SIGBUS
41976         * lib/siglist.h: Add comment.
41977         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
41978         strsignal's favoring of SIGSEGV.
41979         * tests/test-signal.c (main): Avoid test failure.
41980         * doc/posix-headers/signal.texi (signal.h): Document the issue.
41981         Reported by Scott McCreary.
41983         maint.mk: add pre-release check to ensure submodule commits are public
41984         * top/maint.mk (public-submodule-commit): New rule.
41985         (submodule-checks): New variable.
41986         (alpha beta stable): Depend on the variable.
41988 2011-01-05  Pádraig Brady  <P@draigBrady.com>
41989         and Jim Meyering  <meyering@redhat.com>
41991         ignore-value: make ignore_value more generic; deprecate ignore_ptr
41992         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
41993         (ATTRIBUTE_DEPRECATED): Define.
41994         (_ignore_case): New function.
41995         (ignore_value): New macro, to replace the old function.
41996         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
41997         * modules/ignore-value (Depends-on): Add stdint.
41999 2011-01-04  Eric Blake  <eblake@redhat.com>
42001         doc: regenerate INSTALL
42002         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
42003         @firstparagraphindent support, now that autoconf dropped it.
42004         (INSTALL_PRELUDE): Reinstate old macro.
42005         * doc/install.texi: Resync from autoconf.
42006         * doc/INSTALL: Reflect recent autoconf update.
42007         * doc/INSTALL.ISO: Likewise.
42008         * doc/INSTALL.UTF-8: Likewise.
42009         Reported by Karl Berry.
42011 2011-01-04  Bruce Korb  <address@hidden>
42013         git-version-gen: avoid a sub-shell
42014         * build-aux/git-version-gen: Redirect stderr in `...` via
42015         "exec 2>...", rather than via an added sub-shell.
42017 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
42019         git-version-gen: use (...) rather than sh -c '...'
42020         * build-aux/git-version-gen: Rather than hard-coding a shell's name
42021         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
42023 2011-01-03  Jim Meyering  <meyering@redhat.com>
42025         git-version-gen: convert leading TABs to spaces
42026         * build-aux/git-version-gen: Expand leading TABs.
42028         git-version-gen: handle failed "git rev-list"
42029         * build-aux/git-version-gen: Rather than leaking a "fatal" error
42030         from git and proceeding as if it had succeeded but printed no SHA1
42031         checksums, suppress the diagnostic and handle the failure.
42032         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
42034         git-version-gen: include command name in one more diagnostic
42035         * build-aux/git-version-gen: When the required .tarball-version file
42036         was missing or unreadable, you might see the diagnostic from "cat",
42037         but no trace of the name of the invoking script.  Now, you still see
42038         the diagnostic from cat, but also get one from "git-version-gen: ".
42039         Inspired by a patch from Bruce Korb.
42041         update-copyright: adjust test to match changed code
42042         * tests/test-update-copyright.sh: Change test's expected output
42043         to match new actual output.
42045 2011-01-02  Bruno Haible  <bruno@clisp.org>
42047         getlogin_r: Avoid test failure on HP-UX 11.
42048         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
42049         ERANGE when the second argument is zero.
42050         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
42051         portability problem.
42053 2011-01-02  Bruce Korb  <bkorb@gnu.org>
42055         * build-aux/update-copyright: doc Simon's changes
42057 2011-01-02  Simon Josefsson  <simon@josefsson.org>
42059         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
42060         environment variable.
42062 2011-01-02  Bruno Haible  <bruno@clisp.org>
42064         unigbrk: Avoid gcc warnings.
42065         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
42066         unused variable.
42067         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
42068         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
42069         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
42070         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
42071         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
42072         Change type of first argument to 'const char *'.
42073         (main): Remove unused variable.
42074         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
42075         type of first argument to 'const char *'.
42076         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
42077         Likewise.
42078         (main): Change type of variable 's'.
42079         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
42080         to 'int'.
42082 2011-01-02  Bruno Haible  <bruno@clisp.org>
42084         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
42085         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
42086         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
42087         bug.
42088         * lib/pwrite.c: Undo 2010-12-31 patch.
42089         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
42091 2011-01-02  Bruno Haible  <bruno@clisp.org>
42093         pread: Fix test whether it works.
42094         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
42096 2011-01-02  Bruno Haible  <bruno@clisp.org>
42098         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
42099         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
42100         ends in "6". Don't require a specific month name. Try also the locale
42101         names found on HP-UX 11 and Solaris 7.
42103 2011-01-02  Bruno Haible  <bruno@clisp.org>
42105         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
42106         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
42107         C linkage.
42108         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
42110 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
42112         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
42113         for consistency, since the "cluster" term is not used elsewhere.
42114         * lib/unigbrk.in.h: Update name.
42115         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
42116         * lib/unigbrk/u16-grapheme-next.c: Update name.
42117         * lib/unigbrk/u16-grapheme-prev.c: Update name.
42118         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
42119         * lib/unigbrk/u32-grapheme-next.c: Update name.
42120         * lib/unigbrk/u32-grapheme-prev.c: Update name.
42121         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
42122         * lib/unigbrk/u8-grapheme-next.c: Update name.
42123         * lib/unigbrk/u8-grapheme-prev.c: Update name.
42124         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
42125         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
42126         Suggested by Bruno Haible.
42128 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
42130         Remove module 'u8-grapheme-len' as too redundant with
42131         'u8-grapheme-next'.
42132         * modules/unigbrk/u8-grapheme-len: Delete file.
42133         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
42134         * lib/unigbrk.in.h: Remove prototype for deleted function.
42135         * lib/unigbrk/u8-grapheme-len.c: Delete file.
42136         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
42138         Remove module 'u16-grapheme-len' as too redundant with
42139         'u16-grapheme-next'.
42140         * modules/unigbrk/u16-grapheme-len: Delete file.
42141         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
42142         * lib/unigbrk.in.h: Remove prototype for deleted function.
42143         * lib/unigbrk/u16-grapheme-len.c: Delete file.
42144         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
42146         Remove module 'u32-grapheme-len' as too redundant with
42147         'u32-grapheme-next'.
42148         * modules/unigbrk/u32-grapheme-len: Delete file.
42149         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
42150         * lib/unigbrk.in.h: Remove prototype for deleted function.
42151         * lib/unigbrk/u32-grapheme-len.c: Delete file.
42152         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
42154         Suggested by Bruno Haible.
42156 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
42158         * unigbrk.in.h: Fix typo: "ben" => "been".
42159         Reported by Bruno Haible.
42161 2011-01-01  Jim Meyering  <meyering@redhat.com>
42163         maint: update almost all copyright ranges to include 2011
42164         Run the new "make update-copyright" rule.
42166 2011-01-01  Jim Meyering  <meyering@redhat.com>
42168         maint: update-copyright: exempt doc/INSTALL*
42169         * Makefile (update-copyright): Also exclude doc/INSTALL*,
42170         since they are generated.  Suggested by Bruno Haible.
42172 2011-01-01  Jim Meyering  <meyering@redhat.com>
42174         maint: refine the update-copyright rule
42175         * Makefile (update-copyright): Also exclude any file that includes
42176         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
42177         code that merely generates the comment.
42179 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
42181         New module 'u8-grapheme-len'.
42182         * modules/unigbrk/u8-grapheme-len: New file.
42183         * modules/unigbrk/u8-grapheme-len-tests: New file.
42184         * lib/unigbrk.in.h: Add prototype for new function.
42185         * lib/unigbrk/u8-grapheme-len.c: New file.
42186         * tests/unigbrk/test-u8-grapheme-len.c: New file.
42188         New module 'u16-grapheme-len'.
42189         * modules/unigbrk/u16-grapheme-len: New file.
42190         * modules/unigbrk/u16-grapheme-len-tests: New file.
42191         * lib/unigbrk.in.h: Add prototype for new function.
42192         * lib/unigbrk/u16-grapheme-len.c: New file.
42193         * tests/unigbrk/test-u16-grapheme-len.c: New file.
42195         New module 'u32-grapheme-len'.
42196         * modules/unigbrk/u32-grapheme-len: New file.
42197         * modules/unigbrk/u32-grapheme-len-tests: New file.
42198         * lib/unigbrk.in.h: Add prototype for new function.
42199         * lib/unigbrk/u32-grapheme-len.c: New file.
42200         * tests/unigbrk/test-u32-grapheme-len.c: New file.
42202         New module 'u8-grapheme-next'.
42203         * modules/unigbrk/u8-grapheme-next: New file.
42204         * modules/unigbrk/u8-grapheme-next-tests: New file.
42205         * lib/unigbrk.in.h: Add prototype for new function.
42206         * lib/unigbrk/u8-grapheme-next.c: New file.
42207         * tests/unigbrk/test-u8-grapheme-next.c: New file.
42209         New module 'u16-grapheme-next'.
42210         * modules/unigbrk/u16-grapheme-next: New file.
42211         * modules/unigbrk/u16-grapheme-next-tests: New file.
42212         * lib/unigbrk.in.h: Add prototype for new function.
42213         * lib/unigbrk/u16-grapheme-next.c: New file.
42214         * tests/unigbrk/test-u16-grapheme-next.c: New file.
42216         New module 'u32-grapheme-next'.
42217         * modules/unigbrk/u32-grapheme-next: New file.
42218         * modules/unigbrk/u32-grapheme-next-tests: New file.
42219         * lib/unigbrk.in.h: Add prototype for new function.
42220         * lib/unigbrk/u32-grapheme-next.c: New file.
42221         * tests/unigbrk/test-u32-grapheme-next.c: New file.
42223         New module 'u8-grapheme-prev'.
42224         * modules/unigbrk/u8-grapheme-prev: New file.
42225         * modules/unigbrk/u8-grapheme-prev-tests: New file.
42226         * lib/unigbrk.in.h: Add prototype for new function.
42227         * lib/unigbrk/u8-grapheme-prev.c: New file.
42228         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
42230         New module 'u16-grapheme-prev'.
42231         * modules/unigbrk/u16-grapheme-prev: New file.
42232         * modules/unigbrk/u16-grapheme-prev-tests: New file.
42233         * lib/unigbrk.in.h: Add prototype for new function.
42234         * lib/unigbrk/u16-grapheme-prev.c: New file.
42235         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
42237         New module 'u32-grapheme-prev'.
42238         * modules/unigbrk/u32-grapheme-prev: New file.
42239         * modules/unigbrk/u32-grapheme-prev-tests: New file.
42240         * lib/unigbrk.in.h: Add prototype for new function.
42241         * lib/unigbrk/u32-grapheme-prev.c: New file.
42242         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
42244         New module 'u8-grapheme-breaks'.
42245         * modules/unigbrk/u8-grapheme-breaks: New file.
42246         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
42247         * lib/unigbrk.in.h: Add prototype for new function.
42248         * lib/unigbrk/u8-grapheme-breaks.c: New file.
42249         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
42251         New module 'u16-grapheme-breaks'.
42252         * modules/unigbrk/u16-grapheme-breaks: New file.
42253         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
42254         * lib/unigbrk.in.h: Add prototype for new function.
42255         * lib/unigbrk/u16-grapheme-breaks.c: New file.
42256         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
42258         New module 'u32-grapheme-breaks'.
42259         * modules/unigbrk/u32-grapheme-breaks: New file.
42260         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
42261         * lib/unigbrk.in.h: Add prototype for new function.
42262         * lib/unigbrk/u32-grapheme-breaks.c: New file.
42263         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
42265         New module 'ulc-grapheme-breaks'.
42266         * modules/unigbrk/ulc-grapheme-breaks: New file.
42267         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
42268         * m4/locale-ar.m4: New file.
42269         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
42270         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
42271         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
42273 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
42275         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
42276         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
42277         modified how this file was generated before I initially submitted
42278         the module, but failed to regenerate it.  This meant that several
42279         of the level2 entries were wrong.
42280         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
42281         Remove the division-by-2 that is folded into the table now that
42282         gbrkprop.h has been regenerated properly.  Now -1 entries are
42283         handled correctly.
42285         New module 'unigbrk/uc-gbrk-prop-tests'.
42286         * modules/unigbrk/uc-gbrk-prop-tests: New file.
42287         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
42288         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
42289         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
42291 2011-01-01  Bruno Haible  <bruno@clisp.org>
42293         Avoid use of hexadecimal escapes.
42294         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
42295         instead of hexadecimal escapes.
42297 2011-01-01  Jim Meyering  <meyering@redhat.com>
42299         maint: new rule to update copyright year ranges
42300         * Makefile (update-copyright): New rule.
42302         maint: indent with TABs in Makefile
42303         * Makefile: Expand leading sequences of spaces to TABs
42305         version-etc: update the copyright year it reports
42306         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
42308 2010-12-31  Bruno Haible  <bruno@clisp.org>
42310         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
42311         * lib/isfinite.c (zerof, zerod, zerol): New variables.
42312         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
42313         zero.
42315 2010-12-31  Bruno Haible  <bruno@clisp.org>
42317         pwrite: Work around HP-UX 11.11 bug.
42318         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
42319         works and set REPLACE_PWRITE if not.
42320         * lib/pwrite.c (pwrite): Add an implementation that uses the system
42321         function.
42322         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
42324 2010-12-31  Bruno Haible  <bruno@clisp.org>
42326         pread: Work around HP-UX 11 bugs.
42327         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
42328         and set REPLACE_PREAD if not.
42329         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
42331 2010-12-31  Eric Blake  <eblake@redhat.com>
42333         nl_langinfo: fix YESEXPR on Irix 6.5
42334         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
42335         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
42336         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
42337         it.
42339 2010-12-31  Bruno Haible  <bruno@clisp.org>
42341         iconv: Document HP-UX 11 bug.
42342         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
42344 2010-12-31  Bruno Haible  <bruno@clisp.org>
42346         ldexpl: Fix link error on HP-UX 11.
42347         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
42348         LDEXPL_LIBM, using $ISNANL_LIBM.
42350 2010-12-31  Eric Blake  <eblake@redhat.com>
42352         ftello: avoid compilation failure with SunStudio c89
42353         * lib/ftello.c (ftello): Use lseek, not llseek.
42355         tests: avoid failing coreutils tests on cygwin
42356         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
42357         (create_exe_shims_): Return 0 when skipping.
42359 2010-12-31  Bruno Haible  <bruno@clisp.org>
42361         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
42362         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
42364 2010-12-31  Bruno Haible  <bruno@clisp.org>
42366         waitpid: Fix link error in C++ mode.
42367         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
42369 2010-12-31  Bruno Haible  <bruno@clisp.org>
42371         isnan: Use GCC built-ins when possible.
42372         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
42373         __builtin_isnan.
42374         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
42375         (isnan): Define using GCC built-ins for GCC >= 4.0.
42377 2010-12-31  Bruno Haible  <bruno@clisp.org>
42379         isnand: Fix mistake.
42380         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
42381         __builtin_isnand.
42383 2010-12-31  Bruno Haible  <bruno@clisp.org>
42385         open: Avoid C++ error on HP-UX 11.
42386         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
42388 2010-12-31  Bruno Haible  <bruno@clisp.org>
42390         time_r: Add missing declarations on HP-UX 11.
42391         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
42392         instead of HAVE_LOCALTIME_R.
42393         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
42394         HAVE_LOCALTIME_R always.
42395         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
42396         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
42397         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
42398         HAVE_LOCALTIME_R.
42399         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
42400         * doc/posix-functions/localtime_r.texi: Likewise.
42402 2010-12-29  Eric Blake  <eblake@redhat.com>
42404         mountlist: tweak previous commit
42405         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
42406         Reported by Paul Eggert.
42408         mountlist: fix local drive detection on cygwin
42409         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
42410         that works for cygwin.
42412 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
42414         ftoastr, snprintf: ftoastr + snprintf module
42415         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
42416         since the snprintf module now should be good enough here.
42417         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
42418         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
42419         and gl_MODULE_INDICATOR([snprintf]), but the former enables
42420         GNULIB_SNPRINTF only for the test directory, and the latter
42421         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
42422         seems to suffice by itself.
42424 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
42426         alloca: one step towards thread-safety
42427         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
42428         need for a static variable.  All callers changed.  This does not
42429         make the alloca replacement thread-safe, but it's one step.
42431         tests: minor indenting change
42432         * tests/init.sh: Sync from coreutils housekeeping patch
42433         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
42434         to keep lines within 80 columns.
42436 2010-12-28  Jim Meyering  <meyering@redhat.com>
42438         regex: don't infloop on persistent failing calloc
42439         * lib/regexec.c (build_trtable): Return failure indication upon
42440         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
42441         In glibc, this was fixed for version 2.13:
42442         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
42444 2010-12-28  Bruno Haible  <bruno@clisp.org>
42445             Paul Eggert <eggert@cs.ucla.edu>
42447         linkat: Make implementation robust against system behaviour variations.
42448         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
42449         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
42450         way, and to -2 if it needs a generic runtime test.
42451         * lib/linkat.c (solaris_optimized_link_immediate,
42452         solaris_optimized_link_follow): New functions.
42453         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
42454         (check_same_link): Use it.
42456 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
42458         New module 'unigbrk/base'.
42459         * modules/unigbrk/base: New file.
42460         * lib/unigbrk.in.h: New file.
42462         New module 'unigbrk/uc-gbrk-prop'.
42463         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
42464         * modules/unigbrk/uc-gbrk-prop: New file.
42465         * lib/unigbrk/gbrkprop.h: New file.
42466         * lib/unigbrk/uc-gbrk-prop.c: New file.
42468         New module 'unigbrk/uc-is-grapheme-break'.
42469         * modules/unigbrk/uc-is-grapheme-break: New file.
42470         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
42471         * lib/unigbrk/uc-is-grapheme-break.c: New file.
42472         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
42473         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
42474         * tests/unigbrk/GraphemeBreakTest.txt: New file.
42476         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
42478 2010-12-27  Bruno Haible  <bruno@clisp.org>
42480         linkat test: Avoid failure on Solaris 11 2010-11.
42481         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
42483 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
42485         utimens: work around glibc rounding bug on more platforms
42486         * lib/utimens.c (fdutimens): Work around rounding bug even if
42487         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
42488         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
42490 2010-12-27  Bruno Haible  <bruno@clisp.org>
42492         select tests: Improve comments.
42493         * tests/test-select.c (do_select): Add comments.
42495 2010-12-27  Bruno Haible  <bruno@clisp.org>
42497         select tests: Safer way of handling timeout.
42498         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
42499         at every invocation.
42501 2010-12-27  Bruno Haible  <bruno@clisp.org>
42503         select tests: Use 'bool' where appropriate.
42504         * tests/test-select.c (connect_to_socket): Change argument type to
42505         'bool'.
42507 2010-12-27  Bruno Haible  <bruno@clisp.org>
42509         select tests: Use existing modules.
42510         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
42511         (configure.ac): Don't test for unistd.h.
42512         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
42513         declared in <unistd.h>.
42515 2010-12-27  Bruno Haible  <bruno@clisp.org>
42517         mbrtowc: Work around a Solaris 7 bug.
42518         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
42519         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
42520         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
42521         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
42522         MBRTOWC_NULL_ARG1_BUG.
42523         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
42524         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
42525         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
42526         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
42528 2010-12-27  Jim Meyering  <meyering@redhat.com>
42530         read-file.c: tweak syntax
42531         * lib/read-file.c (fread_file): Remove space after "*" in function
42532         definitions.
42534 2010-12-27  Bruno Haible  <bruno@clisp.org>
42536         times test: Avoid gcc warnings on OSF/1.
42537         * tests/test-times.c (main): Cast printf arguments from clock_t to
42538         'long int'.
42540 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
42542         utimens: work around glibc rounding bug on older Linux kernels
42543         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
42544         on Linux with a glibc whose utimes might not work, then work
42545         around a longstanding glibc bug involving rounding rather than
42546         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
42547         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
42549 2010-12-26  Bruno Haible  <bruno@clisp.org>
42551         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
42552         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
42553         _GL_CXXALIAS_SYS.
42554         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
42556 2010-12-26  Bruno Haible  <bruno@clisp.org>
42558         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
42559         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
42560         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
42561         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
42562         looking for the declaration.
42563         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
42564         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
42565         problem.
42566         * doc/posix-functions/inet_pton.texi: Likewise.
42568 2010-12-26  Bruno Haible  <bruno@clisp.org>
42570         arpa_inet: Use the common idioms with C++ support.
42571         * lib/arpa_inet.in.h: Include c++defs.h.
42572         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
42573         support.
42574         * modules/arpa_inet (Depends-on): Add c++defs.
42575         (Makefile.am): Substitute the contents of c++defs.h.
42576         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
42577         * modules/arpa_inet-c++-tests: New file.
42578         * tests/test-arpa_inet-c++.cc: New file.
42580 2010-12-25  Bruno Haible  <bruno@clisp.org>
42582         Fix more C++ link errors on Solaris 8.
42583         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
42584         $(LIB_EACCESS).
42585         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
42586         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
42587         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
42588         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
42589         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
42591 2010-12-25  Bruno Haible  <bruno@clisp.org>
42593         printf-posix: Fix link error when a non-GCC compiler is used.
42594         * lib/stdio.in.h (printf): When not using GCC, override printf
42595         correctly.
42596         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
42598 2010-12-25  Bruno Haible  <bruno@clisp.org>
42600         strerror_r-posix: Update doc.
42601         * doc/posix-functions/strerror_r.texi: Update doc about the return
42602         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
42604 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
42606         utimens: simplify the logic of the previous change
42607         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
42608         This should not affect whether the test succeeds or fails.
42610         utimens: configure better on hosts with NFS clock skew
42611         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
42612         uses the clock of the local host.  It might use the clock of the
42613         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
42614         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
42616 2010-12-25  Bruno Haible  <bruno@clisp.org>
42618         ptsname test: Avoid failure on Solaris.
42619         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
42620         open a pseudo-terminal; don't use BSD-style ptys.
42621         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
42623 2010-12-25  Bruno Haible  <bruno@clisp.org>
42625         ptsname: Avoid ERANGE failure on some systems.
42626         * lib/ptsname.c (buffer): Increase size.
42628 2010-12-25  Bruno Haible  <bruno@clisp.org>
42630         rename, renameat: Avoid test failures at NFS mounted locations.
42631         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
42632         so that subsequent mkdir calls succeed.
42634 2010-12-25  Bruno Haible  <bruno@clisp.org>
42636         iswblank: Fix C++ link error on Solaris 8.
42637         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
42638         _GL_FUNCDECL_SYS.
42640 2010-12-25  Bruno Haible  <bruno@clisp.org>
42642         unistd: Fix C++ link error on Solaris 8.
42643         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
42645 2010-12-25  Bruno Haible  <bruno@clisp.org>
42647         readlink doc: Mention an old glibc bug.
42648         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
42650 2010-12-25  Bruno Haible  <bruno@clisp.org>
42652         fcntl-h: Fix for use of C++ on glibc systems.
42653         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
42654         also on glibc systems in C++ mode.
42655         Reported by Gary V. Vaughan <gary@gnu.org>.
42657 2010-12-25  Bruno Haible  <bruno@clisp.org>
42659         roundl-ieee: Make it work on OSF/1 5.1 with cc.
42660         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
42662 2010-12-25  Bruno Haible  <bruno@clisp.org>
42664         truncl-ieee: Make it work on OSF/1 5.1 with cc.
42665         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
42666         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
42667         test whether truncl works according to ISO C 99 with IEC 60559.
42668         * m4/truncl-ieee.m4: New file.
42669         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
42670         m4/signbit.m4.
42671         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
42673 2010-12-25  Bruno Haible  <bruno@clisp.org>
42675         ceill-ieee: Make it work on OSF/1 5.1 with cc.
42676         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
42677         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
42678         test whether ceill works according to ISO C 99 with IEC 60559.
42679         * m4/ceill-ieee.m4: New file.
42680         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
42681         m4/signbit.m4.
42682         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
42684 2010-12-25  Bruno Haible  <bruno@clisp.org>
42686         Ensure all prerequisites of <wchar.h> are included.
42687         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
42688         before <wchar.h>.
42689         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
42690         gl_MBRLEN_NUL_RETVAL): Likewise.
42691         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
42692         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
42693         AC_FUNC_MBRTOWC): Likewise.
42694         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
42695         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
42696         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
42697         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
42698         Likewise.
42699         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
42700         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
42701         (gl_WCHAR_H): Improve comments.
42702         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
42704 2010-12-25  Bruno Haible  <bruno@clisp.org>
42706         strtok_r: Fix C syntax error in autoconf macro.
42707         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
42708         characters in test program.
42710 2010-12-24  Bruno Haible  <bruno@clisp.org>
42712         ceil, trunc, round: Fix gcc warnings.
42713         * lib/ceil.c (MIN): Undefine before redefining.
42714         * lib/trunc.c (MIN): Likewise.
42715         * lib/round.c (MIN): Likewise.
42716         Include <math.h> first.
42718 2010-12-24  Bruno Haible  <bruno@clisp.org>
42720         select tests: Avoid failures on OSF/1 5.1.
42721         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
42722         failure of closing the last socket; it may fail with ECONNRESET.
42724 2010-12-24  Eric Blake  <eblake@redhat.com>
42726         stdint: avoid HP-UX 10.20 preprocessor bug
42727         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
42728         than #if.
42729         * tests/test-floor2.c (main): Likewise.
42730         Reported by Peter O'Gorman.
42732         pipe: make obsoletion transition easier
42733         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
42734         * modules/pipe (Files): Include revived file.
42735         (Include): Drop reference, to mirror getdate's behavior.
42737 2010-12-24  Bruno Haible  <bruno@clisp.org>
42739         sys_socket: Hide mismatch of declarations on NonStop Kernel.
42740         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
42741         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
42742         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
42744 2010-12-24  Bruno Haible  <bruno@clisp.org>
42746         gethostname: Ensure declaration on NonStop Kernel.
42747         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
42748         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
42750 2010-12-24  Bruno Haible  <bruno@clisp.org>
42752         sys_select: Ensure all necessary types on NonStop Kernel.
42753         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
42754         include <sys/time.h>.
42755         * doc/posix-headers/sys_select.texi: Mention that it's missing on
42756         NonStop Kernel.
42757         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
42759 2010-12-24  Bruno Haible  <bruno@clisp.org>
42761         sys_select: Remove unneeded include.
42762         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
42763         have <sys/select.h>.
42765 2010-12-24  Bruno Haible  <bruno@clisp.org>
42767         gethostname: Provide a fallback for HOST_NAME_MAX.
42768         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
42769         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
42770         instead.
42771         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
42773 2010-12-24  Bruno Haible  <bruno@clisp.org>
42775         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
42776         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
42777         (SA_RESTART): Likewise.
42778         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
42780 2010-12-24  Bruno Haible  <bruno@clisp.org>
42782         signal: Define NSIG.
42783         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
42784         * tests/test-signal.c (nsig): New variable.
42785         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
42787 2010-12-24  Bruno Haible  <bruno@clisp.org>
42789         rename, renameat: Avoid test failures on OSF/1 5.1.
42790         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
42791         alternative error codes.
42792         * tests/test-renameat.c (main): Likewise.
42794 2010-12-24  Bruno Haible  <bruno@clisp.org>
42796         *printf: Detect large precisions bug on Solaris 10/SPARC.
42797         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
42798         by Paul Eggert.
42799         * tests/test-snprintf-posix.h (test_function): Add this test code here
42800         too.
42801         * tests/test-sprintf-posix.h (test_function): Likewise.
42802         * tests/test-vasnprintf-posix.c (test_function): Likewise.
42803         * tests/test-vasprintf-posix.c (test_function): Likewise.
42804         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
42805         around by gnulib.
42806         * doc/posix-functions/printf.texi: Likewise.
42807         * doc/posix-functions/snprintf.texi: Likewise.
42808         * doc/posix-functions/sprintf.texi: Likewise.
42809         * doc/posix-functions/vfprintf.texi: Likewise.
42810         * doc/posix-functions/vprintf.texi: Likewise.
42811         * doc/posix-functions/vsnprintf.texi: Likewise.
42812         * doc/posix-functions/vsprintf.texi: Likewise.
42813         * doc/posix-functions/dprintf.texi: Undo last commit.
42814         * doc/posix-functions/vdprintf.texi: Likewise.
42816 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
42818         tests: port test-fdutimensat.c to Solaris 8
42819         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
42820         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
42821         On Solaris 8, it fails with errno == ENOSYS, because there is no
42822         futimens (so it can't use the fd), and there is no lutimens (so it
42823         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
42825         vsnprintf: make more consistent with snprintf; doc fixes
42827         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
42828         the byte count return problem was promoted from the snprintf-posix
42829         to the snprintf module.
42830         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
42831         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
42832         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
42833         * tests/test-snprintf.c (main): Check the byte count returned.
42834         * tests/test-vsnprintf.c (main): Likewise.
42836 2010-12-23  Eric Blake  <eblake@redhat.com>
42838         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
42839         * modules/sigpipe (License): Relax license.
42841 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
42843         doc: document Solaris printf bug with large float precisions
42844         * doc/posix-functions/dprintf.texi (dprintf):
42845         * doc/posix-functions/fprintf.texi (fprintf):
42846         * doc/posix-functions/printf.texi (printf):
42847         * doc/posix-functions/snprintf.texi (snprintf):
42848         * doc/posix-functions/sprintf.texi (sprintf):
42849         * doc/posix-functions/vdprintf.texi (vdprintf):
42850         * doc/posix-functions/vfprintf.texi (vfprintf):
42851         * doc/posix-functions/vprintf.texi (vprintf):
42852         * doc/posix-functions/vsnprintf.texi (vsnprintf):
42853         * doc/posix-functions/vsprintf.texi (vsprintf):
42854         Mention that these functions mishandle large floating point
42855         precisions on Solaris 10.  The same bug is also present in Solaris
42856         8, and I assume earlier.  This causes "cd gnulib-tests; make
42857         check" to fail on Solaris 8 (and I assume, later) when building
42858         the latest coreutils, in test-vasprintf-posix's call to
42859         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
42860         the wide flavors (e.g., wprintf) so this patch just updates the
42861         documentation for the narrow ones.
42863         test-posixtm.c: add two tests
42864         * tests/test-posixtm.c: Add two tests, to highlight the
42865         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
42866         around this bug; this is merely to document it.
42868 2010-12-22  Bruno Haible  <bruno@clisp.org>
42870         getlogin_r: Work around portability problem on OSF/1.
42871         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
42872         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
42873         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
42874         test for a truncated result.
42875         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
42876         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
42877         * modules/getlogin_r (Depends-on): Add memchr.
42878         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
42880 2010-12-22  Bruno Haible  <bruno@clisp.org>
42882         ptsname: Avoid test failure on OSF/1 5.1.
42883         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
42884         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
42885         (same_slave): New function.
42886         (main): Use it to compare ptsname's result with the expected file name.
42888 2010-12-22  Bruno Haible  <bruno@clisp.org>
42890         Port extended stdio modules to HP NonStop Kernel.
42891         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
42892         macros.
42893         * lib/fbufmode.c: Update comments.
42894         * lib/fflush.c: Likewise.
42895         * lib/fpurge.c: Likewise.
42896         * lib/freadable.c: Likewise.
42897         * lib/freadahead.c: Likewise.
42898         * lib/freading.c: Likewise.
42899         * lib/freadptr.c: Likewise.
42900         * lib/freadseek.c: Likewise.
42901         * lib/fseeko.c: Likewise.
42902         * lib/fseterr.c: Likewise.
42903         * lib/fwritable.c: Likewise.
42904         * lib/fwriting.c: Likewise.
42905         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
42907 2010-12-22  Bruno Haible  <bruno@clisp.org>
42909         ttyname_r: Work around bug on OSF/1 5.1.
42910         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
42911         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
42912         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
42913         present.
42914         * lib/ttyname_r.c (ttyname_r): Update comments.
42916 2010-12-22  Bruno Haible  <bruno@clisp.org>
42918         round: Implement result sign according to IEEE 754.
42919         * lib/round.c (MIN, MINUS_ZERO): New macros.
42920         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
42921         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
42922         * tests/test-round-ieee.c (main): Likewise.
42923         * tests/test-roundl-ieee.c (main): Likewise.
42925         trunc: Implement result sign according to IEEE 754.
42926         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
42927         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
42928         * tests/test-trunc2.c: Include minus-zero.h.
42929         (MINUS_ZERO): New macro.
42930         (trunc_reference): Keep in sync with lib/trunc.c.
42931         * tests/test-truncf2.c: Include minus-zero.h.
42932         (MINUS_ZERO): New macro.
42933         (truncf_reference): Keep in sync with lib/trunc.c.
42934         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
42935         * tests/test-trunc-ieee.c (main): Likewise.
42936         * tests/test-truncl-ieee.c (main): Likewise.
42938         ceil: Implement result sign according to IEEE 754.
42939         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
42940         (FUNC): Return -0.0 for -1 < x < 0.
42941         * tests/test-ceil2.c: Include minus-zero.h.
42942         (MINUS_ZERO): New macro.
42943         (ceil_reference): Keep in sync with lib/ceil.c.
42944         * tests/test-ceilf2.c: Include minus-zero.h.
42945         (MINUS_ZERO): New macro.
42946         (ceilf_reference): Keep in sync with lib/ceil.c.
42947         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
42948         * tests/test-ceil-ieee.c (main): Likewise.
42949         * tests/test-ceill-ieee.c (main): Likewise.
42951         floor: Implement result sign according to IEEE 754.
42952         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
42953         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
42954         * tests/test-floorf2.c (floorf_reference): Likewise.
42955         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
42956         * tests/test-floor-ieee.c (main): Likewise.
42957         * tests/test-floorl-ieee.c (main): Likewise.
42959 2010-12-22  Bruno Haible  <bruno@clisp.org>
42961         getaddrinfo: Update doc.
42962         * doc/posix-functions/gai_strerror.texi: Return type is also different
42963         on AIX and HP-UX.
42965 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
42967         getaddrinfo, inet_ntop: Update doc for Solaris.
42968         * doc/posix-functions/gai_strerror.texi: Return type is also an
42969         issue on Solaris 9 and earlier.
42970         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
42971         on Solaris 10 and earlier.
42973 2010-12-21  Bruno Haible  <bruno@clisp.org>
42975         New module 'roundl-ieee'.
42976         * modules/roundl-ieee: New file.
42977         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
42978         test whether roundl works according to ISO C 99 with IEC 60559.
42979         * m4/roundl-ieee.m4: New file.
42980         * modules/roundl-ieee-tests: New file.
42981         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
42982         * tests/test-roundl.c (main): Remove signbit tests.
42983         * modules/roundl-tests (Depends-on): Remove signbit.
42984         * doc/posix-functions/roundl.texi: Mention the new module.
42986 2010-12-21  Bruno Haible  <bruno@clisp.org>
42988         New module 'truncl-ieee'.
42989         * modules/truncl-ieee: New file.
42990         * modules/truncl-ieee-tests: New file.
42991         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
42992         * tests/test-truncl.c (main): Remove signbit tests.
42993         * modules/truncl-tests (Depends-on): Remove signbit.
42994         * doc/posix-functions/truncl.texi: Mention the new module.
42996 2010-12-21  Bruno Haible  <bruno@clisp.org>
42998         New module 'ceill-ieee'.
42999         * modules/ceill-ieee: New file.
43000         * modules/ceill-ieee-tests: New file.
43001         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
43002         * tests/test-ceill.c (main): Remove signbit tests.
43003         * modules/ceill-tests (Depends-on): Remove signbit.
43004         * doc/posix-functions/ceill.texi: Mention the new module.
43006 2010-12-21  Bruno Haible  <bruno@clisp.org>
43008         New module 'floorl-ieee'.
43009         * modules/floorl-ieee: New file.
43010         * modules/floorl-ieee-tests: New file.
43011         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
43012         * tests/test-floorl.c (main): Remove signbit tests.
43013         * modules/floorl-tests (Depends-on): Remove signbit.
43014         * doc/posix-functions/floorl.texi: Mention the new module.
43016 2010-12-21  Bruno Haible  <bruno@clisp.org>
43018         New module 'round-ieee'.
43019         * modules/round-ieee: New file.
43020         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
43021         whether round works according to ISO C 99 with IEC 60559.
43022         * m4/round-ieee.m4: New file.
43023         * modules/round-ieee-tests: New file.
43024         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
43025         * tests/test-round1.c (main): Remove signbit tests.
43026         * modules/round-tests (Depends-on): Remove 'signbit'.
43027         * doc/posix-functions/round.texi: Mention the new module.
43029 2010-12-21  Bruno Haible  <bruno@clisp.org>
43031         New module 'trunc-ieee'.
43032         * modules/trunc-ieee: New file.
43033         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
43034         whether trunc works according to ISO C 99 with IEC 60559.
43035         * m4/trunc-ieee.m4: New file.
43036         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
43037         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
43038         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
43039         * modules/trunc-ieee-tests: New file.
43040         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
43041         * tests/test-trunc1.c (main): Remove signbit tests.
43042         * modules/trunc-tests (Depends-on): Remove 'signbit'.
43043         * doc/posix-functions/trunc.texi: Mention the new module.
43045 2010-12-21  Bruno Haible  <bruno@clisp.org>
43047         New module 'ceil-ieee'.
43048         * modules/ceil-ieee: New file.
43049         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
43050         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
43051         ISO C 99 with IEC 60559.
43052         * m4/ceil-ieee.m4: New file.
43053         * modules/ceil (Files): Add lib/ceil.c.
43054         (Depends-on): Add 'float'.
43055         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
43056         * lib/math.in.h (ceil): New declaration.
43057         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
43058         REPLACE_CEIL.
43059         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
43060         * modules/ceil-ieee-tests: New file.
43061         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
43062         * tests/test-math-c++.cc: Check the signature of 'ceil'.
43063         * doc/posix-functions/ceil.texi: Mention the new module.
43065 2010-12-21  Bruno Haible  <bruno@clisp.org>
43067         New module 'floor-ieee'.
43068         * modules/floor-ieee: New file.
43069         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
43070         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
43071         ISO C 99 with IEC 60559.
43072         * m4/floor-ieee.m4: New file.
43073         * modules/floor (Files): Add lib/floor.c.
43074         (Depends-on): Add 'float'.
43075         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
43076         * lib/math.in.h (floor): New declaration.
43077         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
43078         REPLACE_FLOOR.
43079         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
43080         * modules/floor-ieee-tests: New file.
43081         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
43082         * tests/test-math-c++.cc: Check the signature of 'floor'.
43083         * doc/posix-functions/floor.texi: Mention the new module.
43085 2010-12-21  Bruno Haible  <bruno@clisp.org>
43087         New module 'roundf-ieee'.
43088         * modules/roundf-ieee: New file.
43089         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
43090         test whether roundf works according to ISO C 99 with IEC 60559.
43091         * m4/roundf-ieee.m4: New file.
43092         * modules/roundf-ieee-tests: New file.
43093         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
43094         * tests/test-roundf1.c (main): Remove signbit tests.
43095         * modules/roundf-tests (Depends-on): Remove 'signbit'.
43096         * doc/posix-functions/roundf.texi: Mention the new module.
43098 2010-12-21  Bruno Haible  <bruno@clisp.org>
43100         New module 'truncf-ieee'.
43101         * modules/truncf-ieee: New file.
43102         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
43103         test whether truncf works according to ISO C 99 with IEC 60559.
43104         * m4/truncf-ieee.m4: New file.
43105         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
43106         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
43107         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
43108         * modules/truncf-ieee-tests: New file.
43109         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
43110         * tests/test-truncf1.c (main): Remove signbit tests.
43111         * modules/truncf-tests (Depends-on): Remove 'signbit'.
43112         * doc/posix-functions/truncf.texi: Mention the new module.
43114 2010-12-21  Bruno Haible  <bruno@clisp.org>
43116         New module 'ceilf-ieee'.
43117         * modules/ceilf-ieee: New file.
43118         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
43119         test whether ceilf works according to ISO C 99 with IEC 60559.
43120         * m4/ceilf-ieee.m4: New file.
43121         * modules/ceilf-ieee-tests: New file.
43122         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
43123         * tests/test-ceilf1.c (main): Remove signbit tests.
43124         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
43125         * doc/posix-functions/ceilf.texi: Mention the new module.
43127 2010-12-21  Bruno Haible  <bruno@clisp.org>
43129         New module 'floorf-ieee'.
43130         * modules/floorf-ieee: New file.
43131         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
43132         test whether floorf works according to ISO C 99 with IEC 60559.
43133         * m4/floorf-ieee.m4: New file.
43134         * modules/floorf-ieee-tests: New file.
43135         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
43136         * tests/test-floorf1.c (main): Remove signbit tests.
43137         * modules/floorf-tests (Depends-on): Remove 'signbit'.
43138         * doc/posix-functions/floorf.texi: Mention the new module.
43140 2010-12-21  Bruno Haible  <bruno@clisp.org>
43142         Support for minus zero in autoconf macros.
43143         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
43144         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
43145         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
43146         * tests/minus-zero.h: Update comments.
43148 2010-12-21  Bruno Haible  <bruno@clisp.org>
43150         Tests for module 'ceil'.
43151         * modules/ceil-tests: New file.
43152         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
43153         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
43155 2010-12-21  Bruno Haible  <bruno@clisp.org>
43157         Tests for module 'floor'.
43158         * modules/floor-tests: New file.
43159         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
43160         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
43162 2010-12-21  Bruno Haible  <bruno@clisp.org>
43164         math: Fix indentation.
43165         * lib/math.in.h (floorf): Fix indentation.
43167 2010-12-21  Bruno Haible  <bruno@clisp.org>
43169         Fix cross-compilation guesses on Solaris.
43170         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
43171         not match "solaris2.10".
43172         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
43173         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
43174         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
43176 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
43178         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
43179         This fixes a problem observed with the latest coreutils snapshot
43180         that caused a test to fail on Solaris 8.  src/csplit.c's call
43181         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
43182         earlier, instead of returning the number of bytes that would have
43183         been generated; this causes csplit to incorrectly report memory
43184         exhaustion.
43185         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
43186         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
43187         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
43188         comments to match.
43189         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
43190         Fix typo in matching older versions of Solaris: "solaris2.10"
43191         is matched by the shell pattern "solaris2.[0-9]*".  This matters
43192         only for guessing while cross-compiling.
43193         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
43195 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
43197         ftoastr: fix comment again
43198         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
43199         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
43200         Also, simplify example a bit by using flags = 0.
43202 2010-12-20  Bruno Haible  <bruno@clisp.org>
43204         round*, trunc*: Update documentation regarding glibc.
43205         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
43206         * doc/posix-functions/round.texi: Likewise.
43207         * doc/posix-functions/roundl.texi: Likewise.
43208         * doc/posix-functions/truncf.texi: Likewise.
43209         * doc/posix-functions/trunc.texi: Likewise.
43210         * doc/posix-functions/truncl.texi: Likewise.
43212 2010-12-20  Bruno Haible  <bruno@clisp.org>
43214         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
43215         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
43216         * doc/posix-functions/round.texi: Likewise.
43217         * doc/posix-functions/roundl.texi: Likewise.
43219 2010-12-20  Bruno Haible  <bruno@clisp.org>
43221         ttyname_r: Add missing declaration on HP-UX 11.
43222         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
43223         HAVE_TTYNAME_R.
43224         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
43225         declared. Set HAVE_TTYNAME_R always.
43226         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43227         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
43228         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
43229         HAVE_TTYNAME_R.
43230         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
43232 2010-12-20  Bruno Haible  <bruno@clisp.org>
43234         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
43235         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
43236         * doc/posix-functions/getlogin_r.texi: Likewise.
43237         * tests/test-getlogin.c: Include <errno.h>.
43238         (main): Avoid test failure on HP-UX 11.11.
43239         * tests/test-getlogin_r.c (main): Likewise.
43241 2010-12-20  Bruno Haible  <bruno@clisp.org>
43243         getlogin_r: Add missing declaration on HP-UX 11.
43244         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
43245         declared also when it exists as a function.
43246         * doc/posix-functions/getlogin_r.texi: Document this workaround.
43248 2010-12-20  Bruno Haible  <bruno@clisp.org>
43250         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
43251         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
43252         through wcrtomb.
43254 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
43256         ftoastr: fix comment
43257         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
43258         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
43260 2010-12-19  Bruno Haible  <bruno@clisp.org>
43262         isnan: Ensure it is a macro.
43263         * lib/math.in.h (isnan): Define as a macro if not already a macro.
43264         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
43265         Solaris.
43267 2010-12-19  Bruno Haible  <bruno@clisp.org>
43269         ldexpl test: Fix link error on OSF/1 5.1.
43270         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
43272 2010-12-19  Bruno Haible  <bruno@clisp.org>
43274         wctype: Make it work in C++ mode on OSF/1 5.1.
43275         * lib/wctype.in.h (iswblank): Declare but not define here.
43276         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
43277         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
43278         * modules/wctype (Files): Add lib/iswblank.c.
43280 2010-12-19  Bruno Haible  <bruno@clisp.org>
43282         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
43283         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
43284         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
43286 2010-12-19  Bruno Haible  <bruno@clisp.org>
43288         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
43289         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
43290         _POSIX_PII_SOCKET.
43291         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
43292         * doc/posix-functions/recvfrom.texi: Likewise.
43293         * doc/posix-functions/send.texi: Likewise.
43294         * doc/posix-functions/sendto.texi: Likewise.
43296 2010-12-19  Bruno Haible  <bruno@clisp.org>
43298         tcgetsid: Add missing declaration on OSF/1 5.1.
43299         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
43300         HAVE_TCGETSID.
43301         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
43302         Don't set HAVE_TCGETSID.
43303         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
43304         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
43305         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
43306         HAVE_TCGETSID.
43307         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
43309 2010-12-19  Bruno Haible  <bruno@clisp.org>
43311         stdio: Fix problem with popen() declaration on OSF/1 5.1.
43312         * lib/stdio.in.h: During the include_next statement, let recursive
43313         includes of this file include only the system header file.
43315 2010-12-19  Bruno Haible  <bruno@clisp.org>
43317         iconv_open: Fix regression from 2010-12-04.
43318         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
43319         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
43321 2010-12-19  Bruno Haible  <bruno@clisp.org>
43323         stdbool test: Avoid a gcc warning.
43324         * tests/test-stdbool.c (main): Fail if e1 is false.
43325         Reported by Jim Meyering.
43327 2010-12-19  Jim Meyering  <meyering@redhat.com>
43329         setenv: restore to working order
43330         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
43331         mistakenly removed.
43332         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
43333         HAVE_SETENV.
43334         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
43335         HAVE_SETENV.
43337 2010-12-19  Bruno Haible  <bruno@clisp.org>
43339         Document some different function declarations on OSF/1 5.1.
43340         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
43341         * doc/posix-functions/inet_ntop.texi: Likewise.
43342         * doc/posix-functions/gethostname.texi: Likewise.
43343         * lib/unistd.in.h (gethostname): Update comment.
43345 2010-12-19  Bruno Haible  <bruno@clisp.org>
43347         doc: Mention vasprintf-posix module.
43348         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
43349         the 'vasprintf-posix' module.
43350         * doc/glibc-functions/vasprintf.texi: Likewise.
43352 2010-12-19  Bruno Haible  <bruno@clisp.org>
43354         unsetenv: Add missing declaration on OSF/1 5.1.
43355         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
43356         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
43357         Don't set HAVE_UNSETENV. In the test program, set _BSD.
43358         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
43359         not HAVE_UNSETENV.
43360         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
43361         HAVE_UNSETENV.
43362         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
43364 2010-12-19  Bruno Haible  <bruno@clisp.org>
43366         setenv: Add missing declaration on OSF/1 5.1.
43367         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
43368         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
43369         declared. Don't set HAVE_SETENV.
43370         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
43371         not HAVE_SETENV.
43372         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
43373         HAVE_SETENV.
43374         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
43376 2010-12-19  Bruno Haible  <bruno@clisp.org>
43378         nl_langinfo tests: Avoid gcc warning.
43379         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
43381 2010-12-19  Bruno Haible  <bruno@clisp.org>
43383         mknod: Avoid error in C++ mode on OSF/1 with GCC.
43384         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
43385         _GL_CXXALIAS_SYS.
43387 2010-12-19  Bruno Haible  <bruno@clisp.org>
43389         stdbool: Relax test.
43390         * tests/test-stdbool.c (e): Don't require that casts from a variable's
43391         address to 'bool' work in static initializer, for compilers other than
43392         GCC.
43394 2010-12-19  Bruno Haible  <bruno@clisp.org>
43396         ftello: Add missing declaration on OSF/1 5.1.
43397         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
43398         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
43399         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
43400         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
43401         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
43403 2010-12-19  Bruno Haible  <bruno@clisp.org>
43405         fseeko: Add missing declaration on OSF/1 5.1.
43406         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
43407         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
43408         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
43409         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
43410         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
43412 2010-12-19  Bruno Haible  <bruno@clisp.org>
43414         fchdir: Add missing declaration on OSF/1 5.1.
43415         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
43416         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
43417         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
43418         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
43419         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
43421 2010-12-19  Bruno Haible  <bruno@clisp.org>
43423         relocatable-prog-wrapper: Separate from relocatable-prog.
43424         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
43425         uninstall-relocwrapper rule here.
43426         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
43427         Reported by Ian Beckwith <ianb@erislabs.net>.
43429 2010-12-19  Bruno Haible  <bruno@clisp.org>
43431         unistr/u8-mbsnlen: Add missing dependency.
43432         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
43433         Reported by Ian Beckwith <ianb@erislabs.net>.
43435 2010-12-19  Bruno Haible  <bruno@clisp.org>
43437         iconv: Make it possible again to use this module without 'iconv-h'.
43438         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
43439         if it is not defined.
43440         Reported by Ian Beckwith <ianb@erislabs.net>.
43442 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
43444         acl: port to Solaris 8 when copying from tmpfs to ufs
43445         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
43446         error number.  Problem observed on Solaris 8 with latest
43447         coreutils, with "mv A B", where A is on a tmpfs file system and B
43448         is on a ufs file system.  This caused coreutils' mv/part-symlink
43449         test to fail.
43451         tests: set fail=0 at start
43452         * tests/init.sh (setup_): Move fail=0 initialization here ...
43453         (mktempd_): ... from here, so that tests can rely on fail being
43454         set to 0 initially.  This fixes a problem in coreutils; see:
43455         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
43457 2010-12-18  Bruno Haible  <bruno@clisp.org>
43459         memmem-simple: Stylistic changes.
43460         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
43461         Fix preprocessor directive indentation.
43463 2010-12-15  Pádraig Brady  <P@draigBrady.com>
43465         memmem, memmem-simple: reorganize and expand empty needle check
43466         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
43467         functional checks to memmem-simple so that one has a fully functional
43468         memmem by using just this module.
43469         Restrict the performance only check to the memmem module.
43470         Also expand the empty needle check to ensure the correct
43471         pointer is returned, not just a non NULL pointer.
43472         * doc/glibc-functions/memmem.texi: Rearrange the portability
43473         documentation to correlate with the rearranged checks.
43474         Clarify exactly how the memmem and memmem-simple modules
43475         relate to each other.
43477 2010-12-15  Pádraig Brady  <P@draigBrady.com>
43478             Bruno Haible  <bruno@clisp.org>
43480         Improve cross-compilation guesses for uClibc.
43481         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
43482         that uClibc does not have the glibc bug.
43483         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
43484         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
43486 2010-12-14  Eric Blake  <eblake@redhat.com>
43488         configmake: provide fallbacks for oldest supported autotools
43489         * m4/configmake.m4: New file.
43490         * modules/configmake (Files): Ship it.
43491         (configure.ac): Use it to guarantee fallbacks.
43493 2010-12-13  Pádraig Brady  <P@draigBrady.com>
43495         read-file: Improve handling of large files
43496         * lib/read-file.c (fread_file): Minimize realloc()s
43497         for regular files, and better manage sizes around SIZE_MAX.
43499 2010-12-13  Eric Blake  <eblake@redhat.com>
43501         cloexec, fcntl: relax license
43502         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
43503         consent from all contributors.
43504         * modules/fcntl (License): Likewise.
43506 2010-12-10  Bruno Haible  <bruno@clisp.org>
43508         Tests for module 'pipe-posix'.
43509         * modules/pipe-posix-tests: New file.
43510         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
43512 2010-12-10  Bruno Haible  <bruno@clisp.org>
43514         pipe-posix: Make it work in C++ mode.
43515         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
43516         (pipe): Use common idiom, not a macro definition.
43517         * lib/pipe.c: New file.
43518         * m4/pipe.m4: New file.
43519         * modules/pipe-posix (Description): Enhance.
43520         (Files): Add lib/pipe.c, m4/pipe.m4.
43521         (configure.ac): Invoke gl_FUNC_PIPE.
43522         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
43523         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
43524         * tests/test-unistd-c++.cc: Check the signature of pipe.
43526 2010-12-10  Bruno Haible  <bruno@clisp.org>
43528         Rename module 'pipe' to 'spawn-pipe'.
43529         * modules/spawn-pipe: New file, renamed from modules/pipe.
43530         (Files, configure.ac, Makefile.am): Update.
43531         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
43532         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
43533         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
43534         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
43535         "spawn-pipe.h" instead of "pipe.h".
43536         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
43537         to gl_SPAWN_PIPE.
43538         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
43539         (Files, Makefile.am): Update.
43540         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
43541         Update.
43542         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
43543         Include "spawn-pipe.h" instead of "pipe.h".
43544         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
43545         * lib/javacomp.c: Likewise.
43546         * lib/javaversion.c: Likewise.
43547         * lib/pipe-filter-gi.c: Likewise.
43548         * lib/pipe-filter-ii.c: Likewise.
43549         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
43550         * modules/javacomp (Depends-on): Likewise.
43551         * modules/javaversion (Depends-on): Likewise.
43552         * modules/pipe-filter-gi (Depends-on): Likewise.
43553         * modules/pipe-filter-ii (Depends-on): Likewise.
43554         * MODULES.html.sh (Executing programs): Update.
43555         * NEWS: Mention the change.
43557 2010-12-10  Eric Blake  <eblake@redhat.com>
43559         pipe-posix: new module
43560         * modules/pipe-posix: New file.
43561         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
43562         (gl_UNISTD_H): Check for declaration.
43563         * modules/unistd (Makefile.am): Substitute it.
43564         * lib/unistd.in.h (pipe): Provide it for mingw.
43565         * doc/posix-functions/pipe.texi (pipe): Update documentation.
43566         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
43568 2010-12-07  Bruno Haible  <bruno@clisp.org>
43570         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
43571         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
43572         u8_strcmp_gnu.
43573         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
43575 2010-12-06  Bruno Haible  <bruno@clisp.org>
43577         Update internal documentation.
43578         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
43580 2010-12-04  Bruno Haible  <bruno@clisp.org>
43582         Put more information about failed tests into the test return codes.
43583         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
43584         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
43585         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
43586         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
43587         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
43588         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
43589         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
43590         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
43591         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
43592         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43593         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
43594         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
43595         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
43596         * m4/stdint.m4 (gl_STDINT_H): Likewise.
43597         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
43598         returns a bit mask.
43599         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
43600         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
43601         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
43602         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
43603         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
43604         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
43605         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
43606         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
43607         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
43608         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
43609         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
43610         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
43611         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
43612         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
43613         * m4/link.m4 (gl_FUNC_LINK): Likewise.
43614         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
43615         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
43616         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
43617         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
43618         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
43619         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
43620         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
43621         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
43622         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
43623         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
43624         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
43625         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
43626         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
43627         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
43628         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
43629         gl_PRINTF_PRECISION): Likewise.
43630         * m4/regex.m4 (gl_REGEX): Likewise.
43631         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
43632         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
43633         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
43634         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
43635         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
43636         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43637         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
43638         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
43639         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
43640         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
43641         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
43642         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
43643         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
43644         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
43645         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
43646         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
43647         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
43648         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
43649         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
43650         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
43651         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
43652         enumerated value.
43653         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
43655 2010-12-04  Bruno Haible  <bruno@clisp.org>
43657         Update for Solaris 11 2010-11.
43658         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
43659         Express, released in November 2010.
43661 2010-12-04  Bruno Haible  <bruno@clisp.org>
43663         nproc: Relax license.
43664         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
43665         and Paul Eggert.
43666         Requested by Ludovic Courtès <ludo@gnu.org>.
43668 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
43670         utimecmp: fine-grained src to nearby coarse-grained dest
43672         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
43673         and the source is on a file system with higher-resolution time
43674         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
43675         not work, and the time stamps are close together, the algorithm to
43676         determine the exact resolution from the read-back mtime was buggy:
43677         it had a "!=" where it should have had an "==".  This bug has been
43678         in the code ever since it was introduced to gnulib.
43679         Problem reported by Dan Jacobson in
43680         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
43682 2010-11-30  Bruno Haible  <bruno@clisp.org>
43684         strerror_r-posix: Fix autoconf test.
43685         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
43687 2010-11-28  Bruno Haible  <bruno@clisp.org>
43688             Paul Eggert  <eggert@cs.ucla.edu>
43690         Tests for module 'getdomainname'.
43691         * modules/getdomainname-tests: New file.
43692         * tests/test-getdomainname.c: New file, based on
43693         tests/test-gethostname.c.
43695 2010-11-28  Bruno Haible  <bruno@clisp.org>
43696             Paul Eggert  <eggert@cs.ucla.edu>
43698         getdomainname: Use the system function when possible.
43699         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
43700         (getdomainname): Replace if needed. Provide the declaration if it is
43701         missing. Don't use _GL_CXXALIAS_SYS_CAST.
43702         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
43703         (getdomainname): When the system has getdomainname, call the system
43704         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
43705         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
43706         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
43707         found in libnsl. Look for the declaration also in <netdb.h>. Replace
43708         the function if its second argument is of type 'int' or if it is found
43709         in libnsl.
43710         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
43711         <sys/systeminfo.h> and sysinfo().
43712         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
43713         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43714         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
43715         HAVE_GETDOMAINNAME.
43716         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
43717         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
43718         * doc/glibc-functions/getdomainname.texi: Document the problems with
43719         the getdomainname declaration.
43721 2010-11-28  Bruno Haible  <bruno@clisp.org>
43723         sys_socket: Ensure ss_family field on AIX.
43724         * lib/sys_socket.in.h (ss_family): New macro definition.
43725         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
43726         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
43727         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
43728         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
43729         * modules/sys_socket (Makefile.am): Substitute
43730         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
43731         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
43733 2010-11-27  Bruno Haible  <bruno@clisp.org>
43735         readline: Improve configure output.
43736         * m4/readline.m4 (gl_FUNC_READLINE): Make the
43737         "checking for readline..." result understandable.
43739 2010-11-27  Bruno Haible  <bruno@clisp.org>
43741         *printf-posix: Detect a bug on Solaris 10/x86.
43742         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
43743         for floating-point output.
43744         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
43745         directive.
43746         * tests/test-snprintf-posix.h (test_function): Likewise.
43747         * tests/test-sprintf-posix.h (test_function): Likewise.
43748         * tests/test-vasprintf-posix.c (test_function): Likewise.
43749         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
43750         * doc/posix-functions/printf.texi: Likewise.
43751         * doc/posix-functions/snprintf.texi: Likewise.
43752         * doc/posix-functions/sprintf.texi: Likewise.
43753         * doc/posix-functions/vfprintf.texi: Likewise.
43754         * doc/posix-functions/vprintf.texi: Likewise.
43755         * doc/posix-functions/vsnprintf.texi: Likewise.
43756         * doc/posix-functions/vsprintf.texi: Likewise.
43757         * doc/glibc-functions/obstack_printf.texi: Likewise.
43758         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
43760 2010-11-27  Bruno Haible  <bruno@clisp.org>
43762         Fix link error when module libunistring-optional is in use.
43763         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
43764         * modules/striconveha-tests (Makefile.am): Likewise.
43766 2010-11-27  Bruno Haible  <bruno@clisp.org>
43768         regex: Mention link dependencies.
43769         * modules/regex (Link): New section.
43770         * modules/rpmatch (Link): Likewise.
43771         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
43773 2010-11-27  Bruno Haible  <bruno@clisp.org>
43775         ftoastr: Fix compilation error on Solaris.
43776         * lib/ftoastr.c: Include <config.h>.
43778 2010-11-27  Bruno Haible  <bruno@clisp.org>
43780         getloadavg: Update documentation.
43781         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
43783 2010-11-27  Bruno Haible  <bruno@clisp.org>
43785         sys_socket: Fix test whether the functions are declared.
43786         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
43787         not <sys/select.h>.
43789 2010-11-27  Bruno Haible  <bruno@clisp.org>
43791         getpass: Make sure to get system declaration on some platforms.
43792         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
43793         gl_USE_SYSTEM_EXTENSIONS.
43794         * modules/getpass (Depends-on): Add extensions.
43796 2010-11-26  Bruno Haible  <bruno@clisp.org>
43798         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
43799         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
43800         'iconv' module is present.
43801         (ICONV_CONST): New macro.
43802         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
43803         ICONV_CONST.
43804         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
43805         set ICONV_CONST.
43806         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
43807         here.
43808         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
43809         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
43810         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
43811         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
43812         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
43813         present.
43815 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
43817         ftoastr: comment fix
43818         * lib/ftoastr.c: "little" -> "little or no" in comment
43820 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
43822         stdint: port to GCC 4.3 + OSX + Octave
43823         On this platform, stdint.h is buggy and defines int64_t to long
43824         long int.  The replacement defined it to long int, causing
43825         problems with C++ style name mangling.  Instead, trust the system
43826         definition if INT64_MAX is defined, and likewise for the unsigned
43827         variant.   Problem reported by Jarno Rajahalme in
43828         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
43829         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
43830         and don't mess with int64_t and INT64_MAX in this case.
43831         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
43833 2010-11-24  Bruno Haible  <bruno@clisp.org>
43835         doc: Corrections regarding MacOS X 10.4 and 10.5.
43836         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
43837         MacOS X.
43838         Reported by Simon Josefsson.
43840 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
43842         Uninstall ".bin" files installed by relocwrapper.
43843         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
43844         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
43845         unless it is already there.
43847 2010-11-21  Bruno Haible  <bruno@clisp.org>
43849         Update for NetBSD 5.0.
43850         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
43851         NetBSD; the test fails on NetBSD 5.0.
43852         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
43853         about NetBSD.
43855 2010-11-21  Bruno Haible  <bruno@clisp.org>
43857         Update for HP-UX 11.23 and HP-UX 11.31.
43858         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
43859         HP-UX.
43861 2010-11-21  Bruno Haible  <bruno@clisp.org>
43863         Update for MacOS X 10.5.
43864         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
43865         MacOS X; the test fails on MacOS X 10.5.8.
43866         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
43867         about MacOS X.
43869 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
43871         bootstrap: add bootstrap_sync option.
43872         See discussion at
43873         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
43874         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
43875         * build-aux/bootstrap: Accept --bootstrap-sync to update
43876         bootstrap if it is not identical to the local gnulib's
43877         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
43878         enable this by default.  Accept --no-bootstrap-sync to disable
43879         it.
43881 2010-11-20  Bruno Haible  <bruno@clisp.org>
43883         Ensure that <features.h> is included before __GLIBC__ is tested.
43884         * lib/printf-parse.h: Include <features.h>.
43885         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
43886         Reported by Mike Frysinger <vapier@gentoo.org>.
43888         Ensure that <features.h> is included before __GLIBC__ is tested.
43889         * lib/wchar.in.h: Include <features.h>.
43890         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
43891         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
43892         Reported by Mike Frysinger <vapier@gentoo.org>.
43894         Ensure that <features.h> is included before __GLIBC__ is tested.
43895         * lib/arpa_inet.in.h: Include <features.h>.
43896         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
43897         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
43898         Reported by Mike Frysinger <vapier@gentoo.org>.
43900         Ensure that <features.h> is included before __GLIBC__ is tested.
43901         * build-aux/link-warning.h: Include <features.h>.
43902         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
43903         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
43904         Reported by Mike Frysinger <vapier@gentoo.org>.
43906         Ensure that <features.h> is included before __GLIBC__ is tested.
43907         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
43908         Reported by Mike Frysinger <vapier@gentoo.org>.
43910 2010-11-20  Bruno Haible  <bruno@clisp.org>
43912         memmem: Fix autoconf test.
43913         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
43915 2010-11-20  Bruno Haible  <bruno@clisp.org>
43917         Port to uClibc.
43918         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
43919         * lib/fcntl.in.h: Likewise.
43920         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
43921         * lib/mbrtowc.c (mbrtowc): Likewise.
43922         * lib/relocatable.c (find_shared_library_fullname): Likewise.
43923         * lib/strerror_r.c: Likewise.
43924         * lib/unistr/u8-strnlen.c: Likewise.
43925         * lib/vasnprintf.c (decimal_point_char): Likewise.
43926         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
43927         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
43928         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
43929         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
43930         * tests/test-sigaction.c (handler, main): Likewise.
43931         * lib/freading.h: Treat uClibc like a non-glibc platform.
43932         * lib/freading.c: Likewise.
43933         * lib/gettext.h: Likewise.
43934         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
43935         Likewise.
43936         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
43937         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
43938         * lib/propername.c (proper_name_utf8): Likewise.
43939         * lib/spawn.in.h: Likewise.
43940         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
43941         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
43942         mem_cd_iconveh_internal): Likewise.
43943         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
43944         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
43945         strstr, strcasestr): Likewise.
43946         * lib/unicodeio.c (unicode_to_mb): Likewise.
43947         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
43948         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
43949         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
43950         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
43951         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
43952         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
43953         * lib/unistr/u8-stpncpy.c: Likewise.
43954         * lib/vasnprintf.c (VASNPRINTF): Likewise.
43955         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
43956         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
43957         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
43958         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
43959         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
43960         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
43961         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
43962         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
43963         Likewise.
43964         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
43965         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
43966         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
43967         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
43968         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
43969         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
43970         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
43971         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
43972         * tests/test-getopt.h (OPTIND_MIN): Likewise.
43973         * tests/test-striconveha.c (main): Likewise.
43974         * tests/test-vasnprintf-posix.c (test_function): Likewise.
43975         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
43976         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
43977         * doc/posix-functions/getline.texi: Likewise.
43978         Reported by Mike Frysinger <vapier@gentoo.org>.
43980 2010-11-20  Bruno Haible  <bruno@clisp.org>
43982         nproc: Fix condition.
43983         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
43984         HAVE_PTHREAD_AFFINITY_NP.
43986 2010-11-20  Bruno Haible  <bruno@clisp.org>
43988         Fix a comment.
43989         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
43991 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
43993         ftoastr: don't assume snprintf
43994         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
43995         Implement a subset of snprintf here, by using sprintf safely.
43996         * modules/ftoastr (Depends-on): Remove snprintf.
43998 2010-11-19  Jim Meyering  <meyering@redhat.com>
44000         test-rename.h: fix compilation failure
44001         * tests/test-rename.h (test_rename): Add omitted "}".
44003 2010-11-17  Jim Meyering  <meyering@redhat.com>
44005         maint.mk: add a URL discussing the no-@acronym policy
44006         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
44008 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
44010         ftoastr: depend on snprintf, improve comments
44011         * lib/ftoastr.c: Also mention Loitsch's draft.
44012         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
44013         needed in the current implementation, but it might simplify
44014         speeding up the code later.
44015         * modules/ftoastr: Depend on snprintf; this improves portability.
44016         Suggested by Bruno Haible in the same email.
44018         ftoastr: port to hosts lacking strtof and strtold
44019         Problem reported by Bruno Haible in
44020         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
44021         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
44022         environment and strtold (and presumably strtof) are not available.
44023         * modules/ftoastr (Files): Add m4/c-strtod.m4.
44024         (configure.ac): Require gl_C99_STRTOLD.
44026 2010-11-18  Bruno Haible  <bruno@clisp.org>
44028         c-strtold: Avoid link error on AIX 7.
44029         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
44030         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
44031         (gl_C_STRTOLD): Test whether strtold_l exists.
44032         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44034 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
44036         intprops: new macro INT_BITS_STRLEN_BOUND
44037         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
44038         ftoastr.h.  This exposes an internal of intprops.h that was formerly
44039         not exposed.  Also, it uses a slightly tighter bound than before;
44040         though this makes no practical difference, we might as well be as
44041         tight as we easily can.
44043         ftoastr: new module, for lossless conversion of floats to short strings
44044         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
44045         * modules/ftoastr: New files.
44047 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
44049         bootstrap: port to Solaris sed
44050         * build-aux/bootstrap (get_version): Port to Solaris sed.
44051         See Ralf Wildenhues's note in
44052         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
44054 2010-11-14  Jim Meyering  <meyering@redhat.com>
44056         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
44057         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
44058         and move definition closer to sole use.
44060 2010-11-13  Jim Meyering  <meyering@redhat.com>
44062         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
44063         Now we require at least autoconf-2.59, which means the work-around
44064         is no longer needed.
44065         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
44066         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
44067         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
44068         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
44069         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
44071 2010-11-13  Bruno Haible  <bruno@clisp.org>
44073         rename, renameat: Avoid test failures at NFS mounted locations.
44074         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
44075         functions.
44076         (test_rename): Use assert_nonexistent.
44077         * tests/test-rename.c: Include <dirent.h>.
44078         * tests/test-renameat.c: Likewise.
44079         Reported by Gary V. Vaughan <gary@gnu.org>.
44081         rename, renameat: Document Linux bug with NFS
44082         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
44083         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
44084         * doc/posix-functions/renameat.texi: Likewise.
44085         Suggested by Eric Blake.
44087 2010-11-13  Bruno Haible  <bruno@clisp.org>
44089         rename test: Add comments.
44090         * tests/test-rename.h (test_rename): Add structure and comments.
44092 2010-11-13  Eric Blake  <eblake@redhat.com>
44094         maintainer-makefile: cover a few more files
44095         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
44096         scripts generated within C files, for libvirt.
44098 2010-11-13  Bruno Haible  <bruno@clisp.org>
44100         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
44101         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
44102         character, return the number of bytes that belong together, not always
44103         1.
44104         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
44105         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
44106         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
44107         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
44108         number of bytes of an invalid character.
44109         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
44110         (main): Invoke it.
44111         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
44112         results.
44113         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
44114         malformed byte sequences.
44115         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
44116         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
44117         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
44118         Reported by Ben Pfaff and Paolo Bonzini.
44120 2010-11-13  Bruno Haible  <bruno@clisp.org>
44122         openat: Work around glibc bug with fchownat() and empty file names.
44123         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
44124         (gl_FUNC_FCHOWNAT): Invoke it.
44125         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
44126         * doc/posix-functions/fchownat.texi: Document the glibc bug.
44127         Reported by Gary V. Vaughan <gary@gnu.org>.
44129 2010-11-13  Bruno Haible  <bruno@clisp.org>
44131         openat: Ensure autoconf macro ordering.
44132         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
44133         gl_USE_SYSTEM_EXTENSIONS.
44134         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
44136 2010-11-13  Bruno Haible  <bruno@clisp.org>
44138         Update comments.
44139         * lib/unistr/u8-check.c: Update file name in comments.
44140         * lib/unistr/u8-mblen.c: Likewise.
44141         * lib/unistr/u8-prev.c: Likewise.
44142         * lib/unistr/u8-strmblen.c: Likewise.
44143         * lib/unistr/u8-strmbtouc.c: Likewise.
44145 2010-11-13  Jim Meyering  <meyering@redhat.com>
44147         tests: avoid test failure on Solaris 10 due to lack of PATH export
44148         * tests/test-update-copyright.sh: Don't forget to export PATH.
44150         init.sh: ensure that IFS is defined, just in case...
44151         * tests/init.sh (setup_): Ensure that IFS is defined,
44152         so that saving and restoring it works as expected.  This
44153         appears to be useful at least for an old version of dash
44154         from a long time ago (RH 6).  See here for details:
44155         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
44157         maint.mk: tighten "test a == b" check
44158         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
44159         test to files that contain something like #!/bin/sh.
44160         Without this, coreutils would get two false positives in
44161         the comments of C source files.
44163 2010-11-12  Eric Blake  <eblake@redhat.com>
44165         bootstrap: fix typo in previous attempt
44166         * build-aux/bootstrap (buildreq): Correct the grouping.
44167         Reported by Paul Eggert.
44169         maintainer-makefile: prohibit test x == x
44170         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
44171         Based on a report by Matthias Bolte.
44173         bootstrap: allow FreeBSD gzip
44174         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
44175         which has no '.' and goes to stderr.
44176         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
44177         Reported by Matthias Bolte.
44179         maintainer-makefile: check for i18n setup
44180         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
44181         will likely work.
44183 2010-11-12  Bruno Haible  <bruno@clisp.org>
44185         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
44186         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
44187         * lib/nanosleep.c (nanosleep): Likewise.
44189 2010-11-11  Bruno Haible  <bruno@clisp.org>
44191         fcntl-h: Fix for use of C++ on glibc systems.
44192         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
44193         also on glibc systems in C++ mode.
44194         Reported by Gary V. Vaughan <gary@gnu.org>.
44196 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
44198         mknod: avoid false failure with dash
44199         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
44201 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
44203         unlink: Fix "is it should" typo in diagnostic.
44204         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
44205         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
44207 2010-11-11  Bruno Haible  <bruno@clisp.org>
44209         Tests for module 'strerror_r-posix'.
44210         * modules/strerror_r-posix-tests: New file.
44211         * tests/test-strerror_r.c: New file.
44212         * tests/test-string-c++.cc: Check the signature of strerror_r.
44214         New module 'strerror_r-posix'.
44215         * lib/string.in.h (strerror_r): New declaration.
44216         * lib/strerror_r.c: New file.
44217         * m4/strerror_r.m4: New file.
44218         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
44219         of strerror_r.
44220         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
44221         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
44222         * modules/strerror_r-posix: New file.
44223         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
44224         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
44225         * doc/posix-functions/strerror_r.texi: Mention the new module and the
44226         portability problems.
44228 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
44230         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
44231         line is also considered for output. Quoted function name in shell
44232         command, so temporary files for functions like MyClass::operator()
44233         are removed correctly without errors.
44235 2010-11-09  Bruno Haible  <bruno@clisp.org>
44237         * doc/posix-functions/strerror.texi: List more failing platforms.
44239         * doc/posix-functions/strerror.texi: Add a comment.
44241 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
44243         fdopendir: fix bug on MacOS X when low on file descriptors
44245         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
44246         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
44247         All callers changed.
44248         (fdopendir): Invoke save_cwd at the top level, not after using
44249         multiple dup() calls to use up file descriptors.  Then retry
44250         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
44251         less than the maximum number of open file descriptors, because
44252         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
44253         on Mac OS X 10.6.4 for tar 1.24
44254         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
44255         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
44256         and for tar 1.25
44257         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
44259 2010-11-07  Bruno Haible  <bruno@clisp.org>
44261         vasnprintf: Support I flag on glibc systems.
44262         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
44263         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
44264         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
44265         snprintf function.
44266         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
44267         glibc systems.
44268         * tests/test-vasnprintf-posix3.c: New file.
44269         * modules/vasnprintf-posix-tests (Files): Add it.
44270         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
44272 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
44274         [html] Fix copy/paste bug: Use unique name for compiler warnings.
44275         * MODULES.html.sh: For compiler warnings, use name
44276         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
44278 2010-11-05  Eric Blake  <eblake@redhat.com>
44280         ceil, floor: avoid spurious failure with icc
44281         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
44282         [denormals-as-zero] when optimizing without -mieee-fp option.
44283         * tests/test-floorf2.c (floorf_reference): Likewise.
44284         * tests/test-ceilf1.c (dummy): New function.
44285         (main): Use it to outsmart icc's optimization.
44286         * tests/test-floorf1.c (dummy, main): Likewise.
44288         tests: require working signbit
44289         * modules/ceilf-tests (Depends-on): Add signbit.
44290         * modules/ceill-tests (Depends-on): Likewise.
44291         * modules/floorf-tests (Depends-on): Likewise.
44292         * modules/floorl-tests (Depends-on): Likewise.
44293         * modules/round-tests (Depends-on): Likewise.
44294         * modules/roundf-tests (Depends-on): Likewise.
44295         * modules/roundl-tests (Depends-on): Likewise.
44296         * modules/trunc-tests (Depends-on): Likewise.
44297         * modules/truncf-tests (Depends-on): Likewise.
44298         * modules/truncl-tests (Depends-on): Likewise.
44300         strtod: work around icc bug
44301         * lib/strtod.c (minus_zero): Define to working value.
44302         (strtod): Use it to avoid icc bug.
44304         copysign: enhance tests
44305         * modules/copysign-tests (Files): Add minus-zero.h.
44306         * tests/test-copysign.c (main): Also test zeros.
44308 2010-11-04  Eric Blake  <eblake@redhat.com>
44310         ceil, floor, round, trunc: enhance tests of -0
44311         * tests/test-ceilf1.c (main): Ensure correct sign of result.
44312         * tests/test-ceill.c (main): Likewise.
44313         * tests/test-floorf1.c (main): Likewise.
44314         * tests/test-floorl.c (main): Likewise.
44315         * tests/test-round1.c (main): Likewise.
44316         * tests/test-roundf1.c (main): Likewise.
44317         * tests/test-roundl.c (main): Likewise.
44318         * tests/test-trunc1.c (main): Likewise.
44319         * tests/test-truncf1.c (main): Likewise.
44320         * tests/test-truncl.c (main): Likewise.
44322 2010-11-04  Eric Blake  <eblake@redhat.com>
44324         frexp, tests: work around ICC bug with -zero
44325         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
44326         works with more compilers.
44327         * tests/minus-zero.h: New file.
44328         * modules/ceilf-tests (Files): Include it.
44329         * modules/ceill-tests (Files): Likewise.
44330         * modules/floorf-tests (Files): Likewise.
44331         * modules/floorl-tests (Files): Likewise.
44332         * modules/frexp-nolibm-tests (Files): Likewise.
44333         * modules/frexp-tests (Files): Likewise.
44334         * modules/frexpl-nolibm-tests (Files): Likewise.
44335         * modules/frexpl-tests (Files): Likewise.
44336         * modules/isnan-tests (Files): Likewise.
44337         * modules/isnand-nolibm-tests (Files): Likewise.
44338         * modules/isnand-tests (Files): Likewise.
44339         * modules/isnanf-nolibm-tests (Files): Likewise.
44340         * modules/isnanf-tests (Files): Likewise.
44341         * modules/isnanl-nolibm-tests (Files): Likewise.
44342         * modules/isnanl-tests (Files): Likewise.
44343         * modules/round-tests (Files): Likewise.
44344         * modules/roundf-tests (Files): Likewise.
44345         * modules/roundl-tests (Files): Likewise.
44346         * modules/ldexpl-tests (Files): Likewise.
44347         * modules/signbit-tests (Files): Likewise.
44348         * modules/snprintf-posix-tests (Files): Likewise.
44349         * modules/sprintf-posix-tests (Files): Likewise.
44350         * modules/strtod-tests (Files): Likewise.
44351         * modules/trunc-tests (Files): Likewise.
44352         * modules/truncf-tests (Files): Likewise.
44353         * modules/truncl-tests (Files): Likewise.
44354         * modules/vsnprintf-posix-tests (Files): Likewise.
44355         * modules/vsprintf-posix-tests (Files): Likewise.
44356         * modules/vasnprintf-posix-tests (Files): Likewise.
44357         * modules/vasprintf-posix-tests (Files): Likewise.
44358         * tests/test-ceilf1.c (main): Use it.
44359         * tests/test-ceill.c (main): Likewise.
44360         * tests/test-floorf1.c (main): Likewise.
44361         * tests/test-floorl.c (main): Likewise.
44362         * tests/test-frexp.c (main): Likewise.
44363         * tests/test-frexpl.c (main): Likewise.
44364         * tests/test-isnan.c (main): Likewise.
44365         * tests/test-isnand.h (main): Likewise.
44366         * tests/test-isnanf.h (main): Likewise.
44367         * tests/test-isnanl.h (main): Likewise.
44368         * tests/test-ldexpl.c (main): Likewise.
44369         * tests/test-round.c (main): Likewise.
44370         * tests/test-roundf.c (main): Likewise.
44371         * tests/test-roundl.c (main): Likewise.
44372         * tests/test-signbit.c (test_signbitf, test_signbitd)
44373         (test_signbitl): Likewise.
44374         * tests/test-snprintf-posix.h (test_function): Likewise.
44375         * tests/test-sprintf-posix.h (test_function): Likewise.
44376         * tests/test-strtod.c (main): Likewise.
44377         * tests/test-trunc1.c (main): Likewise.
44378         * tests/test-truncf1.c (main): Likewise.
44379         * tests/test-truncl.c (main): Likewise.
44381         isnanl: work around icc bug
44382         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
44384 2010-11-03  Eric Blake  <eblake@redhat.com>
44386         tests: fix compiler warnings
44387         * tests/test-getopt.h (test_getopt): Fix condition.
44388         * tests/test-getopt_long.h (test_getopt_long): Likewise.
44389         * tests/test-pipe2.c (main): Likewise.
44390         * tests/test-quotearg-simple.c (main): Avoid icc warning.
44392         utimens: fix broken m4 test
44393         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
44395 2010-10-28  Bruno Haible  <bruno@clisp.org>
44397         posix_spawn*, getdtablesize: Relax license.
44398         * modules/posix_spawn (License): Change to LGPLv2+.
44399         * modules/posix_spawnp (License): Likewise.
44400         * modules/posix_spawn-internal (License): Likewise.
44401         * modules/posix_spawnattr_init (License): Likewise.
44402         * modules/posix_spawnattr_getflags (License): Likewise.
44403         * modules/posix_spawnattr_setflags (License): Likewise.
44404         * modules/posix_spawnattr_getpgroup (License): Likewise.
44405         * modules/posix_spawnattr_setpgroup (License): Likewise.
44406         * modules/posix_spawnattr_getschedparam (License): Likewise.
44407         * modules/posix_spawnattr_setschedparam (License): Likewise.
44408         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
44409         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
44410         * modules/posix_spawnattr_getsigdefault (License): Likewise.
44411         * modules/posix_spawnattr_setsigdefault (License): Likewise.
44412         * modules/posix_spawnattr_getsigmask (License): Likewise.
44413         * modules/posix_spawnattr_setsigmask (License): Likewise.
44414         * modules/posix_spawnattr_destroy (License): Likewise.
44415         * modules/posix_spawn_file_actions_init (License): Likewise.
44416         * modules/posix_spawn_file_actions_addclose (License): Likewise.
44417         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
44418         * modules/posix_spawn_file_actions_addopen (License): Likewise.
44419         * modules/posix_spawn_file_actions_destroy (License): Likewise.
44420         * modules/getdtablesize (License): Likewise.
44421         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
44423 2010-10-26  Bruno Haible  <bruno@clisp.org>
44425         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
44426         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
44427         Cygwin and mingw.
44428         Suggested by Eric Blake.
44430 2010-10-26  Bruno Haible  <bruno@clisp.org>
44432         stdio: Work around compilation error due to renameat() on Solaris 10.
44433         * lib/stdio.in.h: Include <unistd.h> on Solaris.
44434         * lib/renameat.c: Don't include <unistd.h> here.
44435         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
44436         Reported by Paul Eggert and Eric Blake.
44438 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
44440         renameat: port to Solaris 10, which declares renameat in unistd.h
44442         * lib/renameat.c: Include unistd.h before stdio.h, because
44443         Solaris 10 declares renameat in unistd.h.  Problem encountered
44444         when building GNU tar 1.24 on Solaris 10.
44446 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
44448         fdopendir: fix C89 compilation
44449         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
44450         compilers.
44452 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
44454         inttostr: simplify by removing unnecessary redundancy
44455         * lib/anytostr.c: Don't include verify.h.
44456         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
44457         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
44458         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
44459         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
44460         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
44461         Likewise.
44462         * modules/inttostr (Depends-on): Remove 'verify'.
44464 2010-10-23  Bruno Haible  <bruno@clisp.org>
44466         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
44467         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
44468         Reported by Eric Blake.
44470 2010-10-23  Bruno Haible  <bruno@clisp.org>
44472         Tests: Fix LOCALE_JA on MirBSD 10.
44473         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
44474         to an UTF-8 locale.
44475         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
44476         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
44477         Reported by Eric Blake.
44479 2010-10-21  Bruno Haible  <bruno@clisp.org>
44481         nl_langinfo test: Avoid test failure on NetBSD 5.
44482         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
44483         Reported by Eric Blake.
44485 2010-10-21  Eric Blake  <eblake@redhat.com>
44487         c-stack: work around libsigsegv 2.8 bug
44488         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
44489         overflow on at least PowerPC64.
44491 2010-10-17  Bruno Haible  <bruno@clisp.org>
44493         userspec: Drop redundant file.
44494         * modules/userspec (Files): Remove lib/inttostr.h.
44496 2010-10-17  Bruno Haible  <bruno@clisp.org>
44498         nl_langinfo tests: Silence some warnings.
44499         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
44500         Reported by Jim Meyering.
44502 2010-10-17  Bruno Haible  <bruno@clisp.org>
44504         Make use of GCC's attribute __alloc_size__.
44505         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
44506         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
44507         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
44508         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
44509         __alloc_size__.
44510         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
44511         Suggested by Jim Meyering.
44513 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
44515         bootstrap: anchor .gitignore entries.
44516         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
44517         with...
44518         (insert_vc_ignore): ... this new function, which prepends `/' to
44519         all .gitignore entries before passing them to
44520         insert_sorted_if_absent.
44522 2010-10-16  Bruno Haible  <bruno@clisp.org>
44524         nextafter: Fix configure check.
44525         * modules/nextafter (configure.ac): Correct expected prototype.
44527 2010-10-16  Bruno Haible  <bruno@clisp.org>
44529         termios: Update documentation.
44530         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
44532 2010-10-16  Bruno Haible  <bruno@clisp.org>
44534         tests: Make them compile with TinyCC.
44535         * tests/test-strstr.c (main): Remove parentheses around array
44536         initializer.
44538 2010-10-15  Eric Blake  <eblake@redhat.com>
44540         ignore-value: make header idempotent
44541         * lib/ignore-value.h: Add double-inclusion guards.
44542         Reported by Stefan Berger.
44544 2010-10-15  Jim Meyering  <meyering@redhat.com>
44546         GNUmakefile: handle "stable" target, not "major"
44547         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
44548         lists in maint.mk and announce-gen.  Without this, "make stable"
44549         would fail to ensure that $(VERSION) is up to date.
44551 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
44553         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
44554         & co.
44556 2010-10-14  Bruno Haible  <bruno@clisp.org>
44558         vasnprintf: Don't set errno to 0.
44559         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
44560         block that sets it to 0.
44561         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
44563 2010-10-14  Bruno Haible  <bruno@clisp.org>
44565         socketlib: Fix.
44566         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
44567         gl_PREREQ_SYS_H_WINSOCK2.
44568         Reported by Ian Beckwith <ianb@erislabs.net>.
44570 2010-10-13  Jim Meyering  <meyering@redhat.com>
44572         test-select-stdin.c: avoid warn_unused_result warnings
44573         * tests/test-select-stdin.c: Include "macros.h".
44574         ASSERT that read and fflush succeed.
44576 2010-10-13  Jim Meyering  <meyering@redhat.com>
44578         git-version-gen: do require git-VC'd files in cwd
44579         * build-aux/git-version-gen: Reject a git version string
44580         if there are no commits associated with the current directory.
44581         This avoids an unlikely false-positive (unrelated dir whose parent
44582         repository also contains a tag matching v*), as pointed out
44583         by Giuseppe Scrivano in
44584         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
44586 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
44588         argv-iter: omit nonconforming declaration
44589         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
44590         enum arg_iter_err declaration, which doesn't conform to C99.
44591         Solaris 10 cc warns about this.
44593 2010-10-13  Eric Blake  <eblake@redhat.com>
44595         termios: fix compilation on mingw
44596         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
44597         (gl_TERMIOS_H): Adjust it on mingw.
44598         * modules/termios (Makefile.am): Substitute new key.
44599         * lib/termios.in.h (includes): Make include_next conditional.
44600         * doc/posix-headers/termios.texi (termios.h): Update
44601         documentation.
44602         Reported by Daniel P. Berrange.
44604 2010-10-13  Jim Meyering  <meyering@redhat.com>
44606         git-version-gen: don't require that .git/ be in the current dir
44607         * build-aux/git-version-gen: Adjust this script so that it works
44608         when run from any working directory beneath the top-level .git/-
44609         containing directory.  Inspired by a patch from Giuseppe Scrivano,
44610         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
44612         test-select: avoid warn_unused_result warnings
44613         * tests/test-select.c: Include "macros.h".
44614         ASSERT that each call to read, write, and pipe succeeds.
44615         While not technically required, also check each "close".
44616         * modules/select-tests (Files): Add tests/macros.h.
44618         test-symlinkat: remove declaration of unused local
44619         * tests/test-symlinkat.c (main): Remove unused local, "buf".
44621         test-inttostr: avoid shadowing warnings
44622         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
44623         and use malloc rather than the stack for the same reason as
44624         mentioned in the comment justifying the other allocation.
44626 2010-10-11  Bruno Haible  <bruno@clisp.org>
44628         stdlib: Allow multiple gnulib generated replacements to coexist.
44629         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
44630         Reported by Sam Steingold <sds@gnu.org>.
44632 2010-10-11  Jim Meyering  <meyering@redhat.com>
44634         fix a documentation typo
44635         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
44637 2010-10-11  Eric Blake  <eblake@redhat.com>
44639         futimens: work around Solaris 11 bug
44640         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
44641         * tests/test-futimens.h (test_futimens): Enhance, rather than
44642         weaken test.
44643         * doc/posix-functions/futimens.texi (futimens): Document the bug.
44645 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
44647         Indentation.
44648         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
44649         higher-level operators more to the left.
44651 2010-10-11  Jim Meyering  <meyering@redhat.com>
44653         test-futimens: avoid unwarranted test failure on Solaris 5.11
44654         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
44655         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
44656         because it tries to dereference the NULL name argument.
44658 2010-10-11  Bruno Haible  <bruno@clisp.org>
44660         Indentation.
44661         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
44662         indentation.
44664 2010-10-11  Jim Meyering  <meyering@redhat.com>
44666         spawn.in.h: make indentation consistent with parentheses
44667         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
44668         Make indentation consistent with parentheses.
44670 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
44672         Fix mismatched parens in previous commit
44673         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
44674         parens.
44676 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
44678         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
44680         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
44681         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
44682         * lib/malloca.c: Include "verify.h".
44683         (verify1): Remove, replacing with a verify call.
44684         * lib/relocwrapper.c (verify1): Likewise.
44685         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
44686         Likewise.
44687         * modules/malloca (Depends-on): Add 'verify'.
44688         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
44689         * modules/vasnprintf (Depends-on): Add 'verify'.
44690         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44691         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44692         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44693         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44694         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44695         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44696         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44698         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
44700         Formerly the style was sometimes 2*X - 1, because the C standard
44701         was wrongly thought to disallow ?: in integral constant expressions.
44702         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
44703         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
44704         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
44705         * lib/stdint.in.h (_verify_intmax_size): Likewise.
44706         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
44707         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
44708         verify that time_t cannot be floating.
44710 2010-10-08  Eric Blake  <eblake@redhat.com>
44712         time: enforce recent POSIX ruling that time_t is integral
44713         * lib/time.in.h (__time_t_must_be_integral): Detect any
44714         problematic systems, allowing the rest of gnulib to assume POSIX.
44716 2010-10-08  Jim Meyering  <meyering@redhat.com>
44718         fdopendir: fix a bug on systems lacking openat and /proc support
44719         OpenBSD 4.7 is one such system.  The most noticeable effect was
44720         failure of any application making nontrivial use of fts: rm, du,
44721         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
44722           ./rm: traversal failed: `a': Bad file descriptor
44723         Debugging that, you see that even though FD 6 was closed just
44724         prior to the opendir call in fd_clone_opendir, its resulting
44725         dir->dd_fd was 8, rather than the expected value of 6:
44727         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
44728         93                close (fd);
44729         (gdb) n
44730         94                dir = fd_clone_opendir (dupfd);
44731         (gdb) n
44732         95                saved_errno = errno;
44733         (gdb) p dir->dd_fd
44734         $11 = 8
44736         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
44737         The problem is that on OpenBSD, fd_clone_opendir has to resort
44738         to using the old-style save/restore CWD mechanism, due to its
44739         lack of openat/proc support, and *that* would steal the FD (6)
44740         that opendir was supposed to use.
44742         The fix is to squirrel away the desired FD so that save_cwd uses a
44743         different one, and then free the dest FD right before calling opendir.
44744         That guarantees opendir will use the required file descriptor.
44746         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
44748 2010-10-08  Bruno Haible  <bruno@clisp.org>
44750         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
44751         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
44753 2010-10-08  Bruno Haible  <bruno@clisp.org>
44755         nanosleep: Make replacement POSIX compliant.
44756         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
44757         is out of range.
44758         Reported by Jim Meyering.
44760 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
44762         bootstrap: add hook for altering gnulib.mk, for Bison
44763         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
44764         the Bison bootstrapping process can rewrite file names and variables
44765         in this file before later parts of 'bootstrap' use the file.
44766         Bison wants to include lib/gnulib.mk from the top-level makefile,
44767         so it needs the file names in this file to be relative to the top
44768         level, not relative to lib; plus it needs variable names to be
44769         rewritten.
44770         (slurp): Use the new function.
44772         bootstrap: reformat for readability
44773         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
44775 2010-10-08  Eric Blake  <eblake@redhat.com>
44777         docs: update cygwin progress
44778         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
44779         1.7.7.
44780         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
44781         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
44782         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
44783         * doc/posix-functions/carg.texi (carg): Likewise.
44784         * doc/posix-functions/cargf.texi (cargf): Likewise.
44785         * doc/posix-functions/casin.texi (casin): Likewise.
44786         * doc/posix-functions/casinf.texi (casinf): Likewise.
44787         * doc/posix-functions/casinh.texi (casinh): Likewise.
44788         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
44789         * doc/posix-functions/catan.texi (catan): Likewise.
44790         * doc/posix-functions/catanf.texi (catanf): Likewise.
44791         * doc/posix-functions/catanh.texi (catanh): Likewise.
44792         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
44793         * doc/posix-functions/ccos.texi (ccos): Likewise.
44794         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
44795         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
44796         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
44797         * doc/posix-functions/cexp.texi (cexp): Likewise.
44798         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
44799         * doc/posix-functions/cimag.texi (cimag): Likewise.
44800         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
44801         * doc/posix-functions/clog.texi (clog): Likewise.
44802         * doc/posix-functions/clogf.texi (clogf): Likewise.
44803         * doc/posix-functions/conj.texi (conj): Likewise.
44804         * doc/posix-functions/conjf.texi (conjf): Likewise.
44805         * doc/posix-functions/cpow.texi (cpow): Likewise.
44806         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
44807         * doc/posix-functions/cproj.texi (cproj): Likewise.
44808         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
44809         * doc/posix-functions/creal.texi (creal): Likewise.
44810         * doc/posix-functions/crealf.texi (crealf): Likewise.
44811         * doc/posix-functions/csin.texi (csin): Likewise.
44812         * doc/posix-functions/csinf.texi (csinf): Likewise.
44813         * doc/posix-functions/csinh.texi (csinh): Likewise.
44814         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
44815         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
44816         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
44817         * doc/posix-functions/ctan.texi (ctan): Likewise.
44818         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
44819         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
44820         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
44821         * doc/posix-headers/complex.texi (complex.h): Likewise.
44823 2010-10-07  Jim Meyering  <meyering@redhat.com>
44825         parse-datetime: avoid compilation failure on OpenBSD 4.7
44826         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
44827         This works around a compilation failure on OpenBSD 4.7:
44828         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
44830 2010-10-07  Eric Blake  <eblake@redhat.com>
44832         docs: update cygwin progress
44833         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
44834         1.7.6.
44835         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
44836         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
44837         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
44838         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
44839         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
44840         Likewise.
44841         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
44842         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
44843         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
44844         Likewise.
44845         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
44846         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
44847         Likewise.
44848         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
44849         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
44850         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
44851         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
44852         Likewise.
44853         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
44854         Likewise.
44855         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
44857         docs: update parse-datetime history
44858         * doc/parse-datetime.texi (Authors of parse_datetime): Better
44859         documentation of this function's history and alternatives.
44861         cygwin: use more robust version check
44862         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
44863         exclude an eventual cygwin 1.9.1.
44864         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
44865         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
44866         (gl_FUNC_STRCASESTR): Likewise.
44867         Reported by Bruno Haible.
44869 2010-10-06  Bruno Haible  <bruno@clisp.org>
44871         string, sys_select: Avoid #including large headers unless necessary.
44872         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
44873         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
44874         OSF/1, BeOS, Haiku.
44875         Reported by Jim Meyering.
44877 2010-10-05  Eric Blake  <eblake@redhat.com>
44879         memmem, strstr, strcasestr: fix bug with long periodic needle
44880         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
44881         periodic needle having false positive.
44882         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
44883         and cygwin 1.7.7.
44884         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
44885         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
44886         (gl_FUNC_STRCASESTR): Likewise.
44887         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
44888         * tests/test-memmem.c (main): Expose the bug.
44889         * tests/test-strcasestr.c (main): Likewise.
44890         * tests/test-strstr.c (main): Likewise.
44891         * tests/test-c-strcasestr.c (main): Likewise.
44892         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
44893         * doc/posix-functions/strstr.texi (strstr): Likewise.
44894         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
44895         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
44897 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
44899         parse-datetime: do some more renaming
44900         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
44901         parse_datetime, not get_date.  Mention the renaming.
44902         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
44903         in comments.
44904         * m4/bison.m4: Likewise.
44906 2010-10-05  Eric Blake  <eblake@redhat.com>
44908         parse-datetime: better name than get_date
44909         * NEWS: Reword the deprecation notice.
44910         * modules/get_date: Rename to modules/parse-datetime.
44911         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
44912         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
44913         * lib/get_date.y: Rename to lib/parse-datetime.y.
44914         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
44915         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
44916         * doc/getdate.texi: Provide fallback wrapper.
44917         * lib/getdate.h: Move guts, and wrap...
44918         * lib/parse-datetime.h: ...new file.
44919         * lib/parse-datetime.y (get_date): Rename...
44920         (parse_datetime): ...to this.
44921         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
44922         (gl_PARSE_DATETIME): ...to this.
44923         * doc/posix-functions/getdate.texi (get_date): Provide fallback
44924         documentation.
44925         * modules/getdate (Files): Provide fallback docs and header.
44926         (Notice, Depends-on): Update references.
44927         * tests/test-parse-datetime.c: Likewise.
44928         * DEPENDENCIES: Likewise.
44929         * MODULES.html.sh (Date and time <time.h>): Likewise.
44930         * doc/parse-datetime.texi (Date input formats)
44931         (Authors of parse_datetime): Likewise.
44932         * modules/parse-datetime (Files, configure.ac, Makefile.am)
44933         (Include): Likewise.
44934         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
44935         * gnulib-tool: Likewise.
44936         * m4/bison.m4 (gl_BISON): Likewise.
44937         Suggested by Bruno Haible.
44939 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
44941         more ports to Solaris tr, which needs [] around ranges
44942         * gnulib-tool: Solaris tr needs [] around ranges.
44943         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
44944         * tests/test-pipe-filter-gi1.c (main): Likewise.
44945         * tests/test-pipe-filter-ii1.c (main): Likewise.
44947 2010-10-05  Eric Blake  <eblake@redhat.com>
44949         bootstrap: fix Solaris regression
44950         * build-aux/bootstrap (check_versions): Solaris tr still needs []
44951         around ranges.
44952         Reported by Pádraig Brady.
44954         bootstrap: work with pkg-config
44955         * build-aux/bootstrap (check_versions): Also transliterate - in
44956         prerequisite name.
44957         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
44958         prerequisites that were already found, to avoid confusion.
44959         Reported by Justin Clift.
44961         faccessat: remove unused wrappers
44962         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
44963         presence of these wrappers dragged in -lgen on Solaris.
44964         Reported by Clemens Brogi; fix suggested by Paul Eggert.
44966 2010-10-05  Jim Meyering  <meyering@redhat.com>
44968         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
44969         * Makefile (sc_pragma_columns): New syntax-check rule.
44971 2010-10-04  Bruno Haible  <bruno@clisp.org>
44973         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
44974         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
44975         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
44976         Reported by Bruce Korb and Eric Blake.
44978 2010-10-04  Bruno Haible  <bruno@clisp.org>
44980         threadlib: Make option --with-libpth-prefix work.
44981         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
44982         use $LIBPTH, not just -lpth.
44984 2010-10-04  Bruno Haible  <bruno@clisp.org>
44986         Avoid line length limitation from HP NonStop system header files.
44987         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
44988         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
44989         * lib/ctype.in.h: Likewise.
44990         * lib/dirent.in.h: Likewise.
44991         * lib/errno.in.h: Likewise.
44992         * lib/fcntl.in.h: Likewise.
44993         * lib/float.in.h: Likewise.
44994         * lib/getopt.in.h: Likewise.
44995         * lib/iconv.in.h: Likewise.
44996         * lib/inttypes.in.h: Likewise.
44997         * lib/langinfo.in.h: Likewise.
44998         * lib/locale.in.h: Likewise.
44999         * lib/math.in.h: Likewise.
45000         * lib/netdb.in.h: Likewise.
45001         * lib/netinet_in.in.h: Likewise.
45002         * lib/poll.in.h: Likewise.
45003         * lib/pthread.in.h: Likewise.
45004         * lib/pty.in.h: Likewise.
45005         * lib/sched.in.h: Likewise.
45006         * lib/se-selinux.in.h: Likewise.
45007         * lib/search.in.h: Likewise.
45008         * lib/signal.in.h: Likewise.
45009         * lib/spawn.in.h: Likewise.
45010         * lib/stdarg.in.h: Likewise.
45011         * lib/stddef.in.h: Likewise.
45012         * lib/stdint.in.h: Likewise.
45013         * lib/stdio.in.h: Likewise.
45014         * lib/stdlib.in.h: Likewise.
45015         * lib/string.in.h: Likewise.
45016         * lib/strings.in.h: Likewise.
45017         * lib/sys_file.in.h: Likewise.
45018         * lib/sys_ioctl.in.h: Likewise.
45019         * lib/sys_select.in.h: Likewise.
45020         * lib/sys_socket.in.h: Likewise.
45021         * lib/sys_stat.in.h: Likewise.
45022         * lib/sys_time.in.h: Likewise.
45023         * lib/sys_times.in.h: Likewise.
45024         * lib/sys_utsname.in.h: Likewise.
45025         * lib/sys_wait.in.h: Likewise.
45026         * lib/sysexits.in.h: Likewise.
45027         * lib/termios.in.h: Likewise.
45028         * lib/time.in.h: Likewise.
45029         * lib/unistd.in.h: Likewise.
45030         * lib/wchar.in.h: Likewise.
45031         * lib/wctype.in.h: Likewise.
45032         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
45033         * modules/ctype (Makefile.am): Likewise.
45034         * modules/dirent (Makefile.am): Likewise.
45035         * modules/errno (Makefile.am): Likewise.
45036         * modules/fcntl-h (Makefile.am): Likewise.
45037         * modules/float (Makefile.am): Likewise.
45038         * modules/getopt-posix (Makefile.am): Likewise.
45039         * modules/iconv-h (Makefile.am): Likewise.
45040         * modules/inttypes (Makefile.am): Likewise.
45041         * modules/langinfo (Makefile.am): Likewise.
45042         * modules/locale (Makefile.am): Likewise.
45043         * modules/math (Makefile.am): Likewise.
45044         * modules/netdb (Makefile.am): Likewise.
45045         * modules/netinet_in (Makefile.am): Likewise.
45046         * modules/poll-h (Makefile.am): Likewise.
45047         * modules/pthread (Makefile.am): Likewise.
45048         * modules/pty (Makefile.am): Likewise.
45049         * modules/sched (Makefile.am): Likewise.
45050         * modules/search (Makefile.am): Likewise.
45051         * modules/selinux-h (Makefile.am): Likewise.
45052         * modules/signal (Makefile.am): Likewise.
45053         * modules/spawn (Makefile.am): Likewise.
45054         * modules/stdarg (Makefile.am): Likewise.
45055         * modules/stddef (Makefile.am): Likewise.
45056         * modules/stdint (Makefile.am): Likewise.
45057         * modules/stdio (Makefile.am): Likewise.
45058         * modules/stdlib (Makefile.am): Likewise.
45059         * modules/string (Makefile.am): Likewise.
45060         * modules/strings (Makefile.am): Likewise.
45061         * modules/sys_file (Makefile.am): Likewise.
45062         * modules/sys_ioctl (Makefile.am): Likewise.
45063         * modules/sys_select (Makefile.am): Likewise.
45064         * modules/sys_socket (Makefile.am): Likewise.
45065         * modules/sys_stat (Makefile.am): Likewise.
45066         * modules/sys_time (Makefile.am): Likewise.
45067         * modules/sys_times (Makefile.am): Likewise.
45068         * modules/sys_utsname (Makefile.am): Likewise.
45069         * modules/sys_wait (Makefile.am): Likewise.
45070         * modules/sysexits (Makefile.am): Likewise.
45071         * modules/termios (Makefile.am): Likewise.
45072         * modules/time (Makefile.am): Likewise.
45073         * modules/unistd (Makefile.am): Likewise.
45074         * modules/wchar (Makefile.am): Likewise.
45075         * modules/wctype (Makefile.am): Likewise.
45077 2010-10-04  Bruno Haible  <bruno@clisp.org>
45079         read-file tests: Avoid a test failure on NonStop Kernel.
45080         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
45081         a regular file.
45082         Reported by Joachim Schmitz <schmitz@hp.com>.
45084 2010-10-03  Bruno Haible  <bruno@clisp.org>
45086         gnulib-tool: Fixes for --create-testdir with --libtool.
45087         * gnulib-tool (func_get_automake_snippet): Don't augment
45088         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
45089         an executable.
45090         (func_create_testdir): Handle module 'alloca' like func_import.
45091         Reported by Bruce Korb <bruce.korb@gmail.com>.
45093 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
45095         Avoid some lines longer than 80 characters.
45096         * lib/stdint.in.h: Break long comment lines.
45097         * lib/math.in.h: Likewise.
45098         (_GL_NUM_UINT_WORDS): New macro, for readability.
45099         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
45100         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
45101         * lib/stdlib.in.h: Likewise.
45102         * lib/spawn.in.h: Likewise.
45103         * lib/sys_socket.in.h: Update an URL.
45104         * lib/sys_stat.in.h: Break long line.
45106 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
45108         Improve pmccabe2html.
45109         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
45110         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
45111         when the sources change. Remove the line in the HTML about "Used
45112         ranges" (which implied that there might be other unused ranges),
45113         rename "Resume" to "Summary" (easier to understand for more users).
45114         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
45115         styles, and some unnecessary blank lines.
45117 2010-10-03  Bruno Haible  <bruno@clisp.org>
45118             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
45120         acl: Add support for ACLs on NonStop Kernel.
45121         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
45122         Check whether the function aclsort() exists.
45123         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
45124         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
45125         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
45126         (acl_nontrivial [HAVE_ACLSORT]: New function.
45127         (file_has_acl): Implement for NonStop Kernel.
45128         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
45129         (qset_acl): Implement for NonStop Kernel.
45130         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
45131         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
45132         (main): Implement for NonStop Kernel.
45133         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
45134         Kernel. Handle this flavor.
45135         * tests/test-set-mode-acl.sh: Likewise.
45136         * tests/test-copy-acl.sh: Likewise.
45137         * tests/test-copy-file.sh: Likewise.
45139 2010-10-03  Bruno Haible  <bruno@clisp.org>
45141         Info about ACLs on NonStop Kernel.
45142         * doc/acl-resources.txt: Add info about NonStop Kernel.
45143         References by Joachim Schmitz <schmitz@hp.com>.
45145 2010-10-02  Bruno Haible  <bruno@clisp.org>
45147         Define missing EDQUOT on NonStop Kernel.
45148         * lib/errno.in.h (EDQUOT): Assign a value if missing.
45149         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
45150         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
45151         missing.
45152         * doc/posix-headers/errno.texi: Mention the NSK bug.
45153         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
45154         Reported by Joachim Schmitz <schmitz@hp.com>.
45156 2010-10-02  Bruno Haible  <bruno@clisp.org>
45158         Update doc for POSIX:2008.
45159         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
45160         Update URL of POSIX specification.
45162 2010-10-02  Bruno Haible  <bruno@clisp.org>
45164         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
45165         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
45166         from gnulib, not from Automake.
45168 2010-10-02  Bruno Haible  <bruno@clisp.org>
45170         New module 'system-posix'.
45171         * modules/system-posix: New file.
45172         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
45173         module is present.
45174         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
45175         GNULIB_SYSTEM_POSIX.
45176         * modules/stdlib (Depends-on): Remove sys_wait.
45177         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
45178         * doc/posix-functions/system.texi: Mention the new module.
45179         * doc/posix-headers/stdlib.texi: Likewise.
45180         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
45181         define test_sys_wait_macros to a no-op.
45182         Reported by Sam Steingold <sds@gnu.org>.
45184 2010-09-30  Bruno Haible  <bruno@clisp.org>
45186         More renaming from 'getdate' to 'get_date'.
45187         * doc/get_date.texi: Renamed from doc/getdate.texi.
45188         * modules/get_date (Files): Update.
45189         * MODULES.html.sh (Date and time <time.h>): Update.
45190         * DEPENDENCIES: Update.
45191         * gnulib-tool: Update comment.
45192         * m4/bison.m4 (gl_BISON): Likewise.
45193         * m4/get_date.m4 (gl_GET_DATE): Likewise.
45195 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
45197         bootstrap: support ACLOCAL_FLAGS during aclocal
45198         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
45199         can add additional -I dir for third-party .m4 files.
45201 2010-09-30  Eric Blake  <eblake@redhat.com>
45203         bootstrap: use glibtoolize on MacOS
45204         * build-aux/bootstrap (check_versions): Convert libtool into
45205         libtoolize.
45206         (tool search): Move libtool check earlier, and look for
45207         glibtoolize for MacOS.
45208         (gnulib_tool_options): Auto-add --libtool when appropriate.
45209         Reported by Justin Clift.
45211         poll: fix typo that broke test on MacOS
45212         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
45213         Reported by Justin Clift.
45215         getdate: rename to get_date
45216         Note: getdate.h is not renamed, to minimize client impact.
45217         * modules/getdate: Mark obsolete.  Move old contents...
45218         * modules/get_date: ...to new module name.
45219         * modules/getdate-tests: Move...
45220         * modules/get_date-tests: ...here.
45221         * m4/getdate.m4: Move...
45222         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
45223         * lib/getdate.y: Move...
45224         * lib/get_date.y: ...here.
45225         * tests/test-getdate.c: Move...
45226         * tests/test-get_date.c: ...here.
45227         * doc/posix-functions/getdate.texi (getdate): Update name.
45228         * NEWS: Mention the change.
45230 2010-09-29  Bruno Haible  <bruno@clisp.org>
45232         Separate the module 'waitpid' from the module 'sys_wait'.
45233         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
45234         present.
45235         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
45236         gl_MODULE_INDICATOR_FOR_TESTS.
45237         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
45238         * modules/sys_wait (Depends-on): Remove waitpid.
45239         (Makefile.am): Substitute GNULIB_WAITPID.
45240         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
45241         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
45242         signature only if the 'waitpid' module is present.
45243         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
45244         * NEWS: Mention the change.
45245         * modules/grantpt (Depends-on): Add waitpid.
45246         * modules/wait-process (Depends-on): Likewise.
45248 2010-09-29  Bruno Haible  <bruno@clisp.org>
45250         More tests for module 'sys_wait'.
45251         * modules/sys_wait-c++-tests: New file.
45252         * tests/test-sys_wait-c++.cc: New file.
45253         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
45254         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
45256 2010-09-29  Bruno Haible  <bruno@clisp.org>
45258         New module 'waitpid'.
45259         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
45260         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
45261         Don't include <process.h>.
45262         (waitpid): Declare only, using modern idiom.
45263         * m4/waitpid.m4: New file.
45264         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
45265         * modules/waitpid: New file.
45266         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
45267         (Makefile.am): Update.
45268         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
45270 2010-09-28  Bruno Haible  <bruno@clisp.org>
45272         poll: Assume ANSI C.
45273         * lib/poll.c (poll): Use an ANSI C declaration.
45275 2010-09-28  Bruno Haible  <bruno@clisp.org>
45277         poll-h: Create poll.h on all platforms.
45278         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
45279         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
45280         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
45281         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
45282         (gl_REPLACE_POLL_H): Don't set POLL_H.
45283         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
45284         * modules/poll-h (Depends-on): Add include_next.
45285         (Makefile.am): Create poll.h unconditionally. Substitute also
45286         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
45288 2010-09-28  Bruno Haible  <bruno@clisp.org>
45290         Tests for module 'poll-h'.
45291         * modules/poll-h-c++-tests: New file.
45292         * tests/test-poll-h-c++.cc: New file.
45294         Tests for module 'poll-h'.
45295         * modules/poll-h-tests: New file.
45296         * tests/test-poll-h.c: New file.
45298 2010-09-28  Bruno Haible  <bruno@clisp.org>
45300         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
45301         * modules/poll-h (Depends-on): Add 'extensions'.
45303 2010-09-28  Bruno Haible  <bruno@clisp.org>
45305         New module 'poll-h'.
45306         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
45307         (poll): Use modern idiom.
45308         * modules/poll-h: New file.
45309         * modules/poll (Files): Remove lib/poll.in.h.
45310         (Depends-on): Add poll-h.
45311         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
45312         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
45313         * m4/poll_h.m4: New file.
45314         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
45315         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
45316         and invoke gl_REPLACE_POLL_H.
45317         * lib/poll.c: Use common idiom.
45318         * tests/test-poll.c: Likewise.
45319         * doc/posix-headers/poll.texi: Mention the poll-h module.
45320         Suggested by Eric Blake.
45322 2010-09-26  Bruno Haible  <bruno@clisp.org>
45324         sys_wait: Implement WSTOPSIG.
45325         * lib/sys_wait.in.h (WSTOPSIG): New macro.
45326         Reported by Simon Josefsson.
45328 2010-09-26  Simon Josefsson  <simon@josefsson.org>
45330         stdlib, sys_wait: Avoid compilation error on mingw.
45331         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
45333 2010-09-26  Bruno Haible  <bruno@clisp.org>
45335         stdlib tests: Avoid code duplication.
45336         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
45337         * modules/sys_wait-tests (Files): Likewise.
45338         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
45339         * tests/test-stdlib.c: Include test-sys_wait.h.
45340         (main): Invoke test_sys_wait_macros.
45341         * tests/test-sys_wait.c: Include test-sys_wait.h.
45342         (main): Invoke test_sys_wait_macros.
45344 2010-09-25  Simon Josefsson  <simon@josefsson.org>
45346         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
45347         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
45348         sure Windows sockets are working before calling getaddrinfo.
45349         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
45350         * doc/gnulib.texi (Windows sockets): Fix typo.
45352 2010-09-25  Bruno Haible  <bruno@clisp.org>
45354         Tests for module 'regex-quote'.
45355         * modules/regex-quote-tests: New file.
45356         * tests/test-regex-quote.c: New file.
45358         New module 'regex-quote'.
45359         * lib/regex-quote.h: New file.
45360         * lib/regex-quote.c: New file.
45361         * modules/regex-quote: New file.
45362         Suggested by Reuben Thomas <rrt@sc3d.org>.
45364 2010-09-24  Bruno Haible  <bruno@clisp.org>
45366         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
45367         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
45369 2010-09-23  Bruno Haible  <bruno@clisp.org>
45371         setenv: Relax license.
45372         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
45373         Blake.
45374         Requested by Eric Blake.
45376 2010-09-22  Bruno Haible  <bruno@clisp.org>
45378         termios: Relax license.
45379         * modules/termios (License): Change to LGPLv2+.
45380         Requested by Eric Blake.
45382 2010-09-22  Bruno Haible  <bruno@clisp.org>
45384         threadlib: Allow the package to change the default to 'no'.
45385         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
45386         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
45387         Reported by Paul Eggert.
45389 2010-09-22  Pádraig Brady  <P@draigbrady.com>
45390             Bruno Haible  <bruno@clisp.org>
45392         Fix endless loop in mbmemcasecoll.
45393         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
45394         byte.
45395         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
45397 2010-09-22  Bruno Haible  <bruno@clisp.org>
45399         Tests for module 'memcoll'.
45400         * modules/memcoll-tests: New file.
45401         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
45403         memcoll, xmemcoll: Clarify size vs. length.
45404         * modules/memcoll.c (memcoll0): Clarify specification.
45405         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
45406         passed to collate_error.
45408 2010-09-22  Bruno Haible  <bruno@clisp.org>
45410         Tests for module 'memcasecmp'.
45411         * modules/memcasecmp-tests: New file.
45412         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
45414 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
45416         * lib/pthread.in.h: Add split double-inclusion guard, and include
45417         system <pthread.h> if there is one.  Use @@-style as in other
45418         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
45419         pthread.h doesn't.
45420         (pthread_mutexattr_destroy, pthread_mutexattr_init):
45421         (pthread_mutexattr_settype, pthread_mutex_trylock):
45422         New static inline functions, if there's no system <pthread.h>.
45423         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
45424         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
45425         Approximate with mutexes if the system lacks spinlocks, as in
45426         MacOS.
45427         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
45428         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
45429         @@-style.  Check for spinlocks separately.
45430         (gl_PTHREAD_DEFAULTS): New macro.
45431         * modules/pthread: Redo to use a more typical style for in.h files.
45433 2010-09-21  Eric Blake  <eblake@redhat.com>
45435         net_if: enhance tests
45436         * tests/test-net_if.c (main): Move signature checks earlier.
45437         Print failures to stderr.
45438         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
45439         Document the bug that we do not yet fix.
45441 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
45443         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
45444         about gnulib, not GSS.
45446 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
45448         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
45449         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
45450         for Emacs.
45451         * build-aux/pmccabe2html: Make Makefile.am example code more
45452         cut-and-paste friendly.
45454 2010-09-21  Simon Josefsson  <simon@josefsson.org>
45456         * tests/test-net_if.c: New file.
45457         * modules/net_if-tests: New file.
45459 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
45461         pthread: add pthread_spin_destroy
45462         * lib/pthread.in.h (pthread_spin_destroy): New function.
45464 2010-09-19  Bruno Haible  <bruno@clisp.org>
45466         gnulib-tool: Fix --help output.
45467         * gnulib-tool (func_usage): Fix help message.
45468         Reported by Reuben Thomas <rrt@sc3d.org>.
45470 2010-09-18  Jim Meyering  <meyering@redhat.com>
45472         maint.mk: avoid unexpanded \n in two diagnostics
45473         * top/maint.mk (sc_prohibit_always_true_header_tests):
45474         Don't use a literal \n in a halt=... assignment.  It would not be
45475         expanded, and the two \n bytes would appear in the diagnostic output
45476         rather than the desired newline.  Use halt=$$(printf ... instead.
45477         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
45479 2010-09-18  Bruno Haible  <bruno@clisp.org>
45481         netinet_in: Doc tweak.
45482         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
45483         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
45485 2010-09-18  Jim Meyering  <meyering@redhat.com>
45487         init.sh: correct an outdated comment
45488         * tests/init.sh (create_exe_shims_):  s/function/alias/
45490         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
45491         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
45492         a file named "*.exe" is removed between the glob expansion and the
45493         processing of that oddly named file.
45495 2010-09-17  Eric Blake  <eblake@redhat.com>
45497         mirbsd: add some more support
45498         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
45499         in BSD family.
45500         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
45501         devices as OpenBSD.
45502         * m4/host-os.m4 (mirbsd): Add MirBSD.
45504         tests: fix unportable assumption on sys/wait.h
45505         * tests/test-sys_wait.c (main): Relax test.
45506         * tests/test-stdlib.c (main): Likewise.
45508         init.sh: accommodate directory with no .exes
45509         * tests/init.sh: Accomodate directory containing only scripts.
45511         tests: avoid compiler warning
45512         * tests/test-stdlib.c (main): Use the variable.
45514         fdutimens, fdutimensat: update signature, again
45515         * lib/utimens.h (gl_futimens): Delete, and move signature...
45516         (fdutimens): ...here.
45517         (fdutimensat): Rearrange signature.
45518         (lutimensat): Rename variable for clarity.
45519         * lib/fdutimensat.c (fdutimensat): Update signature.
45520         * lib/utimens.c (fdutimens): Likewise.
45521         (gl_futimens): Delete.
45522         (utimens, lutimens): Update callers.
45523         * lib/futimens.c (futimens): Likewise.
45524         * tests/test-fdutimensat.c: Likewise.
45525         * tests/test-utimens.c: Likewise.
45526         * tests/test-futimens.h: Update comment.
45527         * NEWS: Mention this.
45528         Suggested by Paul Eggert.
45530 2010-09-17  Bruno Haible  <bruno@clisp.org>
45532         Take over the maintenance of some older macros from Autoconf.
45533         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
45534         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
45535         GNU Autoconf.
45536         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
45537         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
45539 2010-09-17  Eric Blake  <eblake@redhat.com>
45541         fdutimensat: drop atflag validation
45542         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
45543         with valid fd, to close a race scenario where futimens is
45544         unsupported and FILE was replaced by a symlink.
45545         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
45546         accordingly.
45547         Suggested by Paul Eggert.
45549 2010-09-16  Bruno Haible  <bruno@clisp.org>
45551         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
45552         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
45554 2010-09-16  Bruno Haible  <bruno@clisp.org>
45556         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
45557         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
45558         login_tty exists.
45559         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
45561 2010-09-16  Bruno Haible  <bruno@clisp.org>
45563         login_tty: Make the replacement code work on BSD systems.
45564         * lib/login_tty.c: Include <sys/ioctl.h>.
45565         (login_tty): Use ioctl TIOCSCTTY when available.
45566         * modules/login_tty (Depends-on): Add sys_ioctl.
45567         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
45569 2010-09-16  Bruno Haible  <bruno@clisp.org>
45571         login_tty: Stricter unit test.
45572         * modules/login_tty-tests (Depends-on): Add tcgetsid.
45573         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
45574         and tcgetsid() after login_tty.
45575         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
45577 2010-09-16  Bruno Haible  <bruno@clisp.org>
45579         New module 'tcgetsid'.
45580         * lib/tcgetsid.c: New file.
45581         * m4/tcgetsid.m4: New file.
45582         * modules/tcgetsid: New file.
45583         * modules/termios (Depends-on): Add c++defs, warn-on-use.
45584         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
45585         GNULIB_TCGETSID, HAVE_TCGETSID.
45586         * lib/termios.in.h: Include <sys/types.h>.
45587         (tcgetsid): New declaration.
45588         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
45589         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
45590         * doc/posix-functions/tcgetsid.texi: Mention the new module.
45591         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
45593 2010-09-16  Bruno Haible  <bruno@clisp.org>
45595         Tests for module 'termios'.
45596         * modules/termios-c++-tests: New file.
45597         * modules/termios-tests: New file.
45598         * tests/test-termios-c++.cc: New file.
45599         * tests/test-termios.c: New file.
45601         New module 'termios'.
45602         * modules/termios: New file.
45603         * lib/termios.in.h: New file.
45604         * m4/termios_h.m4: New file.
45605         * doc/posix-headers/termios.texi: Mention the new module.
45607 2010-09-16  Eric Blake  <eblake@redhat.com>
45609         fdutimensat: add an atflag parameter
45610         * lib/fdutimensat.c (fdutimensat): Add new parameter.
45611         * lib/utimens.h (fdutimensat): Update prototype.
45612         * tests/test-fdutimensat.c: Adjust test to match.
45613         * NEWS: Document the change.
45614         Suggested by Paul Eggert.
45616 2010-09-16  Bruno Haible  <bruno@clisp.org>
45618         Fix typos in comments.
45619         * lib/striconveh.h: Fix typo in comment.
45620         * lib/login_tty.c (login_tty): Likewise.
45622 2010-09-15  Bruno Haible  <bruno@clisp.org>
45624         stdlib: clarify MirBSD WEXITSTATUS bug
45625         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
45626         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
45628 2010-09-15  Eric Blake  <eblake@redhat.com>
45630         stdlib: work around MirBSD WEXITSTATUS bug
45631         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
45632         * modules/stdlib (Depends-on): Add sys_wait.
45633         * tests/test-sys_wait.c (main): Enhance test.
45634         * tests/test-stdlib.c (main): Likewise.
45635         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
45637         docs: mention MacOS issue with WEXITSTATUS(constant)
45638         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
45639         issue.
45640         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
45642         strnlen: add tests
45643         * modules/strnlen-tests: New file.
45644         * tests/test-strnlen.c: Likewise.
45646 2010-09-14  Bruno Haible  <bruno@clisp.org>
45648         unistr/base: Avoid link errors when module 'libunistring' is also used.
45649         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
45650         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
45651         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
45652         Declare also when HAVE_LIBUNISTRING is set.
45653         Reported by Pádraig Brady <P@draigbrady.com>.
45655 2010-09-14  Eric Blake  <eblake@redhat.com>
45657         test-rawmemchr: make more robust
45658         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
45659         (Depends-on, configure.ac): Add needed prerequisites to use it.
45660         * modules/memchr-tests (Files, Depends-on, configure.ac):
45661         Likewise, to avoid implicit reliance on memchr module prereqs.
45662         * tests/test-memchr.c (main): Ensure proper masking.
45663         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
45664         reads.
45666         memchr: detect glibc Alpha bug
45667         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
45668         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
45669         Alpha.
45670         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
45671         * tests/test-memchr.c (main): Enhance test.
45672         Reported by Nelson H. F. Beebe.
45674 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
45676         fts, getcwd, glob: audit for dirfd returning -1
45677         * lib/fts.c (opendir): Remove #define; no longer used.
45678         (opendirat): New arg PDIR_FD.  All callers changed.
45679         (fts_build, _opendir2): Use new opendirat to avoid the need for
45680         dirfd, or for checking whether dirfd returns a negative value.
45681         Don't use opendir; always use openat followed by fdopendir.
45682         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
45683         it.
45684         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
45685         returns -1 here.
45686         * modules/fts (Depends-on): Remove dirfd.
45687         * modules/getcwd (Depends-on): Likewise.
45689 2010-09-13  Eric Blake  <eblake@redhat.com>
45691         float: fix broken MirBSD header
45692         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
45693         * doc/posix-headers/float.texi (float.h): Document it.
45695 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
45697         fts: use O_NOFOLLOW to avoid race condition when opening a directory
45698         * lib/fts.c (opendirat): New arg extra_flags.
45699         (__opendir2): Use it to avoid following symlinks when opening
45700         a directory, if symlinks are not supposed to be followed.  See
45701         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
45703         fdopendir: preserve argument fd before returning
45704         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
45705         (fdopendir_with_dup, fd_clone_opendir): New static functions.
45706         (fdopendir): Use them, arranging for FD to be open to the same
45707         directory that it was when it started.  (It might be temporarily
45708         closed while fdopendir is running, so this not thread- or
45709         signal-safe.)  Be careful to do the right thing even when file
45710         descriptors are scarce and dup fails with errno == EMFILE.  See
45711         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
45713 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
45715         regex: Pass the system regex if its only problem is 32-bit regoff_t.
45716         * NEWS: Document change.
45717         * m4/regex.m4: Disable test for regoff_t size.
45719 2010-09-13  Jim Meyering  <meyering@redhat.com>
45721         fts: don't operate on an invalid file descriptor after failed dup
45722         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
45723         negative file descriptor.
45725 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
45727         savedir: add streamsavedir, deprecate fdsavedir
45728         * NEWS: Mention deprecation of fdsavedir.
45729         * lib/savedir.c (streamsavedir): New extern function, whose name
45730         ends in "savedir" to be consistent with the others.  This differs
45731         from savedirstream in that it doesn't close its argument.  The
45732         next version of GNU tar will use this instead of fdsavedir, to
45733         avoid some race conditions and conserve file descriptors.
45734         (savedirstream): Reimplement as a wrapper around streamsavedir.
45735         (fdsavedir): Add a comment deprecating this function.  As far as
45736         I know, only GNU tar used it, and GNU tar doesn't need it any more.
45737         * lib/savedir.h (streamsavedir): New decl.
45738         (fdsavedir): Add a comment deprecating this.
45740 2010-09-10  Bruno Haible  <bruno@clisp.org>
45742         langinfo: Fix last commit.
45743         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
45744         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
45745         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45747 2010-09-10  Bruno Haible  <bruno@clisp.org>
45749         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
45750         * lib/progreloc.c (O_EXEC): Define fallback.
45752 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
45754         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
45755         * NEWS: Document recent changes to fcntl-h.
45756         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
45757         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
45758         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
45759         Similarly for O_SEARCH; this last was already true, but not documented.
45760         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
45761         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
45762         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
45763         Likewise.
45764         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
45765         is zero, not whether it is defined.
45766         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
45767         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
45768         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
45770 2010-09-10  Bruno Haible  <bruno@clisp.org>
45772         langinfo, nl_langinfo: Fix for IRIX 5.3.
45773         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
45774         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
45775         HAVE_LANGINFO_YESEXPR.
45776         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
45777         HAVE_LANGINFO_YESEXPR.
45778         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
45779         HAVE_LANGINFO_T_FMT_AMPM is 0.
45780         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
45781         HAVE_LANGINFO_YESEXPR is 0.
45782         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
45783         NOEXPR.
45784         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
45785         * doc/posix-functions/nl_langinfo.texi: Likewise.
45786         Reported by Eric Blake.
45788 2010-09-10  Bruno Haible  <bruno@clisp.org>
45790         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
45791         * doc/glibc-functions/login_tty.texi: Mention the include file problem
45792         on FreeBSD 8.0 and OpenBSD 4.6.
45793         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
45794         * m4/pty_h.m4 (gl_PTY_H): Likewise.
45795         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
45796         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
45797         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
45798         ac_includes_default.
45799         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
45801 2010-09-09  Eric Blake  <eblake@redhat.com>
45803         strsignal: work around NetBSD bug
45804         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
45805         * lib/string.in.h (includes): Likewise.
45806         * doc/posix-functions/strsignal.texi (strsignal): Document the
45807         bug.
45808         Reported by Nelson H. F. Beebe.
45810         gnulib-tool: work with NetBSD /bin/sh
45811         * gnulib-tool (func_cache_var, func_cache_lookup_module)
45812         (func_get_description, func_get_comment, func_get_status)
45813         (func_get_notice, func_get_applicability, func_get_filelist)
45814         (func_get_dependencies, func_get_autoconf_early_snippet)
45815         (func_get_autoconf_snippet, func_get_automake_snippet)
45816         (func_get_include_directive, func_get_link_directive)
45817         (func_get_license, func_get_maintainer, func_import): Avoid
45818         shell syntax errors from parsing syntax extensions.
45820 2010-09-09  Bruno Haible  <bruno@clisp.org>
45822         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
45823         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
45824         a reliable way to determine whether the 'alias' command works.
45826 2010-09-08  Jim Meyering  <meyering@redhat.com>
45828         init.sh: penalize a set-x-impaired shell; don't disqualify it
45829         * tests/init.sh: Too many shells corrupt application stderr when
45830         you set -x, so we can't afford to disqualify them, since at least
45831         on Irix-6.5, that would disqualify all bourne shells.
45832         Instead, use a two-pass approach.
45833         On the first pass, try to find a shell that meets the stricter
45834         condition that set -x does not corrupt stderr.
45835         If no shell meets the stricter condition, retest each candidate
45836         shell, but without that extra condition.  Finally, when
45837         VERBOSE=yes is requested and set -x might cause trouble, simply
45838         issue a warning and refrain from enabling debug output.
45840 2010-09-08  Eric Blake  <eblake@redhat.com>
45842         unsetenv: fix OpenBSD bug
45843         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
45844         * doc/posix-functions/unsetenv.texi (unsetenv): Update
45845         documentation.
45846         Reported by Jim Meyering.
45848         strtod: work around IRIX 6.5 bug
45849         * lib/strtod.c (strtod): Reparse number on shorter string if
45850         exponent parse was invalid.
45851         * tests/test-strtod.c (main): Add check for "0x1p 2".
45852         Reported by Tom G. Christensen.
45854         getopt: optimize previous patch
45855         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
45856         empty variable.  Speed up awk script.
45857         Reported by Paolo Bonzini.
45859 2010-09-08  Jim Meyering  <meyering@redhat.com>
45861         test.sh: disqualify shells for which set -x corrupts stderr
45862         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
45863         and OpenBSD 4.7.  They make it so with "set -x", environment settings
45864         appear in stderr output.  For example, this command:
45865             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
45866         prints "P=1" on those two systems:
45868 2010-09-08  Bruno Haible  <bruno@clisp.org>
45870         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
45871         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
45872         commands, because some shells ignore redirections when there is an
45873         error in the command lookup.
45874         Reported by Eric Blake.
45876 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
45878         * lib/regex.h: Fix a mention of `regex_compile' (should be
45879         `re_compile_pattern').
45880         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
45881         (re_set_registers): Correct name of parameter in comment.
45883         * doc/regex.texi: Add documentation for missing syntax flags.
45884         Remove commented-out documentation of defunct syntax option
45885         RE_NO_EMPTY_ALTS.
45886         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
45887         Add documentation of re_set_registers.
45888         Document trick to re-use a pattern buffer by setting fastmap manually.
45889         Update documentation of struct re_pattern_buffer per public members.
45890         Uncomment documentation of equivalence class operators and
45891         collating symbol operators, since they are now implemented,
45892         Explain leftmost-longest matching in relation to alternatives.
45893         Tidy documentation of substring matching.
45894         Remove POSIX documentation, which is done better in
45895         glibc, and refer the reader there. Keep BSD API documentation, as
45896         that is not readily available elsewhere.
45898 2010-09-07  Eric Blake  <eblake@redhat.com>
45900         getopt: handle POSIXLY_CORRECT set but not exported
45901         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
45902         export state of POSIXLY_CORRECT, due to bash set -o posix.
45903         Reported by Dustin J. Mitchell.
45905 2010-09-05  Bruno Haible  <bruno@clisp.org>
45907         gnulib-tool: Highlight the changed options.
45908         * gnulib-tool (func_usage): Display the --import, --add-import,
45909         --remove-import explanations in bold font.
45911 2010-09-06  Karl Berry  <karl@gnu.org>
45913         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
45915 2010-09-05  Bruno Haible  <bruno@clisp.org>
45917         uniwidth/width: Update comment.
45918         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
45919         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
45921 2010-09-05  Bruno Haible  <bruno@clisp.org>
45923         isinf, isnan: Relax license.
45924         * modules/isinf (License): Change from GPL to LGPL, with consent from
45925         Ben Pfaff.
45926         * modules/isnan (License): Likewise.
45927         Requested by Ludovic Courtès.
45929 2010-09-04  Bruno Haible  <bruno@clisp.org>
45931         gnulib-tool: Help migration from --import to --add-import or --update.
45932         * gnulib-tool: Emit a verbose error message when --import is used
45933         without any module name.
45935 2010-09-04  Bruno Haible  <bruno@clisp.org>
45937         Update doc about gnulib-tool.
45938         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
45939         'gnulib-tool --update' in more detail.
45940         Reported by Eric Blake.
45942 2010-09-04  Bruno Haible  <bruno@clisp.org>
45944         gnulib-tool: Change --import. New options --add/remove-import.
45945         * gnulib-tool: New options --add-import, --remove-import.
45946         (func_usage): Document them.
45947         (have_associative): Define always.
45948         (func_import): In import mode, don't merge the specified settings with
45949         the cached settings. Implement remove-import mode.
45950         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
45951         Explain when to use them versus --import.
45952         (Simple update): Use --add-import instead of --import.
45953         * NEWS: Mention the change.
45955 2010-09-04  Bruno Haible  <bruno@clisp.org>
45957         * doc/gnulib-tool.texi (Initial import): Update paragraph about
45958         separate gnulib.mk.
45960 2010-09-04  Bruno Haible  <bruno@clisp.org>
45962         gnulib-tool: Don't talk about CVS any more.
45963         * gnulib-tool (func_usage, func_import): Write "version control"
45964         instead of CVS.
45966 2010-09-04  Jim Meyering  <meyering@redhat.com>
45968         maint.mk: avoid obscure sc_copyright_check failure in coreutils
45969         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
45970         false positives (whose names may be ill-chosen) when searching
45971         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
45972         would cause a false-positive.
45974         avoid coreutils "make distcheck" failure
45975         Coreutils tests with an absolute build directory name that contains
45976         a space.  Not quoting this directory name caused a failure.
45977         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
45978         * tests/test-vc-list-files-cvs.sh: Likewise.
45980 2010-09-04  Bruno Haible  <bruno@clisp.org>
45982         gnulib-tool: Avoid error when run in a package without Makefile.am.
45983         * gnulib-tool: When collecting the m4dirs in a package that does not
45984         have a Makefile.am, eliminate those directories that contain no
45985         gnulib-cache.m4. Fix expression that counts these directories.
45987 2010-09-04  Bruno Haible  <bruno@clisp.org>
45989         update-copyright test: Improve output when perl is missing or too old.
45990         * tests/test-update-copyright.sh: Move test of Perl version down after
45991         the test whether Perl exists. Provide an explanation relating Perl's
45992         error message to Automake's SKIP: message.
45994 2010-09-04  Bruno Haible  <bruno@clisp.org>
45996         Don't augment PATH in TESTS_ENVIRONMENT.
45997         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
45998         set abs_aux_dir instead of augmenting PATH.
45999         * modules/vc-list-files-tests (Makefile.am): Likewise.
46000         * tests/test-update-copyright.sh: Augment PATH here.
46001         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
46002         path_prepend_.
46003         * tests/test-vc-list-files-git.sh: Likewise.
46005 2010-09-04  Jim Meyering  <meyering@redhat.com>
46007         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
46008         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
46010 2010-09-04  Bruno Haible  <bruno@clisp.org>
46012         strdup: Fix compilation error in C++ mode.
46013         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
46014         the macro.
46016 2010-09-04  Bruno Haible  <bruno@clisp.org>
46018         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
46019         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
46020         macro into a function.
46021         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
46023 2010-09-04  Bruno Haible  <bruno@clisp.org>
46025         Set PATH_SEPARATOR the same way autoconf does.
46026         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
46027         the value of PATH_SEPARATOR the same way autoconf-generated configure
46028         scripts do.
46029         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
46030         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
46032 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
46034         Set PATH_SEPARATOR the same way autoconf does.
46035         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
46036         the same way autoconf-generated configure scripts do.
46037         * posix-modules: Likewise.
46039 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
46041         hash: fix safe_hasher const typo
46042         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
46043         const; otherwise, there is a type error later.
46045 2010-09-02  Jim Meyering  <meyering@redhat.com>
46047         test-update-copyright.sh: require perl 5.8.0
46048         * tests/test-update-copyright.sh: Require 5.8.0,
46049         which Tom G. Christensen has confirmed is adequate,
46050         while 5.6.1 is not.
46052 2010-09-02  Eric Blake  <eblake@redhat.com>
46054         tests: init.sh improvements for re-exec'ing with zsh
46055         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
46056         -vx through shell re-exec.
46057         Reported by Tom G. Christensen.
46059         wctype: fix typo in previous commit
46060         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
46061         Reported by Ludovic Courtès.
46063 2010-09-02  Jim Meyering  <meyering@redhat.com>
46065         test-update-copyright.sh: skip test if Perl is too old
46066         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
46067         Reported by Tom G. Christensen.
46069 2010-09-02  Bruno Haible  <bruno@clisp.org>
46071         wctype: Avoid compilation error on IRIX 6.5.30.
46072         * lib/wctype.in.h (iswblank): Declare with a replacement if
46073         REPLACE_ISWBLANK is set.
46074         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
46075         declared. Set REPLACE_ISWBLANK.
46076         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
46077         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
46078         * doc/posix-headers/wctype.texi: Likewise.
46079         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46081 2010-09-01  Bruno Haible  <bruno@clisp.org>
46083         New module 'socketlib'.
46084         * modules/socketlib: New file.
46085         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
46086         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
46087         * modules/sockets (Depends-on): Add socketlib.
46088         Suggested by Sam Steingold <sds@gnu.org>.
46090 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
46092         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
46094         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
46095         when one needs search access to a directory but not read access.
46096         On systems where it is available, it works in some cases where
46097         O_RDONLY does not, namely on directories that are searchable but
46098         not readable, and which need only to be searchable.  If O_SEARCH
46099         is not available, fall back to the traditional method of using
46100         O_RDONLY.
46102         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
46103         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
46104         when opening a directory that needs only to be searchable.
46105         * lib/chdir-safer.c (chdir_no_follow): Likewise.
46106         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
46107         * lib/openat-proc.c (openat_proc_name): Likewise.
46108         * lib/openat.c (openat_needs_fchdir): Likewise.
46109         * lib/save-cwd.c (save_cwd): Likewise.
46110         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
46112 2010-08-28  Bruno Haible  <bruno@clisp.org>
46114         New module 'host-cpu-c-abi'.
46115         * modules/host-cpu-c-abi: New file.
46116         * m4/host-cpu-c-abi.m4: New file, based on part of
46117         clisp/src/m4/general.m4.
46118         Requested by Sam Steingold <sds@gnu.org>.
46120 2010-08-31  Eric Blake  <eblake@redhat.com>
46121         and Jim Meyering  <meyering@redhat.com>
46123         hash: factor, and guard against misbehaving hasher function
46124         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
46125         of table->hasher's return value.  Also protect against a hash value
46126         so large that adding it to table->bucket results in a NULL pointer.
46127         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
46128         Use it in place of open-coded check-and-abort.
46130 2010-08-30  Bruno Haible  <bruno@clisp.org>
46132         hash: silence spurious clang warning
46133         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
46134         Reported by Eric Blake.
46136 2010-08-30  Eric Blake  <eblake@redhat.com>
46138         strstr, memmem, strcasestr: avoid leaked shell message
46139         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
46140         FreeBSD.
46141         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46142         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46144         tests: silence clang warning
46145         * tests/test-malloca.c (do_allocation): Avoid dead store.
46147 2010-08-29  Bruno Haible  <bruno@clisp.org>
46149         gettext: Fix recent mistake.
46150         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
46152 2010-08-29  Bruno Haible  <bruno@clisp.org>
46154         selinux-h: Offer a --without-selinux option.
46155         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
46156         --without-selinux was specified, skip all tests and define
46157         HAVE_SELINUX_SELINUX_H to 0.
46158         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
46159         set LIB_SELINUX to empty.
46160         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
46161         gl_LIBSELINUX. If --without-selinux was specified, replace
46162         selinux/context.h.
46163         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
46165 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46166             Bruno Haible  <bruno@clisp.org>
46168         Make the module 'realloc-gnu' work again on AIX and OSF/1.
46169         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
46170         of HAVE_REALLOC.
46171         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
46172         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
46173         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
46174         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
46176 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46177             Bruno Haible  <bruno@clisp.org>
46179         Make the module 'calloc-gnu' work again on AIX and OSF/1.
46180         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
46181         HAVE_CALLOC.
46182         * lib/xmalloc.c: Update accordingly.
46183         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
46184         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
46185         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
46187 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46188             Bruno Haible  <bruno@clisp.org>
46190         Make the module 'malloc-gnu' work again on AIX and OSF/1.
46191         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
46192         HAVE_MALLOC.
46193         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
46194         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
46195         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
46197 2010-08-29  Bruno Haible  <bruno@clisp.org>
46199         Update modules list.
46200         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
46201         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
46202         (String handling <string.h>): Add astrxfrm.
46203         (File system functions): Add readlinkat.
46205 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46207         Tests for module 'realloc-gnu'.
46208         * modules/realloc-gnu-tests: New file.
46209         * tests/test-realloc-gnu.c: New file.
46211         Tests for module 'calloc-gnu'.
46212         * modules/calloc-gnu-tests: New file.
46213         * tests/test-calloc-gnu.c: New file.
46215         Tests for module 'malloc-gnu'.
46216         * modules/malloc-gnu-tests: New file.
46217         * tests/test-malloc-gnu.c: New file.
46219 2010-08-28  Bruno Haible  <bruno@clisp.org>
46221         Rename module 'realloc' -> 'realloc-gnu'.
46222         * modules/realloc-gnu: New file, copied from modules/realloc.
46223         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
46224         obsolete.
46225         * modules/mgetgroups (Depends-on): Update.
46226         * doc/posix-functions/realloc.texi: Update.
46227         * NEWS: Mention the change.
46229         Rename module 'calloc' -> 'calloc-gnu'.
46230         * modules/calloc-gnu: New file, copied from modules/calloc.
46231         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
46232         obsolete.
46233         * doc/posix-functions/calloc.texi: Update.
46234         * NEWS: Mention the change.
46236         Rename module 'malloc' -> 'malloc-gnu'.
46237         * modules/malloc-gnu: New file, copied from modules/malloc.
46238         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
46239         obsolete.
46240         * modules/argp (Depends-on): Update.
46241         * modules/regex (Depends-on): Update.
46242         * doc/posix-functions/malloc.texi: Update.
46243         * NEWS: Mention the change.
46245 2010-08-28  Eric Blake  <eblake@redhat.com>
46247         pread, pwrite: add missing dependency
46248         * modules/pread (Depends-on): Add extensions.
46249         * modules/pwrite (Depends-on): Likewise.
46251 2010-08-28  Bruno Haible  <bruno@clisp.org>
46253         unistr/u*-strchr: Fix tests dependencies.
46254         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
46255         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
46256         Reported by Ian Beckwith <ianb@erislabs.net>.
46258 2010-08-28  Bruno Haible  <bruno@clisp.org>
46260         read-file: Don't occupy too much unused memory.
46261         * lib/read-file.c (fread_file): Shrink the buffer at the end.
46263 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
46264             Eric Blake  <eblake@redhat.com>
46265             Bruno Haible  <bruno@clisp.org>
46267         read-file: Avoid memory reallocations with regular files.
46268         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
46269         (fread_file): With regular files, use the remaining length as the
46270         initial buffer size.  Check against overflow.
46271         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
46272         sys_stat.
46274 2010-08-28  Bruno Haible  <bruno@clisp.org>
46276         ftello: Relax license.
46277         * modules/ftello (License): Relax to LGPLv2+.
46278         Reported by Eric Blake.
46280 2010-08-28  Bruno Haible  <bruno@clisp.org>
46282         Avoid relocwrapper link errors due to gnulib replacement functions.
46283         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
46284         function.
46285         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46287 2010-08-28  Bruno Haible  <bruno@clisp.org>
46289         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
46290         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
46291         defined.
46292         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
46293         Suggested by Eric Blake.
46295 2010-08-28  Bruno Haible  <bruno@clisp.org>
46297         sys_socket, netdb: Ensure socklen_t gets defined.
46298         * modules/sys_socket (Depends-on): Add socklen.
46299         * modules/netdb (Depends-on): Likewise.
46300         * modules/getaddrinfo (Depends-on): Remove socklen.
46301         * modules/getsockopt (Depends-on): Likewise.
46302         * modules/setsockopt (Depends-on): Likewise.
46303         * tests/test-sys_socket.c: Check that socklen_t is defined.
46304         * tests/test-netdb.c: Likewise.
46305         * m4/socklen.m4: Update comments.
46306         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46308 2010-08-27  Eric Blake  <eblake@redhat.com>
46310         login_tty: add missing dependency
46311         * modules/login_tty (Depends-on): Add pty.
46313 2010-08-26  Eric Blake  <eblake@redhat.com>
46315         lib-symbol-versions: fix m4 quoting
46316         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
46317         format for AC_LINK_IFELSE.
46319         glob: fix compile test
46320         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
46322         btowc: fix missing file
46323         * modules/btowc (Files): Also ship locale-fr.m4.
46325         lseek: fix link test
46326         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
46327         AC_LINK_IFELSE.
46329         include_next: silence autoconf 2.68 warning
46330         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
46331         AC_COMPILE_IFELSE as special.
46332         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
46333         autoconf < 2.68.
46335         acl: fix compilation test
46336         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
46337         AC_COMPILE_IFELSE.
46339 2010-08-26  Bruno Haible  <bruno@clisp.org>
46341         Modernize AC_TRY_RUN invocations.
46342         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
46343         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
46344         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
46345         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
46346         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
46347         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
46348         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
46349         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
46350         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
46351         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
46352         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
46353         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
46354         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
46355         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
46356         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
46357         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
46358         gl_MBRLEN_NUL_RETVAL): Likewise.
46359         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
46360         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
46361         Likewise.
46362         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
46363         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
46364         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
46365         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
46366         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
46367         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
46368         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
46369         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
46370         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
46371         Likewise.
46372         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
46373         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
46374         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
46375         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
46376         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
46377         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
46378         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
46379         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
46380         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
46381         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
46383 2010-08-26  Bruno Haible  <bruno@clisp.org>
46385         Modernize AC_TRY_LINK invocations.
46386         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
46387         AC_TRY_LINK.
46388         * m4/argp.m4 (gl_ARGP): Likewise.
46389         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
46390         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
46391         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
46392         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
46393         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
46394         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
46395         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
46396         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
46397         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
46398         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
46399         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
46400         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
46401         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
46402         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
46403         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
46404         * m4/hostent.m4 (gl_HOSTENT): Likewise.
46405         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
46406         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
46407         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
46408         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
46409         Likewise.
46410         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
46411         Likewise.
46412         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
46413         Likewise.
46414         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
46415         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
46416         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
46417         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
46418         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
46419         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
46420         * m4/servent.m4 (gl_SERVENT): Likewise.
46421         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
46422         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
46423         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
46424         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
46425         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
46426         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
46427         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
46428         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
46429         * modules/tsearch-tests (configure.ac): Likewise.
46431 2010-08-26  Bruno Haible  <bruno@clisp.org>
46433         Modernize AC_TRY_COMPILE invocations.
46434         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
46435         AC_TRY_COMPILE.
46436         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
46437         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
46438         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
46439         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
46440         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
46441         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
46442         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
46443         * m4/lock.m4 (gl_LOCK): Likewise.
46444         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
46445         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
46446         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
46447         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
46448         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
46449         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
46450         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
46451         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
46452         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
46453         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
46454         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
46455         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
46456         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
46457         extraneous semicolon.
46459 2010-08-26  Jim Meyering  <meyering@redhat.com>
46461         stat-time: relax license LGPL
46462         * modules/stat-time (License): Change from GPL to LGPL,
46463         with consent from all contributors, for use in libguile.
46464         Requested by Ludovic Courtès.
46466 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
46468         poll: return immediately on POLLHUP.
46469         * lib/poll.c (poll): Always set timeout before wait_timeout is
46470         computed.
46472 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46474         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
46475         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
46476         rmdir ("dir/.//"), unlinkat.
46478 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
46480         stdbool: avoid spurious failure with modern xlc
46481         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
46483 2010-08-24  Bruno Haible  <bruno@clisp.org>
46485         getloadavg: simplify code
46486         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
46487         gl_have_func. Update comments.
46489 2010-08-24  Eric Blake  <eblake@redhat.com>
46491         getloadavg: don't define SVR4 on cygwin
46492         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
46493         only define SVR4 when -lkvm is required.
46494         Reported by Yaakov Selkowitz.
46496 2010-08-24  Bruno Haible  <bruno@clisp.org>
46498         priv-set: fix comment
46499         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
46501 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
46503         priv-set: fix comments
46504         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
46505         to match code, as suggested by David Bartley in:
46506         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
46508 2010-08-23  Eric Blake  <eblake@redhat.com>
46510         stdbool: avoid rejecting clang
46511         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
46512         * tests/test-stdbool.c: Enable more tests if using the system
46513         <stdbool.h> instead of the gnulib replacement.
46514         (main): Move xlc bug test to a runtime test for all compilers.
46515         Reported by Anders Kaseorg.
46517         argz: fix shell quoting issue
46518         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
46519         Reported by Charles Wilson.
46521 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
46522             Erik Faye-Lund <kusmabite@gmail.com>
46524         poll, select: handle ERROR_BROKEN_PIPE.
46525         * lib/poll.c (win32_compute_revents): Return POLLHUP when
46526         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
46527         * lib/select.c (win32_compute_revents): Do not mark a pipe
46528         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
46530 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
46532         fts: allow compilation with C++
46533         * lib/fts_.h: Specify extern "C" linkage with C++.
46535 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46537         Fix gnulib-tool sed script de-commentation for AIX sed.
46538         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
46539         sed.
46541 2010-08-17  Eric Blake  <eblake@redhat.com>
46543         test-stddef: test for (some) offsetof bugs
46544         * tests/test-stddef.c: Enhance test to ensure correct type of
46545         offsetof.
46546         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
46547         that we are not fixing at this time.
46549 2010-08-15  Bruno Haible  <bruno@clisp.org>
46551         stpncpy: Allow stpncpy to be defined as a macro.
46552         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
46553         if it's already correctly declared.
46554         * lib/string.in.h (stpncpy): Undefine before redefining.
46555         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
46557 2010-08-14  Bruno Haible  <bruno@clisp.org>
46559         Rename module 'memxfrm' to 'amemxfrm'.
46560         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
46561         (amemxfrm): Renamed from memxfrm.
46562         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
46563         (amemxfrm): Renamed from memxfrm.
46564         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
46565         * NEWS: Mention the change.
46566         * MODULES.html.sh (String handling <string.h>): Update.
46567         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
46568         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
46569         * lib/unicase/u16-casexfrm.c: Likewise.
46570         * lib/unicase/u32-casexfrm.c: Likewise.
46571         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
46572         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
46573         * lib/uninorm/u16-normxfrm.c: Likewise.
46574         * lib/uninorm/u32-normxfrm.c: Likewise.
46575         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
46576         memxfrm.
46577         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
46578         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
46579         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
46580         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
46581         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
46582         Suggested by Paul Eggert.
46584 2010-08-14  Bruno Haible  <bruno@clisp.org>
46586         Tests for module 'astrxfrm'.
46587         * modules/astrxfrm-tests: New file.
46588         * tests/test-astrxfrm.c: New file.
46590         New module 'astrxfrm'.
46591         * lib/astrxfrm.h: New file.
46592         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
46593         * modules/astrxfrm: New file.
46595 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
46597         regex: Tweak doc.
46598         * doc/regex.texi (Overview): Don't mention regex.c.
46599         (GNU Regular Expression Compiling): Likewise.
46600         (Match-end-of-line Operator): Mention 'not_eol'.
46602 2010-08-14  Brian Gough  <bjg@gnu.org>
46603             Bruno Haible  <bruno@clisp.org>
46605         git-merge-changelog: add doc relating to use with bzr and hg.
46606         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
46608 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
46610         pthread: fix pthread.h creation for srcdir != builddir
46611         * modules/pthread (Makefile.am): Fix the rule to work also in a
46612         non-srcdir build.
46614 2010-08-13  Karl Berry  <karl@gnu.org>
46616         * doc/regex.texi (Predefined Syntaxes): @smallexample.
46617         * doc/posix-*/*: force line break before @url of POSIX
46618         specifications.
46619         Suggested by Werner Lemberg.
46621 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
46623         strtod: fix const diagnostic
46624         * lib/strtod.c (strtod): Don't assign const char * to char *,
46625         as this elicits a warning from GCC when warnings are enabled.
46627 2010-08-10  Pádraig Brady  <P@draigbrady.com>
46628         and Eric Blake  <eblake@redhat.com>
46630         copy-acl: ignore ENOTSUP on HP-UX
46631         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
46632         so that it is available for HP-UX.
46633         * lib/copy-acl.c (qcopy_acl): Use it.
46634         Reported by Patrick M. Callahan.
46636 2010-08-10  Eric Blake  <eblake@redhat.com>
46638         open, chown: relax license
46639         * modules/open (License): Change to LGPLv2+, with consent by all
46640         authors, for use in augeas.
46641         * modules/chown (License): Likewise.
46642         * modules/lchown (Likewise): Likewise.
46643         Requested by Adam Stokes.
46645 2010-08-09  Karl Berry  <karl@gnu.org>
46647         * build-aux/ar-lib: new file, import from Automake.
46648         * config/srclist.txt: autocheck for updates.
46650 2010-08-09  Eric Blake  <eblake@redhat.com>
46652         readlinkat: adjust client modules
46653         * modules/areadlinkat (Depends-on): Use readlinkat, not
46654         symlinkat.
46655         * modules/areadlinkat-with-size (Depends-on): Likewise.
46657         mknod: be more vocal about danger of running tests as root
46658         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
46659         root, since that is just asking for problems.
46660         Suggested by Bruno Haible, based on a report by Rainer Tammer.
46662         readlinkat: split into its own module
46663         * modules/symlinkat: Split readlinkat...
46664         * modules/readlinkat: ...into separate module.
46665         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
46666         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
46667         * lib/symlinkat.c (readlinkat): Move...
46668         * lib/readlinkat.c: ...into new file.
46669         * modules/symlinkat-tests: Split readlinkat test...
46670         * modules/readlinkat-tests: ...into separate module.
46671         * tests/test-symlinkat.c: Split...
46672         * tests/test-readlinkat.c: ...into new file.
46673         * NEWS: Document the split.
46674         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
46675         * lib/unistd.in.h (readlinkat): Likewise.
46676         Suggested by Bruno Haible.
46678 2010-08-08  Bruno Haible  <bruno@clisp.org>
46680         memxfrm: Speed up.
46681         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
46682         that usually only one call to strxfrm is necessary for each string
46683         part.
46684         Reported by Paul Eggert <eggert@cs.ucla.edu>.
46686 2010-08-07  Karl Berry  <karl@gnu.org>
46688         * doc/posix-headers/limits.texi,
46689         * doc/posix-functions/malloc.texi,
46690         * doc/posix-functions/strsignal.texi: missing @item.
46691         * doc/ld-version-script.texi: spurious leading i.
46692         * doc/regex.texi (Interval Operators): no commas inside @var.
46694 2010-08-01  Bruno Haible  <bruno@clisp.org>
46696         Integrate the regex documentation.
46697         * doc/gnulib.texi: Define 'cn' index.
46698         (Regular expressions): New a chapter that includes regex.texi and
46699         regexprops-generic.texi.
46700         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
46701         syntax.
46703         Whitespace cleanup.
46704         * doc/regex.texi: Remove trailing spaces.
46706         Add regex documentation.
46707         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
46708         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
46709         Written by Kathy A. Hargreaves and Karl Berry.
46711 2010-08-01  Bruno Haible  <bruno@clisp.org>
46713         link: Update documentation.
46714         * doc/posix-functions/link.texi: Update regarding Solaris.
46716 2010-07-31  Bruno Haible  <bruno@clisp.org>
46718         Update modules list.
46719         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
46720         (String handling <string.h>): Add memcmp2, memxfrm.
46721         (Container data structures): Add xlist, xsublist, xoset.
46722         (Core language properties): Add alignof, unused-parameter.
46723         (Process control, Numeric conversion functions <stdlib.h>): Renamed
46724         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
46725         (Unibyte characters <ctype.h>): New section.
46726         (String handling <string.h>): New section.
46727         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
46728         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
46729         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
46730         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
46731         tan, tanh, tanl, y0, y1, yn.
46732         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
46733         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
46734         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
46735         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
46736         unlockpt, vdprintf, vdprintf-posix.
46737         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
46738         (File system functions): Add concat-filename, sys_file, sys_ioctl,
46739         xconcat-filename.
46740         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
46741         getdtablesize, pipe2, pipe2-safer.
46742         (Security): New section.
46743         (Networking functions): Add accept4.
46744         (Signal handling): Add sigpipe.
46745         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
46746         mbmemcasecoll.
46747         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
46748         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
46749         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
46750         pipe-filter-ii.
46751         (Misc): Add argp-version-etc, login_tty, parse-duration.
46753 2010-07-31  Bruno Haible  <bruno@clisp.org>
46755         Improve doc in MODULES.html.
46756         * modules/linkat (Description): Add the word "function".
46757         * modules/mkfifo (Description): Likewise.
46758         * modules/mknod (Description): Likewise.
46759         * modules/remove (Description): Likewise.
46760         * modules/renameat (Description): Likewise.
46761         * modules/stat (Description): Likewise.
46762         * modules/symlink (Description): Likewise.
46763         * modules/unlink (Description): Likewise.
46765 2010-07-31  Bruno Haible  <bruno@clisp.org>
46767         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
46768         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
46769         option --enable/disable-c++ instead of --enable/disable-cxx.
46770         * NEWS: Mention the change.
46772 2010-07-31  Bruno Haible  <bruno@clisp.org>
46774         readlink, areadlink: Relax test a bit.
46775         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
46776         alternative to ENOTDIR.
46777         * tests/test-areadlink.h (test_areadlink): Likewise.
46778         Reported by Rainer Tammer.
46780 2010-07-31  Bruno Haible  <bruno@clisp.org>
46782         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
46783         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
46784         character, perform the search using U_STRCHR.
46785         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
46786         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
46787         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
46788         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
46789         Suggested by Paolo Bonzini.
46791 2010-07-31  Bruno Haible  <bruno@clisp.org>
46793         unistr/u*-strstr: Fix dependencies.
46794         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
46795         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
46796         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
46798 2010-07-31  Bruno Haible  <bruno@clisp.org>
46800         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
46801         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
46802         the beginning of the loop.
46803         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
46804         cases in 'switch' statement.
46806         unistr/u8-strchr: Fix several bugs.
46807         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
46808         the string. When not found, return NULL, not a pointer near the end.
46810         More tests for unistr/u8-strchr.
46811         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
46812         that the function does not read past the first occurrence of the byte
46813         being searched.
46814         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
46815         * tests/unistr/test-u16-strchr.c (main): New function.
46816         * tests/unistr/test-u32-strchr.c (main): New function.
46818 2010-07-31  Bruno Haible  <bruno@clisp.org>
46820         posix-modules: Ignore backup files of documentation files.
46821         * posix-modules: grep only through files named *.texi.
46823 2010-07-31  Bruno Haible  <bruno@clisp.org>
46825         symlinkat: Fix documentation.
46826         * doc/posix-functions/readlinkat.texi: Fix module name.
46828 2010-07-31  Bruno Haible  <bruno@clisp.org>
46830         fchownat: Replace also when chown has the trailing slash bug.
46831         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
46832         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
46833         introduced on 2010-04-10.
46834         Reported by Rainer Tammer.
46836 2010-07-31  Bruno Haible  <bruno@clisp.org>
46838         linkat: Work around AIX 7.1 bug.
46839         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
46840         whether linkat handles trailing slash correctly. If not, replace linkat
46841         and define LINKAT_TRAILING_SLASH_BUG.
46842         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
46843         check whether (fd1,file1) points to a directory if file1 or file2 ends
46844         in a slash. Code taken from lib/link.c.
46845         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
46846         Reported by Rainer Tammer.
46848 2010-07-31  Bruno Haible  <bruno@clisp.org>
46850         Correctly determine whether pow is available in libc on AIX 7 with xlc.
46851         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
46852         This disables an xlc optimization that was causing wrong test results.
46853         Reported by Rainer Tammer.
46855 2010-07-31  Bruno Haible  <bruno@clisp.org>
46857         iconv: Work around AIX 6.1..7.1 bug.
46858         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
46859         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
46860         cross-compiling, guess no on all versions of AIX.
46861         Reported by Rainer Tammer.
46863 2010-07-31  Bruno Haible  <bruno@clisp.org>
46865         readlink: Relax test a bit.
46866         * tests/test-readlink.h (test_readlink): Allow different errno value
46867         when readlink is called with a file name that ends in / and refers to
46868         a file.
46869         Suggested by Eric Blake.
46870         Reported by Rainer Tammer.
46872 2010-07-31  Bruno Haible  <bruno@clisp.org>
46874         copysign: Does not require -lm on glibc systems.
46875         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
46876         gl_COMMON_DOUBLE_MATHFUNC.
46877         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
46879 2010-07-31  Bruno Haible  <bruno@clisp.org>
46881         duplocale: Work around AIX 7.1 bug.
46882         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
46883         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
46884         * lib/duplocale.c (rpl_duplocale): Update comment.
46885         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
46886         Reported by Rainer Tammer.
46888 2010-07-30  Bruno Haible  <bruno@clisp.org>
46890         dirfd: Avoid link error on AIX 7.1.
46891         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
46892         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
46893         exist, set REPLACE_DIRFD.
46894         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
46895         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
46896         * doc/posix-functions/dirfd.texi: Update.
46897         Reported by Rainer Tammer.
46899 2010-07-30  Eric Blake  <eblake@redhat.com>
46901         strtod: next round of AIX fixes
46902         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
46903         exponent.
46904         * tests/test-strtod.c (main): Enhance tests.
46905         * doc/posix-functions/strtod.texi (strtod): Document next bug.
46906         Reported by Rainer Tammer.
46908         futimens: fix configure check
46909         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
46910         Reported by Bruno Haible.
46912 2010-07-30  Bruno Haible  <bruno@clisp.org>
46914         getline: Update regarding AIX.
46915         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
46916         Reported by Rainer Tammer.
46918 2010-07-30  Bruno Haible  <bruno@clisp.org>
46920         wcwidth: Drop replacement on AIX 7.
46921         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
46922         AIX 7.
46923         Reported by Rainer Tammer.
46925 2010-07-30  Bruno Haible  <bruno@clisp.org>
46927         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
46928         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
46929         a 'char *'.
46930         Reported by Rainer Tammer.
46932 2010-07-30  Bruno Haible  <bruno@clisp.org>
46934         unlink: Update regarding AIX.
46935         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
46936         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
46937         Reported by Rainer Tammer.
46939 2010-07-30  Bruno Haible  <bruno@clisp.org>
46941         symlink: Update regarding AIX.
46942         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
46943         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
46944         Reported by Rainer Tammer.
46946 2010-07-30  Bruno Haible  <bruno@clisp.org>
46948         strndup: Update regarding AIX.
46949         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
46950         AIX 7.
46951         Reported by Rainer Tammer.
46953 2010-07-30  Bruno Haible  <bruno@clisp.org>
46955         stat: Update regarding AIX.
46956         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
46957         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
46958         Reported by Rainer Tammer.
46960 2010-07-30  Bruno Haible  <bruno@clisp.org>
46962         truncl: Fix autoconf test.
46963         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
46964         whether truncl works.
46965         Reported by Rainer Tammer.
46967 2010-07-30  Bruno Haible  <bruno@clisp.org>
46969         round: Update regarding AIX.
46970         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
46971         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
46972         Reported by Rainer Tammer.
46974 2010-07-30  Bruno Haible  <bruno@clisp.org>
46976         rename: Update regarding AIX.
46977         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
46978         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
46979         Reported by Rainer Tammer.
46981 2010-07-30  Bruno Haible  <bruno@clisp.org>
46983         printf.m4: Update regarding AIX.
46984         * m4/printf.m4: Update comments regarding AIX.
46985         Reported by Rainer Tammer.
46987 2010-07-30  Bruno Haible  <bruno@clisp.org>
46989         iconv: Update regarding AIX.
46990         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
46991         AIX 7.
46992         Reported by Rainer Tammer.
46994 2010-07-30  Bruno Haible  <bruno@clisp.org>
46996         getopt: Update regarding AIX.
46997         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
46998         no on AIX.
46999         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
47000         Reported by Rainer Tammer.
47002 2010-07-30  Bruno Haible  <bruno@clisp.org>
47004         ldexpl; Update regarding AIX.
47005         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
47006         on AIX 7.
47007         Reported by Rainer Tammer.
47009 2010-07-30  Bruno Haible  <bruno@clisp.org>
47011         frexpl: Update regarding AIX.
47012         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
47013         on AIX 7.
47014         Reported by Rainer Tammer.
47016 2010-07-30  Bruno Haible  <bruno@clisp.org>
47018         open, fopen: Update regarding AIX.
47019         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
47020         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
47021         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
47022         * doc/posix-functions/fopen.texi: Likewise.
47023         Reported by Rainer Tammer.
47025 2010-07-30  Bruno Haible  <bruno@clisp.org>
47027         chown: Update doc regarding AIX.
47028         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
47029         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
47030         Reported by Rainer Tammer.
47032 2010-07-30  Eric Blake  <eblake@redhat.com>
47034         strtod: fix bug in replacement function on AIX
47035         * lib/strtod.c (strtod): Special case broken "0x" parse in
47036         underlying strtod.
47037         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
47038         * doc/posix-functions/strtod.texi (strtod): Likewise.
47039         Reported by Rainer Tammer.
47041 2010-07-30  Bruno Haible  <bruno@clisp.org>
47043         mbrlen: Fix cross-compilation guess for AIX.
47044         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
47045         guess. Leftover from 2008-12-22.
47047 2010-07-30  Bruno Haible  <bruno@clisp.org>
47049         mbrtowc: Fix cross-compilation guess for AIX.
47050         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
47051         guess. Leftover from 2008-12-21.
47053 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
47055         init.sh: work around trap limitation of some shells
47056         * tests/init.sh (setup_): Move exit trap outside of shell function.
47058 2010-07-29  Eric Blake  <eblake@redhat.com>
47060         strtod: aid debugging
47061         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
47062         understanding why strtod is rejected.
47064 2010-07-28  Bruno Haible  <bruno@clisp.org>
47066         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
47067         * lib/unistr/u8-chr.c: Include <string.h>.
47068         * tests/unistr/test-u8-chr.c: Likewise.
47069         * tests/unistr/test-u16-chr.c: Likewise.
47070         * tests/unistr/test-u32-chr.c: Likewise.
47071         * tests/unistr/test-u8-strchr.c: Likewise.
47072         * tests/unistr/test-u16-strchr.c: Likewise.
47073         * tests/unistr/test-u32-strchr.c: Likewise.
47074         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
47075         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
47076         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
47077         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
47079 2010-07-28  Bruno Haible  <bruno@clisp.org>
47081         Use spaces for indentation, not tabs.
47082         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
47084 2010-07-27  Bruno Haible  <bruno@clisp.org>
47086         mbspcasecmp: Fix function specification.
47087         * lib/string.in.h (mbspcasecmp): Fix specification comment.
47088         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
47089         Reported by Eric Blake <eblake@redhat.com>.
47091 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
47093         timespec: use cast and not conditional, as truncation isn't possible
47094         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
47095         instead of a conditional.  Comment about the situation in more detail.
47096         This undoes most of the 2009-10-29 patch.
47098 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
47100         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
47101         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
47102         * lib/unistr/u8-strchr.c: Likewise.
47103         * modules/unistr/u8-chr: Depend on memchr.
47105         unistr/u*-strchr: add tests
47106         * modules/unistr/u8-strchr-tests: New file.
47107         * modules/unistr/u16-strchr-tests: New file.
47108         * modules/unistr/u32-strchr-tests: New file.
47109         * tests/unistr/test-strchr.h: New file.
47110         * tests/unistr/test-u8-strchr.c: New file.
47111         * tests/unistr/test-u16-strchr.c: New file.
47112         * tests/unistr/test-u32-strchr.c: New file.
47114         unistr/u*-chr: test multibyte sequences more
47115         * tests/unistr/test-chr.h: Do complete testing of the characters in the
47116         test vector.
47117         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
47118         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
47119         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
47121         unistr/u*-chr: test multibyte sequences
47122         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
47124         unistr/u*-chr: prepare for multibyte tests
47125         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
47126         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
47127         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
47128         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
47129         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
47130         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
47132 2010-07-18  Bruno Haible  <bruno@clisp.org>
47134         unistr/u8-strchr: Optimize non-ASCII argument case.
47135         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
47136         because the first byte often matches anyway.
47137         Reported by Pádraig Brady <P@draigbrady.com>.
47139 2010-07-15  Karl Berry  <karl@gnu.org>
47141         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
47143 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
47145         getcwd: on Solaris, work better if ancestors are inaccessible
47146         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
47147         buffer and size, try again with a large buffer.  This works better
47148         on Solaris, since its getcwd succeeds even if the path to the root
47149         is inaccessible, and this is helpful in common cases such as .zfs
47150         hidden directories.  Problem reported by J Chapman Flack in
47151         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
47152         Use system getcwd if it's declared, not merely if it's partly
47153         working; use the partly-working test only to avoid needless effort
47154         if the system getcwd fails.
47155         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
47156         comment that was already obsolete and is now even more obsolete.
47157         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
47158         now might call strdup.
47160 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
47162         pthread: Add enough so that coreutils/src/sort.c compiles.
47163         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
47164         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
47165         gnulib. Include <sched.h> and <time.h>, as per POSIX.
47166         Include <sys/types.h>, in case it defines pthread_t.
47167         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
47168         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
47169         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
47170         (pthread_rwlockattr_t, pthread_spinlock_t):
47171         New typedefs, if HAVE_PTHREAD_T is not defined.
47172         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
47173         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
47174         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
47175         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
47176         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
47177         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
47178         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
47179         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
47180         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
47181         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
47182         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
47183         New macros.
47184         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
47185         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
47186         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
47187         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
47188         (pthread_spin_unlock): New dummy functions.
47189         (pthread_create): Return EAGAIN; don't set errno.
47190         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
47191         require AC_C_INLINE.
47192         * modules/pthread (Depends-on): Add sched, time.
47193         (pthread.h): Use AM_V_GEN.
47195 2010-07-13  Bruno Haible  <bruno@clisp.org>
47197         striconveh: Don't malloc memory if the result buffer is sufficient.
47198         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
47199         buffer if its size is sufficient.
47200         Reported by Ludovic Courtès <ludo@gnu.org>.
47202 2010-07-13  Bruno Haible  <bruno@clisp.org>
47204         strtod: Add safety check.
47205         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
47207 2010-07-12  Bruno Haible  <bruno@clisp.org>
47209         Unify tests that set gl_cv_func_ldexpl_no_libm.
47210         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
47211         gl_FUNC_LDEXPL.
47212         (gl_FUNC_LDEXPL): Invoke it.
47213         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
47215 2010-07-12  Bruno Haible  <bruno@clisp.org>
47217         Unify tests that set gl_cv_func_ldexp_no_libm.
47218         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
47219         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
47220         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
47221         (configure.ac): Simply invoke gl_FUNC_LDEXP.
47222         * modules/strtod (Files): Add m4/ldexp.m4.
47224 2010-07-12  Bruno Haible  <bruno@clisp.org>
47226         Unify tests that set gl_cv_func_frexpl_no_libm.
47227         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
47228         gl_FUNC_FREXPL_NO_LIBM.
47229         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
47230         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
47232 2010-07-12  Bruno Haible  <bruno@clisp.org>
47234         Unify tests that set gl_cv_func_frexp_no_libm.
47235         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
47236         gl_FUNC_FREXP_NO_LIBM.
47237         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
47238         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
47240 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
47242         memcoll: clarify sizes versus lengths, document better, and tweak perf
47243         * lib/memcoll.c (strcoll_loop, memcoll0):
47244         Improve quality of descriptive comments.  Name variables
47245         consistently as to whether they are lengths (which do not include
47246         terminating null) versus sizes (which do).
47247         * lib/xmemcoll.c (xmemcoll0): Likewise.
47248         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
47249         returned when s1size == 0; this is easier to compile and saves
47250         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
47252 2010-07-12  Bruno Haible  <bruno@clisp.org>
47254         Tests for module '_Exit'.
47255         * modules/_Exit-tests: New file.
47256         * tests/test-_Exit.sh: New file.
47257         * tests/test-_Exit.c: New file.
47259         New module '_Exit'.
47260         * lib/stdlib.in.h (__attribute__): New macro.
47261         (_Exit): New declaration.
47262         * lib/_Exit.c: New file.
47263         * m4/_Exit.m4: New file.
47264         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
47265         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
47266         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
47267         * modules/_Exit: New file.
47268         * tests/test-stdlib-c++.cc (_Exit): Check signature.
47269         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
47271 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
47273         strtod: make it more-accurate typically, and don't require libm
47274         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
47275         Include limits.h.  Don't include string.h.
47276         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
47277         (locale_isspace): New function, so that no casts are needed to
47278         check whether *s is a space.
47279         (ldexp): Provide an unused dummy if not available.
47280         (scale_radix_exp, parse_number, underlying_strtod): New functions.
47281         (strtod): Use them.  This implementation prefers to use the
47282         underlying strtod if available, falling back on our own code
47283         only to fix known bugs.  This is more likely to produce an
47284         accurate result.  Also, it avoids the use of libm functions.
47285         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
47286         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
47287         was absent, but it caused a test failure with coreutils.
47288         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
47289         with libm.
47290         * modules/strtod (Makefile.am, Link): libm is no longer needed.
47291         * modules/strtod-tests (Makefile.am): Likewise.
47293 2010-07-11  Pádraig Brady  <P@draigBrady.com>
47294             Bruno Haible  <bruno@clisp.org>
47296         unistr/u8-strchr: Optimize ASCII argument case.
47297         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
47299 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
47301         (x)memcoll: minor tweaks
47302         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
47303         is after the type that it qualifies.
47304         (memcoll0): Likewise.
47305         * lib/memcoll.h (memcoll0): Likewise.
47306         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
47307         * lib/xmemcoll.h (xmemcoll0): Likewise.
47308         * lib/memcoll.c (memcoll0): Correct the comment.  This function
47309         differs from memcoll in that the NUL byte is part of the argument.
47310         Omit the abort-checks, as performance is a real issue here.  Plus,
47311         the checks were wrong anyway (an off-by-one error).  Omit local
47312         variable 'diff', as it's a bit clearer that way.
47313         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
47314         no longer needed.
47316 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
47318         (x)memcoll: speedup when input is known to be NUL delimited
47319         * lib/memcoll.c: Include stdlib.
47320         (memcoll0): New function.
47321         (strcoll_loop): New function, refactored for use in both memcoll
47322         and memcoll0.
47323         * lib/memcoll.h (memcoll0): Add prototype.
47324         * lib/xmemcoll.c (xmemcoll0): New function.
47325         (collate_error): New function, refactored for use in both xmemcoll
47326         and xmemcoll0.
47327         * lib/xmemcoll.h (xmemcoll0): Add prototype.
47328         * m4/memcoll.m4: add inline invocation.
47330 2010-07-06  Pádraig Brady  <P@draigBrady.com>
47332         * build-aux/bootstrap: Remove any local translations
47333         from the translation project synchronization directory,
47334         so that local only translations are not distributed.
47336 2010-07-04  Bruno Haible  <bruno@clisp.org>
47338         fsusage: Clarify which code applies to which platforms.
47339         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
47340         platform.
47341         * lib/fsusage.c (get_fs_usage): Likewise.
47343 2010-07-04  Bruno Haible  <bruno@clisp.org>
47345         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
47346         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
47347         Reported by Martin Lambers <marlam@marlam.de>.
47349 2010-07-04  Jim Meyering  <meyering@redhat.com>
47351         hash: once again explicitly disallow insertion of NULL
47352         * lib/hash.c (hash_insert0): Reinstate just-removed test:
47353         inserting a NULL pointer cannot work with these functions.
47354         Add a comment with details.
47355         This reverts part of the 2010-07-01 commit, 5bef1a35
47356         "hash: extend module to deal with non-pointer keys".
47358 2010-07-01  Bruno Haible  <bruno@clisp.org>
47360         stdbool: Update doc.
47361         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
47362         Info from Christian Weisgerber <naddy@mips.inka.de>.
47364 2010-07-01  Jim Meyering  <meyering@redhat.com>
47366         hash: extend module to deal with non-pointer keys
47367         * lib/hash.c (hash_insert0): New interface, much like hash_insert
47368         but that allows insertion of non-pointer entries.
47369         Do not disallow an ENTRY value of NULL.
47370         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
47371         * lib/hash.h (hash_insert0): Declare.
47373 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
47375         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
47376         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
47377         not present (i.e. with autoconf 2.59 and when using gettextize, not
47378         gnulib), require AC_GNU_SOURCE instead.
47380 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
47382         idpriv-drop: Fix tests.
47383         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
47384         not to the test-idpriv-droptemp program.
47386 2010-06-29  Bruno Haible  <bruno@clisp.org>
47388         string: Fix syntax error with g++ 2.96.
47389         * lib/string.in.h (__pure__): Remove definition.
47390         (_GL_ATTRIBUTE_PURE): New macro.
47391         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
47392         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
47393         Reported by Christian Weisgerber <naddy@mips.inka.de>.
47395 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
47397         unitypes: Fix bug introduced on 2010-05-18.
47398         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
47400 2010-06-22  Eric Blake  <eblake@redhat.com>
47402         memmem: slight optimization
47403         * lib/str-two-way.h (critical_factorization): Update comments.
47404         Reduce work during factorization phase.
47405         Reported by Carlos Bueno <carlos@bueno.org>.
47407 2010-06-21  Bruno Haible  <bruno@clisp.org>
47409         Fix HAVE_CALLOC_POSIX misnomer.
47410         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
47411         !HAVE_CALLOC_POSIX.
47412         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
47413         HAVE_CALLOC_POSIX.
47414         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
47415         instead of HAVE_CALLOC_POSIX.
47416         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
47417         HAVE_CALLOC_POSIX.
47419         Use modern idiom for calloc() replacement.
47420         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
47421         AC_FUNC_CALLOC.
47422         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
47423         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
47424         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
47425         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
47426         (gl_REPLACE_CALLOC): New macro.
47428 2010-06-21  Bruno Haible  <bruno@clisp.org>
47430         Fix HAVE_REALLOC_POSIX misnomer.
47431         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
47432         !HAVE_REALLOC_POSIX.
47433         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
47434         HAVE_REALLOC_POSIX.
47435         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
47436         instead of HAVE_REALLOC_POSIX.
47437         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
47438         HAVE_REALLOC_POSIX.
47440         Use modern idiom for realloc() replacement.
47441         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
47442         AC_FUNC_REALLOC.
47443         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
47444         Autoconf's AC_FUNC_REALLOC.
47445         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
47446         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
47447         (gl_REPLACE_REALLOC): New macro.
47448         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
47450 2010-06-21  Bruno Haible  <bruno@clisp.org>
47452         Fix HAVE_MALLOC_POSIX misnomer.
47453         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
47454         !HAVE_MALLOC_POSIX.
47455         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
47456         HAVE_MALLOC_POSIX.
47457         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
47458         instead of HAVE_MALLOC_POSIX.
47459         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
47460         HAVE_MALLOC_POSIX.
47462         Use modern idiom for malloc() replacement.
47463         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
47464         AC_FUNC_MALLOC.
47465         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
47466         Autoconf's AC_FUNC_MALLOC.
47467         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
47468         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
47469         (gl_REPLACE_MALLOC): New macro.
47470         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
47472 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
47474         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
47475         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
47476         This macro takes 3 arguments, not 4.
47478 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
47480         ipv6: fix detection under mingw
47481         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
47482         in6_addr.
47484 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
47486         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
47487         that strtod() works when cross-compiling to a glibc version known
47488         to work.
47490 2010-06-15  Bruno Haible  <bruno@clisp.org>
47492         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
47494 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
47496         select: Correct timeout.
47497         * lib/select.c (rpl_select): Compute wait_timeout correctly.
47499 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
47501         git-version-gen: init shell var to avoid env var influence
47502         * build-aux/git-version-gen (v): Init shell var to empty.
47504 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
47506         priv-set: Don't assume that priv.h exists merely because getppriv does.
47507         See Jan Andersen's bug report about AIX 5L in
47508         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
47509         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
47510         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
47511         * lib/priv-set.h: Likewise.
47512         * tests/test-priv-set.c: Likewise.
47514 2010-06-13  Bruno Haible  <bruno@clisp.org>
47516         relocatable: Make it easier to test whether to install wrappers.
47517         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
47518         RELOCATABLE_VIA_WRAPPER.
47520 2010-06-13  Bruno Haible  <bruno@clisp.org>
47522         gnulib-tool: Display specified modules and dependencies differently.
47523         * gnulib-tool (func_show_module_list): New function.
47524         (func_import, func_create_testdir): Invoke it.
47525         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
47527 2010-06-13  Bruno Haible  <bruno@clisp.org>
47529         gnulib-tool: Align code of func_import and func_create_testdir.
47530         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
47531         specified_modules.
47533 2010-06-12  Jim Meyering  <meyering@redhat.com>
47535         test-inttostr: avoid spurious failure on Solaris 9
47536         * tests/test-inttostr.c (main): Skip the test when snprintf fails
47537         to accept "%ju".  Reported by Bruno Haible.
47539 2010-06-11  Jim Meyering  <meyering@redhat.com>
47541         test-sys_socket: mark variables as used more readably
47542         * tests/test-sys_socket.c (main): Mark otherwise unused variables
47543         as "used" explicitly via (void) statement casts.  This is more
47544         readable than using them in an artificial return expression.
47545         Suggestion from Bruno Haible.
47547 2010-06-11  Bruno Haible  <bruno@clisp.org>
47549         Avoid some more warnings from "gcc -Wwrite-strings".
47550         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
47551         to 'const char *'.
47552         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
47553         * tests/test-c-strcasestr.c (main): Likewise.
47554         * tests/test-mbscasestr1.c (main): Likewise.
47555         * tests/test-mbscasestr2.c (main): Likewise.
47556         * tests/test-memmem.c (main): Likewise.
47557         * tests/test-strstr.c (main): Likewise.
47558         * tests/test-strcasestr.c (main): Likewise.
47560 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47562         init.sh: change framework_failure_ to fail with status 99, not 1
47563         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
47564         automake's parallel-tests rule that this is an unexpected failure,
47565         even if the test is listed in XFAIL_TESTS.
47567 2010-06-11  Jim Meyering  <meyering@redhat.com>
47569         test-inttostr: avoid warnings about 4-6KB literal strings
47570         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
47571         Include "macros.h", for its definition of ASSERT.
47572         (CK): s/assert/ASSERT/
47573         * modules/inttostr-tests (Files): Add macros.h.
47575         init.sh: don't use $ME_ or skip_ before they are defined
47576         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
47577         their first uses.  Also hoist their companions: warn_, fail_,
47578         framework_failure_, $stderr_fileno.  Prompted by a patch from
47579         Stefano Lattarini.
47581         test-sys_socket: avoid set-but-not-used warnings from gcc
47582         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
47583         avoid warning about set-but-not-used variables.
47585         test-xvasprintf: avoid 'const' discard warnings
47586         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
47587         "const" when assigning from literal strings.
47588         (test_xasprintf): Add "void" in function argument list to placate
47589         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
47591         tests: avoid compilation warnings in argmatch and exclude tests...
47592         in packages that define ARGMATCH_DIE_DECL, like coreutils.
47593         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
47594         Since it always exits, declare with the "noreturn" attribute.
47595         * tests/test-argmatch.c: Likewise.
47597         tests: avoid 'const' discard warnings in mbsstr tests
47598         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
47599         * tests/test-mbsstr2.c (main): Likewise.
47601         test-verify: avoid warning from gcc's -Wmissing-declarations
47602         * tests/test-verify.c (function): Declare to be static.
47604         test-inttostr.c: include <string.h> for use of strcmp
47605         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
47607         test-linkat: avoid failed assertion on "other" architectures
47608         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
47609         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
47610         sparc: https://bugs.launchpad.net/bugs/591968
47612 2010-06-11  Jim Meyering  <meyering@redhat.com>
47614         printf.m4: avoid autoconf's "Expanded Before Required" warning
47615         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
47616         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
47617         autoconf warning.
47619 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
47621         Replacement header templates are now named with ".in", not "_".
47622         * doc/gnulib-intro.texi: Correct.
47624 2010-06-10  Jim Meyering  <meyering@redhat.com>
47626         inttostr-tests: depend on snprintf, not snprintf-posix
47627         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
47628         snprintf-posix, to avoid this aclocal failure:
47629           missing file gnulib-tests/vasnprintf.c
47630           configure.ac:45: error: expected source file, required through \
47631           AC_LIBSOURCES, not found
47633 2010-06-10  Jim Meyering  <meyering@redhat.com>
47635         inttostr: add a new function, inttostr, and tests
47636         The namesake function was not available.  The existence of the
47637         template file, inttostr.c makes its addition nontrivial.
47638         * lib/anytostr.c: Rename from inttostr.c.
47639         (anytostr): Rename from inttostr.
47640         * lib/inttostr.c: New file.
47641         * modules/inttostr (Files): Add anytostr.c.
47642         (Makefile.am): Set lib_SOURCES instead of ...
47643         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
47644         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
47645         * lib/offtostr.c: Likewise.
47646         * lib/uinttostr.c: Likewise.
47647         * lib/umaxtostr.c: Likewise.
47648         * modules/inttostr-tests: New file.
47649         * tests/test-inttostr.c: New file.  Test these functions.
47651 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
47652             Bruno Haible  <bruno@clisp.org>
47654         Add "Extending Gnulib" chapter to manual.
47655         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
47656         chapter.
47657         (Extending Gnulib): New chapter.
47658         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
47659         chapter.
47661 2010-06-09  Bruno Haible  <bruno@clisp.org>
47663         Avoid relocwrapper link errors due to gnulib replacement functions.
47664         * lib/areadlink.c: Use the system's malloc, realloc functions.
47665         (areadlink): Set errno to ENOMEM explicitly.
47666         * modules/areadlink (Depends-on): Remove malloc-posix.
47667         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47669 2010-06-09  Bruno Haible  <bruno@clisp.org>
47671         Avoid relocwrapper link errors due to gnulib replacement functions.
47672         * lib/canonicalize-lgpl.c: Use the system's malloc function.
47673         * lib/malloca.c: Likewise.
47674         * lib/relocatable.c: Likewise.
47675         * lib/progreloc.c: Use the system's malloc, sprintf functions.
47676         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
47677         * lib/setenv.c: Use the system's malloc, realloc functions.
47678         * lib/strerror.c: Use the system's sprintf function.
47679         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47681 2010-06-04  Bruno Haible  <bruno@clisp.org>
47683         Prefer documented low-level autoconf macro names.
47684         * m4/lib-link.m4: Use m4_translit instead of translit.
47685         * m4/environ.m4: Likewise.
47686         * m4/mathfunc.m4: Likewise.
47687         * m4/onceonly.m4: Likewise.
47688         * m4/stdint.m4: Likewise.
47689         Suggested by Eric Blake.
47691 2010-06-04  Martin Lambers  <marlam@marlam.de>
47692             Bruno Haible  <bruno@clisp.org>
47694         havelib: Allow library names with '+' characters.
47695         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
47696         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
47698 2010-06-09  Bruno Haible  <bruno@clisp.org>
47700         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
47701         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
47702         realloc failed.
47704 2010-06-08  Peter Simons  <simons@cryp.to>
47706         maint.mk: make the news-check rule more configurable
47707         * top/maint.mk (news-check-lines-spec): New variable.
47708         (news-check): Use "sed -n 1,10p" in place of "head".
47710 2010-06-07  Jim Meyering  <meyering@redhat.com>
47712         do-release-commit-and-tag: fix typo in --help
47713         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
47715         regex: avoid new dead-code warning with gcc-4.6.0
47716         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
47717         if-block containing a while-loop.  It's been unused for at least
47718         5 years.
47720 2010-06-05  Bruno Haible  <bruno@clisp.org>
47722         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
47723         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
47725 2010-06-04  Bruno Haible  <bruno@clisp.org>
47727         Update to GNU gettext 0.18.1.
47728         * modules/gettext (configure.ac): Require gettext infrastructure from
47729         version 0.18.1.
47731 2010-06-03  Bruno Haible  <bruno@clisp.org>
47733         Don't use AC_LIBOBJ with file names in subdirectories.
47734         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
47735         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
47736         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
47737         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
47738         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
47739         gl_LIBUNISTRING_LIBSOURCE.
47740         (Makefile.am): Augment lib_SOURCES here, conditionally.
47741         * NEWS: Drop requirement for Automake option 'subdir-objects'.
47743 2010-06-03  Bruno Haible  <bruno@clisp.org>
47745         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
47746         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
47747         expansion does not end with a newline.
47748         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
47749         unnecessary newline.
47751 2010-06-03  Bruno Haible  <bruno@clisp.org>
47753         Reduce dependencies.
47754         * tests/test-quotearg.h: New file, extracted from
47755         tests/test-quotearg.c.
47756         * tests/test-quotearg-simple.c: New file, extracted from
47757         tests/test-quotearg.c.
47758         * tests/test-quotearg.c: Don't include <ctype.h>.
47759         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
47760         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
47761         use_quote_double_quotes, use_quotearg_colon): Moved to
47762         tests/test-quotearg.h.
47763         (results_g, flag_results, custom_quotes, custom_results): Moved
47764         to tests/test-quotearg-simple.c.
47765         (main): Moved the part that does not depend on gettext to
47766         tests/test-quotearg-simple.c. Return 77 if the test cannot be
47767         performed.
47768         * modules/quotearg-simple: New file.
47769         * modules/quotearg-simple-tests: New file.
47770         * modules/quotearg (Depends-on): Add quotearg-simple.
47771         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
47772         (Files): Add tests/test-quotearg.h.
47773         Reported by Paolo Bonzini.
47775 2010-06-03  Bruno Haible  <bruno@clisp.org>
47777         Reduce dependencies.
47778         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
47780 2010-06-03  Bruno Haible  <bruno@clisp.org>
47782         time: Undefine more broken macros.
47783         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
47784         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
47785         Reported by Eric Blake.
47787 2010-06-03  Bruno Haible  <bruno@clisp.org>
47789         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
47790         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
47791         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
47792         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
47793         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
47794         Reported by Ludovic Courtès <ludo@gnu.org>.
47796 2010-06-02  Eric Blake  <eblake@redhat.com>
47798         time: work with mingw + pthreads-win32 library
47799         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
47800         if timespec is defined only in pthread.h.
47801         * modules/time (Makefile.am): Substitute it.
47802         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
47803         <pthread.h>, when needed.
47804         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
47805         from the library.
47807 2010-05-31  Bruno Haible  <bruno@clisp.org>
47809         Avoid expanding two macros in the wrong order.
47810         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
47811         gl_LIBUNISTRING if it is defined.
47812         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
47813         autoconf >= 2.64.
47814         Reported by Ludovic Courtès <ludo@gnu.org>.
47816 2010-05-27  Jim Meyering  <meyering@redhat.com>
47818         maint.mk: also prohibit "#undef" of always-defined symbols
47819         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
47820         Allow more than one space before the symbol name.
47821         (sc_prohibit_always-defined_macros): Use grep's -E, now that
47822         the regexp uses alternation.
47824 2010-05-26  Eric Blake  <eblake@redhat.com>
47826         maint.mk: avoid echo -e
47827         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
47828         Convert all uses of echo -* to printf.
47829         Reported by Matthias Bolte.
47831 2010-05-25  Bruno Haible  <bruno@clisp.org>
47833         Update to GNU gettext 0.18, part 2.
47834         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
47835         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
47837 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47839         Add missing include in test-pwrite.c.
47840         * tests/test-pwrite.c: Include string.h, for strcmp.
47842 2010-05-24  Bruno Haible  <bruno@clisp.org>
47844         * NEWS: Mention requirement for Automake option 'subdir-objects'.
47846 2010-05-24  Bruno Haible  <bruno@clisp.org>
47848         Don't use conversion with transliteration in u{8,16,32}_strcoll.
47849         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
47850         iconveh_error argument.
47851         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
47852         U_STRCONV_TO_LOCALE.
47853         * lib/unistr/u16-strcoll.c: Likewise.
47854         * lib/unistr/u32-strcoll.c: Likewise.
47855         * modules/unistr/u8-strcoll (Depends-on): Add
47856         uniconv/u8-strconv-to-enc, localcharset. Remove
47857         uniconv/u8-strconv-to-locale.
47858         (configure.ac): Bump version number.
47859         * modules/unistr/u16-strcoll (Depends-on): Add
47860         uniconv/u16-strconv-to-enc, localcharset. Remove
47861         uniconv/u16-strconv-to-locale.
47862         (configure.ac): Bump version number.
47863         * modules/unistr/u32-strcoll (Depends-on): Add
47864         uniconv/u32-strconv-to-enc, localcharset. Remove
47865         uniconv/u32-strconv-to-locale.
47866         (configure.ac): Bump version number.
47868 2010-05-24  Bruno Haible  <bruno@clisp.org>
47870         Avoid a test failure on NetBSD 5.0.
47871         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
47872         an iconv() bug.
47874 2010-05-24  Bruno Haible  <bruno@clisp.org>
47876         Adjust #include directive style.
47877         * modules/regex (Includes): Recommend to write <regex.h>.
47879 2010-05-24  Bruno Haible  <bruno@clisp.org>
47881         regex: Don't require alloca.
47882         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
47883         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
47884         only inside if (0).
47886 2010-05-23  Jim Meyering  <meyering@redhat.com>
47888         test-renameat.c: include <sys/stat.h>
47889         * tests/test-renameat.c: Include <sys/stat.h>; required for
47890         definition of S_IS* macros.
47892 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
47894         Update maintainer documentation for 'relocatable-prog' module.
47895         * doc/relocatable-maint.texi: Update.
47896         Comments by Bruno Haible.
47898 2010-05-23  Bruno Haible  <bruno@clisp.org>
47900         git-merge-changelog: Enable --split-merged-entry by default.
47901         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
47902         (usage): Don't mention this option any more.
47903         Reported by Ralf Wildenhues.
47905 2010-05-23  Jim Meyering  <meyering@redhat.com>
47907         test-pwrite: do not leave behind a test file named "out"
47908         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
47909         The trivial-looking use of init.sh is really necessary.
47910         It ensures that the temporary file, "out", is created in
47911         a temporary directory, and removed upon termination.
47912         * tests/test-pwrite.sh: Re-add file.
47913         * modules/pwrite-tests: Reference it.
47915 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47917         Fix output redirection buglet in init.sh.
47918         * tests/init.sh: Fix redirection of stderr.
47920 2010-05-20  Simon Josefsson  <simon@josefsson.org>
47922         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
47924 2010-05-17  Simon Josefsson  <simon@josefsson.org>
47926         * modules/valgrind-tests: New file.
47927         * m4/valgrind-tests.m4: New file.
47928         * doc/valgrind-tests.texi: New file.
47929         * doc/gnulib.texi (Running self-tests under valgrind): New
47930         section.
47932 2010-05-19  Bruno Haible  <bruno@clisp.org>
47934         Clean up dead code in recent commit.
47935         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
47936         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
47937         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
47938         Suggested by Paolo Bonzini.
47940 2010-05-19  Bruno Haible  <bruno@clisp.org>
47942         Avoid valgrind error reports from libunistring.
47943         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
47944         * modules/libunistring (Files): Add it.
47945         * modules/libunistring-optional (Files): Likewise.
47947 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
47948             Bruno Haible  <bruno@clisp.org>
47950         New module 'libunistring-optional'.
47951         * modules/libunistring-optional: New file.
47952         * m4/libunistring-base.m4: New file.
47953         * m4/libunistring-optional.m4: New file.
47954         * lib/unicase.in.h: Renamed from lib/unicase.h.
47955         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
47956         * lib/unictype.in.h: Renamed from lib/unictype.h.
47957         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
47958         * lib/uniname.in.h: Renamed from lib/uniname.h.
47959         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
47960         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
47961         * lib/unistr.in.h: Renamed from lib/unistr.h.
47962         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
47963         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
47964         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
47965         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
47966         gl_LIBUNISTRING. If the library was found, determine the installed
47967         version and set LIBUNISTRING_VERSION.
47968         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
47969         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
47970         handle a configuration option --with-included-libunistring.
47971         * modules/libunistring (Files): Add m4/absolute-header.m4.
47972         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
47973         Add m4/libunistring-base.m4.
47974         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
47975         (Makefile.am): Build unicase.h from unicase.in.h.
47976         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
47977         Add m4/libunistring-base.m4.
47978         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
47979         (Makefile.am): Build uniconv.h from uniconv.in.h.
47980         * modules/unictype/base (Files): Use unictype.in.h instead of
47981         unictype.h. Add m4/libunistring-base.m4.
47982         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
47983         (Makefile.am): Build unictype.h from unictype.in.h.
47984         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
47985         Add m4/libunistring-base.m4.
47986         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
47987         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
47988         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
47989         Add m4/libunistring-base.m4.
47990         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
47991         (Makefile.am): Build uniname.h from uniname.in.h.
47992         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
47993         Add m4/libunistring-base.m4.
47994         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
47995         (Makefile.am): Build uninorm.h from uninorm.in.h.
47996         * modules/unistdio/base (Files): Use unistdio.in.h instead of
47997         unistdio.h. Add m4/libunistring-base.m4.
47998         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
47999         (Makefile.am): Build unistdio.h from unistdio.in.h.
48000         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
48001         Add m4/libunistring-base.m4.
48002         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
48003         (Makefile.am): Build unistr.h from unistr.in.h.
48004         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
48005         Add m4/libunistring-base.m4.
48006         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
48007         (Makefile.am): Build unitypes.h from unitypes.in.h.
48008         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
48009         Add m4/libunistring-base.m4.
48010         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
48011         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
48012         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
48013         uniwidth.h. Add m4/libunistring-base.m4.
48014         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
48015         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
48016         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
48017         instead of augmenting lib_SOURCES.
48018         * modules/unicase/empty-suffix-context: Likewise.
48019         * modules/unicase/locale-language: Likewise.
48020         * modules/unicase/tolower: Likewise.
48021         * modules/unicase/totitle: Likewise.
48022         * modules/unicase/toupper: Likewise.
48023         * modules/unicase/u8-casecmp: Likewise.
48024         * modules/unicase/u8-casecoll: Likewise.
48025         * modules/unicase/u8-casefold: Likewise.
48026         * modules/unicase/u8-casexfrm: Likewise.
48027         * modules/unicase/u8-ct-casefold: Likewise.
48028         * modules/unicase/u8-ct-tolower: Likewise.
48029         * modules/unicase/u8-ct-totitle: Likewise.
48030         * modules/unicase/u8-ct-toupper: Likewise.
48031         * modules/unicase/u8-is-cased: Likewise.
48032         * modules/unicase/u8-is-casefolded: Likewise.
48033         * modules/unicase/u8-is-lowercase: Likewise.
48034         * modules/unicase/u8-is-titlecase: Likewise.
48035         * modules/unicase/u8-is-uppercase: Likewise.
48036         * modules/unicase/u8-prefix-context: Likewise.
48037         * modules/unicase/u8-suffix-context: Likewise.
48038         * modules/unicase/u8-tolower: Likewise.
48039         * modules/unicase/u8-totitle: Likewise.
48040         * modules/unicase/u8-toupper: Likewise.
48041         * modules/unicase/u16-casecmp: Likewise.
48042         * modules/unicase/u16-casecoll: Likewise.
48043         * modules/unicase/u16-casefold: Likewise.
48044         * modules/unicase/u16-casexfrm: Likewise.
48045         * modules/unicase/u16-ct-casefold: Likewise.
48046         * modules/unicase/u16-ct-tolower: Likewise.
48047         * modules/unicase/u16-ct-totitle: Likewise.
48048         * modules/unicase/u16-ct-toupper: Likewise.
48049         * modules/unicase/u16-is-cased: Likewise.
48050         * modules/unicase/u16-is-casefolded: Likewise.
48051         * modules/unicase/u16-is-lowercase: Likewise.
48052         * modules/unicase/u16-is-titlecase: Likewise.
48053         * modules/unicase/u16-is-uppercase: Likewise.
48054         * modules/unicase/u16-prefix-context: Likewise.
48055         * modules/unicase/u16-suffix-context: Likewise.
48056         * modules/unicase/u16-tolower: Likewise.
48057         * modules/unicase/u16-totitle: Likewise.
48058         * modules/unicase/u16-toupper: Likewise.
48059         * modules/unicase/u32-casecmp: Likewise.
48060         * modules/unicase/u32-casecoll: Likewise.
48061         * modules/unicase/u32-casefold: Likewise.
48062         * modules/unicase/u32-casexfrm: Likewise.
48063         * modules/unicase/u32-ct-casefold: Likewise.
48064         * modules/unicase/u32-ct-tolower: Likewise.
48065         * modules/unicase/u32-ct-totitle: Likewise.
48066         * modules/unicase/u32-ct-toupper: Likewise.
48067         * modules/unicase/u32-is-cased: Likewise.
48068         * modules/unicase/u32-is-casefolded: Likewise.
48069         * modules/unicase/u32-is-lowercase: Likewise.
48070         * modules/unicase/u32-is-titlecase: Likewise.
48071         * modules/unicase/u32-is-uppercase: Likewise.
48072         * modules/unicase/u32-prefix-context: Likewise.
48073         * modules/unicase/u32-suffix-context: Likewise.
48074         * modules/unicase/u32-tolower: Likewise.
48075         * modules/unicase/u32-totitle: Likewise.
48076         * modules/unicase/u32-toupper: Likewise.
48077         * modules/unicase/ulc-casecmp: Likewise.
48078         * modules/unicase/ulc-casecoll: Likewise.
48079         * modules/unicase/ulc-casexfrm: Likewise.
48080         * modules/uniconv/u8-conv-from-enc: Likewise.
48081         * modules/uniconv/u8-conv-to-enc: Likewise.
48082         * modules/uniconv/u8-strconv-from-enc: Likewise.
48083         * modules/uniconv/u8-strconv-from-locale: Likewise.
48084         * modules/uniconv/u8-strconv-to-enc: Likewise.
48085         * modules/uniconv/u8-strconv-to-locale: Likewise.
48086         * modules/uniconv/u16-conv-from-enc: Likewise.
48087         * modules/uniconv/u16-conv-to-enc: Likewise.
48088         * modules/uniconv/u16-strconv-from-enc: Likewise.
48089         * modules/uniconv/u16-strconv-from-locale: Likewise.
48090         * modules/uniconv/u16-strconv-to-enc: Likewise.
48091         * modules/uniconv/u16-strconv-to-locale: Likewise.
48092         * modules/uniconv/u32-conv-from-enc: Likewise.
48093         * modules/uniconv/u32-conv-to-enc: Likewise.
48094         * modules/uniconv/u32-strconv-from-enc: Likewise.
48095         * modules/uniconv/u32-strconv-from-locale: Likewise.
48096         * modules/uniconv/u32-strconv-to-enc: Likewise.
48097         * modules/uniconv/u32-strconv-to-locale: Likewise.
48098         * modules/unictype/bidicategory-byname: Likewise.
48099         * modules/unictype/bidicategory-name: Likewise.
48100         * modules/unictype/bidicategory-of: Likewise.
48101         * modules/unictype/bidicategory-test: Likewise.
48102         * modules/unictype/block-list: Likewise.
48103         * modules/unictype/block-test: Likewise.
48104         * modules/unictype/category-C: Likewise.
48105         * modules/unictype/category-Cc: Likewise.
48106         * modules/unictype/category-Cf: Likewise.
48107         * modules/unictype/category-Cn: Likewise.
48108         * modules/unictype/category-Co: Likewise.
48109         * modules/unictype/category-Cs: Likewise.
48110         * modules/unictype/category-L: Likewise.
48111         * modules/unictype/category-Ll: Likewise.
48112         * modules/unictype/category-Lm: Likewise.
48113         * modules/unictype/category-Lo: Likewise.
48114         * modules/unictype/category-Lt: Likewise.
48115         * modules/unictype/category-Lu: Likewise.
48116         * modules/unictype/category-M: Likewise.
48117         * modules/unictype/category-Mc: Likewise.
48118         * modules/unictype/category-Me: Likewise.
48119         * modules/unictype/category-Mn: Likewise.
48120         * modules/unictype/category-N: Likewise.
48121         * modules/unictype/category-Nd: Likewise.
48122         * modules/unictype/category-Nl: Likewise.
48123         * modules/unictype/category-No: Likewise.
48124         * modules/unictype/category-P: Likewise.
48125         * modules/unictype/category-Pc: Likewise.
48126         * modules/unictype/category-Pd: Likewise.
48127         * modules/unictype/category-Pe: Likewise.
48128         * modules/unictype/category-Pf: Likewise.
48129         * modules/unictype/category-Pi: Likewise.
48130         * modules/unictype/category-Po: Likewise.
48131         * modules/unictype/category-Ps: Likewise.
48132         * modules/unictype/category-S: Likewise.
48133         * modules/unictype/category-Sc: Likewise.
48134         * modules/unictype/category-Sk: Likewise.
48135         * modules/unictype/category-Sm: Likewise.
48136         * modules/unictype/category-So: Likewise.
48137         * modules/unictype/category-Z: Likewise.
48138         * modules/unictype/category-Zl: Likewise.
48139         * modules/unictype/category-Zp: Likewise.
48140         * modules/unictype/category-Zs: Likewise.
48141         * modules/unictype/category-and: Likewise.
48142         * modules/unictype/category-and-not: Likewise.
48143         * modules/unictype/category-byname: Likewise.
48144         * modules/unictype/category-name: Likewise.
48145         * modules/unictype/category-none: Likewise.
48146         * modules/unictype/category-of: Likewise.
48147         * modules/unictype/category-or: Likewise.
48148         * modules/unictype/category-test: Likewise.
48149         * modules/unictype/combining-class: Likewise.
48150         * modules/unictype/ctype-alnum: Likewise.
48151         * modules/unictype/ctype-alpha: Likewise.
48152         * modules/unictype/ctype-blank: Likewise.
48153         * modules/unictype/ctype-cntrl: Likewise.
48154         * modules/unictype/ctype-digit: Likewise.
48155         * modules/unictype/ctype-graph: Likewise.
48156         * modules/unictype/ctype-lower: Likewise.
48157         * modules/unictype/ctype-print: Likewise.
48158         * modules/unictype/ctype-punct: Likewise.
48159         * modules/unictype/ctype-space: Likewise.
48160         * modules/unictype/ctype-upper: Likewise.
48161         * modules/unictype/ctype-xdigit: Likewise.
48162         * modules/unictype/decimal-digit: Likewise.
48163         * modules/unictype/digit: Likewise.
48164         * modules/unictype/mirror: Likewise.
48165         * modules/unictype/numeric: Likewise.
48166         * modules/unictype/property-alphabetic: Likewise.
48167         * modules/unictype/property-ascii-hex-digit: Likewise.
48168         * modules/unictype/property-bidi-arabic-digit: Likewise.
48169         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
48170         * modules/unictype/property-bidi-block-separator: Likewise.
48171         * modules/unictype/property-bidi-boundary-neutral: Likewise.
48172         * modules/unictype/property-bidi-common-separator: Likewise.
48173         * modules/unictype/property-bidi-control: Likewise.
48174         * modules/unictype/property-bidi-embedding-or-override: Likewise.
48175         * modules/unictype/property-bidi-eur-num-separator: Likewise.
48176         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
48177         * modules/unictype/property-bidi-european-digit: Likewise.
48178         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
48179         * modules/unictype/property-bidi-left-to-right: Likewise.
48180         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
48181         * modules/unictype/property-bidi-other-neutral: Likewise.
48182         * modules/unictype/property-bidi-pdf: Likewise.
48183         * modules/unictype/property-bidi-segment-separator: Likewise.
48184         * modules/unictype/property-bidi-whitespace: Likewise.
48185         * modules/unictype/property-byname: Likewise.
48186         * modules/unictype/property-combining: Likewise.
48187         * modules/unictype/property-composite: Likewise.
48188         * modules/unictype/property-currency-symbol: Likewise.
48189         * modules/unictype/property-dash: Likewise.
48190         * modules/unictype/property-decimal-digit: Likewise.
48191         * modules/unictype/property-default-ignorable-code-point: Likewise.
48192         * modules/unictype/property-deprecated: Likewise.
48193         * modules/unictype/property-diacritic: Likewise.
48194         * modules/unictype/property-extender: Likewise.
48195         * modules/unictype/property-format-control: Likewise.
48196         * modules/unictype/property-grapheme-base: Likewise.
48197         * modules/unictype/property-grapheme-extend: Likewise.
48198         * modules/unictype/property-grapheme-link: Likewise.
48199         * modules/unictype/property-hex-digit: Likewise.
48200         * modules/unictype/property-hyphen: Likewise.
48201         * modules/unictype/property-id-continue: Likewise.
48202         * modules/unictype/property-id-start: Likewise.
48203         * modules/unictype/property-ideographic: Likewise.
48204         * modules/unictype/property-ids-binary-operator: Likewise.
48205         * modules/unictype/property-ids-trinary-operator: Likewise.
48206         * modules/unictype/property-ignorable-control: Likewise.
48207         * modules/unictype/property-iso-control: Likewise.
48208         * modules/unictype/property-join-control: Likewise.
48209         * modules/unictype/property-left-of-pair: Likewise.
48210         * modules/unictype/property-line-separator: Likewise.
48211         * modules/unictype/property-logical-order-exception: Likewise.
48212         * modules/unictype/property-lowercase: Likewise.
48213         * modules/unictype/property-math: Likewise.
48214         * modules/unictype/property-non-break: Likewise.
48215         * modules/unictype/property-not-a-character: Likewise.
48216         * modules/unictype/property-numeric: Likewise.
48217         * modules/unictype/property-other-alphabetic: Likewise.
48218         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
48219         * modules/unictype/property-other-grapheme-extend: Likewise.
48220         * modules/unictype/property-other-id-continue: Likewise.
48221         * modules/unictype/property-other-id-start: Likewise.
48222         * modules/unictype/property-other-lowercase: Likewise.
48223         * modules/unictype/property-other-math: Likewise.
48224         * modules/unictype/property-other-uppercase: Likewise.
48225         * modules/unictype/property-paired-punctuation: Likewise.
48226         * modules/unictype/property-paragraph-separator: Likewise.
48227         * modules/unictype/property-pattern-syntax: Likewise.
48228         * modules/unictype/property-pattern-white-space: Likewise.
48229         * modules/unictype/property-private-use: Likewise.
48230         * modules/unictype/property-punctuation: Likewise.
48231         * modules/unictype/property-quotation-mark: Likewise.
48232         * modules/unictype/property-radical: Likewise.
48233         * modules/unictype/property-sentence-terminal: Likewise.
48234         * modules/unictype/property-soft-dotted: Likewise.
48235         * modules/unictype/property-space: Likewise.
48236         * modules/unictype/property-terminal-punctuation: Likewise.
48237         * modules/unictype/property-test: Likewise.
48238         * modules/unictype/property-titlecase: Likewise.
48239         * modules/unictype/property-unassigned-code-value: Likewise.
48240         * modules/unictype/property-unified-ideograph: Likewise.
48241         * modules/unictype/property-uppercase: Likewise.
48242         * modules/unictype/property-variation-selector: Likewise.
48243         * modules/unictype/property-white-space: Likewise.
48244         * modules/unictype/property-xid-continue: Likewise.
48245         * modules/unictype/property-xid-start: Likewise.
48246         * modules/unictype/property-zero-width: Likewise.
48247         * modules/unictype/scripts: Likewise.
48248         * modules/unictype/syntax-c-ident: Likewise.
48249         * modules/unictype/syntax-c-whitespace: Likewise.
48250         * modules/unictype/syntax-java-ident: Likewise.
48251         * modules/unictype/syntax-java-whitespace: Likewise.
48252         * modules/unilbrk/u8-possible-linebreaks: Likewise.
48253         * modules/unilbrk/u8-width-linebreaks: Likewise.
48254         * modules/unilbrk/u16-possible-linebreaks: Likewise.
48255         * modules/unilbrk/u16-width-linebreaks: Likewise.
48256         * modules/unilbrk/u32-possible-linebreaks: Likewise.
48257         * modules/unilbrk/u32-width-linebreaks: Likewise.
48258         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
48259         * modules/unilbrk/ulc-width-linebreaks: Likewise.
48260         * modules/uniname/uniname: Likewise.
48261         * modules/uninorm/canonical-decomposition: Likewise.
48262         * modules/uninorm/composition: Likewise.
48263         * modules/uninorm/decomposing-form: Likewise.
48264         * modules/uninorm/decomposition: Likewise.
48265         * modules/uninorm/filter: Likewise.
48266         * modules/uninorm/nfc: Likewise.
48267         * modules/uninorm/nfd: Likewise.
48268         * modules/uninorm/nfkc: Likewise.
48269         * modules/uninorm/nfkd: Likewise.
48270         * modules/uninorm/u8-normalize: Likewise.
48271         * modules/uninorm/u8-normcmp: Likewise.
48272         * modules/uninorm/u8-normcoll: Likewise.
48273         * modules/uninorm/u8-normxfrm: Likewise.
48274         * modules/uninorm/u16-normalize: Likewise.
48275         * modules/uninorm/u16-normcmp: Likewise.
48276         * modules/uninorm/u16-normcoll: Likewise.
48277         * modules/uninorm/u16-normxfrm: Likewise.
48278         * modules/uninorm/u32-normalize: Likewise.
48279         * modules/uninorm/u32-normcmp: Likewise.
48280         * modules/uninorm/u32-normcoll: Likewise.
48281         * modules/uninorm/u32-normxfrm: Likewise.
48282         * modules/unistdio/u8-asnprintf: Likewise.
48283         * modules/unistdio/u8-asprintf: Likewise.
48284         * modules/unistdio/u8-snprintf: Likewise.
48285         * modules/unistdio/u8-sprintf: Likewise.
48286         * modules/unistdio/u8-u8-asnprintf: Likewise.
48287         * modules/unistdio/u8-u8-asprintf: Likewise.
48288         * modules/unistdio/u8-u8-snprintf: Likewise.
48289         * modules/unistdio/u8-u8-sprintf: Likewise.
48290         * modules/unistdio/u8-u8-vasnprintf: Likewise.
48291         * modules/unistdio/u8-u8-vasprintf: Likewise.
48292         * modules/unistdio/u8-u8-vsnprintf: Likewise.
48293         * modules/unistdio/u8-u8-vsprintf: Likewise.
48294         * modules/unistdio/u8-vasnprintf: Likewise.
48295         * modules/unistdio/u8-vasprintf: Likewise.
48296         * modules/unistdio/u8-vsnprintf: Likewise.
48297         * modules/unistdio/u8-vsprintf: Likewise.
48298         * modules/unistdio/u16-asnprintf: Likewise.
48299         * modules/unistdio/u16-asprintf: Likewise.
48300         * modules/unistdio/u16-snprintf: Likewise.
48301         * modules/unistdio/u16-sprintf: Likewise.
48302         * modules/unistdio/u16-u16-asnprintf: Likewise.
48303         * modules/unistdio/u16-u16-asprintf: Likewise.
48304         * modules/unistdio/u16-u16-snprintf: Likewise.
48305         * modules/unistdio/u16-u16-sprintf: Likewise.
48306         * modules/unistdio/u16-u16-vasnprintf: Likewise.
48307         * modules/unistdio/u16-u16-vasprintf: Likewise.
48308         * modules/unistdio/u16-u16-vsnprintf: Likewise.
48309         * modules/unistdio/u16-u16-vsprintf: Likewise.
48310         * modules/unistdio/u16-vasnprintf: Likewise.
48311         * modules/unistdio/u16-vasprintf: Likewise.
48312         * modules/unistdio/u16-vsnprintf: Likewise.
48313         * modules/unistdio/u16-vsprintf: Likewise.
48314         * modules/unistdio/u32-asnprintf: Likewise.
48315         * modules/unistdio/u32-asprintf: Likewise.
48316         * modules/unistdio/u32-snprintf: Likewise.
48317         * modules/unistdio/u32-sprintf: Likewise.
48318         * modules/unistdio/u32-u32-asnprintf: Likewise.
48319         * modules/unistdio/u32-u32-asprintf: Likewise.
48320         * modules/unistdio/u32-u32-snprintf: Likewise.
48321         * modules/unistdio/u32-u32-sprintf: Likewise.
48322         * modules/unistdio/u32-u32-vasnprintf: Likewise.
48323         * modules/unistdio/u32-u32-vasprintf: Likewise.
48324         * modules/unistdio/u32-u32-vsnprintf: Likewise.
48325         * modules/unistdio/u32-u32-vsprintf: Likewise.
48326         * modules/unistdio/u32-vasnprintf: Likewise.
48327         * modules/unistdio/u32-vasprintf: Likewise.
48328         * modules/unistdio/u32-vsnprintf: Likewise.
48329         * modules/unistdio/u32-vsprintf: Likewise.
48330         * modules/unistdio/ulc-asnprintf: Likewise.
48331         * modules/unistdio/ulc-asprintf: Likewise.
48332         * modules/unistdio/ulc-fprintf: Likewise.
48333         * modules/unistdio/ulc-snprintf: Likewise.
48334         * modules/unistdio/ulc-sprintf: Likewise.
48335         * modules/unistdio/ulc-vasnprintf: Likewise.
48336         * modules/unistdio/ulc-vasprintf: Likewise.
48337         * modules/unistdio/ulc-vfprintf: Likewise.
48338         * modules/unistdio/ulc-vsnprintf: Likewise.
48339         * modules/unistdio/ulc-vsprintf: Likewise.
48340         * modules/unistr/u8-check: Likewise.
48341         * modules/unistr/u8-chr: Likewise.
48342         * modules/unistr/u8-cmp: Likewise.
48343         * modules/unistr/u8-cmp2: Likewise.
48344         * modules/unistr/u8-cpy: Likewise.
48345         * modules/unistr/u8-cpy-alloc: Likewise.
48346         * modules/unistr/u8-endswith: Likewise.
48347         * modules/unistr/u8-mblen: Likewise.
48348         * modules/unistr/u8-mbsnlen: Likewise.
48349         * modules/unistr/u8-mbtouc: Likewise.
48350         * modules/unistr/u8-mbtouc-unsafe: Likewise.
48351         * modules/unistr/u8-mbtoucr: Likewise.
48352         * modules/unistr/u8-move: Likewise.
48353         * modules/unistr/u8-next: Likewise.
48354         * modules/unistr/u8-prev: Likewise.
48355         * modules/unistr/u8-set: Likewise.
48356         * modules/unistr/u8-startswith: Likewise.
48357         * modules/unistr/u8-stpcpy: Likewise.
48358         * modules/unistr/u8-stpncpy: Likewise.
48359         * modules/unistr/u8-strcat: Likewise.
48360         * modules/unistr/u8-strchr: Likewise.
48361         * modules/unistr/u8-strcmp: Likewise.
48362         * modules/unistr/u8-strcoll: Likewise.
48363         * modules/unistr/u8-strcpy: Likewise.
48364         * modules/unistr/u8-strcspn: Likewise.
48365         * modules/unistr/u8-strdup: Likewise.
48366         * modules/unistr/u8-strlen: Likewise.
48367         * modules/unistr/u8-strmblen: Likewise.
48368         * modules/unistr/u8-strmbtouc: Likewise.
48369         * modules/unistr/u8-strncat: Likewise.
48370         * modules/unistr/u8-strncmp: Likewise.
48371         * modules/unistr/u8-strncpy: Likewise.
48372         * modules/unistr/u8-strnlen: Likewise.
48373         * modules/unistr/u8-strpbrk: Likewise.
48374         * modules/unistr/u8-strrchr: Likewise.
48375         * modules/unistr/u8-strspn: Likewise.
48376         * modules/unistr/u8-strstr: Likewise.
48377         * modules/unistr/u8-strtok: Likewise.
48378         * modules/unistr/u8-to-u16: Likewise.
48379         * modules/unistr/u8-to-u32: Likewise.
48380         * modules/unistr/u8-uctomb: Likewise.
48381         * modules/unistr/u16-check: Likewise.
48382         * modules/unistr/u16-chr: Likewise.
48383         * modules/unistr/u16-cmp: Likewise.
48384         * modules/unistr/u16-cmp2: Likewise.
48385         * modules/unistr/u16-cpy: Likewise.
48386         * modules/unistr/u16-cpy-alloc: Likewise.
48387         * modules/unistr/u16-endswith: Likewise.
48388         * modules/unistr/u16-mblen: Likewise.
48389         * modules/unistr/u16-mbsnlen: Likewise.
48390         * modules/unistr/u16-mbtouc: Likewise.
48391         * modules/unistr/u16-mbtouc-unsafe: Likewise.
48392         * modules/unistr/u16-mbtoucr: Likewise.
48393         * modules/unistr/u16-move: Likewise.
48394         * modules/unistr/u16-next: Likewise.
48395         * modules/unistr/u16-prev: Likewise.
48396         * modules/unistr/u16-set: Likewise.
48397         * modules/unistr/u16-startswith: Likewise.
48398         * modules/unistr/u16-stpcpy: Likewise.
48399         * modules/unistr/u16-stpncpy: Likewise.
48400         * modules/unistr/u16-strcat: Likewise.
48401         * modules/unistr/u16-strchr: Likewise.
48402         * modules/unistr/u16-strcmp: Likewise.
48403         * modules/unistr/u16-strcoll: Likewise.
48404         * modules/unistr/u16-strcpy: Likewise.
48405         * modules/unistr/u16-strcspn: Likewise.
48406         * modules/unistr/u16-strdup: Likewise.
48407         * modules/unistr/u16-strlen: Likewise.
48408         * modules/unistr/u16-strmblen: Likewise.
48409         * modules/unistr/u16-strmbtouc: Likewise.
48410         * modules/unistr/u16-strncat: Likewise.
48411         * modules/unistr/u16-strncmp: Likewise.
48412         * modules/unistr/u16-strncpy: Likewise.
48413         * modules/unistr/u16-strnlen: Likewise.
48414         * modules/unistr/u16-strpbrk: Likewise.
48415         * modules/unistr/u16-strrchr: Likewise.
48416         * modules/unistr/u16-strspn: Likewise.
48417         * modules/unistr/u16-strstr: Likewise.
48418         * modules/unistr/u16-strtok: Likewise.
48419         * modules/unistr/u16-to-u32: Likewise.
48420         * modules/unistr/u16-to-u8: Likewise.
48421         * modules/unistr/u16-uctomb: Likewise.
48422         * modules/unistr/u32-check: Likewise.
48423         * modules/unistr/u32-chr: Likewise.
48424         * modules/unistr/u32-cmp: Likewise.
48425         * modules/unistr/u32-cmp2: Likewise.
48426         * modules/unistr/u32-cpy: Likewise.
48427         * modules/unistr/u32-cpy-alloc: Likewise.
48428         * modules/unistr/u32-endswith: Likewise.
48429         * modules/unistr/u32-mblen: Likewise.
48430         * modules/unistr/u32-mbsnlen: Likewise.
48431         * modules/unistr/u32-mbtouc: Likewise.
48432         * modules/unistr/u32-mbtouc-unsafe: Likewise.
48433         * modules/unistr/u32-mbtoucr: Likewise.
48434         * modules/unistr/u32-move: Likewise.
48435         * modules/unistr/u32-next: Likewise.
48436         * modules/unistr/u32-prev: Likewise.
48437         * modules/unistr/u32-set: Likewise.
48438         * modules/unistr/u32-startswith: Likewise.
48439         * modules/unistr/u32-stpcpy: Likewise.
48440         * modules/unistr/u32-stpncpy: Likewise.
48441         * modules/unistr/u32-strcat: Likewise.
48442         * modules/unistr/u32-strchr: Likewise.
48443         * modules/unistr/u32-strcmp: Likewise.
48444         * modules/unistr/u32-strcoll: Likewise.
48445         * modules/unistr/u32-strcpy: Likewise.
48446         * modules/unistr/u32-strcspn: Likewise.
48447         * modules/unistr/u32-strdup: Likewise.
48448         * modules/unistr/u32-strlen: Likewise.
48449         * modules/unistr/u32-strmblen: Likewise.
48450         * modules/unistr/u32-strmbtouc: Likewise.
48451         * modules/unistr/u32-strncat: Likewise.
48452         * modules/unistr/u32-strncmp: Likewise.
48453         * modules/unistr/u32-strncpy: Likewise.
48454         * modules/unistr/u32-strnlen: Likewise.
48455         * modules/unistr/u32-strpbrk: Likewise.
48456         * modules/unistr/u32-strrchr: Likewise.
48457         * modules/unistr/u32-strspn: Likewise.
48458         * modules/unistr/u32-strstr: Likewise.
48459         * modules/unistr/u32-strtok: Likewise.
48460         * modules/unistr/u32-to-u16: Likewise.
48461         * modules/unistr/u32-to-u8: Likewise.
48462         * modules/unistr/u32-uctomb: Likewise.
48463         * modules/uniwbrk/u8-wordbreaks: Likewise.
48464         * modules/uniwbrk/u16-wordbreaks: Likewise.
48465         * modules/uniwbrk/u32-wordbreaks: Likewise.
48466         * modules/uniwbrk/ulc-wordbreaks: Likewise.
48467         * modules/uniwbrk/wordbreak-property: Likewise.
48468         * modules/uniwidth/u8-strwidth: Likewise.
48469         * modules/uniwidth/u8-width: Likewise.
48470         * modules/uniwidth/u16-strwidth: Likewise.
48471         * modules/uniwidth/u16-width: Likewise.
48472         * modules/uniwidth/u32-strwidth: Likewise.
48473         * modules/uniwidth/u32-width: Likewise.
48474         * modules/uniwidth/width: Likewise.
48475         * modules/unicase/cased-tests (Makefile.am): Link all test programs
48476         with $(LIBUNISTRING).
48477         * modules/unicase/ignorable-tests: Likewise.
48478         * modules/unicase/locale-language-tests: Likewise.
48479         * modules/unicase/tolower-tests: Likewise.
48480         * modules/unicase/totitle-tests: Likewise.
48481         * modules/unicase/toupper-tests: Likewise.
48482         * modules/unicase/u8-casecmp-tests: Likewise.
48483         * modules/unicase/u8-casecoll-tests: Likewise.
48484         * modules/unicase/u8-casefold-tests: Likewise.
48485         * modules/unicase/u8-is-cased-tests: Likewise.
48486         * modules/unicase/u8-is-casefolded-tests: Likewise.
48487         * modules/unicase/u8-is-lowercase-tests: Likewise.
48488         * modules/unicase/u8-is-titlecase-tests: Likewise.
48489         * modules/unicase/u8-is-uppercase-tests: Likewise.
48490         * modules/unicase/u8-tolower-tests: Likewise.
48491         * modules/unicase/u8-totitle-tests: Likewise.
48492         * modules/unicase/u8-toupper-tests: Likewise.
48493         * modules/unicase/u16-casecmp-tests: Likewise.
48494         * modules/unicase/u16-casecoll-tests: Likewise.
48495         * modules/unicase/u16-casefold-tests: Likewise.
48496         * modules/unicase/u16-is-cased-tests: Likewise.
48497         * modules/unicase/u16-is-casefolded-tests: Likewise.
48498         * modules/unicase/u16-is-lowercase-tests: Likewise.
48499         * modules/unicase/u16-is-titlecase-tests: Likewise.
48500         * modules/unicase/u16-is-uppercase-tests: Likewise.
48501         * modules/unicase/u16-tolower-tests: Likewise.
48502         * modules/unicase/u16-totitle-tests: Likewise.
48503         * modules/unicase/u16-toupper-tests: Likewise.
48504         * modules/unicase/u32-casecmp-tests: Likewise.
48505         * modules/unicase/u32-casecoll-tests: Likewise.
48506         * modules/unicase/u32-casefold-tests: Likewise.
48507         * modules/unicase/u32-is-cased-tests: Likewise.
48508         * modules/unicase/u32-is-casefolded-tests: Likewise.
48509         * modules/unicase/u32-is-lowercase-tests: Likewise.
48510         * modules/unicase/u32-is-titlecase-tests: Likewise.
48511         * modules/unicase/u32-is-uppercase-tests: Likewise.
48512         * modules/unicase/u32-tolower-tests: Likewise.
48513         * modules/unicase/u32-totitle-tests: Likewise.
48514         * modules/unicase/u32-toupper-tests: Likewise.
48515         * modules/unicase/ulc-casecmp-tests: Likewise.
48516         * modules/unicase/ulc-casecoll-tests: Likewise.
48517         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
48518         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
48519         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
48520         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
48521         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
48522         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
48523         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
48524         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
48525         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
48526         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
48527         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
48528         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
48529         * modules/unictype/bidicategory-byname-tests: Likewise.
48530         * modules/unictype/bidicategory-name-tests: Likewise.
48531         * modules/unictype/bidicategory-of-tests: Likewise.
48532         * modules/unictype/bidicategory-test-tests: Likewise.
48533         * modules/unictype/block-list-tests: Likewise.
48534         * modules/unictype/block-of-tests: Likewise.
48535         * modules/unictype/block-test-tests: Likewise.
48536         * modules/unictype/category-C-tests: Likewise.
48537         * modules/unictype/category-Cc-tests: Likewise.
48538         * modules/unictype/category-Cf-tests: Likewise.
48539         * modules/unictype/category-Cn-tests: Likewise.
48540         * modules/unictype/category-Co-tests: Likewise.
48541         * modules/unictype/category-Cs-tests: Likewise.
48542         * modules/unictype/category-L-tests: Likewise.
48543         * modules/unictype/category-Ll-tests: Likewise.
48544         * modules/unictype/category-Lm-tests: Likewise.
48545         * modules/unictype/category-Lo-tests: Likewise.
48546         * modules/unictype/category-Lt-tests: Likewise.
48547         * modules/unictype/category-Lu-tests: Likewise.
48548         * modules/unictype/category-M-tests: Likewise.
48549         * modules/unictype/category-Mc-tests: Likewise.
48550         * modules/unictype/category-Me-tests: Likewise.
48551         * modules/unictype/category-Mn-tests: Likewise.
48552         * modules/unictype/category-N-tests: Likewise.
48553         * modules/unictype/category-Nd-tests: Likewise.
48554         * modules/unictype/category-Nl-tests: Likewise.
48555         * modules/unictype/category-No-tests: Likewise.
48556         * modules/unictype/category-P-tests: Likewise.
48557         * modules/unictype/category-Pc-tests: Likewise.
48558         * modules/unictype/category-Pd-tests: Likewise.
48559         * modules/unictype/category-Pe-tests: Likewise.
48560         * modules/unictype/category-Pf-tests: Likewise.
48561         * modules/unictype/category-Pi-tests: Likewise.
48562         * modules/unictype/category-Po-tests: Likewise.
48563         * modules/unictype/category-Ps-tests: Likewise.
48564         * modules/unictype/category-S-tests: Likewise.
48565         * modules/unictype/category-Sc-tests: Likewise.
48566         * modules/unictype/category-Sk-tests: Likewise.
48567         * modules/unictype/category-Sm-tests: Likewise.
48568         * modules/unictype/category-So-tests: Likewise.
48569         * modules/unictype/category-Z-tests: Likewise.
48570         * modules/unictype/category-Zl-tests: Likewise.
48571         * modules/unictype/category-Zp-tests: Likewise.
48572         * modules/unictype/category-Zs-tests: Likewise.
48573         * modules/unictype/category-and-not-tests: Likewise.
48574         * modules/unictype/category-and-tests: Likewise.
48575         * modules/unictype/category-byname-tests: Likewise.
48576         * modules/unictype/category-name-tests: Likewise.
48577         * modules/unictype/category-none-tests: Likewise.
48578         * modules/unictype/category-of-tests: Likewise.
48579         * modules/unictype/category-or-tests: Likewise.
48580         * modules/unictype/category-test-withtable-tests: Likewise.
48581         * modules/unictype/combining-class-tests: Likewise.
48582         * modules/unictype/ctype-alnum-tests: Likewise.
48583         * modules/unictype/ctype-alpha-tests: Likewise.
48584         * modules/unictype/ctype-blank-tests: Likewise.
48585         * modules/unictype/ctype-cntrl-tests: Likewise.
48586         * modules/unictype/ctype-digit-tests: Likewise.
48587         * modules/unictype/ctype-graph-tests: Likewise.
48588         * modules/unictype/ctype-lower-tests: Likewise.
48589         * modules/unictype/ctype-print-tests: Likewise.
48590         * modules/unictype/ctype-punct-tests: Likewise.
48591         * modules/unictype/ctype-space-tests: Likewise.
48592         * modules/unictype/ctype-upper-tests: Likewise.
48593         * modules/unictype/ctype-xdigit-tests: Likewise.
48594         * modules/unictype/decimal-digit-tests: Likewise.
48595         * modules/unictype/digit-tests: Likewise.
48596         * modules/unictype/mirror-tests: Likewise.
48597         * modules/unictype/numeric-tests: Likewise.
48598         * modules/unictype/property-alphabetic-tests: Likewise.
48599         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
48600         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
48601         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
48602         * modules/unictype/property-bidi-block-separator-tests: Likewise.
48603         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
48604         * modules/unictype/property-bidi-common-separator-tests: Likewise.
48605         * modules/unictype/property-bidi-control-tests: Likewise.
48606         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
48607         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
48608         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
48609         * modules/unictype/property-bidi-european-digit-tests: Likewise.
48610         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
48611         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
48612         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
48613         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
48614         * modules/unictype/property-bidi-pdf-tests: Likewise.
48615         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
48616         * modules/unictype/property-bidi-whitespace-tests: Likewise.
48617         * modules/unictype/property-byname-tests: Likewise.
48618         * modules/unictype/property-combining-tests: Likewise.
48619         * modules/unictype/property-composite-tests: Likewise.
48620         * modules/unictype/property-currency-symbol-tests: Likewise.
48621         * modules/unictype/property-dash-tests: Likewise.
48622         * modules/unictype/property-decimal-digit-tests: Likewise.
48623         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
48624         * modules/unictype/property-deprecated-tests: Likewise.
48625         * modules/unictype/property-diacritic-tests: Likewise.
48626         * modules/unictype/property-extender-tests: Likewise.
48627         * modules/unictype/property-format-control-tests: Likewise.
48628         * modules/unictype/property-grapheme-base-tests: Likewise.
48629         * modules/unictype/property-grapheme-extend-tests: Likewise.
48630         * modules/unictype/property-grapheme-link-tests: Likewise.
48631         * modules/unictype/property-hex-digit-tests: Likewise.
48632         * modules/unictype/property-hyphen-tests: Likewise.
48633         * modules/unictype/property-id-continue-tests: Likewise.
48634         * modules/unictype/property-id-start-tests: Likewise.
48635         * modules/unictype/property-ideographic-tests: Likewise.
48636         * modules/unictype/property-ids-binary-operator-tests: Likewise.
48637         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
48638         * modules/unictype/property-ignorable-control-tests: Likewise.
48639         * modules/unictype/property-iso-control-tests: Likewise.
48640         * modules/unictype/property-join-control-tests: Likewise.
48641         * modules/unictype/property-left-of-pair-tests: Likewise.
48642         * modules/unictype/property-line-separator-tests: Likewise.
48643         * modules/unictype/property-logical-order-exception-tests: Likewise.
48644         * modules/unictype/property-lowercase-tests: Likewise.
48645         * modules/unictype/property-math-tests: Likewise.
48646         * modules/unictype/property-non-break-tests: Likewise.
48647         * modules/unictype/property-not-a-character-tests: Likewise.
48648         * modules/unictype/property-numeric-tests: Likewise.
48649         * modules/unictype/property-other-alphabetic-tests: Likewise.
48650         * modules/unictype/property-other-default-ignorable-code-point-tests:
48651         Likewise.
48652         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
48653         * modules/unictype/property-other-id-continue-tests: Likewise.
48654         * modules/unictype/property-other-id-start-tests: Likewise.
48655         * modules/unictype/property-other-lowercase-tests: Likewise.
48656         * modules/unictype/property-other-math-tests: Likewise.
48657         * modules/unictype/property-other-uppercase-tests: Likewise.
48658         * modules/unictype/property-paired-punctuation-tests: Likewise.
48659         * modules/unictype/property-paragraph-separator-tests: Likewise.
48660         * modules/unictype/property-pattern-syntax-tests: Likewise.
48661         * modules/unictype/property-pattern-white-space-tests: Likewise.
48662         * modules/unictype/property-private-use-tests: Likewise.
48663         * modules/unictype/property-punctuation-tests: Likewise.
48664         * modules/unictype/property-quotation-mark-tests: Likewise.
48665         * modules/unictype/property-radical-tests: Likewise.
48666         * modules/unictype/property-sentence-terminal-tests: Likewise.
48667         * modules/unictype/property-soft-dotted-tests: Likewise.
48668         * modules/unictype/property-space-tests: Likewise.
48669         * modules/unictype/property-terminal-punctuation-tests: Likewise.
48670         * modules/unictype/property-test-tests: Likewise.
48671         * modules/unictype/property-titlecase-tests: Likewise.
48672         * modules/unictype/property-unassigned-code-value-tests: Likewise.
48673         * modules/unictype/property-unified-ideograph-tests: Likewise.
48674         * modules/unictype/property-uppercase-tests: Likewise.
48675         * modules/unictype/property-variation-selector-tests: Likewise.
48676         * modules/unictype/property-white-space-tests: Likewise.
48677         * modules/unictype/property-xid-continue-tests: Likewise.
48678         * modules/unictype/property-xid-start-tests: Likewise.
48679         * modules/unictype/property-zero-width-tests: Likewise.
48680         * modules/unictype/scripts-tests: Likewise.
48681         * modules/unictype/syntax-c-ident-tests: Likewise.
48682         * modules/unictype/syntax-c-whitespace-tests: Likewise.
48683         * modules/unictype/syntax-java-ident-tests: Likewise.
48684         * modules/unictype/syntax-java-whitespace-tests: Likewise.
48685         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
48686         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
48687         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
48688         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
48689         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
48690         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
48691         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
48692         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
48693         * modules/uniname/uniname-tests: Likewise.
48694         * modules/uninorm/canonical-decomposition-tests: Likewise.
48695         * modules/uninorm/compat-decomposition-tests: Likewise.
48696         * modules/uninorm/composition-tests: Likewise.
48697         * modules/uninorm/decomposing-form-tests: Likewise.
48698         * modules/uninorm/decomposition-tests: Likewise.
48699         * modules/uninorm/filter-tests: Likewise.
48700         * modules/uninorm/nfc-tests: Likewise.
48701         * modules/uninorm/nfd-tests: Likewise.
48702         * modules/uninorm/nfkc-tests: Likewise.
48703         * modules/uninorm/nfkd-tests: Likewise.
48704         * modules/uninorm/u8-normcmp-tests: Likewise.
48705         * modules/uninorm/u8-normcoll-tests: Likewise.
48706         * modules/uninorm/u16-normcmp-tests: Likewise.
48707         * modules/uninorm/u16-normcoll-tests: Likewise.
48708         * modules/uninorm/u32-normcmp-tests: Likewise.
48709         * modules/uninorm/u32-normcoll-tests: Likewise.
48710         * modules/unistdio/u8-asnprintf-tests: Likewise.
48711         * modules/unistdio/u8-vasnprintf-tests: Likewise.
48712         * modules/unistdio/u8-vasprintf-tests: Likewise.
48713         * modules/unistdio/u8-vsnprintf-tests: Likewise.
48714         * modules/unistdio/u8-vsprintf-tests: Likewise.
48715         * modules/unistdio/u16-asnprintf-tests: Likewise.
48716         * modules/unistdio/u16-vasnprintf-tests: Likewise.
48717         * modules/unistdio/u16-vasprintf-tests: Likewise.
48718         * modules/unistdio/u16-vsnprintf-tests: Likewise.
48719         * modules/unistdio/u16-vsprintf-tests: Likewise.
48720         * modules/unistdio/u32-asnprintf-tests: Likewise.
48721         * modules/unistdio/u32-vasnprintf-tests: Likewise.
48722         * modules/unistdio/u32-vasprintf-tests: Likewise.
48723         * modules/unistdio/u32-vsnprintf-tests: Likewise.
48724         * modules/unistdio/u32-vsprintf-tests: Likewise.
48725         * modules/unistdio/ulc-asnprintf-tests: Likewise.
48726         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
48727         * modules/unistdio/ulc-vasprintf-tests: Likewise.
48728         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
48729         * modules/unistdio/ulc-vsprintf-tests: Likewise.
48730         * modules/unistr/u8-check-tests: Likewise.
48731         * modules/unistr/u8-chr-tests: Likewise.
48732         * modules/unistr/u8-cmp-tests: Likewise.
48733         * modules/unistr/u8-cmp2-tests: Likewise.
48734         * modules/unistr/u8-cpy-alloc-tests: Likewise.
48735         * modules/unistr/u8-cpy-tests: Likewise.
48736         * modules/unistr/u8-mblen-tests: Likewise.
48737         * modules/unistr/u8-mbsnlen-tests: Likewise.
48738         * modules/unistr/u8-mbtouc-tests: Likewise.
48739         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
48740         * modules/unistr/u8-mbtoucr-tests: Likewise.
48741         * modules/unistr/u8-move-tests: Likewise.
48742         * modules/unistr/u8-next-tests: Likewise.
48743         * modules/unistr/u8-prev-tests: Likewise.
48744         * modules/unistr/u8-set-tests: Likewise.
48745         * modules/unistr/u8-stpcpy-tests: Likewise.
48746         * modules/unistr/u8-stpncpy-tests: Likewise.
48747         * modules/unistr/u8-strcat-tests: Likewise.
48748         * modules/unistr/u8-strcmp-tests: Likewise.
48749         * modules/unistr/u8-strcoll-tests: Likewise.
48750         * modules/unistr/u8-strcpy-tests: Likewise.
48751         * modules/unistr/u8-strdup-tests: Likewise.
48752         * modules/unistr/u8-strlen-tests: Likewise.
48753         * modules/unistr/u8-strmblen-tests: Likewise.
48754         * modules/unistr/u8-strmbtouc-tests: Likewise.
48755         * modules/unistr/u8-strncat-tests: Likewise.
48756         * modules/unistr/u8-strncmp-tests: Likewise.
48757         * modules/unistr/u8-strncpy-tests: Likewise.
48758         * modules/unistr/u8-strnlen-tests: Likewise.
48759         * modules/unistr/u8-to-u16-tests: Likewise.
48760         * modules/unistr/u8-to-u32-tests: Likewise.
48761         * modules/unistr/u8-uctomb-tests: Likewise.
48762         * modules/unistr/u16-check-tests: Likewise.
48763         * modules/unistr/u16-chr-tests: Likewise.
48764         * modules/unistr/u16-cmp-tests: Likewise.
48765         * modules/unistr/u16-cmp2-tests: Likewise.
48766         * modules/unistr/u16-cpy-alloc-tests: Likewise.
48767         * modules/unistr/u16-cpy-tests: Likewise.
48768         * modules/unistr/u16-mblen-tests: Likewise.
48769         * modules/unistr/u16-mbsnlen-tests: Likewise.
48770         * modules/unistr/u16-mbtouc-tests: Likewise.
48771         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
48772         * modules/unistr/u16-mbtoucr-tests: Likewise.
48773         * modules/unistr/u16-move-tests: Likewise.
48774         * modules/unistr/u16-next-tests: Likewise.
48775         * modules/unistr/u16-prev-tests: Likewise.
48776         * modules/unistr/u16-set-tests: Likewise.
48777         * modules/unistr/u16-stpcpy-tests: Likewise.
48778         * modules/unistr/u16-stpncpy-tests: Likewise.
48779         * modules/unistr/u16-strcat-tests: Likewise.
48780         * modules/unistr/u16-strcmp-tests: Likewise.
48781         * modules/unistr/u16-strcoll-tests: Likewise.
48782         * modules/unistr/u16-strcpy-tests: Likewise.
48783         * modules/unistr/u16-strdup-tests: Likewise.
48784         * modules/unistr/u16-strlen-tests: Likewise.
48785         * modules/unistr/u16-strmblen-tests: Likewise.
48786         * modules/unistr/u16-strmbtouc-tests: Likewise.
48787         * modules/unistr/u16-strncat-tests: Likewise.
48788         * modules/unistr/u16-strncmp-tests: Likewise.
48789         * modules/unistr/u16-strncpy-tests: Likewise.
48790         * modules/unistr/u16-strnlen-tests: Likewise.
48791         * modules/unistr/u16-to-u32-tests: Likewise.
48792         * modules/unistr/u16-to-u8-tests: Likewise.
48793         * modules/unistr/u16-uctomb-tests: Likewise.
48794         * modules/unistr/u32-check-tests: Likewise.
48795         * modules/unistr/u32-chr-tests: Likewise.
48796         * modules/unistr/u32-cmp-tests: Likewise.
48797         * modules/unistr/u32-cmp2-tests: Likewise.
48798         * modules/unistr/u32-cpy-alloc-tests: Likewise.
48799         * modules/unistr/u32-cpy-tests: Likewise.
48800         * modules/unistr/u32-mblen-tests: Likewise.
48801         * modules/unistr/u32-mbsnlen-tests: Likewise.
48802         * modules/unistr/u32-mbtouc-tests: Likewise.
48803         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
48804         * modules/unistr/u32-mbtoucr-tests: Likewise.
48805         * modules/unistr/u32-move-tests: Likewise.
48806         * modules/unistr/u32-next-tests: Likewise.
48807         * modules/unistr/u32-prev-tests: Likewise.
48808         * modules/unistr/u32-set-tests: Likewise.
48809         * modules/unistr/u32-stpcpy-tests: Likewise.
48810         * modules/unistr/u32-stpncpy-tests: Likewise.
48811         * modules/unistr/u32-strcat-tests: Likewise.
48812         * modules/unistr/u32-strcmp-tests: Likewise.
48813         * modules/unistr/u32-strcoll-tests: Likewise.
48814         * modules/unistr/u32-strcpy-tests: Likewise.
48815         * modules/unistr/u32-strdup-tests: Likewise.
48816         * modules/unistr/u32-strlen-tests: Likewise.
48817         * modules/unistr/u32-strmblen-tests: Likewise.
48818         * modules/unistr/u32-strmbtouc-tests: Likewise.
48819         * modules/unistr/u32-strncat-tests: Likewise.
48820         * modules/unistr/u32-strncmp-tests: Likewise.
48821         * modules/unistr/u32-strncpy-tests: Likewise.
48822         * modules/unistr/u32-strnlen-tests: Likewise.
48823         * modules/unistr/u32-to-u16-tests: Likewise.
48824         * modules/unistr/u32-to-u8-tests: Likewise.
48825         * modules/unistr/u32-uctomb-tests: Likewise.
48826         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
48827         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
48828         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
48829         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
48830         * modules/uniwidth/u8-strwidth-tests: Likewise.
48831         * modules/uniwidth/u8-width-tests: Likewise.
48832         * modules/uniwidth/u16-strwidth-tests: Likewise.
48833         * modules/uniwidth/u16-width-tests: Likewise.
48834         * modules/uniwidth/u32-strwidth-tests: Likewise.
48835         * modules/uniwidth/u32-width-tests: Likewise.
48836         * modules/uniwidth/width-tests: Likewise.
48838 2010-05-18  Richard Jones  <rjones@redhat.com>
48840         doc: users.txt: list hivex
48841         * users.txt: Add hivex.
48843 2010-05-18  Richard Jones  <rjones@redhat.com>
48845         doc: users.txt: list febootstrap
48846         * users.txt: Add febootstrap.
48848 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
48850         bootstrap: fix an error when gnulib is not used as a git submodule
48851         * build-aux/bootstrap (gnulib_path): If its length is zero then
48852         assign "gnulib" to it.
48853         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
48855 2010-05-16  Bruno Haible  <bruno@clisp.org>
48857         Avoid autoconf warnings about AM_ICONV.
48858         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
48859         2.64.
48861 2010-05-16  Bruno Haible  <bruno@clisp.org>
48863         absolute-header: Make the macro usable in more situations.
48864         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
48865         from gl_ABSOLUTE_HEADER.
48866         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
48868 2010-05-16  James Youngman  <jay@gnu.org>
48870         doc: update users.txt
48871         * users.txt: Add CSSC.
48873 2010-05-16  Jim Meyering  <meyering@redhat.com>
48875         init.sh: fix an error in the previous change; add more comments
48876         * tests/init.sh: Compare exit code in loop against 9, not 2.
48877         Patch by Bruno Haible.
48878         Make the two tests more similar by adding an empty "then" clause.
48879         Add comments.
48881         init.sh: avoid unnecessary shell re-exec
48882         * tests/init.sh: Improve the re-exec-required check to first test the
48883         current shell.  If it passes the test, do not search for a shell that
48884         does pass, and do not re-exec.  This test is particularly contorted to
48885         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
48886         of $(...) evokes a syntax error and causes immediate shell exit with
48887         status 2.  Bruno Haible reported that the re-exec made it impossible
48888         to single-step through any init.sh-using script.
48890 2010-05-16  Bruno Haible  <bruno@clisp.org>
48892         Fix collision between gnulib's and libintl's printf replacements.
48893         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
48894         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
48895         (printf): When using GNU C, map the __printf__ function to rpl_printf
48896         via __asm__. When not using GNU C, define rpl_printf instead of
48897         __printf__.
48898         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
48899         commit.
48900         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
48901         commit.
48902         * m4/asm-underscore.m4: New file.
48903         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
48904         * modules/stdio (Files): Add m4/asm-underscore.m4.
48905         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
48906         Reported by Ben Pfaff.
48908 2010-05-16  Bruno Haible  <bruno@clisp.org>
48910         verify: Avoid skipping the test on openSUSE 11.0.
48911         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
48913 2010-05-13  Bruno Haible  <bruno@clisp.org>
48915         Avoid useless warnings from G++.
48916         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
48917         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
48918         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
48920 2010-05-11  Jim Meyering  <meyering@redhat.com>
48922         maint.mk: tweak preceding change
48923         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
48924         regexps tighter by anchoring at EOL, and make the new group "shy"
48925         for slightly decreased overhead.
48927 2010-05-11  Eric Blake  <eblake@redhat.com>
48929         maint.mk: gnulib doesn't guarantee NSIG
48930         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
48932 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
48934         test-pwrite.c: Remove unused variable declaration.
48935         * tests/test-pwrite.c (main): Remove read_buf declaration.
48937         Remove useless test-pwrite.sh file.
48938         * tests/test-pwrite.sh: Delete file.
48939         * modules/pwrite-tests: Remove references.
48940         Reported by Bruno Haible.
48942 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
48944         init.sh: fix a typo
48945         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
48947 2010-05-10  Jim Meyering  <meyering@redhat.com>
48949         maint.mk: avoid using a temporary file in the always-defined-macros check
48950         * top/maint.mk (.re-defmac): Remove rule.
48951         (gl_trap_): Remove definition.
48952         (sc_prohibit_always-defined_macros): Rewrite not to create and
48953         depend on a temporary file.  Instead, depend on GNU grep's ability
48954         to read a list of regular expressions from stdin when given "-f -".
48956 2010-05-09  Bruno Haible  <bruno@clisp.org>
48958         Update to GNU gettext 0.18, part 1.
48959         * m4/gettext.m4: Update to GNU gettext 0.18.
48960         * m4/intl.m4: Likewise.
48961         * m4/po.m4: Likewise.
48962         * modules/gettext (Files): Add m4/fcntl-o.m4.
48963         (configure.ac): Require gettext infrastructure from version 0.18.
48965 2010-05-09  Jim Meyering  <meyering@redhat.com>
48967         init.sh: enable MALLOC_PERTURB_
48968         * tests/init.sh: Enable glibc's malloc-perturbing option.
48970         maint.mk: improve sc_cross_check_PATH_usage_in_tests
48971         With my recent change in init.sh from the two-line form:
48972             -#   : ${srcdir=.}
48973             -#   . "$srcdir/init.sh"; path_prepend_ .
48974             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
48975         I noticed that using the one-line form would cause this test
48976         to fail with a false-positive, or to stop working altogether,
48977         depending on whether help-version changed or all the tests did.
48978         * top/maint.mk (_hv_regex): Remove this definition.
48979         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
48980         (_hv_regex_strong): Use a stronger regex to check for conformance.
48981         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
48982         Give a separate diagnostic for lack of conforming use.
48984         maint.mk: prohibit definition of symbols defined by gnulib
48985         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
48986         definition of symbols defined by gnulib.
48988 2010-05-09  Bruno Haible  <bruno@clisp.org>
48990         acl: Avoid test failure on Cygwin-hosted mingw.
48991         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
48993 2010-05-09  Bruno Haible  <bruno@clisp.org>
48995         error: Use system's fcntl function.
48996         * lib/error.c (fcntl): Undefine.
48998 2010-05-09  Jim Meyering  <meyering@redhat.com>
49000         verify: adjust formatting to be more consistent
49001         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
49002         argument-list '('s, and after one comma.
49004 2010-05-09  Bruno Haible  <bruno@clisp.org>
49006         error: More reliable output on mingw.
49007         * lib/error.c: Include <windows.h>.
49008         (is_open): New function.
49009         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
49010         defined.
49012 2010-05-09  Bruno Haible  <bruno@clisp.org>
49014         vasnprintf: Fix syntax errors in libintl build on mingw.
49015         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
49016         pad_ourselves and prec_ourselves after use.
49018 2010-05-08  Bruno Haible  <bruno@clisp.org>
49020         * lib/config.charset: Update comments for Cygwin 1.7.
49021         * lib/localcharset.c: Likewise.
49023 2010-05-07  Jim Meyering  <meyering@redhat.com>
49025         init.sh: improve comments
49026         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
49027         . "${srcdir=.}/init.sh"; path_prepend_ .
49028         Add a note about path_prepend_ and the alternative of using
49029         TESTS_ENVIRONMENT.
49031 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
49033         exclude: Unescape hashed patterns in wildcard mode.
49034         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
49035         to the hash list.
49036         * tests/test-exclude8.sh: New test case.
49037         * modules/exclude-tests: Add new test.
49039 2010-05-05  Eric Blake  <eblake@redhat.com>
49041         verify: automate tests
49042         * modules/verify-tests: New module.
49043         * tests/test-verify.sh: New file.
49044         * tests/test-verify.c: Guard each negative test with a unique id.
49045         Also avoid warning about unused left hand of comma expressions.
49047 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
49049         Further improvements to verify.h, suggested by Eric Blake.
49050         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
49051         the GL_* versions, to avoid collision with OpenGL.
49052         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
49053         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
49054         than testing merely whether it's defined.
49056         Modify verify.h to pacify gcc -Wredundant_decls.
49057         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
49058         These use the prefix "GL_" since they're likely to be useful elsewhere.
49059         We may need to break them out into a different .h file.
49060         (__COUNTER__): Define to 0 if the compiler doesn't support it.
49061         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
49062         of verify_function__.
49064 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
49066         Tests for module pwrite.
49067         * modules/pwrite-tests: New file.
49068         * tests/test-pwrite.sh: New file.
49069         * tests/test-pwrite.c: New file.
49071         New module pwrite.
49072         * lib/unistd.in.h (pwrite): New declaration.
49073         * lib/pwrite.c: New file, from glibc with modifications.
49074         * m4/pwrite.m4: New file.
49075         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
49076         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
49077         REPLACE_PWRITE.
49078         * modules/pwrite: New file.
49079         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
49080         REPLACE_PWRITE.
49081         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
49082         * doc/posix-functions/pwrite.texi: Mention the new module.
49084 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
49086         pread: Update documentation.
49087         * doc/posix-functions/pread.texi: Mention the 'pread' module.
49089 2010-05-04  Eric Blake  <eblake@redhat.com>
49091         docs: update cygwin progress
49092         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
49093         this bug.
49094         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
49095         Added in cygwin 1.7.2.
49096         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
49097         Likewise.
49098         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
49099         Likewise.
49100         * doc/glibc-functions/dup3.texi (dup3): Likewise.
49101         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
49102         * doc/glibc-functions/accept4.texi (accept4): Likewise.
49103         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
49104         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
49105         Mention nproc module.
49106         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
49107         bug in cygwin 1.7.5 addition.
49108         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
49109         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
49110         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
49111         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
49112         1.7.5.
49113         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
49114         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
49115         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
49116         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
49117         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
49118         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
49119         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
49120         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
49121         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
49122         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
49123         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
49124         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
49125         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
49126         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
49127         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
49128         Likewise.
49129         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
49130         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
49131         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
49132         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
49133         Likewise.
49134         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
49135         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
49136         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
49137         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
49138         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
49139         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
49140         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
49141         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
49142         Likewise.
49143         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
49144         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
49145         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
49146         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
49147         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
49148         Likewise.
49149         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
49150         Likewise.
49151         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
49152         Likewise.
49153         * doc/glibc-functions/xdrrec_endofrecord.texi
49154         (xdrrec_endofrecord): Likewise.
49155         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
49156         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
49157         Likewise.
49158         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
49159         Likewise.
49161 2010-05-04  Jim Meyering  <meyering@redhat.com>
49163         gendocs.sh: make its "-s FILE" option more useful
49164         * build-aux/gendocs.sh: When honoring the -s FILE option, update
49165         $PACKAGE to reflect the probably-different basename of "FILE".
49167 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
49169         bootstrap: don't ignore download_po_files failure
49170         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
49171         failure.
49173 2010-05-03  Jim Meyering  <meyering@redhat.com>
49175         maint.mk: allow to pass options to gendocs.sh
49176         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
49177         (gendocs_options_): New overridable variable.
49179         gnu-web-doc-update: don't ignore configure or build failure
49180         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
49182         announce-gen: backslash-escape '@'s in --help output
49183         * build-aux/announce-gen: Fix syntax errors.
49185         maint.mk, announce-gen: allow project-specific announcement mail headers
49186         * top/maint.mk (translation_project_): Define default.
49187         (announcement_Cc_, announcement_mail_headers_): Likewise.
49188         (announcement): Invoke announce-gen with new --mail-headers option.
49189         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
49191         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
49192         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
49193         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
49194         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
49195         line in the "err2" output file when running "make check" in verbose
49196         mode (i.e., with set -x enabled).
49198 2010-05-03  Bruno Haible  <bruno@clisp.org>
49200         wctob: Fix for weird platforms.
49201         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
49202         argument value.
49204 2010-05-03  Jim Meyering  <meyering@redhat.com>
49206         maint.mk: prohibit unwarranted use of <strings.h>
49207         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
49208         strings.h in a file that does not also use strcasecmp, strncasecmp,
49209         ffs or ffsll.
49211         maint.mk: remove obsolete comments
49212         * top/maint.mk: Remove stale, commented-out rules.
49214 2010-05-02  Bruno Haible  <bruno@clisp.org>
49216         wcwidth: Declare also when it's aliased.
49217         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
49218         macro.
49220 2010-05-02  Bruno Haible  <bruno@clisp.org>
49222         Fix regression from 2010-04-25.
49223         * gnulib-tool (func_modules_transitive_closure): Check the status of
49224         all modules, not only of the tests that are of the form foo-tests where
49225         foo is a module.
49227 2010-05-02  Bruno Haible  <bruno@clisp.org>
49229         wctob: Work around nasty Cygwin 1.7.2 bug.
49230         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
49231         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
49233 2010-05-01  Bruno Haible  <bruno@clisp.org>
49235         fpurge: Sharper test.
49236         * tests/test-fpurge.c (main): Add one more ftell check.
49237         * modules/fpurge-tests (Depends-on): Add ftell.
49238         Suggested by Eric Blake.
49240 2010-05-01  Bruno Haible  <bruno@clisp.org>
49242         ftello: Another test.
49243         * tests/test-ftello3.c: New file.
49244         * modules/ftello-tests (Files): Add it.
49245         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
49246         MOSTLYCLEANFILES.
49248         ftell: Another test.
49249         * tests/test-ftell3.c: New file.
49250         * modules/ftell-tests (Files): Add it.
49251         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
49252         MOSTLYCLEANFILES.
49254 2010-05-01  Bruno Haible  <bruno@clisp.org>
49256         ftell, ftello: Work around Solaris bug.
49257         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
49258         * lib/ftello.c: Include stdio-impl.h.
49259         (ftello): On Solaris, when _IOWRT is set, compute the result without
49260         looking at _IOREAD.
49261         * modules/ftello (Files): Add lib/stdio-impl.h.
49262         * doc/posix-functions/ftell.texi: Mention Solaris bug.
49263         * doc/posix-functions/ftello.texi: Likewise.
49264         Reported by Eric Blake.
49266 2010-05-01  Bruno Haible  <bruno@clisp.org>
49268         freading: Adapt to special meaning of _IOREAD flag on Solaris.
49269         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
49270         the _IOWRT flag is also set.
49272 2010-05-01  Bruno Haible  <bruno@clisp.org>
49274         Fix doc about a HP-UX stdio bug.
49275         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
49276         * doc/posix-functions/ftello.texi: Likewise.
49278 2010-05-01  Bruno Haible  <bruno@clisp.org>
49280         lseek test: Fix failure on Solaris.
49281         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
49282         output.
49284 2010-04-30  Jim Meyering  <meyering@redhat.com>
49286         bootstrap: don't ignore failure to generate po*/Makevars
49287         * build-aux/bootstrap (with_gettext): Don't ignore failure
49288         to create po/Makevars or runtime-po/Makevars.
49290 2010-04-29  Eric Blake  <eblake@redhat.com>
49292         headers: relax license to LGPLv2+
49293         * modules/fcntl-h (License): Relax license.
49294         * modules/getopt-posix (License): Likewise.
49295         * modules/locale (License): Likewise.
49296         * modules/math (License): Likewise.
49297         * modules/pty (License): Likewise.
49298         * modules/sched (License): Likewise.
49299         * modules/search (License): Likewise.
49300         * modules/spawn (License): Likewise.
49301         * modules/stdarg (License): Likewise.
49302         * modules/sysexits (License): Likewise.
49304 2010-04-29  Jim Meyering  <meyering@redhat.com>
49306         inttypes: relax license to LGPLv2+
49307         * modules/inttypes (License): Relax license.
49309 2010-04-29  Simon Josefsson  <simon@josefsson.org>
49311         * top/maint.mk (indent): Run twice to produce idempotent results.
49313 2010-04-28  Bruno Haible  <bruno@clisp.org>
49315         getdate: Generate getdate.c in the source directory.
49316         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
49317         MOSTLYCLEANFILES.
49318         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
49320 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
49322         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
49323         is not declared as a const *; avoid warnings in that case.
49325 2010-04-28  Eric Blake  <eblake@redhat.com>
49327         canonicalize-lgpl: avoid compiler warning
49328         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
49329         declaration' / 'extraneous semicolon' warning with some compilers.
49330         Reported by Andreas Gruenbacher.
49332 2010-04-28  Jim Meyering  <meyering@redhat.com>
49334         init.sh: ensure a more reliable exit status when exiting via trap
49335         * tests/init.sh (setup_): Don't rely on $? in signal handler.
49336         Inspired by patches from Dmitry V. Levin.
49337         Also trap on signal 3 (SIGQUIT).
49339 2010-04-27  Bruno Haible  <bruno@clisp.org>
49341         Update doc about utimes().
49342         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
49343         'utimens' module.
49344         Reported by Andreas Gruenbacher <agruen@suse.de>.
49346 2010-04-27  Eric Blake  <eblake@redhat.com>
49348         full-read, full-write: relax license
49349         * modules/full-read (License): Drop to LGPLv2+.
49350         * modules/full-write (License): Likewise.
49351         * modules/safe-read (License): Likewise.
49352         * modules/safe-write (License): Likewise.
49354         pthread: mention library for linking
49355         * modules/pthread (Link): Mention $(LIB_PTHREAD).
49357 2010-04-27  Jim Meyering  <meyering@redhat.com>
49359         maint.mk: fix a bug introduced in last change
49360         * top/maint.mk (gl_assured_headers_): Now that all names are on
49361         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
49362         is not anchored to end of word, it should be adequate.
49364         maint.mk: avoid side-effect in latest syntax-check
49365         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
49366         to run commands via $(shell...), and hence to incur cost only when
49367         the new rule is actually run.
49369         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
49370         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
49371         and use that to create a regexp used to detect all #if HAVE_..._H uses.
49372         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
49373         (gl_assured_headers_, az_, AZ_): Define.
49374         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
49376 2010-04-26  Jim Meyering  <jim@meyering.net>
49377             Bruno Haible  <bruno@clisp.org>
49379         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
49380         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
49381         Prompted by an exchange with Gilles Espinasse.
49383 2010-04-26  Jim Meyering  <meyering@redhat.com>
49385         git-version-gen: aesthetic tweak
49386         * build-aux/git-version-gen: Use "$nl" rather than a literal,
49387         so that the command remains on a single line.
49389 2010-04-26  Eric Blake  <eblake@redhat.com>
49391         git-version-gen: allow use on EBCDIC hosts
49392         * build-aux/git-version-gen (dirty): Use literal rather than tying
49393         ourselves to ascii.
49394         Reported by Steve Goetze.
49396 2010-04-25  Bruno Haible  <bruno@clisp.org>
49398         netdb: Add support for GNULIB_POSIXCHECK.
49399         * lib/netdb.in.h: Include warn-on-use.h.
49400         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
49401         functions are used when GNULIB_POSIXCHECK is defined and the
49402         getaddrinfo module is not in use.
49403         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
49404         freeaddrinfo, gai_strerror, getnameinfo are declared.
49405         * modules/netdb (Depends-on): Add warn-on-use.
49406         (Makefile.am): Include warn-on-use.h in netdb.h.
49408 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
49410         build: avoid "make check" failure without .git/ directory
49411         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
49412         there is no .git/ directory.
49414 2010-04-25  Bruno Haible  <bruno@clisp.org>
49416         ptsname: Fix misuse of ttyname_r.
49417         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
49418         of errno.
49420 2010-04-25  Bruno Haible  <bruno@clisp.org>
49422         ttyname_r: Make it work on Solaris 10.
49423         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
49424         if the system function has the POSIX declaration. Test whether the
49425         function fails if the buffer is less than 128 bytes large.
49426         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
49427         system's ttyname_r function. Provide a reasonably large buffer.
49428         * modules/ttyname_r (Depends-on): Add extensions.
49429         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
49431 2010-04-25  Bruno Haible  <bruno@clisp.org>
49433         Use the 'extensions' module for some more functions on Solaris.
49434         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
49435         module.
49436         * doc/posix-functions/ctime_r.texi: Likewise.
49437         * doc/posix-functions/getgrgid_r.texi: Likewise.
49438         * doc/posix-functions/getgrnam_r.texi: Likewise.
49439         * doc/posix-functions/getpwnam_r.texi: Likewise.
49440         * doc/posix-functions/getpwuid_r.texi: Likewise.
49441         * doc/posix-functions/readdir_r.texi: Likewise.
49442         * doc/posix-functions/sigwait.texi: Likewise.
49443         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
49444         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
49446 2010-04-25  Bruno Haible  <bruno@clisp.org>
49448         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
49449         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
49450         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
49451         * lib/ttyname_r.c: Include <limits.h>.
49452         (ttyname_r): Define using the system's ttyname_r function, if it exists
49453         and not on Solaris.
49454         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
49455         set.
49456         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
49457         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
49458         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
49459         Reported by Simon Josefsson.
49461 2010-04-25  Bruno Haible  <bruno@clisp.org>
49463         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
49464         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
49465         * doc/posix-functions/ctime_r.texi: Likewise.
49466         * doc/posix-functions/getgrgid_r.texi: Likewise.
49467         * doc/posix-functions/getgrnam_r.texi: Likewise.
49468         * doc/posix-functions/getlogin_r.texi: Likewise.
49469         * doc/posix-functions/getpwnam_r.texi: Likewise.
49470         * doc/posix-functions/getpwuid_r.texi: Likewise.
49471         * doc/posix-functions/readdir_r.texi: Likewise.
49472         * doc/posix-functions/sigwait.texi: Likewise.
49473         * doc/posix-functions/ttyname_r.texi: Likewise.
49474         Reported by Simon Josefsson.
49476 2010-04-25  Bruno Haible  <bruno@clisp.org>
49478         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
49479         * gnulib-tool (func_usage): Document that --with-*-tests options apply
49480         also to --create-testdir.
49481         (func_acceptable): Don't consider the status of *-tests modules here.
49482         (func_modules_transitive_closure): Consider it here, before including a
49483         test module.
49484         (func_import, func_create_testdir): Set inc_all_direct_tests,
49485         inc_all_indirect_tests.
49486         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
49487         --create-testdir and --create-megatestdir.
49489 2010-04-25  Bruno Haible  <bruno@clisp.org>
49491         gnulib-tool: Add --without-*-tests options.
49492         * gnulib-tool (func_usage): Document the --without-*-tests options.
49493         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
49494         excl_unportable_tests): New variables.
49495         Fail if they are specified with --import or --update.
49496         (func_acceptable): Respect the excl_*_tests variables.
49497         (func_import): Set the excl_*_tests variables to empty.
49499 2010-04-25  Simon Josefsson  <simon@josefsson.org>
49500             Bruno Haible  <bruno@clisp.org>
49502         Work around a MacOS X 10.4 bug with openpty.
49503         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
49504         * tests/test-openpty.c (main): Close the master side explicitly.
49506 2010-04-25  Bruno Haible  <bruno@clisp.org>
49508         strnlen: Fix a C++ test error on MacOS X and Solaris.
49509         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
49510         the function is not declared.
49511         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
49512         Simon Josefsson.
49514 2010-04-24  Bruno Haible  <bruno@clisp.org>
49516         Avoid a gcc warning.
49517         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
49518         of correct type for %08lx directive.
49519         Reported by Eric Blake.
49521 2010-04-24  Bruno Haible  <bruno@clisp.org>
49523         vasnprintf: Correct errno value in case of out-of-memory.
49524         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
49525         or sprintf. Use the errno value from SNPRINTF or sprintf.
49526         Reported by Ian Beckwith <ianb@erislabs.net>.
49528 2010-04-24  Bruno Haible  <bruno@clisp.org>
49530         ansi-c++-opt: Find correct compiler when cross-compiling.
49531         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
49532         AC_CHECK_PROGS.
49533         Reported by Simon Josefsson.
49535 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
49537         vc-list-files: Add support for subversion
49538         * build-aux/vc-list-files: Use "svn list" to generate the list of
49539         files controlled by subversion.
49541 2010-04-23  Jim Meyering  <meyering@redhat.com>
49543         vc-list-files tests: convert to use init.sh
49544         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
49545         path_prepend_.
49546         Use Exit, not exit.
49547         Use skip_ rather than open coding it.
49548         Remove trap set-up and compare definitions.
49549         * tests/test-vc-list-files-git.sh: Likewise.
49550         * modules/vc-list-files-tests (Files): Add tests/init.sh.
49552 2010-04-22  Simon Josefsson  <simon@josefsson.org>
49554         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
49555         backup files.
49557 2010-04-21  Simon Josefsson  <simon@josefsson.org>
49559         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
49561 2010-04-20  Eric Blake  <eblake@redhat.com>
49563         tests: be robust to ignored SIGPIPE
49564         * tests/test-select-in.sh: Consume all output.
49565         * tests/test-lseek.sh: Check correct exit status, while avoiding
49566         EPIPE.
49568 2010-04-20  Simon Josefsson  <simon@josefsson.org>
49569             Bruno Haible  <bruno@clisp.org>
49571         visibility: Don't use -fvisibility if it leads to a warning.
49572         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
49573         yes, don't pretend that visibility works if it leads to a warning.
49574         Reported by Mike Gran <spk121@yahoo.com>.
49576 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
49578         * build-aux/bootstrap: Use "git -h" for testing for supported options
49579         instead of "git --help".  The short-form option only shows a summary,
49580         and doesn't layout the full man page.  Grep for the full option name
49581         in the summary, too.
49583 2010-04-19  Bruno Haible  <bruno@clisp.org>
49585         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
49586         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
49587         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
49588         mention of RELOCATABLE_STRIP.
49589         Reported by Sylvain Beucler <beuc@beuc.net>.
49591 2010-04-19  Bruno Haible  <bruno@clisp.org>
49593         * lib/diffseq.h: Fix typo in comment.
49594         Reported by Eric Blake.
49596 2010-04-19  Bruno Haible  <bruno@clisp.org>
49598         ioctl: Move autoconf macro to a .m4 file.
49599         * m4/ioctl.m4: New file, extracted from modules/ioctl.
49600         * modules/ioctl (Files): Add it.
49601         (configure.ac): Simply invoke gl_FUNC_IOCTL.
49602         Reported by Ian Beckwith <ianb@erislabs.net>.
49604 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
49605             Bruno Haible  <bruno@clisp.org>
49607         diffseq: Accommodate use-case with abstract arrays.
49608         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
49609         is not defined.
49610         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
49611         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
49613 2010-04-18  Bruno Haible  <bruno@clisp.org>
49615         * doc/posix-headers/stdbool.texi: More precise wording.
49617 2010-04-17  Jim Meyering  <meyering@redhat.com>
49619         maint.mk: use gnu-style indentation in an embedded perl script
49620         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
49621         Rename variable: s/two/last_two_bytes/
49623 2010-04-16  Eric Blake  <eblake@redhat.com>
49625         test-stdbool: skip test that fails with Solaris CC
49626         * tests/test-stdbool.c (f): Skip test that causes compilation
49627         error under buggy C++ compiler.
49628         * lib/stdbool.in.h: Document the limitation.
49629         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
49631         setenv: allow compilation with C++
49632         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
49633         register keyword.
49635         stdint: allow test to pass with C++
49636         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
49638         getopt: allow compilation with C++
49639         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
49640         struct.
49641         * lib/getopt.c (_getopt_internal_r): Use correct type.
49642         Reported by Dagobert Michelson, via Joel E. Denny.
49644 2010-04-16  Bruno Haible  <bruno@clisp.org>
49646         Override netdb.h always.
49647         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
49648         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
49649         Reported by Ludovic Courtès <ludo@gnu.org>.
49651 2010-04-15  Bruno Haible  <bruno@clisp.org>
49653         openpty: Fix mistake from 2010-03-21.
49654         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
49655         Reported by Simon Josefsson.
49657 2010-04-15  Eric Blake  <eblake@redhat.com>
49659         test-forkpty: fix expected signature
49660         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
49661         Reported by Simon Josefsson.
49663 2010-04-15  Jim Meyering  <meyering@redhat.com>
49665         maint.mk: texinfo_suffix_re_: correct the default regexp
49666         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
49668         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
49669         make it configurable via texinfo_suffix_re_.
49671 2010-04-14  Eric Blake  <eblake@redhat.com>
49673         strtok_r: relax license to LGPLv2+
49674         * modules/strtok_r (License): Relax license.
49675         Reported by Matthias Bolte.
49677 2010-04-14  Simon Josefsson  <simon@josefsson.org>
49679         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
49680         version 1.4.4 by default instead of requiring the libgcrypt
49681         version used during build.  This makes it possible to use the
49682         application with older but still binary compatible libgcrypt
49683         versions.
49685 2010-04-13  Eric Blake  <eblake@redhat.com>
49687         getopt-gnu: match recent glibc fixes and posix ruling
49688         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
49689         '+' handling, when requesting extensions.
49690         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
49691         'W;' handling.
49692         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
49693         * doc/posix-functions/getopt.texi (getopt): Document this.
49694         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
49695         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
49696         Likewise.
49698         getopt: merge bug fixes from glibc
49699         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
49700         diagnostics.  Honor '+:' correctly.  Reject ';'.
49702         getopt-posix: detect MacOS bug
49703         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
49704         optind when missing a required argument.
49705         * doc/posix-functions/getopt.texi (getopt): Document the bug.
49706         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
49707         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
49708         Likewise.
49710         getopt-posix: avoid spurious failure on Solaris
49711         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
49712         an indicator that setting optind=1 is sufficient for reset.
49714         getopt-posix: avoid spurious failure on FreeBSD
49715         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
49716         in POSIX mode, since the m4 test uses it.
49718         gnulib-tool: silence warning on BSD sh
49719         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
49721 2010-04-13  Jim Meyering  <meyering@redhat.com>
49723         doc: users.txt: GNU patch now uses gnulib
49724         * users.txt: Add patch.
49726 2010-04-12  Jim Meyering  <meyering@redhat.com>
49728         maint.mk: generate more concise timing data for syntax-check rules
49729         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
49730         " done" from each line that reports a syntax-check test duration.
49732 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
49734         git-version-gen: use "git update-index..." rather than "git status"
49735         * build-aux/git-version-gen: Use git update-index --refresh, not
49736         "git status".  With some versions of git, "git status" would fail
49737         to update the index and result in an unwarranted "-dirty" suffix.
49739 2010-04-11  Jim Meyering  <meyering@redhat.com>
49741         openat: correct formatting (no semantic change)
49742         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
49743         Suggested by Bruno Haible.
49745 2010-04-11  Bruno Haible  <bruno@clisp.org>
49747         Stricter declaration checking in testdirs.
49748         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49749         If for_tests is true, augment AM_CPPFLAGS to define
49750         GNULIB_STRICT_CHECKING.
49751         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
49752         GNULIB_STRICT_CHECKING is defined, verify that the function is
49753         declared.
49755 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
49756             Bruno Haible  <bruno@clisp.org>
49758         libunistring: Improve configure output.
49759         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
49760         Don't say "consider installing GNU libunistring" when checking again
49761         with libiconv.
49763 2010-04-11  Bruno Haible  <bruno@clisp.org>
49765         libunistring: Correct value of $LTLIBUNISTRING.
49766         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
49767         correct the value of $LTLIBUNISTRING.
49769 2010-04-11  Bruno Haible  <bruno@clisp.org>
49771         havelib: Add static libraries to LIBS in the right order.
49772         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
49773         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
49775 2010-04-11  Bruno Haible  <bruno@clisp.org>
49777         libunistring: Detect libunistring also when it depends on libiconv.
49778         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
49779         the second AC_LIB_HAVE_LINKFLAGS invocation.
49781 2010-04-11  James Youngman  <jay@gnu.org>
49783         close-stream: declare local scalars to be "const"
49784         * lib/close-stream.c (close_stream): Make boolean variables const
49785         to document the fact that we set but do not change them.
49787 2010-04-11  Bruno Haible  <bruno@clisp.org>
49789         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
49791 2010-04-11  Jim Meyering  <meyering@redhat.com>
49793         maint.mk: don't include dist-check.mk
49794         * top/maint.mk: Remove bogus include directive.
49796         maint.mk: improve empty-line-at-EOF check
49797         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
49798         solution, rather than tail+Perl-based one.  The latter would read
49799         a few kilobytes from the end of each file, and did not handle empty
49800         files properly.
49802         maint.mk: print the elapsed time for each syntax-check rule
49803         * top/maint.mk (sc_m_rules_): Save start time in a file.
49804         (sc_z_rules_): New rules: remove temp file and print elapsed time.
49805         (local-check): Interpose the .z rules
49807 2010-04-11  Jim Meyering  <meyering@redhat.com>
49809         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
49810         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
49811         empty file with one that ends in an empty line.
49813 2010-04-10  Bruno Haible  <bruno@clisp.org>
49815         mkdir: Make it work on mingw64.
49816         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
49817         * lib/mkdir.c: Update comment.
49818         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
49820 2010-04-10  Bruno Haible  <bruno@clisp.org>
49822         Don't override improved macro from newer autoconf.
49823         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
49824         autoconf >= 2.62.
49825         Reported by Joel E. Denny <jdenny@clemson.edu>.
49827 2010-04-10  Jim Meyering  <meyering@redhat.com>
49829         maint.mk: new syntax-check rule: prohibit empty lines at end of file
49830         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
49832         maint.mk: correct a diagnostic
49833         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
49834         in diagnostic; now use $prohibit.
49836 2010-04-10  Bruno Haible  <address@hidden>
49838         fchownat: Fix a C++ test error on Solaris 8.
49839         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
49840         the function does not exist.
49842 2010-04-10  Bruno Haible  <bruno@clisp.org>
49844         vasnprintf: Add more tests.
49845         * tests/test-vasnprintf-posix.c: Include <errno.h>.
49846         (test_function): Test converting an invalid wide string.
49848         vasnprintf: Correct handling of unconvertible wide string arguments.
49849         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
49850         VASNPRINTF.
49851         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
49852         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
49853         smaller than the expected maximum need for the directive. Set errno to
49854         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
49855         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
49856         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
49857         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
49858         * modules/vasnprintf (Files): Add m4/printf.m4.
49859         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
49861 2010-04-10  Bruno Haible  <bruno@clisp.org>
49863         vasnprintf: Fix crash in %ls directive.
49864         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
49865         string is passed as argument to %ls, with no precision and no width.
49866         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
49868 2010-04-10  Bruno Haible  <bruno@clisp.org>
49870         vasnprintf: Fix multiple test failures on mingw.
49871         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
49872         _snprintf, or snwprintf, not _snwprintf.
49874 2010-04-10  Bruno Haible  <bruno@clisp.org>
49876         write: Fix a C++ test error on mingw.
49877         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
49879 2010-04-10  Bruno Haible  <bruno@clisp.org>
49881         vasnprintf test: Reduce code duplication.
49882         * tests/test-vasnprintf.c (test_function): New function, extracted from
49883         test_vasnprintf.
49884         (test_vasnprintf, test_asnprintf): Invoke it.
49886 2010-04-10  Bruno Haible  <bruno@clisp.org>
49888         strnlen: Fix warning in C++ mode on MacOS X.
49889         * lib/string.in.h (strnlen): Use the modern idiom.
49890         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
49891         defining strnlen as a macro already in <config.h>.
49892         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49893         REPLACE_STRNLEN.
49894         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
49895         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
49897 2010-04-08  James Youngman  <jay@gnu.org>
49899         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
49900         the example.
49902 2010-04-09  Jim Meyering  <meyering@redhat.com>
49904         maint.mk: print better diagnostic when there is no $(_hv_file)
49905         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
49906         announce that when $(_hv_file) (aka help-version) does not exist.
49908         init.sh: run tr in the "C" locale to avoid multibyte interpretation
49909         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
49910         not try to interpret its random input bytes.  Jarno Rajahalme reported
49911         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
49912         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
49913         (mktempd_): Likewise, just in case.
49915         ftruncate: add two years to projected module removal date: 2012
49916         * m4/ftruncate.m4: Adjust comments.
49918         ftruncate: mark module as obsolete; even MinGW provides it, now
49919         * modules/ftruncate (Status): Obsolete.
49920         (Notice): Say that.
49921         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
49922         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
49924 2010-04-08  Bruno Haible  <bruno@clisp.org>
49926         Fix side effects from tests-related modules.
49927         * modules/dprintf-posix (Comment): New section.
49928         * modules/fprintf-posix (Comment): Likewise.
49929         * modules/obstack-printf-posix (Comment): Likewise.
49930         * modules/printf-posix (Comment): Likewise.
49931         * modules/snprintf-posix (Comment): Likewise.
49932         * modules/sprintf-posix (Comment): Likewise.
49933         * modules/vasnprintf-posix (Comment): Likewise.
49934         * modules/vasprintf-posix (Comment): Likewise.
49935         * modules/vdprintf-posix (Comment): Likewise.
49936         * modules/vfprintf-posix (Comment): Likewise.
49937         * modules/vprintf-posix (Comment): Likewise.
49938         * modules/vsnprintf-posix (Comment): Likewise.
49939         * modules/vsprintf-posix (Comment): Likewise.
49940         * modules/xprintf-posix (Comment): Likewise.
49941         * modules/xvasprintf-posix (Comment): Likewise.
49942         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
49943         * modules/floorf-tests (Depends-on): Likewise.
49944         * modules/round-tests (Depends-on): Likewise.
49945         * modules/roundf-tests (Depends-on): Likewise.
49946         * modules/trunc-tests (Depends-on): Likewise.
49947         * modules/truncf-tests (Depends-on): Likewise.
49948         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
49949         'fprintf-posix' module is not present.
49950         * tests/test-floorf2.c (check): Likewise.
49951         * tests/test-trunc2.c (check): Likewise.
49952         * tests/test-truncf2.c (check): Likewise.
49953         * tests/test-round2.c (equal): Likewise.
49954         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
49956 2010-04-07  Karl Berry  <karl@gnu.org>
49958         * config/srclist.txt,
49959         * config/srclistvars.sh,
49960         * config/srclist-update: doc fixes.
49962 2010-04-07  Jim Meyering  <meyering@redhat.com>
49964         maint.mk: add a PATH crosschecking syntax-check rule
49965         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
49966         Useful if you use a test like the one in help-version (coreutils,
49967         diffutils, grep, gzip) that ensures $(VERSION) matches what is
49968         printed by prog --version.
49970 2010-04-06  Bruno Haible  <bruno@clisp.org>
49972         Fix link error on mingw.
49973         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
49974         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
49976 2010-04-06  Bruno Haible  <bruno@clisp.org>
49978         Assume rmdir exists.
49979         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
49981 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
49983         doc: update users.txt
49984         * users.txt: Add gcal.
49986 2010-04-06  Jim Meyering  <meyering@redhat.com>
49988         init.sh: simply unset TMPDIR rather than risking env -i
49989         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
49990         although it probably works fine on all Unix-based systems, some
49991         systems (Cygwin?) cannot tolerate a totally cleared environment.
49992         Suggestion from Eric Blake.
49994 2010-04-06  Jim Meyering  <meyering@redhat.com>
49996         init.sh: portability fix: use env's POSIX-specified -i option not -u
49997         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
49998         than unportable env -u.  Solaris 5.11's env lacks support for -u.
50000 2010-04-05  Bruno Haible  <bruno@clisp.org>
50002         btowc: Work around Cygwin 1.7.2 bug.
50003         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
50004         does not map NUL to 0.
50005         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
50007 2010-04-05  Bruno Haible  <bruno@clisp.org>
50009         Make the multithread modules work on Cygwin 1.7.2.
50010         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
50011         imported symbols can be declared weak, so that it returns "no" on
50012         Cygwin 1.7.2.
50014 2010-04-05  Bruno Haible  <bruno@clisp.org>
50016         Use the module 'strncat'.
50017         * modules/unistr/u8-strncat (Depends-on): Add strncat.
50019         Tests for module 'strncat'.
50020         * modules/strncat-tests: New file.
50021         * tests/test-strncat.c: New file.
50023         New module 'strncat'.
50024         * lib/string.in.h (strncat): New declaration.
50025         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
50026         * m4/strncat.m4: New file, based on m4/memchr.m4.
50027         * modules/strncat: New file.
50028         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
50029         is declared.
50030         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
50031         REPLACE_STRNCAT.
50032         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
50033         REPLACE_STRNCAT.
50034         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
50035         module.
50036         * tests/test-string-c++.cc: Check signature of strncat.
50038 2010-04-05  Jim Meyering  <meyering@redhat.com>
50040         xstrtoumax-tests: convert to use init.sh
50041         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
50042         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
50043         Use Exit, not exit.
50044         Remove uses of $EXEEXT and "./" to run a program in the current dir.
50046         xstrtoimax-tests: convert to use init.sh
50047         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
50048         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
50049         Use Exit, not exit.
50050         Remove uses of $EXEEXT and "./" to run a program in the current dir.
50052 2010-04-05  Bruno Haible  <bruno@clisp.org>
50054         sys_socket: Avoid #define replacements in C++ mode.
50055         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
50056         warning to the function if possible, rather than #defining the symbol
50057         to a dysfunctional alias.
50059 2010-04-05  Bruno Haible  <bruno@clisp.org>
50061         fseeko: Fix C++ test error on mingw.
50062         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
50063         gl_FUNC_FSEEKO.
50064         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
50065         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
50066         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
50067         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
50069 2010-04-05  Bruno Haible  <bruno@clisp.org>
50071         duplocale: Improve test output.
50072         * tests/test-duplocale.c (main): Print reason for skipped test.
50074 2010-04-05  Bruno Haible  <bruno@clisp.org>
50076         Assume rmdir exists.
50077         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
50078         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
50080 2010-04-05  Bruno Haible  <bruno@clisp.org>
50082         Fix link error on Solaris 8 with cc.
50083         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
50085 2010-04-05  Bruno Haible  <bruno@clisp.org>
50087         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
50088         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
50090 2010-04-05  Bruno Haible  <bruno@clisp.org>
50092         vasprintf: Update documentation.
50093         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
50095 2010-04-05  Bruno Haible  <bruno@clisp.org>
50097         ptsname: Improve test.
50098         * tests/test-ptsname.c (main): Also try the various master names of BSD
50099         systems.
50101 2010-04-05  Bruno Haible  <bruno@clisp.org>
50103         memchr: Avoid a possible C++ test error.
50104         * lib/string.in.h (memchr): Provide declaration if function is missing.
50105         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
50106         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
50107         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
50108         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
50110 2010-04-05  Bruno Haible  <bruno@clisp.org>
50112         strtok_r: Improve idiom.
50113         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
50114         AC_LIBOBJ is used.
50116 2010-04-05  Bruno Haible  <bruno@clisp.org>
50118         strdup: Improve idiom.
50119         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
50120         AC_LIBOBJ is used.
50121         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
50122         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
50123         when AC_LIBOBJ is used.
50125 2010-04-05  Bruno Haible  <bruno@clisp.org>
50127         mbsinit, mbrtowc, wcrtomb: Improve idioms.
50128         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
50129         don't set REPLACE_MBSINIT to 1.
50130         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
50131         don't set REPLACE_MBRTOWC to 1.
50132         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
50133         exist, don't set REPLACE_MBSRTOWCS to 1.
50134         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
50135         exist, don't set REPLACE_MBSNRTOWCS to 1.
50136         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
50137         don't set REPLACE_WCRTOMB to 1.
50138         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
50139         exist, don't set REPLACE_WCSRTOMBS to 1.
50140         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
50141         exist, don't set REPLACE_WCSNRTOMBS to 1.
50143 2010-04-05  Bruno Haible  <bruno@clisp.org>
50145         ldexpl: Improve idiom.
50146         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
50147         make sure to set HAVE_DECL_LDEXPL to 0.
50149 2010-04-05  Jim Meyering  <meyering@redhat.com>
50151         xstrtol-tests: convert to use init.sh
50152         * modules/xstrtol-tests (Files): Add tests/init.sh.
50153         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
50154         Use Exit, not exit.
50155         Remove uses of $EXEEXT and "./" to run a program in the current dir.
50157         atexit-tests: convert to use init.sh
50158         * modules/atexit-tests (Files): Add tests/init.sh.
50159         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
50160         Use Exit, not exit.
50161         Remove uses of $EXEEXT and "./" to run a program in the current dir.
50163         init.sh: fix typo
50164         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
50166         init.sh: make it easier for a test script to write to the tty, ...
50167         when using automake's parallel-tests mode.
50168         * tests/init.sh (stderr_fileno_): Define overridable variable.
50169         (warn_): New function, to use it.
50170         (fail_, skip_, framework_failure_): Use warn_.
50172 2010-04-04  Bruno Haible  <bruno@clisp.org>
50174         btowc: Avoid warning.
50175         * lib/btowc.c: Include <stdlib.h>.
50176         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
50178 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
50179             Bruno Haible  <bruno@clisp.org>
50181         wchar: Port to NetBSD 1.5.
50182         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
50183         * lib/wctype.in.h (WEOF): Likewise.
50185 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
50186             Bruno Haible  <bruno@clisp.org>
50188         Port extended stdio to NetBSD 1.5.
50189         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
50190         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
50191         older.
50193 2010-04-04  Bruno Haible  <bruno@clisp.org>
50195         string: Remove unused substitution.
50196         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
50197         HAVE_DECL_STRERROR.
50198         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
50200 2010-04-04  Bruno Haible  <bruno@clisp.org>
50202         strtod: Avoid a possible C++ test error.
50203         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
50204         set REPLACE_STRTOD.
50206 2010-04-04  Bruno Haible  <bruno@clisp.org>
50208         strerror: Update documentation.
50209         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
50211 2010-04-04  Bruno Haible  <bruno@clisp.org>
50213         stdio: Fix some C++ test errors on Solaris 8 with GCC.
50214         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
50215         _GL_CXXALIAS_SYS_CAST.
50217 2010-04-04  Bruno Haible  <bruno@clisp.org>
50219         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
50220         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
50221         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
50222         REPLACE_FREXPL to 1.
50223         * doc/posix-functions/frexpl.texi: Update documentation.
50225 2010-04-04  Bruno Haible  <bruno@clisp.org>
50227         math: Fix some C++ test errors on Solaris 8 and Cygwin.
50228         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
50230 2010-04-04  Bruno Haible  <bruno@clisp.org>
50232         Implement nanosleep for native Windows.
50233         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
50235 2010-04-04  Bruno Haible  <bruno@clisp.org>
50237         math: Fix some C++ test errors on Solaris 8.
50238         * lib/math.in.h (truncf, trunc): Use simpler idiom.
50240 2010-04-04  Bruno Haible  <bruno@clisp.org>
50242         math: Fix some C++ test errors on Cygwin.
50243         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
50244         truncl): Provide declaration if the system does not have it.
50245         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
50246         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
50247         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
50248         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
50249         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
50250         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
50251         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
50252         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
50253         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
50254         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
50255         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
50256         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
50257         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
50258         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
50259         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
50260         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
50261         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
50262         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
50263         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
50264         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
50265         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
50266         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
50268 2010-04-04  Bruno Haible  <bruno@clisp.org>
50270         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
50271         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
50272         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
50273         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
50274         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
50275         * m4/isinf.m4 (gl_ISINF): Likewise.
50276         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
50278 2010-04-04  Bruno Haible  <bruno@clisp.org>
50280         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
50281         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
50283 2010-04-04  Bruno Haible  <bruno@clisp.org>
50285         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
50286         * modules/tmpfile (configure.ac): Update.
50288         tmpfile: Fix C++ test error on mingw.
50289         * lib/stdio.in.h (tmpfile): New declaration.
50290         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
50291         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
50292         * modules/tmpfile (Depends-on): Add stdio.
50293         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
50294         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
50295         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
50296         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
50297         REPLACE_TMPFILE.
50298         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
50300 2010-04-04  Bruno Haible  <bruno@clisp.org>
50302         ioctl: Fix C++ test error on mingw.
50303         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
50304         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
50305         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
50307 2010-04-03  Bruno Haible  <bruno@clisp.org>
50309         wcwidth: Fix C++ test error on mingw.
50310         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
50311         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
50312         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
50314 2010-04-03  Bruno Haible  <bruno@clisp.org>
50316         nanosleep: Fix C++ test error on mingw.
50317         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
50318         * lib/time.in.h (nanosleep): Use modern idiom.
50319         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
50320         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
50321         REPLACE_NANOSLEEP to 1.
50322         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
50323         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
50325 2010-04-03  Bruno Haible  <bruno@clisp.org>
50327         strptime: Fix C++ test error on mingw.
50328         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
50329         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
50330         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
50331         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
50332         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
50333         not REPLACE_STRPTIME.
50334         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
50335         REPLACE_STRPTIME.
50337 2010-04-03  Bruno Haible  <bruno@clisp.org>
50339         timegm: Fix C++ test error on mingw.
50340         * lib/time.in.h (timegm): Use modern idiom.
50341         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
50342         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
50343         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
50344         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
50346 2010-04-03  Bruno Haible  <bruno@clisp.org>
50348         timegm: Assume declaration if function exists.
50349         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
50350         if it exists. Don't clobber ac_cv_func_timegm.
50352 2010-04-03  Bruno Haible  <bruno@clisp.org>
50354         time_r: Fix C++ test error on mingw.
50355         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
50356         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
50357         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
50358         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
50359         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
50361 2010-04-03  Bruno Haible  <bruno@clisp.org>
50363         time_r: Minor updates.
50364         * modules/time_r (Description): Mention the provided functions.
50365         * lib/time_r.c: Don't include <string.h>.
50366         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
50367         * doc/posix-functions/localtime_r.texi: Likewise.
50369 2010-04-03  Bruno Haible  <bruno@clisp.org>
50371         time: Fix regression introduced on 2010-03-08.
50372         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
50373         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
50375 2010-04-03  Jim Meyering  <meyering@redhat.com>
50377         maint.mk: don't silently disable project-specific syntax-check rules
50378         * top/maint.mk (_prohibit_regexp): Define, to help people realize
50379         that they need to convert their project-specific syntax-check rules
50380         to use the new _sc_search_regexp.
50382 2010-04-03  Bruno Haible  <bruno@clisp.org>
50384         fchdir: Fix regression introduced on 2010-03-08.
50385         * lib/unistd.in.h (fchdir): Fix declaration.
50386         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
50387         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
50388         REPLACE_FCHDIR.
50389         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
50390         REPLACE_FCHDIR.
50392 2010-04-03  Bruno Haible  <bruno@clisp.org>
50394         getpagesize: Fix C++ test error on mingw.
50395         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
50396         system does not declare the function.
50397         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
50398         declared.
50399         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50400         HAVE_DECL_GETPAGESIZE.
50401         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
50403 2010-04-03  Bruno Haible  <bruno@clisp.org>
50405         stdio: Make C++ tests work on mingw.
50406         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
50407         does not declare the function.
50409 2010-04-03  Bruno Haible  <bruno@clisp.org>
50411         ftello: Fix C++ test error on mingw.
50412         * lib/stdio.in.h (ftello): Use modern idiom.
50413         * lib/ftello.c (ftello): Renamed from rpl_ftello.
50414         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
50415         is missing and that it needs to be replaced.
50416         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
50417         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
50418         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
50420 2010-04-03  Bruno Haible  <bruno@clisp.org>
50422         fseeko: Fix C++ test error on mingw.
50423         * lib/stdio.in.h (fseeko): Use modern idiom.
50424         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
50425         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
50426         is missing and that it needs to be replaced.
50427         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
50428         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
50429         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
50431 2010-04-03  Bruno Haible  <bruno@clisp.org>
50433         mkstemp: Fix C++ test error on mingw.
50434         * lib/stdlib.in.h (mkstemp): Use modern idiom.
50435         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
50436         function is missing and that it needs to be replaced.
50437         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
50438         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
50440 2010-04-03  Bruno Haible  <bruno@clisp.org>
50442         stpncpy: Fix C++ test error on mingw.
50443         * lib/string.in.h (stpncpy): Use modern idiom.
50444         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
50445         function is missing and that it needs to be replaced.
50446         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
50447         REPLACE_STPNCPY.
50448         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
50450 2010-04-03  Bruno Haible  <bruno@clisp.org>
50452         sys_stat: Fix C++ test error on mingw.
50453         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
50454         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
50456 2010-04-03  Bruno Haible  <bruno@clisp.org>
50458         pty: Update doc.
50459         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
50461 2010-04-03  Bruno Haible  <bruno@clisp.org>
50463         unistd: Fix C++ test error on mingw.
50464         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
50466 2010-04-03  Bruno Haible  <bruno@clisp.org>
50468         Update doc regarding mingw.
50469         * doc/glibc-functions/openpty.texi: Update regarding mingw.
50470         * doc/glibc-functions/login_tty.texi: Likewise.
50471         * doc/glibc-functions/forkpty.texi: Likewise.
50473 2010-04-03  Bruno Haible  <bruno@clisp.org>
50475         stdlib: Avoid compilation failure of c-strtold on mingw.
50476         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
50478 2010-04-03  Bruno Haible  <bruno@clisp.org>
50480         locale: Make C++ tests work on Cygwin and mingw.
50481         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
50482         cannot provide the function.
50483         Reported by Simon Josefsson.
50485 2010-04-03  Bruno Haible  <bruno@clisp.org>
50487         localename: Port to MacOS X 10.6.
50488         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
50489         memory layout of the locales in MacOS X 10.6 as well.
50490         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
50492 2010-04-02  Bruno Haible  <bruno@clisp.org>
50494         gnulib-tool: Ensure that long-running tests are executed last.
50495         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
50496         running tests after the one for the other tests.
50498 2010-04-02  Bruno Haible  <bruno@clisp.org>
50500         gnulib-tool: Ensure the tests in the main directory are executed first.
50501         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
50502         start with the current directory.
50504 2010-04-02  Bruno Haible  <bruno@clisp.org>
50506         Tests for module 'havelib', moved here from GNU gettext.
50507         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
50508         modifications.
50509         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
50510         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
50511         with modifications.
50512         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
50513         modifications.
50514         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
50515         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
50516         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
50517         with modifications.
50518         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
50519         with modifications.
50520         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
50521         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
50522         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
50523         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
50524         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
50525         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
50526         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
50527         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
50528         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
50529         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
50530         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
50531         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
50532         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
50533         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
50534         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
50535         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
50536         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
50537         with modifications.
50538         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
50539         with modifications.
50540         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
50541         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
50542         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
50543         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
50544         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
50545         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
50546         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
50547         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
50548         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
50549         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
50550         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
50551         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
50552         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
50553         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
50554         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
50555         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
50556         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
50557         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
50558         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
50559         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
50560         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
50561         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
50562         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
50563         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
50564         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
50565         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
50566         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
50567         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
50568         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
50569         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
50570         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
50571         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
50572         * tests/havelib/rpathx/rpathx.c: New file, from
50573         gettext/autoconf-lib-link.
50574         * tests/havelib/rpathx/Makefile.am: New file, from
50575         gettext/autoconf-lib-link.
50576         * tests/havelib/rpathx/configure.ac: New file, from
50577         gettext/autoconf-lib-link with modifications.
50578         * tests/havelib/rpathy/rpathy.c: New file, from
50579         gettext/autoconf-lib-link.
50580         * tests/havelib/rpathy/Makefile.am: New file, from
50581         gettext/autoconf-lib-link.
50582         * tests/havelib/rpathy/configure.ac: New file, from
50583         gettext/autoconf-lib-link with modifications.
50584         * tests/havelib/rpathz/rpathz.c: New file, from
50585         gettext/autoconf-lib-link.
50586         * tests/havelib/rpathz/Makefile.am: New file, from
50587         gettext/autoconf-lib-link.
50588         * tests/havelib/rpathz/configure.ac: New file, from
50589         gettext/autoconf-lib-link with modifications.
50590         * tests/havelib/rpathlx/usex.c: New file, from
50591         gettext/autoconf-lib-link.
50592         * tests/havelib/rpathlx/Makefile.am: New file, from
50593         gettext/autoconf-lib-link.
50594         * tests/havelib/rpathlx/configure.ac: New file, from
50595         gettext/autoconf-lib-link with modifications.
50596         * tests/havelib/rpathly/usey.c: New file, from
50597         gettext/autoconf-lib-link.
50598         * tests/havelib/rpathly/Makefile.am: New file, from
50599         gettext/autoconf-lib-link.
50600         * tests/havelib/rpathly/configure.ac: New file, from
50601         gettext/autoconf-lib-link with modifications.
50602         * tests/havelib/rpathlz/usez.c: New file, from
50603         gettext/autoconf-lib-link.
50604         * tests/havelib/rpathlz/Makefile.am: New file, from
50605         gettext/autoconf-lib-link.
50606         * tests/havelib/rpathlz/configure.ac: New file, from
50607         gettext/autoconf-lib-link with modifications.
50608         * tests/havelib/rpathlyx/usey.c: New file, from
50609         gettext/autoconf-lib-link.
50610         * tests/havelib/rpathlyx/Makefile.am: New file, from
50611         gettext/autoconf-lib-link.
50612         * tests/havelib/rpathlyx/configure.ac: New file, from
50613         gettext/autoconf-lib-link with modifications.
50614         * tests/havelib/rpathlzyx/usez.c: New file, from
50615         gettext/autoconf-lib-link.
50616         * tests/havelib/rpathlzyx/Makefile.am: New file, from
50617         gettext/autoconf-lib-link.
50618         * tests/havelib/rpathlzyx/configure.ac: New file, from
50619         gettext/autoconf-lib-link with modifications.
50620         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
50621         with modifications.
50623 2010-04-02  Bruno Haible  <bruno@clisp.org>
50625         gnulib-tool: Create distributed built sources also for the tests.
50626         * gnulib-tool (func_create_testdir): Also generate distributed built
50627         sources in the tests directory.
50629 2010-04-02  Bruno Haible  <bruno@clisp.org>
50631         gnulib-tool: Obey user's environment variables.
50632         * gnulib-tool (func_create_testdir): When creating built sources,
50633         respect the environment variables for autoconf, automake, etc. given by
50634         the user.
50636 2010-04-02  Bruno Haible  <bruno@clisp.org>
50638         gnulib-tool: Provide the value of --m4-base to modules.
50639         * gnulib-tool (func_import, func_create_testdir): Emit a definition
50640         of gl_m4_base.
50642 2010-04-02  Eric Blake  <eblake@redhat.com>
50644         maint.mk: fix some fallout
50645         * NEWS: Document the incompatible change, and its effect on cfg.mk.
50646         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
50648 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
50650         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
50651         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
50652         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
50653         (sc_cast_of_x_alloc_return_value): Likewise.
50654         (sc_cast_of_alloca_return_value): Likewise.
50655         (sc_space_tab): Likewise.
50656         (sc_prohibit_atoi_atof): Likewise.
50657         (sc_prohibit_magic_number_exit): Likewise.
50658         (sc_error_exit_success): Likewise.
50659         (sc_file_system): Likewise.
50660         (sc_prohibit_have_config_h): Likewise.
50661         (sc_require_config_h): Likewise.
50662         (sc_prohibit_HAVE_MBRTOWC): Likewise.
50663         (sc_obsolete_symbols): Likewise.
50664         (sc_changelog): Likewise.
50665         (sc_program_name): Likewise.
50666         (sc_the_the): Likewise.
50667         (sc_trailing_blank): Likewise.
50668         (sc_two_space_separator_in_usage): Likewise.
50669         (sc_useless_cpp_parens): Likewise.
50670         (sc_GPL_version): Likewise.
50671         (sc_GFDL_version): Likewise.
50672         (sc_texinfo_acronym): Likewise.
50673         (sc_prohibit_cvs_keyword): Likewise.
50674         (sc_prohibit_stat_st_blocks): Likewise.
50675         (sc_prohibit_S_IS_definition): Likewise.
50676         (sc_redundant_const): Likewise.
50677         (sc_makefile_TAB_only_indentation): Likewise.
50678         (sc_m4_quote_check): Likewise.
50679         (sc_makefile_path_separator_check): Likewise.
50680         (sc_copyright_check): Likewise.
50681         (sc_Wundef_boolean): Likewise.
50682         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
50684         maint.mk: match 0 or more whitespace-before-function-call '('
50685         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
50686         that have zero or two-and-more spaces between the function name
50687         and the open parenthesis.
50688         (sc_error_message_warn_fatal): Likewise.
50689         (sc_error_message_uppercase): Likewise.
50690         (sc_error_message_period): Likewise.
50692 2010-03-31  Eric Blake  <eblake@redhat.com>
50694         maint.mk: check for [ as well as test
50695         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
50696         Based on a libvirt report by Matthias Bolte.
50698         gnumakefile: don't squelch _version output
50699         * top/GNUmakefile (_version): Create one-shot dependency rather
50700         than using $(shell) when version must be regenerated.
50701         (_autoreconf): Run verbosely, by default.
50703         sys_time: avoid compiler warnings
50704         * lib/sys_time.in.h (includes): Ensure gcc pragma is
50705         unconditional, fixing regression from 2010-03-29.
50706         Reported by Simon Josefsson.
50708 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
50710         maint.mk: s/_header_without_use/_sc_header_without_use/
50711         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
50712         (sc_prohibit_assert_without_use): Use the new name.
50713         (sc_prohibit_close_stream_without_use): Likewise.
50714         (sc_prohibit_getopt_without_use): Likewise.
50715         (sc_prohibit_quotearg_without_use): Likewise.
50716         (sc_prohibit_quote_without_use): Likewise.
50717         (sc_prohibit_long_options_without_use): Likewise.
50718         (sc_prohibit_inttostr_without_use): Likewise.
50719         (sc_prohibit_ignore_value_without_use): Likewise.
50720         (sc_prohibit_error_without_use): Likewise.
50721         (sc_prohibit_xalloc_without_use): Likewise.
50722         (sc_prohibit_hash_without_use): Likewise.
50723         (sc_prohibit_hash_pjw_without_use): Likewise.
50724         (sc_prohibit_safe_read_without_use): Likewise.
50725         (sc_prohibit_argmatch_without_use): Likewise.
50726         (sc_prohibit_canonicalize_without_use): Likewise.
50727         (sc_prohibit_root_dev_ino_without_use): Likewise.
50728         (sc_prohibit_openat_without_use): Likewise.
50729         (sc_prohibit_c_ctype_without_use): Likewise.
50730         (sc_prohibit_signal_without_use): Likewise.
50731         (sc_prohibit_intprops_without_use): Likewise.
50733 2010-03-30  Eric Blake  <eblake@redhat.com>
50735         maint: improve module indicators
50736         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
50737         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
50738         columns, and avoid extra macro expansion.
50740         fdopendir: work around FreeBSD bug
50741         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
50742         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
50743         * modules/dirent (Makefile.am): Substitute it.
50744         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
50745         declaration.
50746         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
50747         fix.
50748         Reported by Christian Weisgerber <naddy@mips.inka.de>.
50750 2010-03-29  Bruno Haible  <bruno@clisp.org>
50752         Emit #pragma system_header after the inclusion guard, not before.
50753         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
50754         guard that spans the entire file, not before. This enables an
50755         optimization in GCC's preprocessor.
50756         * lib/ctype.in.h: Likewise.
50757         * lib/dirent.in.h: Likewise.
50758         * lib/errno.in.h: Likewise.
50759         * lib/float.in.h: Likewise.
50760         * lib/getopt.in.h: Likewise.
50761         * lib/iconv.in.h: Likewise.
50762         * lib/langinfo.in.h: Likewise.
50763         * lib/locale.in.h: Likewise.
50764         * lib/math.in.h: Likewise.
50765         * lib/netdb.in.h: Likewise.
50766         * lib/netinet_in.in.h: Likewise.
50767         * lib/pty.in.h: Likewise.
50768         * lib/sched.in.h: Likewise.
50769         * lib/se-selinux.in.h: Likewise.
50770         * lib/search.in.h: Likewise.
50771         * lib/spawn.in.h: Likewise.
50772         * lib/stdarg.in.h: Likewise.
50773         * lib/stdint.in.h: Likewise.
50774         * lib/string.in.h: Likewise.
50775         * lib/strings.in.h: Likewise.
50776         * lib/sys_file.in.h: Likewise.
50777         * lib/sys_ioctl.in.h: Likewise.
50778         * lib/sys_time.in.h: Likewise.
50779         * lib/sys_times.in.h: Likewise.
50780         * lib/sys_utsname.in.h: Likewise.
50781         * lib/sys_wait.in.h: Likewise.
50782         * lib/sysexits.in.h: Likewise.
50783         * lib/wctype.in.h: Likewise.
50785 2010-03-28  James Youngman  <jay@gnu.org>
50787         save-cwd: don't leak a file descriptor when the caller execs.
50788         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
50789         saved file descriptor.
50790         * modules/save-cwd (Depends-on): Depend on cloexec.
50792 2010-03-29  Bruno Haible  <bruno@clisp.org>
50794         Remove vestiges of fts-lgpl module.
50795         * lib/fts_.h: Assume GNULIB_FTS is 1.
50796         * lib/fts.c: Likewise.
50797         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
50799 2010-03-28  Bruno Haible  <bruno@clisp.org>
50801         Fix definition of tests witness macro.
50802         * gnulib-tool (func_import): Fix definition of witness macro.
50804 2010-03-28  Bruno Haible  <bruno@clisp.org>
50806         Fix ioctl's protoype on glibc systems.
50807         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
50808         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
50809         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
50810         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
50811         signature. If not, arrange to replace the ioctl function.
50812         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
50813         REPLACE_IOCTL.
50814         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
50815         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
50816         Reported by Ludovic Courtès <ludo@gnu.org>.
50818 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
50820         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
50821         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
50822         made it so grep -r --include=GLOB* ... did not work.
50824 2010-03-26  Jim Meyering  <meyering@redhat.com>
50825             Eric Blake  <eblake@redhat.com>
50827         maint.mk: prohibit use of test's -o and -a operators
50828         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
50830 2010-03-28  Bruno Haible  <bruno@clisp.org>
50832         Remove unused GNULIB_XYZ macro definitions.
50833         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
50834         invocation.
50836 2010-03-28  Bruno Haible  <bruno@clisp.org>
50838         Mark privileged tests modules.
50839         * modules/idpriv-drop-tests (Status): New section.
50840         * modules/idpriv-droptemp-tests (Status): New section.
50842 2010-03-28  Bruno Haible  <bruno@clisp.org>
50844         Split C++ tests into separate tests modules.
50845         * modules/dirent-c++-tests: New file, extracted from
50846         modules/dirent-tests.
50847         * modules/dirent-tests: Depend on it.
50848         * modules/fcntl-h-c++-tests: New file, extracted from
50849         modules/fcntl-h-tests.
50850         * modules/fcntl-h-tests: Depend on it.
50851         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
50852         * modules/glob-tests: Depend on it.
50853         * modules/iconv-h-c++-tests: New file, extracted from
50854         modules/iconv-h-tests.
50855         * modules/iconv-h-tests: Depend on it.
50856         * modules/langinfo-c++-tests: New file, extracted from
50857         modules/langinfo-tests.
50858         * modules/langinfo-tests: Depend on it.
50859         * modules/locale-c++-tests: New file, extracted from
50860         modules/locale-tests.
50861         * modules/locale-tests: Depend on it.
50862         * modules/math-c++-tests: New file, extracted from modules/math-tests.
50863         * modules/math-tests: Depend on it.
50864         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
50865         * modules/pty-tests: Depend on it.
50866         * modules/search-c++-tests: New file, extracted from
50867         modules/search-tests.
50868         * modules/search-tests: Depend on it.
50869         * modules/signal-c++-tests: New file, extracted from
50870         modules/signal-tests.
50871         * modules/signal-tests: Depend on it.
50872         * modules/spawn-c++-tests: New file, extracted from
50873         modules/spawn-tests.
50874         * modules/spawn-tests: Depend on it.
50875         * modules/stdio-c++-tests: New file, extracted from
50876         modules/stdio-tests.
50877         * modules/stdio-tests: Depend on it.
50878         * modules/stdlib-c++-tests: New file, extracted from
50879         modules/stdlib-tests.
50880         * modules/stdlib-tests: Depend on it.
50881         * modules/string-c++-tests: New file, extracted from
50882         modules/string-tests.
50883         * modules/string-tests: Depend on it.
50884         * modules/sys_ioctl-c++-tests: New file, extracted from
50885         modules/sys_ioctl-tests.
50886         * modules/sys_ioctl-tests: Depend on it.
50887         * modules/sys_select-c++-tests: New file, extracted from
50888         modules/sys_select-tests.
50889         * modules/sys_select-tests: Depend on it.
50890         * modules/sys_socket-c++-tests: New file, extracted from
50891         modules/sys_socket-tests.
50892         * modules/sys_socket-tests: Depend on it.
50893         * modules/sys_stat-c++-tests: New file, extracted from
50894         modules/sys_stat-tests.
50895         * modules/sys_stat-tests: Depend on it.
50896         * modules/sys_time-c++-tests: New file, extracted from
50897         modules/sys_time-tests.
50898         * modules/sys_time-tests: Depend on it.
50899         * modules/time-c++-tests: New file, extracted from modules/time-tests.
50900         * modules/time-tests: Depend on it.
50901         * modules/unistd-c++-tests: New file, extracted from
50902         modules/unistd-tests.
50903         * modules/unistd-tests: Depend on it.
50904         * modules/wchar-c++-tests: New file, extracted from
50905         modules/wchar-tests.
50906         * modules/wchar-tests: Depend on it.
50907         * modules/wctype-c++-tests: New file, extracted from
50908         modules/wctype-tests.
50909         * modules/wctype-tests: Depend on it.
50910         Reported by Simon Josefsson.
50912 2010-03-28  Bruno Haible  <bruno@clisp.org>
50914         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
50915         * gnulib-tool (func_exists_module): New function, extracted from
50916         func_verify_module.
50917         (func_verify_module): Use it.
50918         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
50919         'foo' only if 'foo' exists.
50920         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
50921         module.
50923 2010-03-28  Bruno Haible  <bruno@clisp.org>
50925         gnulib-tool: Add support for special categories of tests.
50926         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
50927         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
50928         (func_usage): Document them.
50929         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
50930         inc_unportable_tests, inc_all_tests): New variables.
50931         (func_acceptable): Consider these variables.
50932         (func_modules_transitive_closure): Make it work when the 'Status' field
50933         consists of multiple words.
50934         (func_import): Store and restore the values of inc_cxx_tests,
50935         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
50936         inc_all_tests in gnulib-comp.m4.
50937         (func_create_testdir): Set inc_all_tests to true.
50938         * doc/gnulib.texi (Extra tests modules): New section.
50939         Suggested by Jim Meyering.
50941 2010-03-28  Bruno Haible  <bruno@clisp.org>
50943         ansi-c++-opt: Allow turning off the C++ build by default.
50944         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
50945         gl_CXX_CHOICE_DEFAULT_NO is defined.
50946         Requested by Eric Blake.
50948 2010-03-28  Bruno Haible  <bruno@clisp.org>
50950         unistd: Avoid #define replacements in C++ mode.
50951         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
50952         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
50953         setsockopt, shutdown, select): In C++, attach a warning to the function
50954         if possible, rather than #defining the symbol to a dysfunctional alias.
50955         Reported by John W. Eaton <jwe@gnu.org>.
50957 2010-03-28  Bruno Haible  <bruno@clisp.org>
50959         Fix link errors on mingw.
50960         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
50961         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
50962         $(LIBSOCKET).
50963         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
50964         $(LIBSOCKET).
50966 2010-03-28  Bruno Haible  <bruno@clisp.org>
50967             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50969         lib-ignore: Determine different options for different compilers.
50970         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
50971         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
50972         Add comments.
50973         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
50974         * NEWS: Mention the change.
50976 2010-03-27  Bruno Haible  <bruno@clisp.org>
50978         Remove unused GNULIB_XYZ macro definitions.
50979         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
50980         * modules/fseek (configure.ac): Likewise.
50981         * modules/ioctl (configure.ac): Likewise.
50982         * modules/open (configure.ac): Likewise.
50983         * modules/stdlib-safer (configure.ac): Likewise.
50985 2010-03-27  Bruno Haible  <bruno@clisp.org>
50987         Add a remark about certain modules.
50988         * modules/malloc (Comment): New section.
50989         * modules/realloc (Comment): Likewise.
50990         * modules/sigpipe (Comment): Likewise.
50992 2010-03-27  Bruno Haible  <bruno@clisp.org>
50994         Resolve conflict between the two kinds of module indicators.
50995         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
50996         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
50997         * modules/canonicalize (configure.ac): Invoke
50998         gl_MODULE_INDICATOR_FOR_TESTS.
50999         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
51000         GNULIB_XYZ.
51001         * tests/test-dirent-c++.cc: Likewise.
51002         * tests/test-dirent-safer.c: Likewise.
51003         * tests/test-dup2.c: Likewise.
51004         * tests/test-fchdir.c: Likewise.
51005         * tests/test-fcntl-h-c++.cc: Likewise.
51006         * tests/test-getopt.c: Likewise.
51007         * tests/test-getopt.h: Likewise.
51008         * tests/test-langinfo-c++.cc: Likewise.
51009         * tests/test-locale-c++.cc: Likewise.
51010         * tests/test-math-c++.cc: Likewise.
51011         * tests/test-pty-c++.cc: Likewise.
51012         * tests/test-search-c++.cc: Likewise.
51013         * tests/test-signal-c++.cc: Likewise.
51014         * tests/test-spawn-c++.cc: Likewise.
51015         * tests/test-stdio-c++.cc: Likewise.
51016         * tests/test-stdlib-c++.cc: Likewise.
51017         * tests/test-string-c++.cc: Likewise.
51018         * tests/test-sys_ioctl-c++.cc: Likewise.
51019         * tests/test-sys_select-c++.cc: Likewise.
51020         * tests/test-sys_socket-c++.cc: Likewise.
51021         * tests/test-sys_stat-c++.cc: Likewise.
51022         * tests/test-sys_time-c++.cc: Likewise.
51023         * tests/test-time-c++.cc: Likewise.
51024         * tests/test-unistd-c++.cc: Likewise.
51025         * tests/test-wchar-c++.cc: Likewise.
51026         * tests/uninorm/test-u8-nfc.c: Likewise.
51027         * tests/uninorm/test-u8-nfd.c: Likewise.
51028         * tests/uninorm/test-u8-nfkc.c: Likewise.
51029         * tests/uninorm/test-u8-nfkd.c: Likewise.
51030         * tests/uninorm/test-u16-nfc.c: Likewise.
51031         * tests/uninorm/test-u16-nfd.c: Likewise.
51032         * tests/uninorm/test-u16-nfkc.c: Likewise.
51033         * tests/uninorm/test-u16-nfkd.c: Likewise.
51034         * tests/uninorm/test-u32-nfc.c: Likewise.
51035         * tests/uninorm/test-u32-nfc-big.c: Likewise.
51036         * tests/uninorm/test-u32-nfd.c: Likewise.
51037         * tests/uninorm/test-u32-nfd-big.c: Likewise.
51038         * tests/uninorm/test-u32-nfkc.c: Likewise.
51039         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
51040         * tests/uninorm/test-u32-nfkd.c: Likewise.
51041         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
51042         * tests/uninorm/test-u32-normalize-big.c: Likewise.
51044 2010-03-27  Bruno Haible  <bruno@clisp.org>
51046         Distinguish two kinds of module indicators.
51047         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
51048         gl_MODULE_INDICATOR.
51049         (gl_MODULE_INDICATOR): New macro.
51050         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
51051         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
51052         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
51053         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
51054         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
51055         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
51056         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
51057         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
51058         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
51059         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
51060         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
51061         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
51062         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
51063         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
51064         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
51065         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
51066         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
51067         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
51068         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
51069         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
51070         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
51071         * modules/cloexec (configure.ac): Likewise.
51072         * modules/getopt-gnu (configure.ac): Likewise.
51073         * modules/uninorm/u8-normalize (configure.ac): Likewise.
51074         * modules/uninorm/u16-normalize (configure.ac): Likewise.
51075         * modules/uninorm/u32-normalize (configure.ac): Likewise.
51076         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
51078 2010-03-27  Bruno Haible  <bruno@clisp.org>
51080         New module description field 'Comment'.
51081         * gnulib-tool: New option --extract-comment.
51082         (func_usage): Document it.
51083         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
51084         (func_get_comment): New function.
51085         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
51087 2010-03-27  Bruno Haible  <bruno@clisp.org>
51089         Addendum to 2010-02-07 commit.
51090         * gnulib-tool (func_usage): Document --extract-applicability option.
51092 2010-03-27  Bruno Haible  <bruno@clisp.org>
51094         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
51095         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
51096         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
51097         rather than link errors.
51099 2010-03-27  Bruno Haible  <bruno@clisp.org>
51101         Avoid side effects from tests-related modules on the compilation of lib.
51102         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
51103         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
51104         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
51105         parameter. Emit into AM_CPPFLAGS a definition of the designated C
51106         macro.
51107         (func_import): Define a witness macro. Assign it a value that depends
51108         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
51109         tests-related modules.
51110         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
51111         Reported by Jim Meyering.
51113 2010-03-27  Bruno Haible  <bruno@clisp.org>
51115         Factorize common .m4 code.
51116         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
51117         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
51118         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
51119         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
51120         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
51121         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
51122         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
51123         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
51124         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
51125         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
51126         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
51127         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
51128         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
51129         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
51130         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
51131         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
51132         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
51133         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
51134         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
51135         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
51136         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
51137         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
51138         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
51139         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
51140         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
51141         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
51142         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
51143         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
51144         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
51145         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
51146         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
51147         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
51149 2010-03-27  Bruno Haible  <bruno@clisp.org>
51151         Fix a compilation error on Cygwin with g++ >= 4.3.
51152         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
51153         if it is undefined or if we alias it to chmod.
51154         (lstat): Don't warn about the use of this function if it is undefined
51155         or if we alias it to stat.
51156         Reported by Simon Josefsson.
51158 2010-03-27  Bruno Haible  <bruno@clisp.org>
51160         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
51161         * modules/getlogin (configure.ac): Update.
51163         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
51164         * modules/getlogin_r (configure.ac): Update.
51166         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
51167         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
51168         * modules/inet_ntop (configure.ac): Update.
51170         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
51171         * modules/inet_pton (configure.ac): Update.
51173         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
51174         * modules/mbslen (configure.ac): Update.
51176         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
51177         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
51178         * modules/forkpty (configure.ac): Update.
51179         * modules/openpty (configure.ac): Update.
51181 2010-03-26  Simon Josefsson  <simon@josefsson.org>
51183         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
51184         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
51186 2010-03-25  Eric Blake  <eblake@redhat.com>
51188         maint: use pragma consistently across replacement headers
51189         * lib/ctype.in.h (system_header): Hoist for consistent placement.
51190         * lib/dirent.in.h (system_header): Likewise.
51191         * lib/errno.in.h (system_header): Likewise.
51192         * lib/float.in.h (system_header): Likewise.
51193         * lib/getopt.in.h (system_header): Likewise.
51194         * lib/iconv.in.h (system_header): Likewise.
51195         * lib/inttypes.in.h (system_header): Likewise.
51196         * lib/langinfo.in.h (system_header): Likewise.
51197         * lib/locale.in.h (system_header): Likewise.
51198         * lib/math.in.h (system_header): Likewise.
51199         * lib/netdb.in.h (system_header): Likewise.
51200         * lib/netinet_in.in.h (system_header): Likewise.
51201         * lib/pty.in.h (system_header): Likewise.
51202         * lib/sched.in.h (system_header): Likewise.
51203         * lib/se-selinux.in.h (system_header): Likewise.
51204         * lib/search.in.h (system_header): Likewise.
51205         * lib/spawn.in.h (system_header): Likewise.
51206         * lib/stdarg.in.h (system_header): Likewise.
51207         * lib/stdint.in.h (system_header): Likewise.
51208         * lib/string.in.h (system_header): Likewise.
51209         * lib/strings.in.h (system_header): Likewise.
51210         * lib/sys_file.in.h (system_header): Likewise.
51211         * lib/sys_ioctl.in.h (system_header): Likewise.
51212         * lib/sys_socket.in.h (system_header): Likewise.
51213         * lib/sys_times.in.h (system_header): Likewise.
51214         * lib/sys_utsname.in.h (system_header): Likewise.
51215         * lib/sys_wait.in.h (system_header): Likewise.
51216         * lib/sysexits.in.h (system_header): Likewise.
51217         * lib/unistd.in.h (system_header): Likewise.
51218         * lib/wctype.in.h (system_header): Likewise.
51220         arpa/inet: fix mingw compilation warning
51221         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
51222         Reported by Matthew Bolte.
51224 2010-03-25  Bruno Haible  <bruno@clisp.org>
51226         Avoid collision between gnulib wrapper and libintl wrapper.
51227         * lib/printf.c (printf): Don't define if a printf wrapper is already
51228         defined in intl/printf.c.
51229         Reported by Michel Boaventura <michel@michelboaventura.com>.
51231 2010-03-25  Bruno Haible  <bruno@clisp.org>
51233         Use ANSI C.
51234         * lib/readutmp.h (getutent): Provide ANSI C prototype.
51236 2010-03-25  Bruno Haible  <bruno@clisp.org>
51238         Minor formatting changes.
51239         * lib/acosl.c: Insert space before function argument list.
51240         * lib/argz.c: Likewise.
51241         * lib/asinl.c: Likewise.
51242         * lib/expl.c: Likewise.
51243         * lib/gen-uni-tables.c: Likewise.
51244         * lib/gettext.h: Likewise.
51245         * lib/glthread/lock.h: Likewise.
51246         * lib/tanl.c: Likewise.
51247         * lib/uniname/uniname.c: Likewise.
51248         * tests/test-idpriv-drop.c: Likewise.
51249         * tests/test-idpriv-droptemp.c: Likewise.
51250         * tests/test-lock.c: Likewise.
51251         * tests/test-tls.c: Likewise.
51252         * lib/argp-help.c: Insert space before function-like macro argument
51253         list.
51254         * lib/memcmp.c: Likewise.
51255         * tests/test-base64.c: Likewise.
51256         * lib/localename.c: Insert space before sizeof's argument list.
51257         * lib/safe-alloc.h: Likewise.
51258         * lib/file-set.h: Insert space before macro argument list.
51259         * tests/test-argp.c: Likewise.
51260         * lib/argp-namefrob.h: Insert space before function parameter list.
51261         * lib/getaddrinfo.c: Likewise.
51262         * lib/netdb.in.h: Likewise.
51263         * lib/parse-duration.h: Likewise.
51264         * lib/parse-duration.c: Likewise.
51265         * lib/poll.c: Likewise.
51266         * lib/select.c: Likewise.
51267         * lib/trim.h: Likewise.
51268         * tests/test-usleep.c: Likewise.
51269         * lib/ldexpl.c: Insert space before function parameter list and before
51270         function argument list.
51271         * lib/logl.c: Likewise.
51272         * lib/sqrtl.c: Likewise.
51273         * lib/trim.c: Likewise.
51274         * lib/cosl.c: Use GNU style indentation. Insert space before function
51275         argument list.
51276         * lib/sinl.c: Likewise.
51277         * lib/tsearch.c: Insert space after 'for'.
51278         Reported by Jim Meyering.
51280 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
51282         * maint.mk (sc_Wundef_boolean): Check for the presence of the
51283         config header before grepping, as it's not present before
51284         autoreconf/configure are run.  Reported by Simon Josefsson.
51286 2010-03-23  Bruno Haible  <bruno@clisp.org>
51288         pt_chown: Make it work with automake < 1.11.
51289         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
51290         Reported by Simon Josefsson.
51292 2010-03-23  Bruno Haible  <bruno@clisp.org>
51294         pt_chown: Don't depend on GPLed modules.
51295         * lib/pt_chown.c: Don't include idpriv.h.
51296         (main): Don't drop privileges.
51297         * modules/pt_chown (Depends-on): Remove idpriv-drop.
51298         Reported by Simon Josefsson.
51300 2010-03-24  Simon Josefsson  <simon@josefsson.org>
51302         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
51303         suggestions from karl@freefriends.org (Karl Berry).
51305 2010-03-22  Eric Blake  <eblake@redhat.com>
51307         gethostname: further tweaks
51308         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
51309         are overriding gethostname.
51310         Suggested by Bruno Haible.
51312 2010-03-21  Bruno Haible  <bruno@clisp.org>
51314         Fix comments.
51315         * lib/forkpty.c (rpl_forkpty): Fix comment.
51316         * lib/openpty.c (rpl_openpty): Likewise.
51317         Reported by Eric Blake.
51319 2010-03-22  Eric Blake  <eblake@redhat.com>
51321         gethostname: fix build on mingw
51322         * lib/unistd.in.h (includes): Work around fact that mingw
51323         <winsock2.h> re-includes <unistd.h>, by avoiding any
51324         redeclarations if we are being included by <winsock2.h>.
51325         Reported by Matthias Bolte.
51327 2010-03-21  Bruno Haible  <bruno@clisp.org>
51329         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
51330         * lib/forkpty.c (forkpty): New replacement function, from glibc with
51331         modifications.
51332         * lib/pty.in.h (forkpty): Update declaration. Add comments.
51333         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
51334         provide the replacement.
51335         * modules/forkpty (Depends-on): Add openpty, login_tty.
51336         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
51337         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
51338         * doc/glibc-functions/forkpty.texi: More supported platforms.
51339         * config/srclist.txt: Add forkpty.c (commented).
51341 2010-03-21  Bruno Haible  <bruno@clisp.org>
51343         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
51344         (Makefile.am): Verify that PTY_LIB is defined.
51346         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
51348 2010-03-21  Bruno Haible  <bruno@clisp.org>
51350         Tests for module 'login_tty'.
51351         * modules/login_tty-tests: New file.
51352         * tests/test-login_tty.c: New file.
51354         New module 'login_tty'.
51355         * lib/login_tty.c: New file.
51356         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
51357         * modules/login_tty: New file.
51358         * doc/glibc-functions/login_tty.texi: Mention the new module.
51360 2010-03-21  Bruno Haible  <bruno@clisp.org>
51362         login_tty: Documentation.
51363         * doc/glibc-functions/login_tty.texi: New file.
51364         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
51366 2010-03-21  Bruno Haible  <bruno@clisp.org>
51368         pty: Consistent macro naming.
51369         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
51370         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
51371         * modules/pty (configure.ac): Update.
51373 2010-03-21  Bruno Haible  <bruno@clisp.org>
51375         Tests for openpty: Make stricter.
51376         * tests/test-openpty.c (main): Add test of canonical processing and
51377         erase.
51378         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
51380         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
51381         * lib/openpty.c (openpty): New replacement function.
51382         * lib/pty.in.h: Include <termios.h>.
51383         (openpty): Update declaration. Add comments.
51384         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
51385         is not declared, arrange to provide the replacement. Check for _getpty
51386         and posix_openpt.
51387         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
51388         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
51389         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
51390         * modules/pty-tests (test_pty_c___LDADD): New variable.
51391         * doc/glibc-functions/openpty.texi: More supported platforms.
51393 2010-03-21  Bruno Haible  <bruno@clisp.org>
51395         setenv: Tweaks.
51396         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
51397         the test program.
51398         * doc/posix-functions/setenv.texi: Update platforms list.
51400 2010-03-21  Bruno Haible  <bruno@clisp.org>
51402         New module 'unlockpt'.
51403         * lib/unlockpt.c: New file, from glibc with modifications.
51404         * m4/unlockpt.m4: New file.
51405         * modules/unlockpt: New file.
51406         * lib/stdlib.in.h (unlockpt): New declaration.
51407         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
51408         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
51409         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
51410         HAVE_UNLOCKPT.
51411         * doc/posix-functions/unlockpt.texi: Mention the new module.
51412         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
51413         * config/srclist.txt: Add unlockpt.c (commented).
51415 2010-03-21  Jim Meyering  <meyering@redhat.com>
51417         maint.mk: prohibit inclusion of "intprops.h" without use
51418         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
51420 2010-03-21  Bruno Haible  <bruno@clisp.org>
51422         New module 'grantpt'.
51423         * lib/grantpt.c: New file, from glibc with modifications.
51424         * m4/grantpt.m4: New file.
51425         * modules/grantpt: New file.
51426         * lib/stdlib.in.h (grantpt): New declaration.
51427         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
51428         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
51429         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
51430         HAVE_GRANTPT.
51431         * doc/posix-functions/grantpt.texi: Mention the new module.
51432         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
51433         * config/srclist.txt: Add grantpt.c (commented).
51435 2010-03-21  Bruno Haible  <bruno@clisp.org>
51437         New module 'pt_chown'.
51438         * lib/pt_chown.c: New file, from glibc with modifications.
51439         * lib/pty-private.h: New file, from glibc with modifications.
51440         * modules/pt_chown: New file.
51441         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
51443 2010-03-21  Bruno Haible  <bruno@clisp.org>
51445         Tests for module 'ptsname'.
51446         * modules/ptsname-tests: New file.
51447         * tests/test-ptsname.c: New file.
51449         New module 'ptsname'.
51450         * lib/ptsname.c: New file, from glibc with modifications.
51451         * m4/ptsname.m4: New file.
51452         * modules/ptsname: New file.
51453         * lib/stdlib.in.h (ptsname): New declaration.
51454         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
51455         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
51456         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
51457         HAVE_PTSNAME.
51458         * doc/posix-functions/ptsname.texi: Mention the new module.
51459         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
51460         * config/srclist.txt: Add ptsname.c (commented).
51462 2010-03-21  Bruno Haible  <bruno@clisp.org>
51464         Tests for module 'ttyname_r'.
51465         * modules/ttyname_r-tests: New file.
51466         * tests/test-ttyname_r.c: New file.
51468         New module 'ttyname_r'.
51469         * lib/ttyname_r.c: New file.
51470         * m4/ttyname_r.m4: New file.
51471         * modules/ttyname_r: New file.
51472         * lib/unistd.in.h (ttyname_r): New declaration.
51473         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
51474         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
51475         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
51476         HAVE_TTYNAME_R.
51477         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
51478         * doc/posix-functions/ttyname_r.texi: Mention the new module.
51480 2010-03-20  Bruno Haible  <bruno@clisp.org>
51482         signal: Undefine macro definitions in C++ mode.
51483         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
51484         sigfillset): Undefine macro definitions from the system header in C++
51485         mode.
51486         Reported by John W. Eaton <jwe@gnu.org>.
51488 2010-03-20  Bruno Haible  <bruno@clisp.org>
51490         Ensure no #include statements inside extern "C" { ... }.
51491         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
51492         contain #include statements.
51493         * lib/time.in.h: Likewise.
51495 2010-03-20  Bruno Haible  <bruno@clisp.org>
51497         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
51498         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
51499         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
51500         Reported by John W. Eaton <jwe@gnu.org>.
51502 2010-03-20  Bruno Haible  <bruno@clisp.org>
51504         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
51505         Reported by Jim Meyering.
51507 2010-03-20  Bruno Haible  <bruno@clisp.org>
51509         pipe: Set errno upon failure.
51510         * lib/pipe.h: Specify that when -1 is returned, errno is set.
51511         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
51512         errno value in error message.
51514 2010-03-20  Bruno Haible  <bruno@clisp.org>
51515             Jim Meyering  <meyering@redhat.com>
51517         lchown: Avoid "unused variable" warning.
51518         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
51520 2010-03-20  Bruno Haible  <bruno@clisp.org>
51522         Work around unlink() bug on MacOS X 10.5.6.
51523         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
51524         attempting to unlink a parent directory.
51525         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
51526         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
51527         activate for the replacement function.
51528         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
51530 2010-03-20  Bruno Haible  <bruno@clisp.org>
51532         Fix link errors on Solaris 8.
51533         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
51534         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
51536 2010-03-19  Jim Meyering  <meyering@redhat.com>
51538         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
51539         The _LIBC implementation of build_range_exp correctly honors the
51540         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
51541         However, the non-_LIBC implementation would ignore that syntax-bit
51542         flag and return REG_ERANGE unconditionally.
51543         This change makes it honor that flag.
51544         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
51545         Make two pointer parameters "const".
51546         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
51547         (parse_bracket_exp): Update caller.
51549         regex.m4: correct the reversed range endpoint ([b-a]) test
51550         * m4/regex.m4: When requiring that [b-a] evoke failure,
51551         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
51552         test pass once again for x86-based systems.
51554 2010-03-19  Bruno Haible  <bruno@clisp.org>
51556         scandir: Fix link error on Solaris 8.
51557         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
51558         macros.
51560 2010-03-19  Bruno Haible  <bruno@clisp.org>
51562         getusershell: Fix documentation.
51563         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
51564         module.
51565         * doc/glibc-functions/setusershell.texi: Likewise.
51567         getusershell: Provide declaration, missing on Solaris 9.
51568         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
51569         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
51570         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
51571         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
51572         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51573         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
51574         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
51575         HAVE_GETUSERSHELL.
51576         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
51578 2010-03-19  Bruno Haible  <bruno@clisp.org>
51580         wctype: Provide iswblank function.
51581         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
51582         exists and is fine.
51583         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
51584         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
51585         * tests/test-wctype.c (main): Re-enable the iswblank tests.
51586         * doc/posix-functions/iswblank.texi: Update.
51588 2010-03-19  Bruno Haible  <bruno@clisp.org>
51590         Tests of module 'pty' in C++ mode.
51591         * modules/pty-tests: New file.
51592         * tests/test-pty-c++.cc: New file.
51593         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
51595 2010-03-19  Eric Blake  <eblake@redhat.com>
51597         logb: fix documentation
51598         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
51599         1.5 declaration bug.
51601         forkpty, openpty: prefer glibc's const-safe prototype
51602         * lib/forkpty.c (rpl_forkpty): New file.
51603         * lib/openpty.c (rpl_openpty): Likewise.
51604         * modules/forkpty (Files): Distribute it.
51605         * modules/openpty (Files): Likewise.
51606         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
51607         check...
51608         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
51609         replacement for non-const BSD signature.
51610         * modules/pty (Makefile.am): Substitute witnesses.
51611         * lib/pty.in.h (forkpty, openpty): Declare replacements.
51612         * tests/test-forkpty.c: Update signature check.
51613         * tests/test-openpty.c: Likewise.
51614         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
51615         * doc/glibc-functions/openpty.texi (openpty): Likewise.
51617         forkpty, openpty: split functions into new modules
51618         * modules/pty (Makefile.am): Substitute new witnesses.
51619         (Libraries): Move library detection...
51620         * modules/forkpty: ...into new module.
51621         * modules/openpty: Another new module.
51622         * modules/pty-tests: Rename and split...
51623         * modules/forkpty-tests: ...to this...
51624         * modules/openpty-tests: ...and this.
51625         * tests/test-pty.c: Rename and split...
51626         * tests/test-forkpty.c: ...to this...
51627         * tests/test-openpty.c: ...and this.
51628         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
51629         (gl_PTY): Split library searching...
51630         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
51631         (gl_FORKPTY, gl_OPENPTY): New macros.
51632         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
51633         * NEWS: Mention the split.
51634         * MODULES.html.sh (Misc): Document the modules.
51635         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
51636         * doc/glibc-functions/openpty.texi (openpty): Likewise.
51638         pty: improve replacement header
51639         * lib/pty.in.h: New file.
51640         * modules/pty (Files): Ship it.
51641         (Makefile.am): Always build replacement.
51642         * m4/pty.m4: Rename...
51643         * m4/pty_h.m4: ...to this.
51644         (gl_PTY): Modernize setting of witness macros; update check of
51645         forkpty to take proper advantage of cache.
51646         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
51648         getopt: avoid compiler warning
51649         * lib/getopt.c (attribute_hidden): Remove unused macro.
51651 2010-03-18  Bruno Haible  <bruno@clisp.org>
51653         Fix link errors on Solaris 8.
51654         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
51655         * modules/search-tests (test_search_c___LDADD): Likewise.
51656         * modules/signal-tests (test_signal_c___LDADD): Likewise.
51657         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
51658         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
51659         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
51660         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
51661         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
51662         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
51664 2010-03-18  Bruno Haible  <bruno@clisp.org>
51666         Fix bug introduced on 2010-03-14.
51667         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
51668         (gl_SPAWN_H): Require it.
51669         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
51670         Reported by Simon Josefsson.
51672 2010-03-18  Bruno Haible  <bruno@clisp.org>
51674         Fix typo introduced on 2009-12-31.
51675         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
51676         posix_spawn_file_actions_adddup2.
51678 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
51679         and Eric Blake  <eblake@redhat.com>
51681         test-vc-list-files-git: make more robust
51682         * tests/test-vc-list-files-git.sh: Unset problematic environment
51683         variables.  Chain commands together.
51685 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
51687         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
51688         `AC_CHECK_DECL' invocation.
51690 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
51692         * lib/inttostr.c (inttostr): Make sure the invocation of verify
51693         appears before executable statements. Suggested by Petr Sumbera
51694         <Petr.Sumbera@Sun.COM>.
51696 2010-03-14  Bruno Haible  <bruno@clisp.org>
51698         * tests/test-flock.c (test_exclusive): Comment out a test that causes
51699         portability problems. Instead use a simpler test.
51700         (main): Check that invalid arguments are rejected only on Linux.
51702 2010-03-14  Bruno Haible  <bruno@clisp.org>
51704         Fix bug introduced on 2009-12-31.
51705         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
51706         gl_PREREQ_SYS_H_WINSOCK2 always.
51707         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
51708         SYS_SOCKET_H variable.
51709         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
51710         Update comments.
51711         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
51712         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
51713         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
51714         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
51715         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
51717 2010-03-14  Bruno Haible  <bruno@clisp.org>
51719         Fix values returned by sinl, cosl.
51720         * lib/trigl.h: Add specification comments.
51721         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
51722         that combines the values from the precomputed table with the values of
51723         the Chebyshev polynomials.
51725 2010-03-14  Bruno Haible  <bruno@clisp.org>
51727         Fix compilation error when modules 'posix_spawn[p]' are not used.
51728         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
51729         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
51731 2010-03-14  Bruno Haible  <bruno@clisp.org>
51733         Fix compilation error on mingw when module 'time_r' is not used.
51734         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
51735         is 1.
51736         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
51737         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
51738         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
51739         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
51741 2010-03-14  Bruno Haible  <bruno@clisp.org>
51743         Fix compilation error with Sun C.
51744         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
51745         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
51746         instead of GCC specific ULONG_LONG_MAX.
51747         * lib/xstrtoll.c: Likewise.
51748         * lib/xstrtoull.c: Likewise.
51750 2010-03-13  Bruno Haible  <bruno@clisp.org>
51752         Allow the user to disable C++ code and tests.
51753         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
51754         (gl_PROG_ANSI_CXX): Require it.
51756 2010-03-13  Bruno Haible  <bruno@clisp.org>
51758         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
51759         cases.
51761 2010-03-13  Bruno Haible  <bruno@clisp.org>
51763         Test that gnulib does not break the standard C++ headers.
51764         * tests/test-locale-c++2.cc: New file.
51765         * modules/locale-tests (Files): Add it.
51766         (Makefile.am): Compile it for test-locale-c++.
51767         * tests/test-math-c++2.cc: New file.
51768         * modules/math-tests (Files): Add it.
51769         (Makefile.am): Compile it for test-math-c++.
51770         * tests/test-signal-c++2.cc: New file.
51771         * modules/signal-tests (Files): Add it.
51772         (Makefile.am): Compile it for test-signal-c++.
51773         * tests/test-stdio-c++2.cc: New file.
51774         * modules/stdio-tests (Files): Add it.
51775         (Makefile.am): Compile it for test-stdio-c++.
51776         * tests/test-stdlib-c++2.cc: New file.
51777         * modules/stdlib-tests (Files): Add it.
51778         (Makefile.am): Compile it for test-stdlib-c++.
51779         * tests/test-string-c++2.cc: New file.
51780         * modules/string-tests (Files): Add it.
51781         (Makefile.am): Compile it for test-string-c++.
51782         * tests/test-time-c++2.cc: New file.
51783         * modules/time-tests (Files): Add it.
51784         (Makefile.am): Compile it for test-time-c++.
51785         Reported by John W. Eaton <jwe@gnu.org>.
51787 2010-03-13  Bruno Haible  <bruno@clisp.org>
51789         * gnulib-tool (func_usage): Clarify which options are available for
51790         --create-testdir and --create-megatestdir.
51792 2010-03-13  Bruno Haible  <bruno@clisp.org>
51794         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
51795         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
51796         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
51797         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
51798         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
51799         when appropriate.
51800         Reported by Jim Meyering.
51802 2010-03-12  Simon Josefsson  <simon@josefsson.org>
51804         * gnulib-tool (func_import): Explain origin of code.
51806 2010-03-12  Bruno Haible  <bruno@clisp.org>
51808         Fix problem with automake's definition of CXXLINK.
51809         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
51810         Reported by Simon Josefsson and Ludovic Courtès.
51812 2010-03-12  Bruno Haible  <bruno@clisp.org>
51814         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
51815         stable releases.
51817 2010-03-11  Bruno Haible  <bruno@clisp.org>
51819         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
51820         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
51821         whether the system provides one variant or multiple variants of the
51822         function.
51823         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
51824         C++ compilers.
51825         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
51826         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
51827         Reported by Jim Meyering.
51829 2010-03-09  Simon Josefsson  <simon@josefsson.org>
51831         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
51833 2010-03-08  Bruno Haible  <bruno@clisp.org>
51835         gnulib-tool: Add support for --libtool in --create-testdir.
51836         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
51837         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
51839 2010-03-08  Eric Blake  <eblake@redhat.com>
51841         gnulib-tool.texi: mention possibility of git submodule
51842         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
51843         submodules.
51844         * doc/.gitignore: Ignore another generated file.
51846 2010-03-08  Karl Berry  <karl@gnu.org>
51848         * doc/gnulib-tool.texi (VCS Issues): Mention third option
51849         of committing gnulib files while skipping others.
51851 2010-03-07  Bruno Haible  <bruno@clisp.org>
51853         Tests of module 'wctype' in C++ mode.
51854         * tests/test-wctype-c++.cc: New file.
51855         * modules/wctype-tests (Files): Add it and tests/signature.h.
51856         (Depends-on): Add ansi-c++-opt.
51857         (Makefile.am): Arrange to compile and run test-wctype-c++.
51859         Tests of module 'wchar' in C++ mode.
51860         * tests/test-wchar-c++.cc: New file.
51861         * modules/wchar-tests (Files): Add it and tests/signature.h.
51862         (Depends-on): Add ansi-c++-opt.
51863         (Makefile.am): Arrange to compile and run test-wchar-c++.
51864         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
51865         gl_MODULE_INDICATOR.
51867         Tests of module 'unistd' in C++ mode.
51868         * tests/test-unistd-c++.cc: New file.
51869         * modules/unistd-tests (Files): Add it and tests/signature.h.
51870         (Depends-on): Add ansi-c++-opt.
51871         (Makefile.am): Arrange to compile and run test-unistd-c++.
51872         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
51873         gl_MODULE_INDICATOR.
51875         Tests of module 'time' in C++ mode.
51876         * tests/test-time-c++.cc: New file.
51877         * modules/time-tests (Files): Add it and tests/signature.h.
51878         (Depends-on): Add ansi-c++-opt.
51879         (Makefile.am): Arrange to compile and run test-time-c++.
51880         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
51882         Tests of module 'sys_time' in C++ mode.
51883         * tests/test-sys_time-c++.cc: New file.
51884         * modules/sys_time-tests (Files): Add it and tests/signature.h.
51885         (Depends-on): Add ansi-c++-opt.
51886         (Makefile.am): Arrange to compile and run test-sys_time-c++.
51887         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
51888         gl_MODULE_INDICATOR.
51890         Tests of module 'sys_stat' in C++ mode.
51891         * tests/test-sys_stat-c++.cc: New file.
51892         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
51893         (Depends-on): Add ansi-c++-opt.
51894         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
51895         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
51896         gl_MODULE_INDICATOR.
51898         Tests of module 'sys_socket' in C++ mode.
51899         * tests/test-sys_socket-c++.cc: New file.
51900         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
51901         (Depends-on): Add ansi-c++-opt.
51902         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
51903         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
51904         gl_MODULE_INDICATOR.
51906         Tests of module 'sys_select' in C++ mode.
51907         * tests/test-sys_select-c++.cc: New file.
51908         * modules/sys_select-tests (Files): Add it and tests/signature.h.
51909         (Depends-on): Add ansi-c++-opt.
51910         (Makefile.am): Arrange to compile and run test-sys_select-c++.
51911         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
51912         gl_MODULE_INDICATOR.
51914         Tests of module 'sys_ioctl' in C++ mode.
51915         * tests/test-sys_ioctl-c++.cc: New file.
51916         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
51917         (Depends-on): Add ansi-c++-opt.
51918         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
51919         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
51920         gl_MODULE_INDICATOR.
51922         Tests of module 'string' in C++ mode.
51923         * tests/test-string-c++.cc: New file.
51924         * modules/string-tests (Files): Add it and tests/signature.h.
51925         (Depends-on): Add ansi-c++-opt.
51926         (Makefile.am): Arrange to compile and run test-string-c++.
51927         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
51928         gl_MODULE_INDICATOR.
51930         Tests of module 'stdlib' in C++ mode.
51931         * tests/test-stdlib-c++.cc: New file.
51932         * modules/stdlib-tests (Files): Add it and tests/signature.h.
51933         (Depends-on): Add ansi-c++-opt.
51934         (Makefile.am): Arrange to compile and run test-stdlib-c++.
51935         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
51936         gl_MODULE_INDICATOR.
51938         Tests of module 'stdio' in C++ mode.
51939         * tests/test-stdio-c++.cc: New file.
51940         * modules/stdio-tests (Files): Add it and tests/signature.h.
51941         (Depends-on): Add ansi-c++-opt.
51942         (Makefile.am): Arrange to compile and run test-stdio-c++.
51943         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
51944         gl_MODULE_INDICATOR.
51946         Tests of module 'spawn' in C++ mode.
51947         * tests/test-spawn-c++.cc: New file.
51948         * modules/spawn-tests (Files): Add it and tests/signature.h.
51949         (Depends-on): Add ansi-c++-opt.
51950         (Makefile.am): Arrange to compile and run test-spawn-c++.
51951         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
51952         gl_MODULE_INDICATOR.
51954         Tests of module 'signal' in C++ mode.
51955         * tests/test-signal-c++.cc: New file.
51956         * modules/signal-tests (Files): Add it and tests/signature.h.
51957         (Depends-on): Add ansi-c++-opt.
51958         (Makefile.am): Arrange to compile and run test-signal-c++.
51959         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
51960         gl_MODULE_INDICATOR.
51962         Tests of module 'search' in C++ mode.
51963         * tests/test-search-c++.cc: New file.
51964         * modules/search-tests (Files): Add it and tests/signature.h.
51965         (Depends-on): Add ansi-c++-opt.
51966         (Makefile.am): Arrange to compile and run test-search-c++.
51967         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
51968         gl_MODULE_INDICATOR.
51970         Tests of module 'math' in C++ mode.
51971         * tests/test-math-c++.cc: New file.
51972         * modules/math-tests (Files): Add it and tests/signature.h.
51973         (Depends-on): Add ansi-c++-opt.
51974         (Makefile.am): Arrange to compile and run test-math-c++.
51975         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
51977         Tests of module 'locale' in C++ mode.
51978         * tests/test-locale-c++.cc: New file.
51979         * modules/locale-tests (Files): Add it and tests/signature.h.
51980         (Depends-on): Add ansi-c++-opt.
51981         (Makefile.am): Arrange to compile and run test-locale-c++.
51982         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
51983         gl_MODULE_INDICATOR.
51985         Tests of module 'langinfo' in C++ mode.
51986         * tests/test-langinfo-c++.cc: New file.
51987         * modules/langinfo-tests (Files): Add it and tests/signature.h.
51988         (Depends-on): Add ansi-c++-opt.
51989         (Makefile.am): Arrange to compile and run test-langinfo-c++.
51990         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
51991         gl_MODULE_INDICATOR.
51993         Tests of module 'iconv-h' in C++ mode.
51994         * tests/test-iconv-h-c++.cc: New file.
51995         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
51996         (Depends-on): Add ansi-c++-opt.
51997         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
51999         Tests of module 'glob' in C++ mode.
52000         * tests/test-glob-c++.cc: New file.
52001         * modules/glob-tests (Files): Add it.
52002         (Depends-on): Add ansi-c++-opt.
52003         (Makefile.am): Arrange to compile and run test-glob-c++.
52005         Tests of module 'fcntl-h' in C++ mode.
52006         * tests/test-fcntl-h-c++.cc: New file.
52007         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
52008         (Depends-on): Add ansi-c++-opt.
52009         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
52010         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
52011         gl_MODULE_INDICATOR.
52013         Tests of module 'dirent' in C++ mode.
52014         * tests/test-dirent-c++.cc: New file.
52015         * modules/dirent-tests (Files): Add it and tests/signature.h.
52016         (Depends-on): Add ansi-c++-opt.
52017         (Makefile.am): Arrange to compile and run test-dirent-c++.
52018         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
52019         gl_MODULE_INDICATOR.
52021         New module 'ansi-c++-opt'.
52022         * modules/ansi-c++-opt: New file.
52023         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
52025         Document C++ namespace mode.
52026         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
52028         wctype: Avoid #define replacements in C++ mode.
52029         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
52030         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
52031         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
52032         In C++, define a namespaced alias symbol.
52033         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
52034         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
52035         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
52036         rule.
52038         wchar: Avoid #define replacements in C++ mode.
52039         * lib/wchar.in.h: Include c++defs.h.
52040         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
52041         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
52042         symbol.
52043         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
52044         * modules/wchar (Depends-on): Add c++defs.
52045         (Makefile.am): Update wchar.h rule.
52047         unistd: Avoid #define replacements in C++ mode.
52048         * lib/unistd.in.h: Include c++defs.h.
52049         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
52050         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
52051         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
52052         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
52053         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
52054         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
52055         symbol.
52056         (environ): Update.
52057         * modules/unistd (Depends-on): Add c++defs.
52058         (Makefile.am): Update unistd.h rule.
52060         time: Avoid #define replacements in C++ mode.
52061         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
52062         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
52063         define a namespaced alias symbol.
52064         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
52065         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
52066         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
52067         * modules/time (Depends-on): Add c++defs, warn-on-use.
52068         (Makefile.am): Update time.h rule.
52069         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
52070         * modules/nanosleep (configure.ac): Likewise.
52071         * modules/strptime (configure.ac): Likewise.
52072         * modules/timegm (configure.ac): Likewise.
52074         sys_time: Avoid #define replacements in C++ mode.
52075         * lib/sys_time.in.h: Include c++defs.h.
52076         (gettimeofday): In C++, define a namespaced alias symbol.
52077         * modules/sys_time (Depends-on): Add c++defs.
52078         (Makefile.am): Update sys/time.h rule.
52080         sys_stat: Avoid #define replacements in C++ mode.
52081         * lib/sys_stat.in.h: Include c++defs.h.
52082         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
52083         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
52084         namespaced alias symbol.
52085         In C++, define a namespaced alias symbol.
52086         * modules/sys_stat (Depends-on): Add c++defs.
52087         (Makefile.am): Update sys/stat.h rule.
52089         sys_socket: Avoid #define replacements in C++ mode.
52090         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
52091         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
52092         definitions also when the system has a <sys/socket.h>.
52093         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
52094         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
52095         In C++, define a namespaced alias symbol.
52096         * modules/sys_socket (Depends-on): Add c++defs.
52097         (Makefile.am): Update sys/socket.h rule.
52099         sys_select: Avoid #define replacements in C++ mode.
52100         * lib/sys_select.in.h: Include c++defs.h. Enable the function
52101         definitions also when the system has a <sys/select.h>.
52102         (select): In C++, define a namespaced alias symbol.
52103         * modules/sys_select (Depends-on): Add c++defs.
52104         (Makefile.am): Update sys/select.h rule.
52106         sys_ioctl: Avoid #define replacements in C++ mode.
52107         * lib/sys_ioctl.in.h: Include c++defs.h.
52108         (ioctl): In C++, define a namespaced alias symbol.
52109         * modules/sys_ioctl (Depends-on): Add c++defs.
52110         (Makefile.am): Update sys/ioctl.h rule.
52112         string: Avoid #define replacements in C++ mode.
52113         * lib/string.in.h: Include c++defs.h.
52114         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
52115         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
52116         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
52117         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
52118         strsignal, strverscmp): In C++, define a namespaced alias symbol.
52119         * modules/string (Depends-on): Add c++defs.
52120         (Makefile.am): Update string.h rule.
52122         stdlib: Avoid #define replacements in C++ mode.
52123         * lib/stdlib.in.h: Include c++defs.h.
52124         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
52125         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
52126         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
52127         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
52128         symbol.
52129         * modules/stdlib (Depends-on): Add c++defs.
52130         (Makefile.am): Update stdlib.h rule.
52132         stdio: Avoid #define replacements in C++ mode.
52133         * lib/stdio.in.h: Include c++defs.h.
52134         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
52135         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
52136         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
52137         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
52138         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
52139         namespaced alias symbol.
52140         * modules/stdio (Depends-on): Add c++defs.
52141         (Makefile.am): Update stdio.h rule.
52143         spawn: Avoid #define replacements in C++ mode.
52144         * lib/spawn.in.h: Include c++defs.h.
52145         (posix_spawn, posix_spawnp, posix_spawnattr_init,
52146         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
52147         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
52148         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
52149         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
52150         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
52151         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
52152         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
52153         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
52154         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
52155         In C++, define a namespaced alias symbol.
52156         * modules/spawn (Depends-on): Add c++defs.
52157         (Makefile.am): Update spawn.h rule.
52159         signal: Avoid #define replacements in C++ mode.
52160         * lib/signal.in.h: Include c++defs.h.
52161         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
52162         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
52163         namespaced alias symbol.
52164         * modules/signal (Depends-on): Add c++defs.
52165         (Makefile.am): Update signal.h rule.
52167         search: Avoid #define replacements in C++ mode.
52168         * lib/search.in.h: Include c++defs.h.
52169         (_gl_search_compar_fn, _gl_search_action_fn): New types.
52170         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
52171         symbol.
52172         * modules/search (Depends-on): Add c++defs.
52173         (Makefile.am): Update search.h rule.
52175         math: Avoid #define replacements in C++ mode.
52176         * lib/math.in.h: Include c++defs.h.
52177         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
52178         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
52179         trunc, truncl): In C++, define a namespaced alias symbol.
52180         * modules/math (Depends-on): Add c++defs.
52181         (Makefile.am): Update math.h rule.
52183         locale: Avoid #define replacements in C++ mode.
52184         * lib/locale.in.h: Include c++defs.h.
52185         (duplocale): In C++, define a namespaced alias symbol.
52186         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
52187         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
52188         * modules/locale (Depends-on): Add c++defs.
52189         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
52191         langinfo: Avoid #define replacements in C++ mode.
52192         * lib/langinfo.in.h: Include c++defs.h.
52193         (nl_langinfo): In C++, define a namespaced alias symbol.
52194         * modules/langinfo (Depends-on): Add c++defs.
52195         (Makefile.am): Update langinfo.h rule.
52197         iconv-h: Avoid #define replacements in C++ mode.
52198         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
52199         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
52200         symbol.
52201         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
52202         whenever iconv is present.
52203         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
52204         (Makefile.am): Update iconv.h rule.
52206         glob: Avoid #define replacements in C++ mode.
52207         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
52208         (_gl_glob_errfunc_fn): New type.
52209         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
52210         symbol.
52211         * modules/glob (Depends-on): Add c++defs, warn-on-use.
52212         (Makefile.am): Update glob.h rule.
52214         fcntl-h: Avoid #define replacements in C++ mode.
52215         * lib/fcntl.in.h: Include c++defs.h.
52216         (fcntl, open, openat): In C++, define a namespaced alias symbol.
52217         * modules/fcntl-h (Depends-on): Add c++defs.
52218         (Makefile.am): Update fcntl.h rule.
52220         dirent: Avoid #define replacements in C++ mode.
52221         * lib/dirent.in.h: Include c++defs.h.
52222         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
52223         namespaced alias symbol.
52224         (dirfd): Update declaration.
52225         * modules/dirent (Depends-on): Add c++defs.
52226         (Makefile.am): Update dirent.h rule.
52228         ctype: Make it usable in C++ code.
52229         * lib/ctype.in.h: Include c++defs.h.
52230         (isblank): Declare as extern "C".
52231         * modules/ctype (Depends-on): Add c++defs.
52232         (Makefile.am): Update ctype.h rule.
52234         New module 'c++defs'.
52235         * modules/c++defs: New file.
52236         * build-aux/c++defs.h: New file.
52237         Reported by John W. Eaton <jwe@gnu.org>.
52239 2010-03-07  Bruno Haible  <bruno@clisp.org>
52241         logb: Provide missing declaration for Cygwin.
52242         * lib/math.in.h (logb): New declaration.
52243         * m4/logb.m4: New file.
52244         * modules/logb (Files): Add m4/logb.m4.
52245         (Depends-on): Add math.
52246         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
52247         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
52248         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
52249         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
52250         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
52252 2010-03-07  Bruno Haible  <bruno@clisp.org>
52254         Fix test-cond link error.
52255         * tests/test-cond.c: Include <stdio.h>.
52257 2010-03-07  Bruno Haible  <bruno@clisp.org>
52259         Fix test-dirent-safer link error.
52260         * modules/dirent-safer-tests (Makefile.am): Define
52261         test_dirent_safer_LDADD.
52263 2010-03-07  Bruno Haible  <bruno@clisp.org>
52265         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
52266         among default module list.
52268 2010-03-07  Bruno Haible  <bruno@clisp.org>
52270         Fix link error on platforms with GNU libiconv.
52271         * modules/unistr/u8-strcoll-tests (Makefile): Define
52272         test_u8_strcoll_LDADD.
52273         * modules/unistr/u16-strcoll-tests (Makefile): Define
52274         test_u16_strcoll_LDADD.
52275         * modules/unistr/u32-strcoll-tests (Makefile): Define
52276         test_u32_strcoll_LDADD.
52278 2010-03-07  Bruno Haible  <bruno@clisp.org>
52280         Use POSIX declarations for socket functions.
52281         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
52282         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
52283         rpl_sendto): Change declaration to match POSIX.
52284         * lib/connect.c (rpl_connect): Likewise.
52285         * lib/accept.c (rpl_accept): Likewise.
52286         * lib/bind.c (rpl_bind): Likewise.
52287         * lib/getpeername.c (rpl_getpeername): Likewise.
52288         * lib/getsockname.c (rpl_getsockname): Likewise.
52289         * lib/recv.c (rpl_recv): Likewise.
52290         * lib/send.c (rpl_send): Likewise.
52291         * lib/recvfrom.c (rpl_recvfrom): Likewise.
52292         * lib/sendto.c (rpl_sendto): Likewise.
52294 2010-03-06  Bruno Haible  <bruno@clisp.org>
52296         Clarify access, euidaccess, faccessat.
52297         * doc/posix-functions/faccessat.texi: Mention security problem under
52298         "Other problems", not "Portability problems".
52299         * doc/posix-functions/access.texi: Likewise. Mention a related security
52300         problem.
52301         * doc/glibc-functions/euidaccess.texi: Mention security problems.
52302         * lib/euidaccess.c: Add comments about platforms.
52303         * lib/unistd.in.h (access, euidaccess): Add warnings.
52305 2010-03-07  Bruno Haible  <bruno@clisp.org>
52307         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
52308         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
52309         (POSIX_SPAWN_SETSCHEDULER): Likewise.
52310         (POSIX_SPAWN_USEVFORK): Define in a way that works when
52311         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
52312         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
52313         declare when POSIX_SPAWN_SETSCHEDULER is zero.
52314         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
52315         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
52316         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
52317         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
52318         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
52319         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
52320         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
52321         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
52322         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
52323         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
52324         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
52325         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
52326         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
52327         Likewise.
52328         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
52329         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
52330         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
52331         Likewise.
52332         * tests/test-spawn.c (main): Make it work when
52333         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
52335 2010-03-07  Bruno Haible  <bruno@clisp.org>
52337         Fix incorrect Makefile.am generation in German locale.
52338         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52339         Execute sed command with character range in C locale.
52341 2010-03-06  Bruno Haible  <bruno@clisp.org>
52343         Tests for module 'iconv-h'.
52344         * modules/iconv-h-tests: New file.
52345         * tests/test-iconv-h.c: New file.
52347         New module 'iconv-h'.
52348         * modules/iconv-h: New file.
52349         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
52350         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
52351         (configure.ac): Remove gl_ICONV_H.
52352         (Makefile.am): Remove rule for iconv.h.
52354 2010-03-06  Bruno Haible  <bruno@clisp.org>
52356         More consistent naming of *.m4 files.
52357         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
52358         * modules/wctype (Files): Update.
52360         More consistent naming of *.m4 files.
52361         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
52362         * modules/wchar (Files): Update.
52364 2010-03-06  Jim Meyering  <meyering@redhat.com>
52366         euidaccess: relax license to LGPLv2+
52367         * modules/euidaccess (License): Relax to LGPLv2+.
52369 2010-03-06  Bruno Haible  <bruno@clisp.org>
52371         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
52372         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
52373         (Makefile.am): Augment lib_SOURCES instead.
52375 2010-03-04  Jim Meyering  <meyering@redhat.com>
52377         utime: remove obsolete module
52378         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
52379         unnecessary for years, and has been marked as obsolete for 10 months.
52380         * modules/utime: Remove file.
52381         * lib/utime.c: Remove file.
52382         * m4/utime.m4: Remove file.
52383         * m4/utimes-null.m4: Remove file.
52384         * doc/posix-functions/utime.texi (utime): Remove reference to
52385         the module.  Move the sole "fixed by gnulib" item into the
52386         "problems not fixed by Gnulib" list.
52387         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
52389 2010-03-05  Simon Josefsson  <simon@josefsson.org>
52391         * modules/exit (License): Relax license to LGPLv2+.
52392         (Status): Mark as obsolete.
52393         * NEWS: Mention deprecated 'exit' module.
52394         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
52395         of now obsolete 'exit'.
52397 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52399         fts-lgpl: remove unused module
52400         * modules/fts-lgpl: Remove.
52401         * MODULES.html.sh (func_all_modules): Adjust.
52402         * check-module (find_included_lib_files): Adjust.
52403         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
52405 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
52407         copy-acl: enhance Solaris ACL error handling
52408         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
52409         * lib/set-mode-acl.c (qset_acl): Likewise.
52411 2010-03-02  Bruno Haible  <bruno@clisp.org>
52413         spawn: Don't override the system defined values on FreeBSD 8.
52414         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
52415         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
52416         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
52417         if HAVE_POSIX_SPAWN is 1.
52418         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
52420 2010-03-01  Bruno Haible  <bruno@clisp.org>
52422         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
52423         regarding Automake.
52425 2010-02-25  Bruno Haible  <bruno@clisp.org>
52427         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
52428         * gnulib-tool: Define 'echo' as a function only before the ksh alias
52429         setting, not afterwards.
52430         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
52432 2010-02-24  Eric Blake  <eblake@redhat.com>
52434         bootstrap, git-version-gen: use timestamp
52435         * build-aux/git-version-gen (scriptversion): Force UTC.
52436         * build-aux/bootstrap (scriptversion): New variable.
52438         bootstrap: allow older git
52439         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
52440         older than 1.6.4.  Requested by the libvirt project.
52442 2010-02-23  Eric Blake  <eblake@redhat.com>
52444         warn-on-use: work with old autoconf
52445         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
52446         AS_VAR semantics of autoconf 2.60.
52447         Reported by Bruno Haible.
52449         bootstrap: improve some comments
52450         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
52451         clarification comments.
52453         gettimeofday: provide correct function
52454         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
52455         when replacement is declared, otherwise provide gettimeofday.
52456         Reported by Michael Goffioul.
52458 2010-02-23  Jim Meyering  <meyering@redhat.com>
52460         lib-ignore: relax license to "unlimited", not LGPLv2+
52461         * modules/lib-ignore (License): Relax to "unlimited".
52463 2010-02-23  Jim Meyering  <meyering@redhat.com>
52465         lib-ignore: relax license to LGPLv2+
52466         * modules/lib-ignore (License): Relax to LGPLv2+.
52468 2010-02-22  Eric Blake  <eblake@redhat.com>
52470         lseek: avoid bash 3.2 broken pipe bug
52471         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
52472         warning from bash 3.2.
52473         Reported by Ben Pfaff, with analysis from Bruno Haible.
52475         bootstrap: support non-FSF copyright holder
52476         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
52477         bootstrap.conf override of COPYRIGHT_HOLDER.
52478         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
52480         bootstrap: interoperate with gettext 0.14.1
52481         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
52483         bootstrap: allow for alternate submodule location
52484         * build-aux/bootstrap (gnulib_path): New variable; use instead of
52485         hardcoding submodule location.
52486         (gnulib_mk): Allow direct use of Makefile.am.
52488         bootstrap: use GNULIB_SRCDIR to reduce disk usage
52489         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
52490         rather than reconfiguring where the submodule points.
52492         gettimeofday: restore support for platforms that lack function
52493         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
52494         replacement if function is missing.
52495         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
52496         * modules/sys_time (Makefile.am): Substitute it.
52497         * lib/sys_time.in.h (gettimeofday): Check it.
52498         Reported by Michael Goffioul.
52500 2010-02-21  Bruno Haible  <bruno@clisp.org>
52502         * lib/stdio.in.h (obstack_printf): Fix typo.
52504 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
52506         vc-list-files: use bzr ls's -R option
52507         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
52508         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
52510 2010-02-21  Jim Meyering  <meyering@redhat.com>
52512         init.sh: fix EXEEXT shims to work also for names like test-prog
52513         * tests/init.sh: Re-exec a better shell, when needed.
52514         If the current shell lacks support for posix $(...), an init.sh-using
52515         test will now try to find a shell that supports that.  If EXEEXT is
52516         nonempty, we also require support for hyphen-in-alias-name and shell
52517         substitutions like ${var#glob}.  Failure to find such a shell results
52518         in a skipped test.
52520 2010-02-21  Bruno Haible  <bruno@clisp.org>
52522         Really work around "broken pipe" error message from bash 3.2.
52523         * gnulib-tool (func_reset_sigpipe): Remove function.
52524         (echo): In bash 3.2, define to a function that uses printf.
52525         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
52527 2010-02-20  Bruno Haible  <bruno@clisp.org>
52529         Restore support for automake 1.9.6 with autoconf 2.61.
52530         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
52531         Reported by James Youngman <jay@gnu.org>.
52533 2010-02-20  Bruno Haible  <bruno@clisp.org>
52535         Improve *printf warning condition.
52536         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
52537         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
52538         and the function is overridden due to SIGPIPE emulation.
52540 2010-02-20  Bruno Haible  <bruno@clisp.org>
52542         * lib/stdio.in.h: Tweak comments.
52544 2010-02-19  Bruno Haible  <bruno@clisp.org>
52546         Make it easier to find modules. New gnulib-tool option '--find'.
52547         * gnulib-tool: New option --find.
52548         (func_usage): Document it.
52549         (func_sanitize_modulelist): New function, extracted from
52550         func_all_modules.
52551         (func_all_modules): Invoke it.
52552         * doc/gnulib-tool.texi (Which modules?): New node.
52554 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
52556         * lib/sys_select.in.h: Provide select replacement even if
52557         sys/select.h exists on a system, for Interix.
52559 2010-02-18  Jim Meyering  <meyering@redhat.com>
52561         init.sh: don't use $(...) just yet
52562         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
52563         to accommodate e.g., Solaris' /bin/sh.
52565 2010-02-17  Bruno Haible  <bruno@clisp.org>
52567         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
52568         Reported by Ludovic Courtès <ludo@gnu.org>.
52570 2010-02-16  Simon Josefsson  <simon@josefsson.org>
52572         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
52573         linking with -lintl.
52575 2010-02-17  Simon Josefsson  <simon@josefsson.org>
52577         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
52578         if not provided by the system's netdb.h.  Reported by
52579         ludo@gnu.org (Ludovic Courtès).
52581 2010-02-15  Jim Meyering  <meyering@redhat.com>
52583         init.sh: improve portability and efficiency
52584         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
52585         "dummy" in a for loop.
52586         Use '!', not '^' to select the complement of a character set used
52587         in a "case" statement.
52588         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
52589         Suggestions from Eric Blake.
52591         init.sh: automatically accommodate programs with the .exe suffix
52592         Automatically arrange for an invocation of "prog" to execute the
52593         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
52594         may use the simpler "prog", yet still work when built on a system
52595         that requires specifying the added suffix.
52596         Do this by constructing a function named "prog" that invokes
52597         "prog.exe" for each .exe file in selected directories.
52598         * tests/init.sh (find_exe_basenames_): New function.
52599         (create_exe_shim_functions_): New function.
52600         (path_prepend_): Use it.
52602         maint.mk: mark syntax-check sc_*.m rules as .PHONY
52603         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
52604         "make -t syntax-check" doesn't create a ton of sc_*.m files.
52606 2010-02-14  Jim Meyering  <meyering@redhat.com>
52608         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
52609         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
52610         (sc_prohibit_hash_pjw_without_use): New rule.
52612         maint.mk: allow the default upload destination dir to be overridden
52613         * top/maint.mk (upload_dest_dir_): Define with a default that
52614         preserves the status quo.
52615         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
52616         Reported by Peter Simons.
52618         maint.mk: prohibit inclusion of "hash.h" without_use
52619         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
52621 2010-02-10  Jim Meyering  <meyering@redhat.com>
52623         maint.mk: prohibit inclusion of "ignore-value.h" without_use
52624         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
52626 2010-02-09  Eric Blake  <ebb9@byu.net>
52627         and Bruno Haible  <bruno@clisp.org>
52629         obstack-printf-posix: ensure declaration
52630         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
52631         extracted from gl_FUNC_OBSTACK_PRINTF.
52632         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
52633         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
52634         Likewise.
52635         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
52636         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
52637         0.
52639 2010-02-08  Bruno Haible  <bruno@clisp.org>
52641         gnulib-tool: Fix typo in 2010-02-07 commit.
52642         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
52643         Reported by Eric Blake.
52645 2010-02-07  Bruno Haible  <bruno@clisp.org>
52647         gnulib-tool: Fix up caching patches.
52648         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
52649         option --no-cache. Use associative arrays when supported by the shell.
52650         (sed_comments): New variable.
52651         (modcache): Renamed from do_cache.
52652         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
52653         abbreviate unnecessarily.
52654         (have_associative): New variable.
52655         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
52656         way also for ksh and zsh.
52657         (func_init_sed_convert_to_cache_statements): New function, extracted
52658         from func_cache_lookup_module. Add support for associative arrays.
52659         Don't set the c_MODULE_cached variable here. Ignore all lines before
52660         the first field header. Remove only the final newline, not all trailing
52661         newlines. Support empty fields correctly. Limit the use of 'eval' to
52662         assignments.
52663         (func_get_description, func_get_status, func_get_notice,
52664         func_get_applicability, func_get_filelist, func_get_dependencies,
52665         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
52666         func_get_automake_snippet, func_get_include_directive,
52667         func_get_link_directive, func_get_license, func_get_maintainer):
52668         Update documentation. List the unoptimized code first. Add support for
52669         associative arrays. Limit the use of 'eval' to assignments.
52670         (func_get_applicability): Undo stylistic pessimisations.
52671         (func_get_automake_snippet, func_get_include_directive): Reduce code
52672         duplication.
52673         (func_modules_transitive_closure, func_modules_add_dummy,
52674         func_modules_notice, func_modules_to_filelist, func_add_file,
52675         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
52676         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
52677         func_create_testdir, func_create_megatestdir): Update documentation.
52679 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52681         * gnulib-tool (func_cache_lookup_module): Store the module name
52682         belonging to the cache variable; error out if two different
52683         module names map to the same cache variable name.
52685 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52687         gnulib-tool: Make caching optional.
52688         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
52689         Update matching short versions of --no-changelog.
52690         (func_usage): Update.
52691         (sed_extract_cache_prog): Renamed from ...
52692         (sed_extract_prog): ... this; revert to old extraction script.
52693         (func_get_description, func_get_status)
52694         (func_get_notice, func_get_applicability, func_get_filelist)
52695         (func_get_dependencies, func_get_autoconf_early_snippet)
52696         (func_get_autoconf_snippet, func_get_automake_snippet)
52697         (func_get_include_directive, func_get_link_directive)
52698         (func_get_license, func_get_maintainer): If $do_cache is false,
52699         use old, non-caching extraction scripts.
52700         Suggestion by Bruno Haible.
52702 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52704         gnulib-tool: cache module metainformation.
52705         * gnulib-tool (sed_extract_prog): Match newline before each
52706         header, and rewrite header to a shell variable suffix.
52707         (func_cache_var, func_cache_lookup_module): New functions,
52708         to turn a module name into a cache variable prefix, and to
52709         look up and cache module metainformation.
52710         (func_get_description, func_get_status)
52711         (func_get_notice, func_get_applicability, func_get_filelist)
52712         (func_get_dependencies, func_get_autoconf_early_snippet)
52713         (func_get_autoconf_snippet, func_get_automake_snippet)
52714         (func_get_include_directive, func_get_link_directive)
52715         (func_get_license, func_get_maintainer): Use
52716         func_cache_lookup_module.
52718 2010-02-07  Bruno Haible  <bruno@clisp.org>
52720         fnctl: Fix missing dependency.
52721         * modules/fcntl (Depends-on): Add getdtablesize.
52722         Reported by John W. Eaton <jwe@gnu.org>.
52724 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
52726         Argp: fix recognition of short alias options.
52728         * lib/argp-parse.c (convert_options): Fix improper use of
52729         `|' between character values.
52730         * tests/test-argp.c (group1_option): New alias option
52731         --read (-r).
52732         (group1_parser): Special handling for 'r'.
52733         (test15): New test case.
52734         (test_fun): Add test15.
52735         * tests/test-argp-2.sh: Update expected --help and --usage
52736         outputs.
52738 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
52740         * tests/test-argp.c: Fix indentation.
52742 2010-02-04  Eric Blake  <ebb9@byu.net>
52744         gettimeofday: expose type of second argument
52745         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
52746         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
52747         * tests/test-gettimeofday.c: Use it to silence warning.
52748         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
52749         the issue.
52751 2010-02-03  Jim Meyering  <meyering@redhat.com>
52753         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
52754         * lib/regcomp.c (TYPE_SIGNED): Define.
52755         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
52757         regcomp.c: avoid a new -Wshadow warning
52758         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
52760 2010-02-01  Jim Meyering  <meyering@redhat.com>
52762         removing useless parentheses in cpp #define directives
52763         For motivation, see commit c0221df4, "define STREQ(a,b)
52764         consistently, removing useless parentheses"
52765         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
52766         * lib/mountlist.c (MNT_IGNORE): Likewise.
52767         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
52769 2010-02-01  Eric Blake  <ebb9@byu.net>
52771         sys_time: use link-warning
52772         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
52773         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
52774         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
52775         * modules/sys_time (Depends-on): Add warn-on-use.
52776         (Makefile.am): Always build replacement.
52777         (configure.ac): Update substitutions.
52778         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
52779         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
52780         bother with SYS_TIME_H.
52781         * modules/gettimeofday (configure.ac): Declare indicator.
52782         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
52783         in use.
52785         closein-tests: silence compiler warning
52786         * tests/test-closein.c (main): Ignore fread result.
52787         * modules/closein-tests (Depends-on): Add ignore-value.
52789         tests: silence warning about system return
52790         * tests/test-areadlink-with-size.c (main): Ignore system result.
52791         * tests/test-areadlink.c (main): Likewise.
52792         * tests/test-areadlinkat-with-size.c (main): Likewise.
52793         * tests/test-areadlinkat.c (main): Likewise.
52794         * tests/test-canonicalize-lgpl.c (main): Likewise.
52795         * tests/test-canonicalize.c (main): Likewise.
52796         * tests/test-chown.c (main): Likewise.
52797         * tests/test-fchownat.c (main): Likewise.
52798         * tests/test-fdutimensat.c (main): Likewise.
52799         * tests/test-fstatat.c (main): Likewise.
52800         * tests/test-futimens.c (main): Likewise.
52801         * tests/test-lchown.c (main): Likewise.
52802         * tests/test-link.c (main): Likewise.
52803         * tests/test-linkat.c (main): Likewise.
52804         * tests/test-lstat.c (main): Likewise.
52805         * tests/test-mkdir.c (main): Likewise.
52806         * tests/test-mkdirat.c (main): Likewise.
52807         * tests/test-mkfifo.c (main): Likewise.
52808         * tests/test-mkfifoat.c (main): Likewise.
52809         * tests/test-mknod.c (main): Likewise.
52810         * tests/test-readlink.c (main): Likewise.
52811         * tests/test-remove.c (main): Likewise.
52812         * tests/test-rename.c (main): Likewise.
52813         * tests/test-renameat.c (main): Likewise.
52814         * tests/test-rmdir.c (main): Likewise.
52815         * tests/test-symlink.c (main): Likewise.
52816         * tests/test-symlinkat.c (main): Likewise.
52817         * tests/test-unlink.c (main): Likewise.
52818         * tests/test-unlinkat.c (main): Likewise.
52819         * tests/test-utimens.c (main): Likewise.
52820         * tests/test-utimensat.c (main): Likewise.
52821         * modules/areadlink-tests (Depends-on): Add ignore-value.
52822         * modules/areadlink-with-size-tests (Depends-on): Likewise.
52823         * modules/areadlinkat-tests (Depends-on): Likewise.
52824         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
52825         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
52826         * modules/canonicalize-tests (Depends-on): Likewise.
52827         * modules/chown-tests (Depends-on): Likewise.
52828         * modules/fdutimensat-tests (Depends-on): Likewise.
52829         * modules/futimens-tests (Depends-on): Likewise.
52830         * modules/lchown-tests (Depends-on): Likewise.
52831         * modules/link-tests (Depends-on): Likewise.
52832         * modules/linkat-tests (Depends-on): Likewise.
52833         * modules/lstat-tests (Depends-on): Likewise.
52834         * modules/mkdir-tests (Depends-on): Likewise.
52835         * modules/mkfifo-tests (Depends-on): Likewise.
52836         * modules/mkfifoat-tests (Depends-on): Likewise.
52837         * modules/mknod-tests (Depends-on): Likewise.
52838         * modules/openat-tests (Depends-on): Likewise.
52839         * modules/readlink-tests (Depends-on): Likewise.
52840         * modules/remove-tests (Depends-on): Likewise.
52841         * modules/rename-tests (Depends-on): Likewise.
52842         * modules/renameat-tests (Depends-on): Likewise.
52843         * modules/rmdir-tests (Depends-on): Likewise.
52844         * modules/symlink-tests (Depends-on): Likewise.
52845         * modules/symlinkat-tests (Depends-on): Likewise.
52846         * modules/unlink-tests (Depends-on): Likewise.
52847         * modules/utimens-tests (Depends-on): Likewise.
52848         * modules/utimensat-tests (Depends-on): Likewise.
52850 2010-01-31  Bruno Haible  <bruno@clisp.org>
52852         Perform the same test for many <math.h> functions.
52853         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
52854         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
52855         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
52856         of gl_MATHFUNC.
52857         * modules/acos (configure.ac): Likewise.
52858         * modules/asin (configure.ac): Likewise.
52859         * modules/atan (configure.ac): Likewise.
52860         * modules/atan2 (configure.ac): Likewise.
52861         * modules/cbrt (configure.ac): Likewise.
52862         * modules/copysign (configure.ac): Likewise.
52863         * modules/cos (configure.ac): Likewise.
52864         * modules/cosh (configure.ac): Likewise.
52865         * modules/erf (configure.ac): Likewise.
52866         * modules/erfc (configure.ac): Likewise.
52867         * modules/exp (configure.ac): Likewise.
52868         * modules/fmod (configure.ac): Likewise.
52869         * modules/hypot (configure.ac): Likewise.
52870         * modules/j0 (configure.ac): Likewise.
52871         * modules/j1 (configure.ac): Likewise.
52872         * modules/jn (configure.ac): Likewise.
52873         * modules/lgamma (configure.ac): Likewise.
52874         * modules/log (configure.ac): Likewise.
52875         * modules/log10 (configure.ac): Likewise.
52876         * modules/log1p (configure.ac): Likewise.
52877         * modules/pow (configure.ac): Likewise.
52878         * modules/remainder (configure.ac): Likewise.
52879         * modules/sin (configure.ac): Likewise.
52880         * modules/sinh (configure.ac): Likewise.
52881         * modules/tan (configure.ac): Likewise.
52882         * modules/tanh (configure.ac): Likewise.
52883         * modules/y0 (configure.ac): Likewise.
52884         * modules/y1 (configure.ac): Likewise.
52885         * modules/yn (configure.ac): Likewise.
52886         Suggested by Paolo Bonzini.
52888 2010-01-31  Bruno Haible  <bruno@clisp.org>
52890         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
52892 2010-01-31  Bruno Haible  <bruno@clisp.org>
52894         Work around getdelim() bug on FreeBSD 8.0.
52895         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
52896         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
52897         not work.
52898         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
52899         is 1.
52900         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
52901         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
52902         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
52903         a non-zero size.
52904         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
52906 2010-01-31  Bruno Haible  <bruno@clisp.org>
52908         Work around getline() bug on FreeBSD 8.0.
52909         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
52910         and a non-zero size.
52911         * tests/test-getline.c (main): Likewise.
52912         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
52913         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
52915 2010-01-28  Eric Blake  <ebb9@byu.net>
52917         regex: fix build failure
52918         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
52919         platforms.
52921 2010-01-28  Jim Meyering  <meyering@redhat.com>
52923         regex: do not ignore memory allocation failure
52924         * lib/regex_internal.c (create_cd_newstate): Detect
52925         re_node_set_init_copy failure.   Extracted from glibc commit
52926         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
52928         regex: sync more white-space changes from libc
52929         * lib/regex_internal.c: White-space only changes.
52930         * lib/regexec.c: Likewise.
52932         regex: add many uses of __attribute_warn_unused_result__
52933         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
52934         * lib/regexec.c: Likewise.
52935         Extracted from a messy glibc commit.
52937         regcomp.c: spelling and merge-artifact from glibc
52938         * lib/regcomp.c: Merge remainder of glibc's
52939         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
52941         regcomp.c: sync white-space changes from glibc
52942         * lib/regcomp.c: Merge to accommodate white space
52943         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
52945         regcomp.c: do not ignore internal return values
52946         * lib/regcomp.c: Do not ignore internal return values.
52947         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
52948         but without its white-space changes and spelling fixes.
52950         regex_internal.h: define __attribute_warn_unused_result__
52951         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
52953         maint: add a syntax-check rule to check for vulnerable Makefile.in
52954         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
52956 2010-01-27  Jim Meyering  <meyering@redhat.com>
52958         ncftpput-ftp: clean up spaces
52959         * build-aux/ncftpput-ftp: Make Copyright line consistent.
52960         Remove trailing blanks.
52962 2010-01-27  Simon Josefsson  <simon@josefsson.org>
52964         * build-aux/git-version-gen: Fix copyright statement.
52965         * build-aux/gnupload: Likewise.
52966         * tests/test-arcfour.c: Likewise.
52967         * tests/test-arctwo.c: Likewise.
52968         * tests/test-count-one-bits.c: Likewise.
52969         * tests/test-crc.c: Likewise.
52970         * tests/test-des.c: Likewise.
52971         * tests/test-gc-arcfour.c: Likewise.
52972         * tests/test-gc-arctwo.c: Likewise.
52973         * tests/test-gc-des.c: Likewise.
52974         * tests/test-gc-hmac-md5.c: Likewise.
52975         * tests/test-gc-hmac-sha1.c: Likewise.
52976         * tests/test-gc-md2.c: Likewise.
52977         * tests/test-gc-md4.c: Likewise.
52978         * tests/test-gc-md5.c: Likewise.
52979         * tests/test-gc-pbkdf2-sha1.c: Likewise.
52980         * tests/test-gc-rijndael.c: Likewise.
52981         * tests/test-gc-sha1.c: Likewise.
52982         * tests/test-gc.c: Likewise.
52983         * tests/test-gethostname.c: Likewise.
52984         * tests/test-gettimeofday.c: Likewise.
52985         * tests/test-hash.c: Likewise.
52986         * tests/test-hmac-md5.c: Likewise.
52987         * tests/test-hmac-sha1.c: Likewise.
52988         * tests/test-md2.c: Likewise.
52989         * tests/test-md4.c: Likewise.
52990         * tests/test-md5.c: Likewise.
52991         * tests/test-memchr.c: Likewise.
52992         * tests/test-memchr2.c: Likewise.
52993         * tests/test-memcmp.c: Likewise.
52994         * tests/test-memmem.c: Likewise.
52995         * tests/test-memrchr.c: Likewise.
52996         * tests/test-rawmemchr.c: Likewise.
52997         * tests/test-read-file.c: Likewise.
52998         * tests/test-rijndael.c: Likewise.
52999         * tests/test-sockets.c: Likewise.
53000         * tests/test-strchrnul.c: Likewise.
53001         * tests/test-strstr.c: Likewise.
53002         * tests/test-strtod.c: Likewise.
53003         * build-aux/ncftpput-ftp: Likewise.
53005 2010-01-26  Eric Blake  <ebb9@byu.net>
53007         ignore-value: update recommended header name
53008         * modules/ignore-value (Include): Only use <> for headers that
53009         exist in glibc.
53011 2010-01-26  Jim Meyering  <meyering@redhat.com>
53013         test-userspec.c: avoid compiler warnings
53014         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
53015         and "initialization discards qualifiers..." warnings.
53016         Put the first "uid" in its own scope, and make char* members "const".
53018 2010-01-25  Bruno Haible  <bruno@clisp.org>
53020         gnulib-tool: Make warning diagnostics consistent.
53021         * gnulib-tool (func_warning): New function.
53022         Use it everywhere where gnulib-tool produces output to stderr and it is
53023         not a fatal error.
53025 2010-01-25  Bruno Haible  <bruno@clisp.org>
53027         Fix test dependencies.
53028         * modules/xstrtol-tests (Depends-on): Add inttypes.
53029         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
53031 2010-01-25  Pádraig Brady  <P@draigBrady.com>
53033         syntax-check: detect incorrect boolean macro values in config.h
53034         * modules/maintainer-makefile (configure.ac): Parameterize the location
53035         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
53036         The logic is from Eric Blake and the location indicated by Jim Meyering.
53037         Note the more natural CONFIG_HEADER name is prohibited by automake
53038         for backwards compatibility reasons.
53039         * top/maint.mk (sc_Wundef_boolean): New rule.
53041 2010-01-25  Jim Meyering  <meyering@redhat.com>
53043         bootstrap: detect MacOS 10.6's shasum, too
53044         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
53045         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
53047 2010-01-23  Jim Meyering  <meyering@redhat.com>
53049         xstrtoll: new module
53050         * modules/xstrtoll: New file.
53051         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
53052         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
53053         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
53054         ./configure fails if you use this module and lack "long long".
53055         * modules/xstrtoll-tests: New module.
53056         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
53057         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
53058         new init.sh-based test framework.
53060 2010-01-24  Bruno Haible  <bruno@clisp.org>
53062         Tests for module 'yn'.
53063         * modules/yn-tests: New file.
53064         * tests/test-yn.c: New file.
53066         Tests for module 'y1'.
53067         * modules/y1-tests: New file.
53068         * tests/test-y1.c: New file.
53070         Tests for module 'y0'.
53071         * modules/y0-tests: New file.
53072         * tests/test-y0.c: New file.
53074         Tests for module 'tanh'.
53075         * modules/tanh-tests: New file.
53076         * tests/test-tanh.c: New file.
53078         Tests for module 'tan'.
53079         * modules/tan-tests: New file.
53080         * tests/test-tan.c: New file.
53082         Tests for module 'sqrt'.
53083         * modules/sqrt-tests: New file.
53084         * tests/test-sqrt.c: New file.
53086         Tests for module 'sinh'.
53087         * modules/sinh-tests: New file.
53088         * tests/test-sinh.c: New file.
53090         Tests for module 'sin'.
53091         * modules/sin-tests: New file.
53092         * tests/test-sin.c: New file.
53094         Tests for module 'rint'.
53095         * modules/rint-tests: New file.
53096         * tests/test-rint.c: New file.
53098         Tests for module 'remainder'.
53099         * modules/remainder-tests: New file.
53100         * tests/test-remainder.c: New file.
53102         Tests for module 'pow'.
53103         * modules/pow-tests: New file.
53104         * tests/test-pow.c: New file.
53106         Tests for module 'nextafter'.
53107         * modules/nextafter-tests: New file.
53108         * tests/test-nextafter.c: New file.
53110         Tests for module 'modf'.
53111         * modules/modf-tests: New file.
53112         * tests/test-modf.c: New file.
53114         Tests for module 'logb'.
53115         * modules/logb-tests: New file.
53116         * tests/test-logb.c: New file.
53118         Tests for module 'log1p'.
53119         * modules/log1p-tests: New file.
53120         * tests/test-log1p.c: New file.
53122         Tests for module 'log10'.
53123         * modules/log10-tests: New file.
53124         * tests/test-log10.c: New file.
53126         Tests for module 'log'.
53127         * modules/log-tests: New file.
53128         * tests/test-log.c: New file.
53130         Tests for module 'lgamma'.
53131         * modules/lgamma-tests: New file.
53132         * tests/test-lgamma.c: New file.
53134         Tests for module 'ldexp'.
53135         * modules/ldexp-tests: New file.
53136         * tests/test-ldexp.c: New file.
53138         Tests for module 'jn'.
53139         * modules/jn-tests: New file.
53140         * tests/test-jn.c: New file.
53142         Tests for module 'j1'.
53143         * modules/j1-tests: New file.
53144         * tests/test-j1.c: New file.
53146         Tests for module 'j0'.
53147         * modules/j0-tests: New file.
53148         * tests/test-j0.c: New file.
53150         Tests for module 'hypot'.
53151         * modules/hypot-tests: New file.
53152         * tests/test-hypot.c: New file.
53154         Tests for module 'fmod'.
53155         * modules/fmod-tests: New file.
53156         * tests/test-fmod.c: New file.
53158         Tests for module 'fabs'.
53159         * modules/fabs-tests: New file.
53160         * tests/test-fabs.c: New file.
53162         Tests for module 'exp'.
53163         * modules/exp-tests: New file.
53164         * tests/test-exp.c: New file.
53166         Tests for module 'erfc'.
53167         * modules/erfc-tests: New file.
53168         * tests/test-erfc.c: New file.
53170         Tests for module 'erf'.
53171         * modules/erf-tests: New file.
53172         * tests/test-erf.c: New file.
53174         Tests for module 'cosh'.
53175         * modules/cosh-tests: New file.
53176         * tests/test-cosh.c: New file.
53178         Tests for module 'cos'.
53179         * modules/cos-tests: New file.
53180         * tests/test-cos.c: New file.
53182         Tests for module 'copysign'.
53183         * modules/copysign-tests: New file.
53184         * tests/test-copysign.c: New file.
53186         Tests for module 'cbrt'.
53187         * modules/cbrt-tests: New file.
53188         * tests/test-cbrt.c: New file.
53190         Tests for module 'atan2'.
53191         * modules/atan2-tests: New file.
53192         * tests/test-atan2.c: New file.
53194         Tests for module 'atan'.
53195         * modules/atan-tests: New file.
53196         * tests/test-atan.c: New file.
53198         Tests for module 'asin'.
53199         * modules/asin-tests: New file.
53200         * tests/test-asin.c: New file.
53202         Tests for module 'acos'.
53203         * modules/acos-tests: New file.
53204         * tests/test-acos.c: New file.
53206 2010-01-24  Bruno Haible  <bruno@clisp.org>
53208         Fix tests for common <math.h> functions.
53209         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
53210         code snippet that references the function pointer, rather than merely
53211         calling the function. Substitute the FUNC_LIBM variable.
53212         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
53213         * modules/acos (configure.ac): Likewise.
53214         * modules/asin (configure.ac): Likewise.
53215         * modules/atan (configure.ac): Likewise.
53216         * modules/atan2 (configure.ac): Likewise.
53217         * modules/cbrt (configure.ac): Likewise.
53218         * modules/copysign (configure.ac): Likewise.
53219         * modules/cos (configure.ac): Likewise.
53220         * modules/cosh (configure.ac): Likewise.
53221         * modules/erf (configure.ac): Likewise.
53222         * modules/erfc (configure.ac): Likewise.
53223         * modules/exp (configure.ac): Likewise.
53224         * modules/fabs (configure.ac): Likewise.
53225         * modules/fmod (configure.ac): Likewise.
53226         * modules/hypot (configure.ac): Likewise.
53227         * modules/j0 (configure.ac): Likewise.
53228         * modules/j1 (configure.ac): Likewise.
53229         * modules/jn (configure.ac): Likewise.
53230         * modules/ldexp (configure.ac): Likewise.
53231         * modules/lgamma (configure.ac): Likewise.
53232         * modules/log (configure.ac): Likewise.
53233         * modules/log10 (configure.ac): Likewise.
53234         * modules/log1p (configure.ac): Likewise.
53235         * modules/logb (configure.ac): Likewise.
53236         * modules/modf (configure.ac): Likewise.
53237         * modules/nextafter (configure.ac): Likewise.
53238         * modules/pow (configure.ac): Likewise.
53239         * modules/remainder (configure.ac): Likewise.
53240         * modules/rint (configure.ac): Likewise.
53241         * modules/sin (configure.ac): Likewise.
53242         * modules/sinh (configure.ac): Likewise.
53243         * modules/tan (configure.ac): Likewise.
53244         * modules/tanh (configure.ac): Likewise.
53245         * modules/y0 (configure.ac): Likewise.
53246         * modules/y1 (configure.ac): Likewise.
53247         * modules/yn (configure.ac): Likewise.
53249 2010-01-24  Bruno Haible  <bruno@clisp.org>
53251         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
53252         * tests/test-acosl.c (x): New variable.
53253         (main): Store argument in x and fetch it from x.
53254         * tests/test-asinl.c (x): New variable.
53255         (main): Store argument in x and fetch it from x.
53256         * tests/test-atanl.c (x): New variable.
53257         (main): Store argument in x and fetch it from x.
53258         * tests/test-cosl.c (x): New variable.
53259         (main): Store argument in x and fetch it from x.
53260         * tests/test-expl.c (x): New variable.
53261         (main): Store argument in x and fetch it from x.
53262         * tests/test-logl.c (x): New variable.
53263         (main): Store argument in x and fetch it from x.
53264         * tests/test-sinl.c (x): New variable.
53265         (main): Store argument in x and fetch it from x.
53266         * tests/test-sqrtl.c (x): New variable.
53267         (main): Store argument in x and fetch it from x.
53268         * tests/test-tanl.c (x): New variable.
53269         (main): Store argument in x and fetch it from x.
53271 2010-01-24  Bruno Haible  <bruno@clisp.org>
53273         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
53274         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
53275         assignments to the initial TESTS_ENVIRONMENT.
53276         * doc/gnulib.texi (Unit test modules): Document it.
53277         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
53278         TESTS_ENVIRONMENT.
53279         * modules/btowc-tests (Makefile.am): Likewise.
53280         * modules/c-stack-tests (Makefile.am): Likewise.
53281         * modules/c-strcase-tests (Makefile.am): Likewise.
53282         * modules/copy-file-tests (Makefile.am): Likewise.
53283         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
53284         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
53285         * modules/mbrtowc-tests (Makefile.am): Likewise.
53286         * modules/mbscasecmp-tests (Makefile.am): Likewise.
53287         * modules/mbscasestr-tests (Makefile.am): Likewise.
53288         * modules/mbschr-tests (Makefile.am): Likewise.
53289         * modules/mbscspn-tests (Makefile.am): Likewise.
53290         * modules/mbsinit-tests (Makefile.am): Likewise.
53291         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
53292         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
53293         * modules/mbspbrk-tests (Makefile.am): Likewise.
53294         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
53295         * modules/mbsrchr-tests (Makefile.am): Likewise.
53296         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
53297         * modules/mbsspn-tests (Makefile.am): Likewise.
53298         * modules/mbsstr-tests (Makefile.am): Likewise.
53299         * modules/nl_langinfo-tests (Makefile.am): Likewise.
53300         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
53301         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
53302         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
53303         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
53304         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
53305         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
53306         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
53307         * modules/wcrtomb-tests (Makefile.am): Likewise.
53308         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
53309         * modules/wcsrtombs-tests (Makefile.am): Likewise.
53310         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
53311         assignments from TESTS_ENVIRONMENT.
53312         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
53313         augmentation.
53314         * modules/argp-version-etc-tests (Makefile.am): Likewise.
53315         * modules/atexit-tests (Makefile.am): Likewise.
53316         * modules/binary-io-tests (Makefile.am): Likewise.
53317         * modules/closein-tests (Makefile.am): Likewise.
53318         * modules/dprintf-posix-tests (Makefile.am): Likewise.
53319         * modules/exclude-tests (Makefile.am): Likewise.
53320         * modules/fflush-tests (Makefile.am): Likewise.
53321         * modules/fpending-tests (Makefile.am): Likewise.
53322         * modules/fprintf-posix-tests (Makefile.am): Likewise.
53323         * modules/freadahead-tests (Makefile.am): Likewise.
53324         * modules/freadptr-tests (Makefile.am): Likewise.
53325         * modules/freadseek-tests (Makefile.am): Likewise.
53326         * modules/fseek-tests (Makefile.am): Likewise.
53327         * modules/fseeko-tests (Makefile.am): Likewise.
53328         * modules/ftell-tests (Makefile.am): Likewise.
53329         * modules/ftello-tests (Makefile.am): Likewise.
53330         * modules/idpriv-drop-tests (Makefile.am): Likewise.
53331         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
53332         * modules/lseek-tests (Makefile.am): Likewise.
53333         * modules/parse-duration-tests (Makefile.am): Likewise.
53334         * modules/perror-tests (Makefile.am): Likewise.
53335         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
53336         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
53337         * modules/pipe-tests (Makefile.am): Likewise.
53338         * modules/pread-tests (Makefile.am): Likewise.
53339         * modules/printf-posix-tests (Makefile.am): Likewise.
53340         * modules/select-tests (Makefile.am): Likewise.
53341         * modules/sigpipe-tests (Makefile.am): Likewise.
53342         * modules/tsearch-tests (Makefile.am): Likewise.
53343         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
53344         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
53345         * modules/uniname/uniname-tests (Makefile.am): Likewise.
53346         * modules/uniwidth/width-tests (Makefile.am): Likewise.
53347         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
53348         * modules/version-etc-tests (Makefile.am): Likewise.
53349         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
53350         * modules/vprintf-posix-tests (Makefile.am): Likewise.
53351         * modules/xalloc-die-tests (Makefile.am): Likewise.
53352         * modules/xprintf-posix-tests (Makefile.am): Likewise.
53353         * modules/xstrtoimax-tests (Makefile.am): Likewise.
53354         * modules/xstrtol-tests (Makefile.am): Likewise.
53355         * modules/xstrtoumax-tests (Makefile.am): Likewise.
53356         * modules/yesno-tests (Makefile.am): Likewise.
53357         Suggested by Jim Meyering.
53359 2010-01-24  Bruno Haible  <bruno@clisp.org>
53361         More documentation.
53362         * doc/gnulib.texi (Writing modules): New chapter.
53363         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
53364         the new chapter.
53366 2010-01-24  Jim Meyering  <meyering@redhat.com>
53368         maint.mk: do not prepend "./" after filtering
53369         * top/maint.mk (_prepend_srcdir_prefix): New variable
53370         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
53371         "./" when $(srcdir) is ".".
53373         define STREQ(a,b) consistently, removing useless parentheses
53374         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
53375         since the only risk is that "a" or "b" contains an unparenthesized
53376         comma, but if either did that, STREQ would have 3 or more arguments.
53377         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
53378         * lib/fts.c (STREQ): Remove unnecessary parentheses.
53379         * lib/hash-triple.c (STREQ): Likewise.
53380         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
53381         * lib/getugroups.c (STREQ): Likewise.
53383 2010-01-23  Jim Meyering  <meyering@redhat.com>
53385         maint.mk: fix syntax-check in a non-srcdir build directory
53386         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
53387         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
53389 2010-01-22  Jim Meyering  <meyering@redhat.com>
53391         userspec: add unit tests
53392         * tests/test-userspec.c: New file.
53393         * modules/userspec-tests: Likewise.
53395 2010-01-21  Jim Meyering  <meyering@redhat.com>
53397         maint.mk: handle source file names containing "." robustly
53398         * top/maint.mk (_dot_escaped_srcdir): Define.
53399         (VC_LIST): Use it in LHS of sed substitution.
53401 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
53403         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
53404         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
53405         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
53406         from a non-srcdir build.
53408 2010-01-20  Eric Blake  <ebb9@byu.net>
53410         warn-on-use: use instead of link-warning
53411         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
53412         * modules/unistd (Depends-on, Makefile.am): Likewise.
53413         * modules/arpa_inet (Depends-on): Replace link-warning with
53414         warn-on-use.
53415         (Makefile.am): Update rules accordingly.
53416         * modules/ctype (Depends-on, Makefile.am): Likewise.
53417         * modules/dirent (Depends-on, Makefile.am): Likewise.
53418         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
53419         * modules/inttypes (Depends-on, Makefile.am): Likewise.
53420         * modules/langinfo (Depends-on, Makefile.am): Likewise.
53421         * modules/locale (Depends-on, Makefile.am): Likewise.
53422         * modules/math (Depends-on, Makefile.am): Likewise.
53423         * modules/search (Depends-on, Makefile.am): Likewise.
53424         * modules/signal (Depends-on, Makefile.am): Likewise.
53425         * modules/spawn (Depends-on, Makefile.am): Likewise.
53426         * modules/stdlib (Depends-on, Makefile.am): Likewise.
53427         * modules/string (Depends-on, Makefile.am): Likewise.
53428         * modules/strings (Depends-on, Makefile.am): Likewise.
53429         * modules/sys_file (Depends-on, Makefile.am): Likewise.
53430         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
53431         * modules/sys_select (Depends-on, Makefile.am): Likewise.
53432         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
53433         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
53434         * modules/sys_times (Depends-on, Makefile.am): Likewise.
53435         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
53436         * modules/wchar (Depends-on, Makefile.am): Likewise.
53437         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
53438         should be poisoned.
53439         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
53440         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
53441         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
53442         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
53443         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
53444         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
53445         * m4/math_h.m4 (gl_MATH_H): Likewise.
53446         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
53447         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
53448         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
53449         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
53450         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
53451         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
53452         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
53453         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
53454         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
53455         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
53456         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
53457         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
53458         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
53459         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
53460         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
53461         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
53462         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
53463         GL_LINK_WARNING.
53464         * lib/ctype.in.h: Likewise.
53465         * lib/dirent.in.h: Likewise.
53466         * lib/fcntl.in.h: Likewise.
53467         * lib/inttypes.in.h: Likewise.
53468         * lib/langinfo.in.h: Likewise.
53469         * lib/locale.in.h: Likewise.
53470         * lib/math.in.h: Likewise.
53471         * lib/search.in.h: Likewise.
53472         * lib/signal.in.h: Likewise.
53473         * lib/spawn.in.h: Likewise.
53474         * lib/stdio.in.h: Likewise.
53475         * lib/stdlib.in.h: Likewise.
53476         * lib/string.in.h: Likewise.
53477         * lib/strings.in.h: Likewise.
53478         * lib/sys_file.in.h: Likewise.
53479         * lib/sys_ioctl.in.h: Likewise.
53480         * lib/sys_select.in.h: Likewise.
53481         * lib/sys_socket.in.h: Likewise.
53482         * lib/sys_stat.in.h: Likewise.
53483         * lib/sys_times.in.h: Likewise.
53484         * lib/sys_utsname.in.h: Likewise.
53485         * lib/unistd.in.h: Likewise.
53486         * lib/wchar.in.h: Likewise.
53488 2010-01-20  Bruno Haible  <bruno@clisp.org>
53490         Avoid duplicate -lm.
53491         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
53492         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
53493         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
53494         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
53495         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
53496         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
53497         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
53498         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
53499         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
53500         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
53501         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
53502         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
53503         Reported by Paolo Bonzini.
53505 2010-01-19  Bruno Haible  <bruno@clisp.org>
53507         langinfo, nl_langinfo: Relicense under LGPLv2+.
53508         * modules/langinfo (License): Change to LGPLv2+.
53509         * modules/nl_langinfo (License): Likewise.
53510         Patch by David Lutterkort <lutter@redhat.com>.
53512 2010-01-19  Bruno Haible  <bruno@clisp.org>
53514         Avoid compilation error with cc on OSF/1 5.1.
53515         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
53516         statement, not before.
53517         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53519 2010-01-18  Bruno Haible  <bruno@clisp.org>
53521         Avoid a link error due to the __printf__ symbol.
53522         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
53523         and 2.6.x.
53524         (__format__, __printf__): Remove definitions.
53525         * lib/argp-fmtstream.h: Likewise.
53526         * lib/argp.h: Likewise.
53527         * lib/error.h: Likewise.
53528         * lib/vasnprintf.h: Likewise.
53529         * lib/xprintf.h: Likewise.
53530         * lib/xvasprintf.h: Likewise.
53531         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53533 2010-01-18  Bruno Haible  <bruno@clisp.org>
53535         Tests for module 'tanl'.
53536         * modules/tanl-tests: New file.
53537         * tests/test-tanl.c: New file.
53539         Tests for module 'sqrtl'.
53540         * modules/sqrtl-tests: New file.
53541         * tests/test-sqrtl.c: New file.
53543         Tests for module 'sinl'.
53544         * modules/sinl-tests: New file.
53545         * tests/test-sinl.c: New file.
53547         Tests for module 'logl'.
53548         * modules/logl-tests: New file.
53549         * tests/test-logl.c: New file.
53551         Tests for module 'expl'.
53552         * modules/expl-tests: New file.
53553         * tests/test-expl.c: New file.
53555         Tests for module 'cosl'.
53556         * modules/cosl-tests: New file.
53557         * tests/test-cosl.c: New file.
53559         Tests for module 'atanl'.
53560         * modules/atanl-tests: New file.
53561         * tests/test-atanl.c: New file.
53563         Tests for module 'asinl'.
53564         * modules/asinl-tests: New file.
53565         * tests/test-asinl.c: New file.
53567         Tests for module 'acosl'.
53568         * modules/acosl-tests: New file.
53569         * tests/test-acosl.c: New file.
53571         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
53572         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
53573         tanl): Use the standard gnulib idiom.
53574         * lib/cosl.c: Don't include trigl.c and sincosl.c.
53575         * lib/sinl.c: Likewise.
53576         * lib/tanl.c: Don't include trigl.c.
53577         (kernel_tanl): Make static.
53578         * lib/sincosl.c: Include trigl.h first.
53579         * lib/trigl.c: Likewise.
53580         * m4/acosl.m4: New file.
53581         * m4/asinl.m4: New file.
53582         * m4/atanl.m4: New file.
53583         * m4/cosl.m4: New file.
53584         * m4/expl.m4: New file.
53585         * m4/logl.m4: New file.
53586         * m4/sinl.m4: New file.
53587         * m4/sqrtl.m4: New file.
53588         * m4/tanl.m4: New file.
53589         * m4/mathl.m4: Remove file.
53590         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
53591         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
53592         Don't initialize GNULIB_MATHL.
53593         * modules/acosl: New file.
53594         * modules/asinl: New file.
53595         * modules/atanl: New file.
53596         * modules/cosl: New file.
53597         * modules/expl: New file.
53598         * modules/logl: New file.
53599         * modules/sinl: New file.
53600         * modules/sqrtl: New file.
53601         * modules/tanl: New file.
53602         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
53603         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
53604         substitute GNULIB_MATHL.
53605         * modules/mathl: Rewritten.
53606         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
53607         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
53608         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
53609         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
53610         * doc/posix-functions/expl.texi: Mention the 'expl' module.
53611         * doc/posix-functions/logl.texi: Mention the 'logl' module.
53612         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
53613         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
53614         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
53616 2010-01-18  Bruno Haible  <bruno@clisp.org>
53618         sqrt: Make gl_FUNC_SQRT requirable.
53619         * m4/sqrt.m4: New file.
53620         * modules/sqrt (Files): Add it.
53621         (configure.ac): Invoke gl_FUNC_SQRT.
53623 2010-01-18  Bruno Haible  <bruno@clisp.org>
53625         New modules for common <math.h> functions.
53626         * m4/mathfunc.m4: New file.
53627         * modules/acos: New file.
53628         * modules/asin: New file.
53629         * modules/atan: New file.
53630         * modules/atan2: New file.
53631         * modules/cbrt: New file.
53632         * modules/copysign: New file.
53633         * modules/cos: New file.
53634         * modules/cosh: New file.
53635         * modules/erf: New file.
53636         * modules/erfc: New file.
53637         * modules/exp: New file.
53638         * modules/fabs: New file.
53639         * modules/fmod: New file.
53640         * modules/hypot: New file.
53641         * modules/j0: New file.
53642         * modules/j1: New file.
53643         * modules/jn: New file.
53644         * modules/ldexp: New file.
53645         * modules/lgamma: New file.
53646         * modules/log: New file.
53647         * modules/log10: New file.
53648         * modules/log1p: New file.
53649         * modules/logb: New file.
53650         * modules/modf: New file.
53651         * modules/nextafter: New file.
53652         * modules/pow: New file.
53653         * modules/remainder: New file.
53654         * modules/rint: New file.
53655         * modules/sin: New file.
53656         * modules/sinh: New file.
53657         * modules/sqrt: New file.
53658         * modules/tan: New file.
53659         * modules/tanh: New file.
53660         * modules/y0: New file.
53661         * modules/y1: New file.
53662         * modules/yn: New file.
53663         * doc/posix-functions/acos.texi: Mention the 'acos' module.
53664         * doc/posix-functions/asin.texi: Mention the 'asin' module.
53665         * doc/posix-functions/atan.texi: Mention the 'atan' module.
53666         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
53667         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
53668         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
53669         * doc/posix-functions/cos.texi: Mention the 'cos' module.
53670         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
53671         * doc/posix-functions/erf.texi: Mention the 'erf' module.
53672         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
53673         * doc/posix-functions/exp.texi: Mention the 'exp' module.
53674         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
53675         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
53676         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
53677         * doc/posix-functions/j0.texi: Mention the 'j0' module.
53678         * doc/posix-functions/j1.texi: Mention the 'j1' module.
53679         * doc/posix-functions/jn.texi: Mention the 'jn' module.
53680         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
53681         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
53682         * doc/posix-functions/log.texi: Mention the 'log' module.
53683         * doc/posix-functions/log10.texi: Mention the 'log10' module.
53684         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
53685         * doc/posix-functions/logb.texi: Mention the 'logb' module.
53686         * doc/posix-functions/modf.texi: Mention the 'modf' module.
53687         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
53688         * doc/posix-functions/pow.texi: Mention the 'pow' module.
53689         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
53690         * doc/posix-functions/rint.texi: Mention the 'rint' module.
53691         * doc/posix-functions/sin.texi: Mention the 'sin' module.
53692         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
53693         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
53694         * doc/posix-functions/tan.texi: Mention the 'tan' module.
53695         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
53696         * doc/posix-functions/y0.texi: Mention the 'y0' module.
53697         * doc/posix-functions/y1.texi: Mention the 'y1' module.
53698         * doc/posix-functions/yn.texi: Mention the 'yn' module.
53700 2010-01-18  Jim Meyering  <meyering@redhat.com>
53702         ignore-value: relax license to LGPLv2+
53703         * modules/ignore-value (License): Relax to LGPLv2+.
53705         getdate: don't leak when TZ contains two or more '"'s
53706         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
53707         double quote in TZ after the first one.
53709         readtokens: do not leak internal token_lengths buffer
53710         * lib/readtokens.c (readtokens): Free the local, lengths,
53711         when the supplied "token_lengths" parameter is NULL.
53713 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53715         Fix a couple of missing LIBTHREAD link failures on AIX.
53716         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
53717         $(LIBTHREAD).
53718         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
53720         Link test-poll against INET_PTON_LIB.
53721         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
53722         for inet_pton on Solaris 10.
53724 2010-01-17  Bruno Haible  <bruno@clisp.org>
53726         unistdio/*-sprintf: Fix typo in module description.
53727         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
53728         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
53729         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
53730         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
53731         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
53732         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
53733         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
53734         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53736 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53738         gnulib-tool: fix filelist for AIX, HP-UX ksh.
53739         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
53740         variables in shell case patterns, for AIX and HP-UX ksh.
53742         Split large sed scripts, for HP-UX sed.
53743         * modules/stdio: Split sed scripts around 50 sed commands,
53744         to avoid HP-UX limit of 99 commands, in the near future.
53745         * modules/string: Likewise.
53746         * modules/unistd: Likewise.
53748         gnulib-tool: avoid writing in the current directory.
53749         * gnulib-tool (func_emit_lib_Makefile_am)
53750         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
53751         not in the current directory, so concurrent gnulib-tool
53752         instances do not interfere.
53754 2010-01-16  Jim Meyering  <meyering@redhat.com>
53756         doc: update users.txt
53757         * users.txt: Add grep.
53758         (diffutils, gzip): Update URLs.
53760 2010-01-12  Bruno Haible  <bruno@clisp.org>
53762         posix_spawn: Avoid test failure on Cygwin.
53763         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
53764         characters.
53765         Reported by Simon Josefsson.
53767 2010-01-12  Bruno Haible  <bruno@clisp.org>
53769         * tests/test-cond.c (main): When skipping the test, show the reason.
53771 2010-01-12  Simon Josefsson  <simon@josefsson.org>
53773         * lib/striconv.c (str_cd_iconv): Avoid if before free.
53775 2010-01-12  Simon Josefsson  <simon@josefsson.org>
53777         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
53778         VC_LIST_ALWAYS_EXCLUDE_REGEX.
53780 2010-01-12  Eric Blake  <ebb9@byu.net>
53782         build: guarantee AS_VAR_IF
53783         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
53784         (gl_AS_VAR_IF): Move...
53785         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
53786         Reported by Simon Josefsson.
53788 2010-01-12  Simon Josefsson  <simon@josefsson.org>
53790         * lib/stdio.in.h: Fix typo.
53792 2010-01-12  Simon Josefsson  <simon@josefsson.org>
53794         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
53795         libgpg-error.
53797 2010-01-12  Simon Josefsson  <simon@josefsson.org>
53799         * tests/test-xalloc-die.sh: Use $EXEEXT.
53801 2010-01-12  Simon Josefsson  <simon@josefsson.org>
53802             Bruno Haible  <bruno@clisp.org>
53804         getlogin, getlogin_r: Avoid test failure.
53805         * tests/test-getlogin.c: Include <stdio.h>.
53806         (main): Skip the test when the function fails because stdin is not a
53807         tty.
53808         * tests/test-getlogin_r.c: Include <stdio.h>.
53809         (main): Skip the test when the function fails because stdin is not a
53810         tty.
53812 2010-01-11  Eric Blake  <ebb9@byu.net>
53814         tests: avoid more large file warnings
53815         * tests/test-fflush.c: Avoid warning about ftell use.
53816         * tests/test-fseek.c: Avoid warning about fseek use.
53818 2010-01-10  Bruno Haible  <bruno@clisp.org>
53820         nproc: Work better on Linux when /proc and /sys are not mounted.
53821         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
53822         as lower bound when, on glibc/Linux systems,
53823         sysconf (_SC_NPROCESSORS_CONF) returns 1.
53824         Suggested by Pádraig Brady <P@draigbrady.com>.
53825         Reported by Dmitry V. Levin <ldv@altlinux.org>.
53827         nproc: Refactor.
53828         * lib/nproc.c (num_processors_via_affinity_mask): New function,
53829         extracted from num_processors.
53830         (num_processors): Call it.
53832 2010-01-11  Jim Meyering  <meyering@redhat.com>
53834         utimecmp: avoid new warning from upcoming gcc-4.5.0
53835         * lib/utimecmp.c (BILLION): Define using #define rather than an
53836         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
53838 2010-01-11  Eric Blake  <ebb9@byu.net>
53840         math: add portability warnings for classification macros
53841         * modules/math (Depends-on): Add warn-on-use.
53842         (Makefile.am): Provide new substitutions.
53843         * m4/math_h.m4 (gl_MATH_H): Require inline.
53844         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
53845         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
53846         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
53847         implement warnings.
53849         unistd: warn on use of environ without module
53850         * modules/unistd (Depends-on): Add warn-on-use.
53851         (Makefile.am): Provide new substitutions.
53852         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
53853         * lib/unistd.in.h (environ): Wrap with a warning helper function.
53855         stdio: warn on suspicious uses
53856         * modules/stdio (Depends-on): Add warn-on-use.
53857         (Makefile.am): Provide new substitutions.
53858         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
53859         fseeko.
53860         * lib/stdio.in.h (gets): Always warn on use.
53861         (fseek, ftell): Adjust when warnings are issued, and honor
53862         _GL_NO_LARGE_FILES as a way to silence the warning.
53863         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
53864         any warning about large file offsets.
53865         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
53866         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
53867         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
53868         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
53869         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
53870         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
53871         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
53872         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
53874         warn-on-use: new module
53875         * modules/warn-on-use: New file.
53876         * build-aux/warn-on-use.h: Likewise.
53877         * m4/warn-on-use.m4: Likewise.
53878         * MODULES.html.sh (Support for building): Mention it.
53880 2010-01-10  Bruno Haible  <bruno@clisp.org>
53882         Tests for module 'unistr/u32-strdup'.
53883         * modules/unistr/u32-strdup-tests: New file.
53884         * tests/unistr/test-u32-strdup.c: New file.
53886         Tests for module 'unistr/u16-strdup'.
53887         * modules/unistr/u16-strdup-tests: New file.
53888         * tests/unistr/test-u16-strdup.c: New file.
53890         Tests for module 'unistr/u8-strdup'.
53891         * modules/unistr/u8-strdup-tests: New file.
53892         * tests/unistr/test-u8-strdup.c: New file.
53893         * tests/unistr/test-strdup.h: New file.
53895         Tests for module 'unistr/u32-strncmp'.
53896         * modules/unistr/u32-strncmp-tests: New file.
53897         * tests/unistr/test-u32-strncmp.c: New file.
53899         Tests for module 'unistr/u16-strncmp'.
53900         * modules/unistr/u16-strncmp-tests: New file.
53901         * tests/unistr/test-u16-strncmp.c: New file.
53903         Tests for module 'unistr/u8-strncmp'.
53904         * modules/unistr/u8-strncmp-tests: New file.
53905         * tests/unistr/test-u8-strncmp.c: New file.
53906         * tests/unistr/test-strncmp.h: New file.
53908         Tests for module 'unistr/u32-strcoll'.
53909         * modules/unistr/u32-strcoll-tests: New file.
53910         * tests/unistr/test-u32-strcoll.c: New file.
53912         Tests for module 'unistr/u16-strcoll'.
53913         * modules/unistr/u16-strcoll-tests: New file.
53914         * tests/unistr/test-u16-strcoll.c: New file.
53916         Tests for module 'unistr/u8-strcoll'.
53917         * modules/unistr/u8-strcoll-tests: New file.
53918         * tests/unistr/test-u8-strcoll.c: New file.
53920         Tests for module 'unistr/u32-strcmp'.
53921         * modules/unistr/u32-strcmp-tests: New file.
53922         * tests/unistr/test-u32-strcmp.c: New file.
53923         * tests/unistr/test-u32-strcmp.h: New file.
53925         Tests for module 'unistr/u16-strcmp'.
53926         * modules/unistr/u16-strcmp-tests: New file.
53927         * tests/unistr/test-u16-strcmp.c: New file.
53928         * tests/unistr/test-u16-strcmp.h: New file.
53930         Tests for module 'unistr/u8-strcmp'.
53931         * modules/unistr/u8-strcmp-tests: New file.
53932         * tests/unistr/test-u8-strcmp.c: New file.
53933         * tests/unistr/test-u8-strcmp.h: New file.
53934         * tests/unistr/test-strcmp.h: New file.
53936         Tests for module 'unistr/u32-strncat'.
53937         * modules/unistr/u32-strncat-tests: New file.
53938         * tests/unistr/test-u32-strncat.c: New file.
53940         Tests for module 'unistr/u16-strncat'.
53941         * modules/unistr/u16-strncat-tests: New file.
53942         * tests/unistr/test-u16-strncat.c: New file.
53944         Tests for module 'unistr/u8-strncat'.
53945         * modules/unistr/u8-strncat-tests: New file.
53946         * tests/unistr/test-u8-strncat.c: New file.
53947         * tests/unistr/test-strncat.h: New file.
53949         Tests for module 'unistr/u32-strcat'.
53950         * modules/unistr/u32-strcat-tests: New file.
53951         * tests/unistr/test-u32-strcat.c: New file.
53953         Tests for module 'unistr/u16-strcat'.
53954         * modules/unistr/u16-strcat-tests: New file.
53955         * tests/unistr/test-u16-strcat.c: New file.
53957         Tests for module 'unistr/u8-strcat'.
53958         * modules/unistr/u8-strcat-tests: New file.
53959         * tests/unistr/test-u8-strcat.c: New file.
53960         * tests/unistr/test-strcat.h: New file.
53962         Tests for module 'unistr/u32-stpncpy'.
53963         * modules/unistr/u32-stpncpy-tests: New file.
53964         * tests/unistr/test-u32-stpncpy.c: New file.
53966         Tests for module 'unistr/u16-stpncpy'.
53967         * modules/unistr/u16-stpncpy-tests: New file.
53968         * tests/unistr/test-u16-stpncpy.c: New file.
53970         Tests for module 'unistr/u8-stpncpy'.
53971         * modules/unistr/u8-stpncpy-tests: New file.
53972         * tests/unistr/test-u8-stpncpy.c: New file.
53973         * tests/unistr/test-stpncpy.h: New file.
53975         Tests for module 'unistr/u32-strncpy'.
53976         * modules/unistr/u32-strncpy-tests: New file.
53977         * tests/unistr/test-u32-strncpy.c: New file.
53979         Tests for module 'unistr/u16-strncpy'.
53980         * modules/unistr/u16-strncpy-tests: New file.
53981         * tests/unistr/test-u16-strncpy.c: New file.
53983         Tests for module 'unistr/u8-strncpy'.
53984         * modules/unistr/u8-strncpy-tests: New file.
53985         * tests/unistr/test-u8-strncpy.c: New file.
53986         * tests/unistr/test-strncpy.h: New file.
53988         Tests for module 'unistr/u32-stpcpy'.
53989         * modules/unistr/u32-stpcpy-tests: New file.
53990         * tests/unistr/test-u32-stpcpy.c: New file.
53992         Tests for module 'unistr/u16-stpcpy'.
53993         * modules/unistr/u16-stpcpy-tests: New file.
53994         * tests/unistr/test-u16-stpcpy.c: New file.
53996         Tests for module 'unistr/u8-stpcpy'.
53997         * modules/unistr/u8-stpcpy-tests: New file.
53998         * tests/unistr/test-u8-stpcpy.c: New file.
53999         * tests/unistr/test-stpcpy.h: New file.
54001         Tests for module 'unistr/u32-strcpy'.
54002         * modules/unistr/u32-strcpy-tests: New file.
54003         * tests/unistr/test-u32-strcpy.c: New file.
54005         Tests for module 'unistr/u16-strcpy'.
54006         * modules/unistr/u16-strcpy-tests: New file.
54007         * tests/unistr/test-u16-strcpy.c: New file.
54009         Tests for module 'unistr/u8-strcpy'.
54010         * modules/unistr/u8-strcpy-tests: New file.
54011         * tests/unistr/test-u8-strcpy.c: New file.
54012         * tests/unistr/test-strcpy.h: New file.
54014         Tests for module 'unistr/u32-strnlen'.
54015         * modules/unistr/u32-strnlen-tests: New file.
54016         * tests/unistr/test-u32-strnlen.c: New file.
54018         Tests for module 'unistr/u16-strnlen'.
54019         * modules/unistr/u16-strnlen-tests: New file.
54020         * tests/unistr/test-u16-strnlen.c: New file.
54022         Tests for module 'unistr/u8-strnlen'.
54023         * modules/unistr/u8-strnlen-tests: New file.
54024         * tests/unistr/test-u8-strnlen.c: New file.
54025         * tests/unistr/test-strnlen.h: New file.
54027         Tests for module 'unistr/u32-strlen'.
54028         * modules/unistr/u32-strlen-tests: New file.
54029         * tests/unistr/test-u32-strlen.c: New file.
54031         Tests for module 'unistr/u16-strlen'.
54032         * modules/unistr/u16-strlen-tests: New file.
54033         * tests/unistr/test-u16-strlen.c: New file.
54035         Tests for module 'unistr/u8-strlen'.
54036         * modules/unistr/u8-strlen-tests: New file.
54037         * tests/unistr/test-u8-strlen.c: New file.
54039         Tests for module 'unistr/u32-prev'.
54040         * modules/unistr/u32-prev-tests: New file.
54041         * tests/unistr/test-u32-prev.c: New file.
54043         Tests for module 'unistr/u16-prev'.
54044         * modules/unistr/u16-prev-tests: New file.
54045         * tests/unistr/test-u16-prev.c: New file.
54047         Tests for module 'unistr/u8-prev'.
54048         * modules/unistr/u8-prev-tests: New file.
54049         * tests/unistr/test-u8-prev.c: New file.
54051         Tests for module 'unistr/u32-next'.
54052         * modules/unistr/u32-next-tests: New file.
54053         * tests/unistr/test-u32-next.c: New file.
54055         Tests for module 'unistr/u16-next'.
54056         * modules/unistr/u16-next-tests: New file.
54057         * tests/unistr/test-u16-next.c: New file.
54059         Tests for module 'unistr/u8-next'.
54060         * modules/unistr/u8-next-tests: New file.
54061         * tests/unistr/test-u8-next.c: New file.
54063         Tests for module 'unistr/u32-strmbtouc'.
54064         * modules/unistr/u32-strmbtouc-tests: New file.
54065         * tests/unistr/test-u32-strmbtouc.c: New file.
54067         Tests for module 'unistr/u16-strmbtouc'.
54068         * modules/unistr/u16-strmbtouc-tests: New file.
54069         * tests/unistr/test-u16-strmbtouc.c: New file.
54071         Tests for module 'unistr/u8-strmbtouc'.
54072         * modules/unistr/u8-strmbtouc-tests: New file.
54073         * tests/unistr/test-u8-strmbtouc.c: New file.
54075         Tests for module 'unistr/u32-strmblen'.
54076         * modules/unistr/u32-strmblen-tests: New file.
54077         * tests/unistr/test-u32-strmblen.c: New file.
54079         Tests for module 'unistr/u16-strmblen'.
54080         * modules/unistr/u16-strmblen-tests: New file.
54081         * tests/unistr/test-u16-strmblen.c: New file.
54083         Tests for module 'unistr/u8-strmblen'.
54084         * modules/unistr/u8-strmblen-tests: New file.
54085         * tests/unistr/test-u8-strmblen.c: New file.
54087         Tests for module 'unistr/u32-cpy-alloc'.
54088         * modules/unistr/u32-cpy-alloc-tests: New file.
54089         * tests/unistr/test-u32-cpy-alloc.c: New file.
54091         Tests for module 'unistr/u16-cpy-alloc'.
54092         * modules/unistr/u16-cpy-alloc-tests: New file.
54093         * tests/unistr/test-u16-cpy-alloc.c: New file.
54095         Tests for module 'unistr/u8-cpy-alloc'.
54096         * modules/unistr/u8-cpy-alloc-tests: New file.
54097         * tests/unistr/test-u8-cpy-alloc.c: New file.
54098         * tests/unistr/test-cpy-alloc.h: New file.
54100         Tests for module 'unistr/u32-mbsnlen'.
54101         * modules/unistr/u32-mbsnlen-tests: New file.
54102         * tests/unistr/test-u32-mbsnlen.c: New file.
54104         Tests for module 'unistr/u16-mbsnlen'.
54105         * modules/unistr/u16-mbsnlen-tests: New file.
54106         * tests/unistr/test-u16-mbsnlen.c: New file.
54108         Tests for module 'unistr/u8-mbsnlen'.
54109         * modules/unistr/u8-mbsnlen-tests: New file.
54110         * tests/unistr/test-u8-mbsnlen.c: New file.
54112         Tests for module 'unistr/u32-chr'.
54113         * modules/unistr/u32-chr-tests: New file.
54114         * tests/unistr/test-u32-chr.c: New file.
54116         Tests for module 'unistr/u16-chr'.
54117         * modules/unistr/u16-chr-tests: New file.
54118         * tests/unistr/test-u16-chr.c: New file.
54120         Tests for module 'unistr/u8-chr'.
54121         * modules/unistr/u8-chr-tests: New file.
54122         * tests/unistr/test-u8-chr.c: New file.
54123         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
54125         Tests for module 'unistr/u32-cmp2'.
54126         * modules/unistr/u32-cmp2-tests: New file.
54127         * tests/unistr/test-u32-cmp2.c: New file.
54129         Tests for module 'unistr/u16-cmp2'.
54130         * modules/unistr/u16-cmp2-tests: New file.
54131         * tests/unistr/test-u16-cmp2.c: New file.
54133         Tests for module 'unistr/u8-cmp2'.
54134         * modules/unistr/u8-cmp2-tests: New file.
54135         * tests/unistr/test-u8-cmp2.c: New file.
54136         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
54138         Tests for module 'unistr/u32-cmp'.
54139         * modules/unistr/u32-cmp-tests: New file.
54140         * tests/unistr/test-u32-cmp.c: New file.
54142         Tests for module 'unistr/u16-cmp'.
54143         * modules/unistr/u16-cmp-tests: New file.
54144         * tests/unistr/test-u16-cmp.c: New file.
54146         Tests for module 'unistr/u8-cmp'.
54147         * modules/unistr/u8-cmp-tests: New file.
54148         * tests/unistr/test-u8-cmp.c: New file.
54149         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
54151         Tests for module 'unistr/u32-set'.
54152         * modules/unistr/u32-set-tests: New file.
54153         * tests/unistr/test-u32-set.c: New file.
54155         Tests for module 'unistr/u16-set'.
54156         * modules/unistr/u16-set-tests: New file.
54157         * tests/unistr/test-u16-set.c: New file.
54159         Tests for module 'unistr/u8-set'.
54160         * modules/unistr/u8-set-tests: New file.
54161         * tests/unistr/test-u8-set.c: New file.
54162         * tests/unistr/test-set.h: New file.
54164         Tests for module 'unistr/u32-move'.
54165         * modules/unistr/u32-move-tests: New file.
54166         * tests/unistr/test-u32-move.c: New file.
54168         Tests for module 'unistr/u16-move'.
54169         * modules/unistr/u16-move-tests: New file.
54170         * tests/unistr/test-u16-move.c: New file.
54172         Tests for module 'unistr/u8-move'.
54173         * modules/unistr/u8-move-tests: New file.
54174         * tests/unistr/test-u8-move.c: New file.
54175         * tests/unistr/test-move.h: New file.
54177         Tests for module 'unistr/u32-cpy'.
54178         * modules/unistr/u32-cpy-tests: New file.
54179         * tests/unistr/test-u32-cpy.c: New file.
54181         Tests for module 'unistr/u16-cpy'.
54182         * modules/unistr/u16-cpy-tests: New file.
54183         * tests/unistr/test-u16-cpy.c: New file.
54185         Tests for module 'unistr/u8-cpy'.
54186         * modules/unistr/u8-cpy-tests: New file.
54187         * tests/unistr/test-u8-cpy.c: New file.
54188         * tests/unistr/test-cpy.h: New file.
54190 2010-01-09  Bruno Haible  <bruno@clisp.org>
54192         Tests for module 'unistr/u32-uctomb'.
54193         * modules/unistr/u32-uctomb-tests: New file.
54194         * tests/unistr/test-u32-uctomb.c: New file.
54196         Tests for module 'unistr/u16-uctomb'.
54197         * modules/unistr/u16-uctomb-tests: New file.
54198         * tests/unistr/test-u16-uctomb.c: New file.
54200         Tests for module 'unistr/u8-uctomb'.
54201         * modules/unistr/u8-uctomb-tests: New file.
54202         * tests/unistr/test-u8-uctomb.c: New file.
54204         Tests for module 'unistr/u32-mbtoucr'.
54205         * modules/unistr/u32-mbtoucr-tests: New file.
54206         * tests/unistr/test-u32-mbtoucr.c: New file.
54208         Tests for module 'unistr/u16-mbtoucr'.
54209         * modules/unistr/u16-mbtoucr-tests: New file.
54210         * tests/unistr/test-u16-mbtoucr.c: New file.
54212         Tests for module 'unistr/u8-mbtoucr'.
54213         * modules/unistr/u8-mbtoucr-tests: New file.
54214         * tests/unistr/test-u8-mbtoucr.c: New file.
54216         Tests for module 'unistr/u32-mbtouc'.
54217         * modules/unistr/u32-mbtouc-tests: New file.
54218         * tests/unistr/test-u32-mbtouc.c: New file.
54220         Tests for module 'unistr/u16-mbtouc'.
54221         * modules/unistr/u16-mbtouc-tests: New file.
54222         * tests/unistr/test-u16-mbtouc.c: New file.
54224         Tests for module 'unistr/u8-mbtouc'.
54225         * modules/unistr/u8-mbtouc-tests: New file.
54226         * tests/unistr/test-u8-mbtouc.c: New file.
54228         Tests for module 'unistr/u32-mbtouc-unsafe'.
54229         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
54230         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
54231         * tests/unistr/test-u32-mbtouc.h: New file.
54233         Tests for module 'unistr/u16-mbtouc-unsafe'.
54234         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
54235         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
54236         * tests/unistr/test-u16-mbtouc.h: New file.
54238         Tests for module 'unistr/u8-mbtouc-unsafe'.
54239         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
54240         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
54241         * tests/unistr/test-u8-mbtouc.h: New file.
54243         Tests for module 'unistr/u32-mblen'.
54244         * modules/unistr/u32-mblen-tests: New file.
54245         * tests/unistr/test-u32-mblen.c: New file.
54247         Tests for module 'unistr/u16-mblen'.
54248         * modules/unistr/u16-mblen-tests: New file.
54249         * tests/unistr/test-u16-mblen.c: New file.
54251         Tests for module 'unistr/u8-mblen'.
54252         * modules/unistr/u8-mblen-tests: New file.
54253         * tests/unistr/test-u8-mblen.c: New file.
54255         Tests for module 'unistr/u32-to-u16'.
54256         * modules/unistr/u32-to-u16-tests: New file.
54257         * tests/unistr/test-u32-to-u16.c: New file.
54259         Tests for module 'unistr/u32-to-u8'.
54260         * modules/unistr/u32-to-u8-tests: New file.
54261         * tests/unistr/test-u32-to-u8.c: New file.
54263         Tests for module 'unistr/u16-to-u32'.
54264         * modules/unistr/u16-to-u32-tests: New file.
54265         * tests/unistr/test-u16-to-u32.c: New file.
54267         Tests for module 'unistr/u16-to-u8'.
54268         * modules/unistr/u16-to-u8-tests: New file.
54269         * tests/unistr/test-u16-to-u8.c: New file.
54271         Tests for module 'unistr/u8-to-u32'.
54272         * modules/unistr/u8-to-u32-tests: New file.
54273         * tests/unistr/test-u8-to-u32.c: New file.
54275         Tests for module 'unistr/u8-to-u16'.
54276         * modules/unistr/u8-to-u16-tests: New file.
54277         * tests/unistr/test-u8-to-u16.c: New file.
54279         Tests for module 'unistr/u32-check'.
54280         * modules/unistr/u32-check-tests: New file.
54281         * tests/unistr/test-u32-check.c: New file.
54283         Tests for module 'unistr/u16-check'.
54284         * modules/unistr/u16-check-tests: New file.
54285         * tests/unistr/test-u16-check.c: New file.
54287         Tests for module 'unistr/u8-check'.
54288         * modules/unistr/u8-check-tests: New file.
54289         * tests/unistr/test-u8-check.c: New file.
54291         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
54292         (category_equals): New function.
54293         (main): Add more tests.
54294         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
54296         * tests/unictype/test-bidi_byname.c (main): Add more tests.
54298 2010-01-10  Bruno Haible  <bruno@clisp.org>
54300         unistr/u*-strcoll: Try harder to distinguish different strings.
54301         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
54302         compare s1 and s2 to see if they are different.
54304 2010-01-10  Bruno Haible  <bruno@clisp.org>
54306         unistr/u*-stpncpy: Fix the return value.
54307         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
54308         description of the return value consistent with stpncpy in glibc.
54309         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
54310         written non-NUL unit.
54312 2010-01-10  Bruno Haible  <bruno@clisp.org>
54314         unistr/u*-next: Add missing dependencies.
54315         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
54316         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
54317         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
54319 2010-01-10  Bruno Haible  <bruno@clisp.org>
54321         unistr/u8-mbsnlen: Fix return value for incomplete character.
54322         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
54323         u8_mblen.
54324         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
54325         Remove unistr/u8-mblen.
54326         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
54327         u16_mblen.
54328         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
54329         Remove unistr/u16-mblen.
54331 2010-01-10  Bruno Haible  <bruno@clisp.org>
54333         wchar: Fix compilation error when <wchar.h> is used from coreutils.
54334         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
54335         Reported by Brian Gough <bjg@gnu.org> and
54336         Chris Clayton <chris2553@googlemail.com> via
54337         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
54339 2010-01-09  Bruno Haible  <bruno@clisp.org>
54341         unistr/u16-to-u32: Reject invalid input.
54342         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
54343         u16_mbtouc.
54344         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
54345         Remove unistr/u16-mbtouc.
54347         unistr/u16-to-u8: Reject invalid input.
54348         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
54349         u16_mbtouc.
54350         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
54351         Remove unistr/u16-mbtouc.
54353         unistr/u8-to-u32: Reject invalid input.
54354         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
54355         u8_mbtouc.
54356         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
54357         Remove unistr/u8-mbtouc.
54359         unistr/u8-to-u16: Reject invalid input.
54360         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
54361         u8_mbtouc.
54362         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
54363         Remove unistr/u8-mbtouc.
54365 2010-01-09  Bruno Haible  <bruno@clisp.org>
54367         Tests for module 'getlogin'.
54368         * modules/getlogin-tests: New file.
54369         * tests/test-getlogin.c: New file.
54371         New module 'getlogin'.
54372         * lib/unistd.in.h (getlogin): New declaration.
54373         * lib/getlogin.c: New file.
54374         * m4/getlogin.m4: New file.
54375         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
54376         HAVE_GETLOGIN.
54377         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
54378         HAVE_GETLOGIN.
54379         * modules/getlogin: New file.
54380         * doc/posix-functions/getlogin.texi: Mention the new module.
54381         Reported by John W. Eaton <jwe@gnu.org>.
54383 2010-01-09  Bruno Haible  <bruno@clisp.org>
54385         getlogin_r: Support for native Windows.
54386         * lib/getlogin_r.c: Include <windows.h>
54387         (getlogin_r): Implement for native Windows.
54388         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
54389         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
54390         via John W. Eaton <jwe@gnu.org>.
54392 2010-01-09  Bruno Haible  <bruno@clisp.org>
54394         getlogin_r: Small fixes.
54395         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
54396         succeeds.
54397         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
54398         before testing whether getlogin_r is declared. No need to set
54399         HAVE_DECL_GETLOGIN_R to 1.
54400         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
54402 2010-01-09  Bruno Haible  <bruno@clisp.org>
54404         * lib/unistd.in.h (getlogin_r): Add comment.
54406 2010-01-09  Bruno Haible  <bruno@clisp.org>
54408         Tests for module 'getlogin_r'.
54409         * modules/getlogin_r-tests: New file.
54410         * tests/test-getlogin_r.c: New file.
54412 2010-01-09  Jim Meyering  <meyering@redhat.com>
54414         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
54415         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
54416         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
54418 2010-01-08  Simon Josefsson  <simon@josefsson.org>
54420         * lib/dup2.c (rpl_dup2): Improve comment.
54422 2010-01-08  Eric Blake  <ebb9@byu.net>
54424         maint.mk: allow packages to add makefile @@ exceptions
54425         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
54426         (sc_makefile_check): Rename...
54427         (sc_makefile_at_at_check): ...to this, and use hook.
54429         dup2: work around mingw bug
54430         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
54431         Reported by Simon Josefsson.
54433 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
54435         glob: Fix C++ compilation.
54436         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
54437         C++.
54439 2010-01-07  Bruno Haible  <bruno@clisp.org>
54441         Fix indentation of wctype.in.h, broken since 2007-01-06.
54442         * lib/wctype.in.h: Fix indentation of preprocessor directives.
54444 2010-01-07  Bruno Haible  <bruno@clisp.org>
54446         mbslen: Avoid collision with system function.
54447         * lib/string.in.h [MirBSD]: Include <wchar.h>.
54448         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
54449         * m4/mbslen.m4: New file.
54450         * modules/mbslen (Files): Add it.
54451         (configure.ac): Invoke gl_MBSLEN.
54452         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
54453         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
54454         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
54455         via Ian Beckwith <ianb@erislabs.net>.
54457 2010-01-07  Bruno Haible  <bruno@clisp.org>
54459         dirent: Document the last fix.
54460         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
54462 2010-01-07  Bruno Haible  <bruno@clisp.org>
54464         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
54465         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
54466         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
54467         va_list are defined.
54468         * doc/posix-headers/stdio.texi: Document the bug of missing types.
54469         Reported by Eric Blake.
54471 2010-01-07  Bruno Haible  <bruno@clisp.org>
54473         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
54474         * modules/xlist (Depends-on): Add 'list',
54475         * modules/xoset (Depends-on): Add 'oset'.
54476         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54478 2010-01-07  Bruno Haible  <bruno@clisp.org>
54480         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
54481         * doc/posix-functions/strncasecmp.texi: Likewise.
54483 2010-01-07  Bruno Haible  <bruno@clisp.org>
54485         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
54487 2010-01-07  John W. Eaton  <jwe@octave.org>
54489         wctype: allow C++ use
54490         * lib/wctype.in.h: Add extern "C" block for C++.
54492 2010-01-06  Eric Blake  <ebb9@byu.net>
54494         maint.mk: detect incorrect GFDL usage
54495         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
54497 2010-01-06  Jim Meyering  <meyering@redhat.com>
54498         and Eric Blake  <ebb9@byu.net>
54500         maint.mk: ignore multi-line copyright in NEWS
54501         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
54503 2010-01-06  Eric Blake  <ebb9@byu.net>
54505         select: add missing dependency
54506         * modules/select-tests (Depends-on): Move sockets dependency...
54507         * modules/select (Depends-on): ...here.
54508         Reported by Ian Beckwith.
54510         doc: regenerate INSTALL
54511         * doc/INSTALL: Reflect recent autoconf update.
54512         * doc/INSTALL.ISO: Likewise.
54513         * doc/INSTALL.UTF-8: Likewise.
54515         pread: fix compilation on glibc
54516         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
54517         Reported by Ralf Wildenhues.
54519         dirent: fix test failure
54520         * lib/dirent.in.h (includes): Guarantee ino_t.
54521         Reported by Ralf Wildenhues.
54523 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
54525         linkat, renameat: avoid bad free
54526         * lib/at-func2.c (at_func2): Fix typo.
54527         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
54529 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54531         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
54532         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
54533         to avoid failure of symlink test later.
54535 2010-01-06  Eric Blake  <ebb9@byu.net>
54537         stdio, unistd: guarantee ssize_t
54538         * lib/unistd.in.h (includes): Ensure that types required by POSIX
54539         2008 are exposed when needed.
54540         * lib/stdio.in.h (includes): Likewise.
54541         Reported by Ralf Wildenhues.
54543 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
54545         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
54546         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
54547         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
54549 2010-01-06  Jim Meyering  <meyering@redhat.com>
54551         readtokens: this module *does* require xalloc.h
54552         It uses only functions that were omitted by the old syntax-check rule.
54553         * lib/readtokens.c: Include "xalloc.h" once again.
54554         * modules/readtokens (Depends-on): Add xalloc.
54555         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
54557 2010-01-05  Eric Blake  <ebb9@byu.net>
54559         maint: support 'make announcement' from a VPATH build
54560         * top/maint.mk (announcement): Look for correct NEWS file.
54562 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
54564         utimens (fdutimens): ignore a negative FD, per contract
54565         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
54566         when we have a valid file descriptor.  Otherwise, using a brand
54567         new glibc (with just-patched futimens that now fails with EBADF)
54568         would cause this function to fail with ENOSYS.
54569         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
54570         See also http://bugzilla.redhat.com/552320.
54572 2010-01-05  Eric Blake  <ebb9@byu.net>
54574         strcase: document what it provides
54575         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
54576         gnulib module.
54577         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
54578         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
54580 2010-01-05  Jim Meyering  <meyering@redhat.com>
54582         maint: remove useless inclusions of "xalloc.h"
54583         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
54584         * lib/readtokens.c: Likewise.
54585         * lib/same.c: Likewise.
54586         * modules/getloadavg (Depends-on): Remove xalloc.
54587         * modules/readtokens: Likewise.
54588         * modules/same: Likewise.
54590         maint.mk: include 4 more function names in alloca.h-checking regexp
54591         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
54592         regexp.  Before, we would give a false-positive (saying alloca.h
54593         is included unnecessarily) when the only uses involved omitted symbols.
54595         xalloc.h: use consistent formatting
54596         * lib/xalloc.h: Move declarations to start in the first column.
54598 2010-01-05  Eric Blake  <ebb9@byu.net>
54600         mkdir: avoid xalloc
54601         * lib/mkdir.c (includes): Drop unused header.
54602         Reported by John W. Eaton.
54604 2010-01-04  Jim Meyering  <meyering@redhat.com>
54606         nl_langinfo: avoid configure-time syntax error
54607         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
54608         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
54609         the empty string.  Don't let that provoke a shell syntax error.
54611         regcomp, regexec, fnmatch: avoid array bounds read error
54612         * lib/regcomp.c (build_equiv_class): From glibc:
54613         Use only the low 24 bits of a findidx return value as an index
54614         into the weights array.  Patch by Ulrich Drepper:
54615         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
54616         * lib/regexec.c (check_node_accept_bytes): Likewise.
54617         * lib/fnmatch_loop.c (FCT): Likewise.
54619         regcomp: skip collseq lookup when there are no rules
54620         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
54621         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
54623         regcomp: recognize ill-formed { } expressions
54624         * lib/regcomp.c (parse_dup_op): From glibc:
54625         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
54627         regcomp: fix typo in comment
54628         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
54629         s/satisfy/satisfies/.
54631         regcomp: sync from glibc: remove dead store
54632         * lib/regcomp.c (duplicate_node_closure): Remove useless
54633         search_duplicated_node call and dead store.
54635         regcomp: sync from glibc; always use nl_langinfo
54636         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
54637         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
54638         * modules/regex (Depends-on): Add nl_langinfo.
54640 2010-01-04  Eric Blake  <ebb9@byu.net>
54642         fdopendir: fix configure test
54643         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
54645 2010-01-01  Bruno Haible  <bruno@clisp.org>
54647         wchar: Remove unused configure check.
54648         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
54650 2010-01-01  Eric Blake  <ebb9@byu.net>
54652         headers: make check of system header explicit
54653         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
54654         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
54655         ourselves.
54656         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
54657         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54658         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
54659         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
54660         internals.
54661         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
54662         missing.
54663         Suggested by Bruno Haible.
54665 2010-01-01  Jim Meyering  <meyering@redhat.com>
54667         ChangeLog: tweak to eliminate unnecessary copyright line
54668         * ChangeLog: Remove a copyright line that was mistakenly updated
54669         by today's update-copyright run.  Reported by Eric Blake.
54671         test-update-copyright: don't let envvar setting cause test failure
54672         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
54674 2010-01-01  Bruno Haible  <bruno@clisp.org>
54676         localename: Avoid gcc warning.
54677         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
54678         function if it is not used.
54680 2010-01-01  Jim Meyering  <meyering@redhat.com>
54682         update nearly all FSF copyright year lists to include 2010
54683         Use the same procedure as for 2009, outlined in
54684         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
54686         version-etc: set COPYRIGHT_YEAR to 2010
54687         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
54689 2009-12-31  Eric Blake  <ebb9@byu.net>
54691         doc: correct availability of cygwin 1.5.x getopt
54692         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
54693         variables.
54694         * doc/posix-functions/opterr.texi (opterr): Likewise.
54695         * doc/posix-functions/optind.texi (optind): Likewise.
54696         * doc/posix-functions/optopt.texi (optopt): Likewise.
54697         * doc/posix-functions/tzname.texi (tzname): Likewise.
54699         openat: update maintainer
54700         * modules/openat (Maintainer): Add myself.
54702         utimens: avoid shadowing warning
54703         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
54704         buffers into one, to avoid shadowing, as well as avoiding a
54705         redundant stat.
54706         Reported by Jim Meyering.
54708         test-dup2: avoid compiler warning
54709         * tests/test-dup2.c (is_inheritable): Only define if used.
54711 2010-01-01  Bruno Haible  <bruno@clisp.org>
54713         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
54714         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
54715         defined, use wctomb instead of wcrtomb.
54717 2010-01-01  Bruno Haible  <bruno@clisp.org>
54719         iconv: Reject native Solaris iconv.
54720         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
54721         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
54723 2009-12-31  Bruno Haible  <bruno@clisp.org>
54725         * tests/test-signal.c (main): Remove test of 'SIG'.
54727 2009-12-31  Bruno Haible  <bruno@clisp.org>
54729         spawn: Fix incomplete fix.
54730         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
54731         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
54732         warnings for GNULIB_POSIXCHECK again.
54733         Reported by Eric Blake.
54735 2009-12-31  Bruno Haible  <bruno@clisp.org>
54737         Avoid namespace pollution on glibc systems.
54738         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
54739         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
54740         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
54741         glibc systems.
54743 2009-12-31  Bruno Haible  <bruno@clisp.org>
54745         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
54746         (gl_REPLACE_WCHAR_H): Turn into a no-op.
54747         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
54748         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
54749         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
54750         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
54751         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
54753 2009-12-31  Bruno Haible  <bruno@clisp.org>
54755         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
54756         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
54757         afterwards.
54759 2009-12-31  Bruno Haible  <bruno@clisp.org>
54761         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
54762         SYS_UTSNAME_H.
54764 2009-12-31  Bruno Haible  <bruno@clisp.org>
54766         spawn: Fix misapplied patch.
54767         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
54768         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
54769         warnings for GNULIB_POSIXCHECK.
54771 2009-12-31  Bruno Haible  <bruno@clisp.org>
54773         times: Update after sys_times changed.
54774         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
54775         * modules/times (Files): Add it.
54776         (configure.ac): Invoke gl_FUNC_TIMES.
54778 2009-12-31  Bruno Haible  <bruno@clisp.org>
54780         Use AC_C_INLINE where necessary.
54781         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
54782         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54783         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
54784         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
54785         * m4/mbfile.m4 (gl_MBFILE): Likewise.
54786         * m4/mbiter.m4 (gl_MBITER): Likewise.
54787         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
54788         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
54789         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
54790         * modules/u64 (configure.ac): Likewise.
54792 2009-12-31  Bruno Haible  <bruno@clisp.org>
54794         Use AC_C_INLINE instead of module 'inline' where possible.
54795         * modules/inline (Description): Clarify purpose.
54796         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
54797         * modules/count-one-bits (Depends-on): Remove inline.
54798         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
54799         * modules/openat (Depends-on): Remove inline.
54800         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
54801         instead of depending on module 'inline'.
54802         * modules/filevercmp (Depends-on, configure.ac): Likewise.
54803         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
54804         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
54805         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
54806         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
54807         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
54808         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
54809         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
54810         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
54811         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
54812         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
54813         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
54814         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
54815         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
54816         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
54817         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
54818         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
54819         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
54820         Likewise.
54821         * modules/unictype/property-ascii-hex-digit (Depends-on,
54822         configure.ac): Likewise.
54823         * modules/unictype/property-bidi-arabic-digit (Depends-on,
54824         configure.ac): Likewise.
54825         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
54826         configure.ac): Likewise.
54827         * modules/unictype/property-bidi-block-separator (Depends-on,
54828         configure.ac): Likewise.
54829         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
54830         configure.ac): Likewise.
54831         * modules/unictype/property-bidi-common-separator (Depends-on,
54832         configure.ac): Likewise.
54833         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
54834         Likewise.
54835         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
54836         configure.ac): Likewise.
54837         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
54838         configure.ac): Likewise.
54839         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
54840         configure.ac): Likewise.
54841         * modules/unictype/property-bidi-european-digit (Depends-on,
54842         configure.ac): Likewise.
54843         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
54844         configure.ac): Likewise.
54845         * modules/unictype/property-bidi-left-to-right (Depends-on,
54846         configure.ac): Likewise.
54847         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
54848         configure.ac): Likewise.
54849         * modules/unictype/property-bidi-other-neutral (Depends-on,
54850         configure.ac): Likewise.
54851         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
54852         Likewise.
54853         * modules/unictype/property-bidi-segment-separator (Depends-on,
54854         configure.ac): Likewise.
54855         * modules/unictype/property-bidi-whitespace (Depends-on,
54856         configure.ac): Likewise.
54857         * modules/unictype/property-combining (Depends-on, configure.ac):
54858         Likewise.
54859         * modules/unictype/property-composite (Depends-on, configure.ac):
54860         Likewise.
54861         * modules/unictype/property-currency-symbol (Depends-on,
54862         configure.ac): Likewise.
54863         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
54864         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
54865         Likewise.
54866         * modules/unictype/property-default-ignorable-code-point (Depends-on,
54867         configure.ac): Likewise.
54868         * modules/unictype/property-deprecated (Depends-on, configure.ac):
54869         Likewise.
54870         * modules/unictype/property-diacritic (Depends-on, configure.ac):
54871         Likewise.
54872         * modules/unictype/property-extender (Depends-on, configure.ac):
54873         Likewise.
54874         * modules/unictype/property-format-control (Depends-on, configure.ac):
54875         Likewise.
54876         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
54877         Likewise.
54878         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
54879         Likewise.
54880         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
54881         Likewise.
54882         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
54883         Likewise.
54884         * modules/unictype/property-hyphen (Depends-on, configure.ac):
54885         Likewise.
54886         * modules/unictype/property-id-continue (Depends-on, configure.ac):
54887         Likewise.
54888         * modules/unictype/property-id-start (Depends-on, configure.ac):
54889         Likewise.
54890         * modules/unictype/property-ideographic (Depends-on, configure.ac):
54891         Likewise.
54892         * modules/unictype/property-ids-binary-operator (Depends-on,
54893         configure.ac): Likewise.
54894         * modules/unictype/property-ids-trinary-operator (Depends-on,
54895         configure.ac): Likewise.
54896         * modules/unictype/property-ignorable-control (Depends-on,
54897         configure.ac): Likewise.
54898         * modules/unictype/property-iso-control (Depends-on, configure.ac):
54899         Likewise.
54900         * modules/unictype/property-join-control (Depends-on, configure.ac):
54901         Likewise.
54902         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
54903         Likewise.
54904         * modules/unictype/property-line-separator (Depends-on, configure.ac):
54905         Likewise.
54906         * modules/unictype/property-logical-order-exception (Depends-on,
54907         configure.ac): Likewise.
54908         * modules/unictype/property-lowercase (Depends-on, configure.ac):
54909         Likewise.
54910         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
54911         * modules/unictype/property-non-break (Depends-on, configure.ac):
54912         Likewise.
54913         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
54914         Likewise.
54915         * modules/unictype/property-numeric (Depends-on, configure.ac):
54916         Likewise.
54917         * modules/unictype/property-other-alphabetic (Depends-on,
54918         configure.ac): Likewise.
54919         * modules/unictype/property-other-default-ignorable-code-point
54920         (Depends-on, configure.ac): Likewise.
54921         * modules/unictype/property-other-grapheme-extend (Depends-on,
54922         configure.ac): Likewise.
54923         * modules/unictype/property-other-id-continue (Depends-on,
54924         configure.ac): Likewise.
54925         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
54926         Likewise.
54927         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
54928         Likewise.
54929         * modules/unictype/property-other-math (Depends-on, configure.ac):
54930         Likewise.
54931         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
54932         Likewise.
54933         * modules/unictype/property-paired-punctuation (Depends-on,
54934         configure.ac): Likewise.
54935         * modules/unictype/property-paragraph-separator (Depends-on,
54936         configure.ac): Likewise.
54937         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
54938         Likewise.
54939         * modules/unictype/property-pattern-white-space (Depends-on,
54940         configure.ac): Likewise.
54941         * modules/unictype/property-private-use (Depends-on, configure.ac):
54942         Likewise.
54943         * modules/unictype/property-punctuation (Depends-on, configure.ac):
54944         Likewise.
54945         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
54946         Likewise.
54947         * modules/unictype/property-radical (Depends-on, configure.ac):
54948         Likewise.
54949         * modules/unictype/property-sentence-terminal (Depends-on,
54950         configure.ac): Likewise.
54951         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
54952         Likewise.
54953         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
54954         * modules/unictype/property-terminal-punctuation (Depends-on,
54955         configure.ac): Likewise.
54956         * modules/unictype/property-titlecase (Depends-on, configure.ac):
54957         Likewise.
54958         * modules/unictype/property-unassigned-code-value (Depends-on,
54959         configure.ac): Likewise.
54960         * modules/unictype/property-unified-ideograph (Depends-on,
54961         configure.ac): Likewise.
54962         * modules/unictype/property-uppercase (Depends-on, configure.ac):
54963         Likewise.
54964         * modules/unictype/property-variation-selector (Depends-on,
54965         configure.ac): Likewise.
54966         * modules/unictype/property-white-space (Depends-on, configure.ac):
54967         Likewise.
54968         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
54969         Likewise.
54970         * modules/unictype/property-xid-start (Depends-on, configure.ac):
54971         Likewise.
54972         * modules/unictype/property-zero-width (Depends-on, configure.ac):
54973         Likewise.
54974         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
54975         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
54976         Likewise.
54978 2009-12-31  Bruno Haible  <bruno@clisp.org>
54980         Remove unnecessary AC_C_INLINE invocation.
54981         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
54982         since 2009-08-21.
54984 2009-12-31  Jim Meyering  <meyering@redhat.com>
54986         maint.mk: don't require explicit gpg_key_ID in cfg.mk
54987         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
54988         With this change, we can all remove the gpg_key_ID = ... definition
54989         from our respective cfg.mk files.
54991         maint.mk: create announcement template in ~/, not in /tmp
54992         * top/maint.mk (emit_upload_commands): Adjust.
54993         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
54994         Remove temporary file, .ci-msg.
54996 2009-12-31  Eric Blake  <ebb9@byu.net>
54998         link-warning: always build headers with link warnings
54999         * modules/arpa_inet (Makefile.am): Always build replacement
55000         header.
55001         * modules/ctype (Makefile.am): Likewise.
55002         * modules/dirent (Makefile.am): Likewise.
55003         * modules/inttypes (Makefile.am): Likewise.
55004         * modules/langinfo (Makefile.am): Likewise.
55005         * modules/locale (Makefile.am): Likewise.
55006         * modules/spawn (Makefile.am): Likewise.
55007         * modules/sys_file (Makefile.am): Likewise.
55008         * modules/sys_ioctl (Makefile.am): Likewise.
55009         * modules/sys_select (Makefile.am): Likewise.
55010         * modules/sys_socket (Makefile.am): Likewise.
55011         * modules/sys_times (Makefile.am): Likewise.
55012         * modules/sys_utsname (Makefile.am): Likewise.
55013         * modules/sys_wait (Makefile.am): Likewise.
55014         * modules/wchar (Makefile.am): Likewise.
55015         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
55016         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
55017         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
55018         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
55019         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
55020         Likewise.
55021         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
55022         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
55023         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
55024         Likewise.
55025         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
55026         Likewise.
55027         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
55028         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
55029         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
55030         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55031         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
55032         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
55033         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
55034         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
55035         (gl_WCHAR_H_DEFAULTS): Likewise.
55037 2009-12-31  Eric Blake  <ebb9@byu.net>
55039         signal, spawn: use link warnings
55040         * lib/signal.in.h (sigset_t): Make unconditional.
55041         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
55042         (sigpending, sigprocmask, sigaction): Add link warnings.
55043         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
55044         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
55045         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
55046         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
55047         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
55048         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
55049         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
55050         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
55051         (posix_spawn_file_actions_destroy)
55052         (posix_spawn_file_actions_addopen)
55053         (posix_spawn_file_actions_addclose)
55054         (posix_spawn_file_actions_adddup2): Likewise.
55055         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
55056         * tests/test-signal.c (main): Enhance test.
55058         spawn: improve wrapper support
55059         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
55060         (gl_SPAWN_H_DEFAULTS): New defaults.
55061         * modules/spawn (Makefile.am): Substitute them.
55062         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
55063         Only declare if missing or broken.
55065         sys_times, sys_utsname: use include_next
55066         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
55067         header.
55068         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
55069         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
55070         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
55071         * modules/sys_times (Depends-on): Add include_next.
55072         (Makefile.am): Substitute additional values.
55073         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
55074         * lib/sys_times.in.h (includes): Include native header, if
55075         available.
55076         * lib/sys_utsname.in.h (includes): Likewise.
55077         * tests/test-sys_times.c (main): Enhance test.
55079         fdutimensat: revert prior patch
55080         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
55081         utimens.h.
55082         Reported by Bruno Haible.
55084 2009-12-30  Eric Blake  <ebb9@byu.net>
55086         sys_wait: drop link-warning dependency
55087         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
55088         link-warning efforts.
55089         * lib/sys_wait.in.h: Likewise.
55091         fdutimensat: remove bogus dependency
55092         * modules/fdutimensat (Depends-on): Drop inline.
55094         unistd: fix typo
55095         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
55097 2009-12-30  Bruno Haible  <bruno@clisp.org>
55099         Fix compilation error with Solaris cc.
55100         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
55101         * lib/unicase/u16-is-invariant.c: Likewise.
55102         * lib/unicase/u32-is-invariant.c: Likewise.
55103         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
55105 2009-12-30  Bruno Haible  <bruno@clisp.org>
55107         Fix test crash.
55108         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
55109         locales.
55110         Reported by Simon Josefsson <simon@josefsson.org>.
55112 2009-12-30  Bruno Haible  <bruno@clisp.org>
55114         Fix compilation error on most platforms.
55115         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
55116         Reported by Simon Josefsson <simon@josefsson.org>
55117         and Nelson H. F. Beebe <beebe@math.utah.edu>.
55119 2009-12-30  Eric Blake  <ebb9@byu.net>
55121         futimens, utimensat: work around ntfs-3g bug
55122         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
55123         a ctime bug is present, and expand workaround to cover ntfs-3g.
55124         * lib/utimens.c (fdutimens, lutimens): Likewise.
55125         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
55126         (validate_timespec): Adjust return value.
55127         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
55128         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
55129         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
55131 2009-12-29  Eric Blake  <ebb9@byu.net>
55133         link-warning: make usage consistent
55134         * modules/ctype (Depends-on): Add link-warning.
55135         (Makefile.am): Update rules accordingly.
55136         * modules/langinfo (Depends-on, Makefile.am): Likewise.
55137         * modules/locale (Depends-on, Makefile.am): Likewise.
55138         * modules/sys_file (Makefile.am): Likewise.
55139         * modules/getopt-posix (Makefile.am): Delete unused link warning
55140         efforts.
55141         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
55142         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
55143         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
55144         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
55146         stdio: remove unused variables
55147         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
55148         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
55149         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
55151         tests: test more substitute headers
55152         * modules/ctype-tests: New file.
55153         * modules/dirent-tests: Likewise.
55154         * modules/spawn-tests: Likewise.
55155         * modules/sys_file-tests: Likewise.
55156         * modules/sys_ioctl-tests: Likewise.
55157         * modules/sys_wait-tests: Likewise.
55158         * tests/test-ctype.c: Likewise.
55159         * tests/test-dirent.c: Likewise.
55160         * tests/test-spawn.c: Likewise.
55161         * tests/test-sys_file.c: Likewise.
55162         * tests/test-sys_ioctl.c: Likewise.
55163         * tests/test-sys_wait.c: Likewise.
55164         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
55165         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
55166         whether or not flock is in use.
55168         tests: remove License section from module
55169         * modules/arpa_inet-tests: Remove unneeded section.
55170         * modules/byteswap-tests: Likewise.
55171         * modules/ceilf-tests: Likewise.
55172         * modules/ceill-tests: Likewise.
55173         * modules/crypto/des-tests: Likewise.
55174         * modules/crypto/gc-arcfour-tests: Likewise.
55175         * modules/crypto/gc-arctwo-tests: Likewise.
55176         * modules/crypto/gc-des-tests: Likewise.
55177         * modules/crypto/gc-hmac-md5-tests: Likewise.
55178         * modules/crypto/gc-hmac-sha1-tests: Likewise.
55179         * modules/crypto/gc-md2-tests: Likewise.
55180         * modules/crypto/gc-md4-tests: Likewise.
55181         * modules/crypto/gc-md5-tests: Likewise.
55182         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
55183         * modules/crypto/gc-rijndael-tests: Likewise.
55184         * modules/crypto/gc-sha1-tests: Likewise.
55185         * modules/crypto/gc-tests: Likewise.
55186         * modules/crypto/md2-tests: Likewise.
55187         * modules/crypto/md4-tests: Likewise.
55188         * modules/fcntl-h-tests: Likewise.
55189         * modules/floorf-tests: Likewise.
55190         * modules/floorl-tests: Likewise.
55191         * modules/frexp-nolibm-tests: Likewise.
55192         * modules/frexp-tests: Likewise.
55193         * modules/frexpl-nolibm-tests: Likewise.
55194         * modules/frexpl-tests: Likewise.
55195         * modules/getaddrinfo-tests: Likewise.
55196         * modules/inttypes-tests: Likewise.
55197         * modules/isfinite-tests: Likewise.
55198         * modules/isinf-tests: Likewise.
55199         * modules/ldexpl-tests: Likewise.
55200         * modules/locale-tests: Likewise.
55201         * modules/math-tests: Likewise.
55202         * modules/netdb-tests: Likewise.
55203         * modules/netinet_in-tests: Likewise.
55204         * modules/printf-frexp-tests: Likewise.
55205         * modules/printf-frexpl-tests: Likewise.
55206         * modules/priv-set-tests: Likewise.
55207         * modules/random_r-tests: Likewise.
55208         * modules/round-tests: Likewise.
55209         * modules/roundf-tests: Likewise.
55210         * modules/roundl-tests: Likewise.
55211         * modules/search-tests: Likewise.
55212         * modules/select-tests: Likewise.
55213         * modules/signal-tests: Likewise.
55214         * modules/stdbool-tests: Likewise.
55215         * modules/stddef-tests: Likewise.
55216         * modules/stdint-tests: Likewise.
55217         * modules/stdio-tests: Likewise.
55218         * modules/stdlib-tests: Likewise.
55219         * modules/string-tests: Likewise.
55220         * modules/strings-tests: Likewise.
55221         * modules/sys_select-tests: Likewise.
55222         * modules/sys_socket-tests: Likewise.
55223         * modules/sys_stat-tests: Likewise.
55224         * modules/sys_time-tests: Likewise.
55225         * modules/sys_utsname-tests: Likewise.
55226         * modules/sysexits-tests: Likewise.
55227         * modules/time-tests: Likewise.
55228         * modules/trunc-tests: Likewise.
55229         * modules/truncf-tests: Likewise.
55230         * modules/truncl-tests: Likewise.
55231         * modules/tsearch-tests: Likewise.
55232         * modules/unistd-tests: Likewise.
55233         * modules/wchar-tests: Likewise.
55234         * modules/wctype-tests: Likewise.
55236         tests: fix license on several tests
55237         * tests/test-des.c: Update to GPLv3+.
55238         * tests/test-flock.c: Likewise.
55239         * tests/test-fsync.c: Likewise.
55240         * tests/test-futimens.h: Likewise.
55241         * tests/test-gc-arcfour.c: Likewise.
55242         * tests/test-gc-arctwo.c: Likewise.
55243         * tests/test-gc-des.c: Likewise.
55244         * tests/test-gc-hmac-md5.c: Likewise.
55245         * tests/test-gc-hmac-sha1.c: Likewise.
55246         * tests/test-gc-md2.c: Likewise.
55247         * tests/test-gc-md4.c: Likewise.
55248         * tests/test-gc-md5.c: Likewise.
55249         * tests/test-gc-pbkdf2-sha1.c: Likewise.
55250         * tests/test-gc-rijndael.c: Likewise.
55251         * tests/test-gc-sha1.c: Likewise.
55252         * tests/test-gc.c: Likewise.
55253         * tests/test-getcwd.c: Likewise.
55254         * tests/test-link.c: Likewise.
55255         * tests/test-link.h: Likewise.
55256         * tests/test-lutimens.h: Likewise.
55257         * tests/test-md2.c: Likewise.
55258         * tests/test-md4.c: Likewise.
55259         * tests/test-mkdir.h: Likewise.
55260         * tests/test-rename.c: Likewise.
55261         * tests/test-rename.h: Likewise.
55262         * tests/test-safe-alloc.c: Likewise.
55263         * tests/test-utimens-common.h: Likewise.
55264         * tests/test-utimens.h: Likewise.
55266         maint: sync license texts
55267         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
55268         * doc/gpl-3.0.texi: Revert copyright year update.
55269         * doc/lgpl-3.0.texi: Likewise.
55271 2009-12-29  Jim Meyering  <meyering@redhat.com>
55273         update nearly all FSF copyright year lists to include 2009
55274         The files named by the following are exempted:
55275             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
55276               test -f "$dst" && { echo "$dst"; continue; }
55277               test -d "$dst" || continue
55278               echo "$dst"/$(basename "$src")
55279             done > exempt
55280             git ls-files tests/unictype >> exempt
55281         In the remaining files, convert to all-interval notation if
55282         - there is already at least one year interval like 2000-2003
55283         - the file is maintained by me
55284         - the file is in lib/uni*/, where that style already prevails
55285         Otherwise, use update-copyright's default.
55287 2009-12-29  Simon Josefsson  <simon@josefsson.org>
55288         and Eric Blake  <ebb9@byu.net>
55290         tests: don't require debug system() to pass
55291         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
55292         * tests/test-rmdir.h (test_rmdir_func): Likewise.
55293         * tests/test-unlink.h (test_unlink_func): Likewise.
55294         * tests/test-fstatat.c (main): ...into callers.
55295         * tests/test-lstat.c (main): Likewise.
55296         * tests/test-rmdir.c (main): Likewise.
55297         * tests/test-unlink.c (main): Likewise.
55298         * tests/test-unlinkat.c (main): Likewise.
55299         * tests/test-areadlink-with-size.c (main): Don't require a
55300         debug-only system call to pass, aiding cross-testing to mingw.
55301         * tests/test-areadlink.c (main): Likewise.
55302         * tests/test-areadlinkat-with-size.c (main): Likewise.
55303         * tests/test-areadlinkat.c (main): Likewise.
55304         * tests/test-canonicalize-lgpl.c (main): Likewise.
55305         * tests/test-canonicalize.c (main): Likewise.
55306         * tests/test-chown.c (main): Likewise.
55307         * tests/test-fchownat.c (main): Likewise.
55308         * tests/test-lchown.c (main): Likewise.
55309         * tests/test-fdutimensat.c (main): Likewise.
55310         * tests/test-futimens.c (main): Likewise.
55311         * tests/test-link.c (main): Likewise.
55312         * tests/test-linkat.c (main): Likewise.
55313         * tests/test-mkdir.c (main): Likewise.
55314         * tests/test-mkdirat.c (main): Likewise.
55315         * tests/test-mkfifo.c (main): Likewise.
55316         * tests/test-mkfifoat.c (main): Likewise.
55317         * tests/test-mknod.c (main): Likewise.
55318         * tests/test-readlink.c (main): Likewise.
55319         * tests/test-remove.c (main): Likewise.
55320         * tests/test-rename.c (main): Likewise.
55321         * tests/test-renameat.c (main): Likewise.
55322         * tests/test-symlink.c (main): Likewise.
55323         * tests/test-symlinkat.c (main): Likewise.
55324         * tests/test-utimens.c (main): Likewise.
55325         * tests/test-utimensat.c (main): Likewise.
55327 2009-12-29  Simon Josefsson  <simon@josefsson.org>
55329         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
55330         on $(UNUSED_PARAMETER_H) to avoid build failure.
55332 2009-12-28  Jim Meyering  <meyering@redhat.com>
55334         update-copyright: you may specify a max. line length other than 72
55335         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
55337         maint: use consistent FSF copyright line syntax
55338         * lib/posixtm.c: Add missing comma in FSF copyright line.
55339         * lib/posixtm.h: Likewise.
55340         * lib/getugroups.c: Add missing ", Inc.".
55342         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
55343         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
55344         FSF copyright line.  Remove trailing blanks.
55346 2009-12-28  Eric Blake  <ebb9@byu.net>
55348         test-dup2: reduce dependencies
55349         * modules/cloexec (Configure.ac): Set witness.
55350         * modules/dup2-tests (Depends-on): Drop cloexec.
55351         * tests/test-dup2.c (main): Skip portion of test if cloexec module
55352         not present.
55353         Suggested by Bruno Haible.
55355 2009-12-26  Bruno Haible  <bruno@clisp.org>
55357         Remove an unneeded dependency.
55358         * modules/fseterr (Depends-on): Remove dup2.
55360 2009-12-26  Eric Blake  <ebb9@byu.net>
55362         tests: use macros.h in more places
55363         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
55364         (ASSERT_STREAM): Provide default of stderr.
55365         * tests/test-dirent-safer.c: Include macros.h, using alternate
55366         stream for assertions.
55367         * tests/test-dup-safer.c: Likewise.
55368         * tests/test-freopen-safer.c: Likewise.
55369         * tests/test-getopt.c: Likewise.
55370         * tests/test-openat-safer.c: Likewise.
55371         * tests/test-pipe.c: Likewise.
55372         * tests/test-popen-safer.c: Likewise.
55373         * modules/dirent-safer-tests (Files): Include macros.h.
55374         * modules/unistd-safer-tests (Files): Likewise.
55375         * modules/freopen-safer-tests (Files): Likewise.
55376         * modules/getopt-posix-tests (Files): Likewise.
55377         * modules/openat-safer-tests (Files): Likewise.
55378         * modules/pipe-tests (Files): Likewise.
55380 2009-12-26  Bruno Haible  <bruno@clisp.org>
55382         javacomp-script: Portability fix.
55383         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
55384         that it also works on Solaris.
55386 2009-12-26  Bruno Haible  <bruno@clisp.org>
55388         localename: Fix storage allocation of gl_locale_name_thread's result.
55389         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
55390         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
55391         all platforms that have 'uselocale'.
55392         (gl_locale_name_thread_unsafe): New function, extracted from
55393         gl_locale_name_thread.
55394         (gl_locale_name_thread): Call struniq on all platforms that have
55395         'uselocale'.
55396         * tests/test-localename.c (test_locale_name_thread): Check that the
55397         resulting strings are permanently allocated.
55398         * modules/localename-tests (Depends-on): Add strdup.
55400 2009-12-26  Bruno Haible  <bruno@clisp.org>
55402         * tests/test-localename.c (categories): Fill in the strings.
55404 2009-12-26  Jim Meyering  <meyering@redhat.com>
55406         isdir: complete the removal of m4/isdir.m4
55407         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
55409         isdir: clean up, since at least grep still uses it
55410         * lib/isdir.c: Include "isdir.h".
55411         (S_ISDIR): Remove now-unneeded definition.
55412         * modules/isdir (Files): Add lib/isdir.h.
55413         * lib/isdir.h: New file, with declaration.
55414         * m4/isdir.m4: Remove file -- unneeded.
55416 2009-12-25  Bruno Haible  <bruno@clisp.org>
55418         selinux-h: Make generated .h files standalone.
55419         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
55420         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
55421         * lib/se-selinux.in.h: Likewise.
55422         * modules/selinux-h (Depends-on): Add unused-parameter.
55423         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
55424         selinux/selinux.h and selinux/context.h.
55425         Suggested by Eric Blake.
55427 2009-12-25  Bruno Haible  <bruno@clisp.org>
55429         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
55430         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
55431         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
55432         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
55433         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
55435 2009-12-24  Bruno Haible  <bruno@clisp.org>
55437         openat: Fix warning.
55438         * lib/openat-proc.c: Include <unistd.h>.
55440 2009-12-24  Bruno Haible  <bruno@clisp.org>
55442         New module 'unused-parameter'.
55443         * build-aux/unused-parameter.h: New file, extracted from earlier
55444         gnulib-common.m4.
55445         * modules/unused-parameter: New file.
55446         * lib/unistr.h: Include unused-parameter.h.
55447         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
55448         _GL_UNUSED.
55449         * modules/unistr/base (Depends-on): Add unused-parameter.
55451 2009-12-24  Bruno Haible  <bruno@clisp.org>
55453         Add missing dependencies to 'extensions' module.
55454         * m4/extensions.m4: Add comment.
55455         * modules/accept4 (Depends-on): Add extensions.
55456         * modules/dup3 (Depends-on): Likewise.
55457         * modules/fcntl (Depends-on): Likewise.
55458         * modules/futimens (Depends-on): Likewise.
55459         * modules/mknod (Depends-on): Likewise.
55460         * modules/pipe2 (Depends-on): Likewise.
55461         * modules/stat-time (Depends-on): Likewise.
55462         * modules/strcasestr-simple (Depends-on): Likewise.
55463         * modules/strsignal (Depends-on): Likewise.
55464         * modules/utimensat (Depends-on): Likewise.
55465         * modules/localcharset (Depends-on): Likewise. Needed because of
55466         gl_FCNTL_O_FLAGS.
55467         * modules/wcrtomb (Depends-on): Likewise. Needed because of
55468         AC_TYPE_MBSTATE_T.
55469         * modules/wcsnrtombs (Depends-on): Likewise.
55470         * modules/wcsrtombs (Depends-on): Likewise.
55472 2009-12-24  Bruno Haible  <bruno@clisp.org>
55474         binary-io: Avoid gcc warning due to SET_BINARY.
55475         * lib/binary-io.h (SET_BINARY): Cast the result to void.
55476         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
55478 2009-12-24  Bruno Haible  <bruno@clisp.org>
55480         Avoid future namespace pollution on glibc systems.
55481         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
55482         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
55483         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
55484         glibc systems.
55486 2009-12-24  Bruno Haible  <bruno@clisp.org>
55488         Refactor common macros used in tests.
55489         * tests/macros.h: New file.
55490         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
55491         and/or <stdlib.h>, if appropriate.
55492         (ASSERT, SIZEOF): Remove macros.
55493         * tests/test-areadlink-with-size.c: Likewise.
55494         * tests/test-areadlinkat.c: Likewise.
55495         * tests/test-areadlinkat-with-size.c: Likewise.
55496         * tests/test-argmatch.c: Likewise.
55497         * tests/test-argv-iter.c: Likewise.
55498         * tests/test-array-mergesort.c: Likewise.
55499         * tests/test-array_list.c: Likewise.
55500         * tests/test-array_oset.c: Likewise.
55501         * tests/test-avltree_list.c: Likewise.
55502         * tests/test-avltree_oset.c: Likewise.
55503         * tests/test-avltreehash_list.c: Likewise.
55504         * tests/test-base64.c: Likewise.
55505         * tests/test-binary-io.c: Likewise.
55506         * tests/test-bitrotate.c: Likewise.
55507         * tests/test-btowc.c: Likewise.
55508         * tests/test-byteswap.c: Likewise.
55509         * tests/test-c-ctype.c: Likewise.
55510         * tests/test-c-stack.c: Likewise.
55511         * tests/test-c-strcasecmp.c: Likewise.
55512         * tests/test-c-strcasestr.c: Likewise.
55513         * tests/test-c-strncasecmp.c: Likewise.
55514         * tests/test-c-strstr.c: Likewise.
55515         * tests/test-canonicalize-lgpl.c: Likewise.
55516         * tests/test-canonicalize.c: Likewise.
55517         * tests/test-carray_list.c: Likewise.
55518         * tests/test-ceilf1.c: Likewise.
55519         * tests/test-ceilf2.c: Likewise.
55520         * tests/test-ceill.c: Likewise.
55521         * tests/test-chown.c: Likewise.
55522         * tests/test-cloexec.c: Likewise.
55523         * tests/test-copy-acl.c: Likewise.
55524         * tests/test-copy-file.c: Likewise.
55525         * tests/test-count-one-bits.c: Likewise.
55526         * tests/test-dprintf-posix.c: Likewise.
55527         * tests/test-dup2.c: Likewise.
55528         * tests/test-dup3.c: Likewise.
55529         * tests/test-duplocale.c: Likewise.
55530         * tests/test-fbufmode.c: Likewise.
55531         * tests/test-fchdir.c: Likewise.
55532         * tests/test-fchownat.c: Likewise.
55533         * tests/test-fcntl-safer.c: Likewise.
55534         * tests/test-fcntl.c: Likewise.
55535         * tests/test-fdopendir.c: Likewise.
55536         * tests/test-fdutimensat.c: Likewise.
55537         * tests/test-fflush2.c: Likewise.
55538         * tests/test-file-has-acl.c: Likewise.
55539         * tests/test-filevercmp.c: Likewise.
55540         * tests/test-flock.c: Likewise.
55541         * tests/test-floorf1.c: Likewise.
55542         * tests/test-floorf2.c: Likewise.
55543         * tests/test-floorl.c: Likewise.
55544         * tests/test-fnmatch.c: Likewise.
55545         * tests/test-fopen.h: Likewise.
55546         * tests/test-fpending.c: Likewise.
55547         * tests/test-fprintf-posix.c: Likewise.
55548         * tests/test-fpurge.c: Likewise.
55549         * tests/test-freadable.c: Likewise.
55550         * tests/test-freadahead.c: Likewise.
55551         * tests/test-freading.c: Likewise.
55552         * tests/test-freadptr.c: Likewise.
55553         * tests/test-freadptr2.c: Likewise.
55554         * tests/test-freadseek.c: Likewise.
55555         * tests/test-freopen.c: Likewise.
55556         * tests/test-frexp.c: Likewise.
55557         * tests/test-frexpl.c: Likewise.
55558         * tests/test-fseek.c: Likewise.
55559         * tests/test-fseeko.c: Likewise.
55560         * tests/test-fstatat.c: Likewise.
55561         * tests/test-fstrcmp.c: Likewise.
55562         * tests/test-fsync.c: Likewise.
55563         * tests/test-ftell.c: Likewise.
55564         * tests/test-ftello.c: Likewise.
55565         * tests/test-func.c: Likewise.
55566         * tests/test-futimens.c: Likewise.
55567         * tests/test-fwritable.c: Likewise.
55568         * tests/test-fwriting.c: Likewise.
55569         * tests/test-getcwd.c: Likewise.
55570         * tests/test-getdate.c: Likewise.
55571         * tests/test-getdelim.c: Likewise.
55572         * tests/test-getdtablesize.c: Likewise.
55573         * tests/test-getgroups.c: Likewise.
55574         * tests/test-getline.c: Likewise.
55575         * tests/test-getndelim2.c: Likewise.
55576         * tests/test-glob.c: Likewise.
55577         * tests/test-hash.c: Likewise.
55578         * tests/test-i-ring.c: Likewise.
55579         * tests/test-iconv-utf.c: Likewise.
55580         * tests/test-iconv.c: Likewise.
55581         * tests/test-idpriv-drop.c: Likewise.
55582         * tests/test-idpriv-droptemp.c: Likewise.
55583         * tests/test-inet_ntop.c: Likewise.
55584         * tests/test-inet_pton.c: Likewise.
55585         * tests/test-isblank.c: Likewise.
55586         * tests/test-isfinite.c: Likewise.
55587         * tests/test-isinf.c: Likewise.
55588         * tests/test-isnan.c: Likewise.
55589         * tests/test-isnand.h: Likewise.
55590         * tests/test-isnanf.h: Likewise.
55591         * tests/test-isnanl.h: Likewise.
55592         * tests/test-lchown.c: Likewise.
55593         * tests/test-ldexpl.c: Likewise.
55594         * tests/test-link.c: Likewise.
55595         * tests/test-linkat.c: Likewise.
55596         * tests/test-linked_list.c: Likewise.
55597         * tests/test-linkedhash_list.c: Likewise.
55598         * tests/test-localename.c: Likewise.
55599         * tests/test-lseek.c: Likewise.
55600         * tests/test-lstat.c: Likewise.
55601         * tests/test-mbmemcasecmp.c: Likewise.
55602         * tests/test-mbmemcasecoll.c: Likewise.
55603         * tests/test-mbrtowc.c: Likewise.
55604         * tests/test-mbscasecmp.c: Likewise.
55605         * tests/test-mbscasestr1.c: Likewise.
55606         * tests/test-mbscasestr2.c: Likewise.
55607         * tests/test-mbscasestr3.c: Likewise.
55608         * tests/test-mbscasestr4.c: Likewise.
55609         * tests/test-mbschr.c: Likewise.
55610         * tests/test-mbscspn.c: Likewise.
55611         * tests/test-mbsinit.c: Likewise.
55612         * tests/test-mbsncasecmp.c: Likewise.
55613         * tests/test-mbsnrtowcs.c: Likewise.
55614         * tests/test-mbspbrk.c: Likewise.
55615         * tests/test-mbspcasecmp.c: Likewise.
55616         * tests/test-mbsrchr.c: Likewise.
55617         * tests/test-mbsrtowcs.c: Likewise.
55618         * tests/test-mbsspn.c: Likewise.
55619         * tests/test-mbsstr1.c: Likewise.
55620         * tests/test-mbsstr2.c: Likewise.
55621         * tests/test-mbsstr3.c: Likewise.
55622         * tests/test-memchr.c: Likewise.
55623         * tests/test-memchr2.c: Likewise.
55624         * tests/test-memcmp.c: Likewise.
55625         * tests/test-memmem.c: Likewise.
55626         * tests/test-memrchr.c: Likewise.
55627         * tests/test-mkdir.c: Likewise.
55628         * tests/test-mkdirat.c: Likewise.
55629         * tests/test-mkfifo.c: Likewise.
55630         * tests/test-mkfifoat.c: Likewise.
55631         * tests/test-mknod.c: Likewise.
55632         * tests/test-nanosleep.c: Likewise.
55633         * tests/test-nl_langinfo.c: Likewise.
55634         * tests/test-obstack-printf.c: Likewise.
55635         * tests/test-open.c: Likewise.
55636         * tests/test-openat.c: Likewise.
55637         * tests/test-pipe-filter-gi1.c: Likewise.
55638         * tests/test-pipe-filter-gi2-main.c: Likewise.
55639         * tests/test-pipe-filter-ii1.c: Likewise.
55640         * tests/test-pipe-filter-ii2-main.c: Likewise.
55641         * tests/test-pipe2.c: Likewise.
55642         * tests/test-popen.h: Likewise.
55643         * tests/test-posixtm.c: Likewise.
55644         * tests/test-pread.c: Likewise.
55645         * tests/test-printf-frexp.c: Likewise.
55646         * tests/test-printf-frexpl.c: Likewise.
55647         * tests/test-printf-posix.c: Likewise.
55648         * tests/test-priv-set.c: Likewise.
55649         * tests/test-quotearg.c: Likewise.
55650         * tests/test-random_r.c: Likewise.
55651         * tests/test-rawmemchr.c: Likewise.
55652         * tests/test-rbtree_list.c: Likewise.
55653         * tests/test-rbtree_oset.c: Likewise.
55654         * tests/test-rbtreehash_list.c: Likewise.
55655         * tests/test-readlink.c: Likewise.
55656         * tests/test-remove.c: Likewise.
55657         * tests/test-rename.c: Likewise.
55658         * tests/test-renameat.c: Likewise.
55659         * tests/test-rmdir.c: Likewise.
55660         * tests/test-round1.c: Likewise.
55661         * tests/test-roundf1.c: Likewise.
55662         * tests/test-roundl.c: Likewise.
55663         * tests/test-safe-alloc.c: Likewise.
55664         * tests/test-sameacls.c: Likewise.
55665         * tests/test-set-mode-acl.c: Likewise.
55666         * tests/test-setenv.c: Likewise.
55667         * tests/test-sigaction.c: Likewise.
55668         * tests/test-signbit.c: Likewise.
55669         * tests/test-sleep.c: Likewise.
55670         * tests/test-snprintf-posix.c: Likewise.
55671         * tests/test-snprintf.c: Likewise.
55672         * tests/test-sprintf-posix.c: Likewise.
55673         * tests/test-stat-time.c: Likewise.
55674         * tests/test-stat.c: Likewise.
55675         * tests/test-strcasestr.c: Likewise.
55676         * tests/test-strchrnul.c: Likewise.
55677         * tests/test-strerror.c: Likewise.
55678         * tests/test-striconv.c: Likewise.
55679         * tests/test-striconveh.c: Likewise.
55680         * tests/test-striconveha.c: Likewise.
55681         * tests/test-strsignal.c: Likewise.
55682         * tests/test-strstr.c: Likewise.
55683         * tests/test-strtod.c: Likewise.
55684         * tests/test-strverscmp.c: Likewise.
55685         * tests/test-symlink.c: Likewise.
55686         * tests/test-symlinkat.c: Likewise.
55687         * tests/test-trunc1.c: Likewise.
55688         * tests/test-trunc2.c: Likewise.
55689         * tests/test-truncf1.c: Likewise.
55690         * tests/test-truncf2.c: Likewise.
55691         * tests/test-truncl.c: Likewise.
55692         * tests/test-uname.c: Likewise.
55693         * tests/test-unlink.c: Likewise.
55694         * tests/test-unlinkat.c: Likewise.
55695         * tests/test-unsetenv.c: Likewise.
55696         * tests/test-usleep.c: Likewise.
55697         * tests/test-utimens.c: Likewise.
55698         * tests/test-utimensat.c: Likewise.
55699         * tests/test-vasnprintf-posix.c: Likewise.
55700         * tests/test-vasnprintf-posix2.c: Likewise.
55701         * tests/test-vasnprintf.c: Likewise.
55702         * tests/test-vasprintf-posix.c: Likewise.
55703         * tests/test-vasprintf.c: Likewise.
55704         * tests/test-vdprintf-posix.c: Likewise.
55705         * tests/test-vfprintf-posix.c: Likewise.
55706         * tests/test-vprintf-posix.c: Likewise.
55707         * tests/test-vsnprintf-posix.c: Likewise.
55708         * tests/test-vsnprintf.c: Likewise.
55709         * tests/test-vsprintf-posix.c: Likewise.
55710         * tests/test-wcrtomb.c: Likewise.
55711         * tests/test-wcsnrtombs.c: Likewise.
55712         * tests/test-wcsrtombs.c: Likewise.
55713         * tests/test-wctype.c: Likewise.
55714         * tests/test-wcwidth.c: Likewise.
55715         * tests/test-xfprintf-posix.c: Likewise.
55716         * tests/test-xmemdup0.c: Likewise.
55717         * tests/test-xprintf-posix.c: Likewise.
55718         * tests/test-xvasprintf.c: Likewise.
55719         * tests/unicase/test-locale-language.c: Likewise.
55720         * tests/unicase/test-mapping-part1.h: Likewise.
55721         * tests/unicase/test-predicate-part1.h: Likewise.
55722         * tests/unicase/test-u8-casecmp.c: Likewise.
55723         * tests/unicase/test-u8-casecoll.c: Likewise.
55724         * tests/unicase/test-u8-casefold.c: Likewise.
55725         * tests/unicase/test-u8-is-cased.c: Likewise.
55726         * tests/unicase/test-u8-is-casefolded.c: Likewise.
55727         * tests/unicase/test-u8-is-lowercase.c: Likewise.
55728         * tests/unicase/test-u8-is-titlecase.c: Likewise.
55729         * tests/unicase/test-u8-is-uppercase.c: Likewise.
55730         * tests/unicase/test-u8-tolower.c: Likewise.
55731         * tests/unicase/test-u8-totitle.c: Likewise.
55732         * tests/unicase/test-u8-toupper.c: Likewise.
55733         * tests/unicase/test-u16-casecmp.c: Likewise.
55734         * tests/unicase/test-u16-casecoll.c: Likewise.
55735         * tests/unicase/test-u16-casefold.c: Likewise.
55736         * tests/unicase/test-u16-is-cased.c: Likewise.
55737         * tests/unicase/test-u16-is-casefolded.c: Likewise.
55738         * tests/unicase/test-u16-is-lowercase.c: Likewise.
55739         * tests/unicase/test-u16-is-titlecase.c: Likewise.
55740         * tests/unicase/test-u16-is-uppercase.c: Likewise.
55741         * tests/unicase/test-u16-tolower.c: Likewise.
55742         * tests/unicase/test-u16-totitle.c: Likewise.
55743         * tests/unicase/test-u16-toupper.c: Likewise.
55744         * tests/unicase/test-u32-casecmp.c: Likewise.
55745         * tests/unicase/test-u32-casecoll.c: Likewise.
55746         * tests/unicase/test-u32-casefold.c: Likewise.
55747         * tests/unicase/test-u32-is-cased.c: Likewise.
55748         * tests/unicase/test-u32-is-casefolded.c: Likewise.
55749         * tests/unicase/test-u32-is-lowercase.c: Likewise.
55750         * tests/unicase/test-u32-is-titlecase.c: Likewise.
55751         * tests/unicase/test-u32-is-uppercase.c: Likewise.
55752         * tests/unicase/test-u32-tolower.c: Likewise.
55753         * tests/unicase/test-u32-totitle.c: Likewise.
55754         * tests/unicase/test-u32-toupper.c: Likewise.
55755         * tests/unicase/test-ulc-casecmp.c: Likewise.
55756         * tests/unicase/test-ulc-casecoll.c: Likewise.
55757         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
55758         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
55759         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
55760         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
55761         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
55762         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
55763         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
55764         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
55765         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
55766         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
55767         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
55768         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
55769         * tests/unictype/test-bidi_byname.c: Likewise.
55770         * tests/unictype/test-bidi_name.c: Likewise.
55771         * tests/unictype/test-bidi_of.c: Likewise.
55772         * tests/unictype/test-bidi_test.c: Likewise.
55773         * tests/unictype/test-block_list.c: Likewise.
55774         * tests/unictype/test-block_of.c: Likewise.
55775         * tests/unictype/test-block_test.c: Likewise.
55776         * tests/unictype/test-categ_and.c: Likewise.
55777         * tests/unictype/test-categ_and_not.c: Likewise.
55778         * tests/unictype/test-categ_byname.c: Likewise.
55779         * tests/unictype/test-categ_name.c: Likewise.
55780         * tests/unictype/test-categ_none.c: Likewise.
55781         * tests/unictype/test-categ_of.c: Likewise.
55782         * tests/unictype/test-categ_or.c: Likewise.
55783         * tests/unictype/test-categ_test_withtable.c: Likewise.
55784         * tests/unictype/test-combining.c: Likewise.
55785         * tests/unictype/test-decdigit.c: Likewise.
55786         * tests/unictype/test-digit.c: Likewise.
55787         * tests/unictype/test-mirror.c: Likewise.
55788         * tests/unictype/test-numeric.c: Likewise.
55789         * tests/unictype/test-pr_byname.c: Likewise.
55790         * tests/unictype/test-pr_test.c: Likewise.
55791         * tests/unictype/test-predicate-part1.h: Likewise.
55792         * tests/unictype/test-scripts.c: Likewise.
55793         * tests/unictype/test-sy_c_ident.c: Likewise.
55794         * tests/unictype/test-sy_java_ident.c: Likewise.
55795         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
55796         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
55797         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
55798         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
55799         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
55800         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
55801         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
55802         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
55803         * tests/uninorm/test-canonical-decomposition.c: Likewise.
55804         * tests/uninorm/test-compat-decomposition.c: Likewise.
55805         * tests/uninorm/test-composition.c: Likewise.
55806         * tests/uninorm/test-decomposing-form.c: Likewise.
55807         * tests/uninorm/test-decomposition.c: Likewise.
55808         * tests/uninorm/test-u8-nfc.c: Likewise.
55809         * tests/uninorm/test-u8-nfd.c: Likewise.
55810         * tests/uninorm/test-u8-nfkc.c: Likewise.
55811         * tests/uninorm/test-u8-nfkd.c: Likewise.
55812         * tests/uninorm/test-u8-normcmp.c: Likewise.
55813         * tests/uninorm/test-u8-normcoll.c: Likewise.
55814         * tests/uninorm/test-u16-nfc.c: Likewise.
55815         * tests/uninorm/test-u16-nfd.c: Likewise.
55816         * tests/uninorm/test-u16-nfkc.c: Likewise.
55817         * tests/uninorm/test-u16-nfkd.c: Likewise.
55818         * tests/uninorm/test-u16-normcmp.c: Likewise.
55819         * tests/uninorm/test-u16-normcoll.c: Likewise.
55820         * tests/uninorm/test-u32-nfc.c: Likewise.
55821         * tests/uninorm/test-u32-nfd.c: Likewise.
55822         * tests/uninorm/test-u32-nfkc.c: Likewise.
55823         * tests/uninorm/test-u32-nfkd.c: Likewise.
55824         * tests/uninorm/test-u32-normalize-big.c: Likewise.
55825         * tests/uninorm/test-u32-normcmp.c: Likewise.
55826         * tests/uninorm/test-u32-normcoll.c: Likewise.
55827         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
55828         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
55829         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
55830         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
55831         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
55832         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
55833         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
55834         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
55835         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
55836         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
55837         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
55838         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
55839         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
55840         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
55841         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
55842         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
55843         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
55844         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
55845         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
55846         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
55847         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
55848         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
55849         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
55850         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
55851         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
55852         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
55853         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
55854         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
55855         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
55856         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
55857         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
55858         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
55859         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
55860         * tests/uniwidth/test-u8-strwidth.c: Likewise.
55861         * tests/uniwidth/test-u8-width.c: Likewise.
55862         * tests/uniwidth/test-u16-strwidth.c: Likewise.
55863         * tests/uniwidth/test-u16-width.c: Likewise.
55864         * tests/uniwidth/test-u32-strwidth.c: Likewise.
55865         * tests/uniwidth/test-u32-width.c: Likewise.
55866         * tests/uniwidth/test-uc_width.c: Likewise.
55867         * tests/uniwidth/test-uc_width2.c: Likewise.
55868         * modules/acl-tests (Files): Add tests/macros.h.
55869         * modules/areadlink-tests (Files): Likewise.
55870         * modules/areadlink-with-size-tests (Files): Likewise.
55871         * modules/areadlinkat-tests (Files): Likewise.
55872         * modules/areadlinkat-with-size-tests (Files): Likewise.
55873         * modules/argmatch-tests (Files): Likewise.
55874         * modules/argv-iter-tests (Files): Likewise.
55875         * modules/array-list-tests (Files): Likewise.
55876         * modules/array-mergesort-tests (Files): Likewise.
55877         * modules/array-oset-tests (Files): Likewise.
55878         * modules/avltree-list-tests (Files): Likewise.
55879         * modules/avltree-oset-tests (Files): Likewise.
55880         * modules/avltreehash-list-tests (Files): Likewise.
55881         * modules/base64-tests (Files): Likewise.
55882         * modules/binary-io-tests (Files): Likewise.
55883         * modules/bitrotate-tests (Files): Likewise.
55884         * modules/btowc-tests (Files): Likewise.
55885         * modules/byteswap-tests (Files): Likewise.
55886         * modules/c-ctype-tests (Files): Likewise.
55887         * modules/c-stack-tests (Files): Likewise.
55888         * modules/c-strcase-tests (Files): Likewise.
55889         * modules/c-strcasestr-tests (Files): Likewise.
55890         * modules/c-strstr-tests (Files): Likewise.
55891         * modules/canonicalize-lgpl-tests (Files): Likewise.
55892         * modules/canonicalize-tests (Files): Likewise.
55893         * modules/carray-list-tests (Files): Likewise.
55894         * modules/ceilf-tests (Files): Likewise.
55895         * modules/ceill-tests (Files): Likewise.
55896         * modules/chown-tests (Files): Likewise.
55897         * modules/cloexec-tests (Files): Likewise.
55898         * modules/copy-file-tests (Files): Likewise.
55899         * modules/count-one-bits-tests (Files): Likewise.
55900         * modules/dprintf-posix-tests (Files): Likewise.
55901         * modules/dup2-tests (Files): Likewise.
55902         * modules/dup3-tests (Files): Likewise.
55903         * modules/duplocale-tests (Files): Likewise.
55904         * modules/fbufmode-tests (Files): Likewise.
55905         * modules/fchdir-tests (Files): Likewise.
55906         * modules/fcntl-safer-tests (Files): Likewise.
55907         * modules/fcntl-tests (Files): Likewise.
55908         * modules/fdopendir-tests (Files): Likewise.
55909         * modules/fdutimensat-tests (Files): Likewise.
55910         * modules/fflush-tests (Files): Likewise.
55911         * modules/filevercmp-tests (Files): Likewise.
55912         * modules/flock-tests (Files): Likewise.
55913         * modules/floorf-tests (Files): Likewise.
55914         * modules/floorl-tests (Files): Likewise.
55915         * modules/fnmatch-tests (Files): Likewise.
55916         * modules/fopen-safer-tests (Files): Likewise.
55917         * modules/fopen-tests (Files): Likewise.
55918         * modules/fpending-tests (Files): Likewise.
55919         * modules/fprintf-posix-tests (Files): Likewise.
55920         * modules/fpurge-tests (Files): Likewise.
55921         * modules/freadable-tests (Files): Likewise.
55922         * modules/freadahead-tests (Files): Likewise.
55923         * modules/freading-tests (Files): Likewise.
55924         * modules/freadptr-tests (Files): Likewise.
55925         * modules/freadseek-tests (Files): Likewise.
55926         * modules/freopen-tests (Files): Likewise.
55927         * modules/frexp-nolibm-tests (Files): Likewise.
55928         * modules/frexp-tests (Files): Likewise.
55929         * modules/frexpl-nolibm-tests (Files): Likewise.
55930         * modules/frexpl-tests (Files): Likewise.
55931         * modules/fseek-tests (Files): Likewise.
55932         * modules/fseeko-tests (Files): Likewise.
55933         * modules/fstrcmp-tests (Files): Likewise.
55934         * modules/fsync-tests (Files): Likewise.
55935         * modules/ftell-tests (Files): Likewise.
55936         * modules/ftello-tests (Files): Likewise.
55937         * modules/func-tests (Files): Likewise.
55938         * modules/futimens-tests (Files): Likewise.
55939         * modules/fwritable-tests (Files): Likewise.
55940         * modules/fwriting-tests (Files): Likewise.
55941         * modules/getcwd-tests (Files): Likewise.
55942         * modules/getdate-tests (Files): Likewise.
55943         * modules/getdelim-tests (Files): Likewise.
55944         * modules/getdtablesize-tests (Files): Likewise.
55945         * modules/getgroups-tests (Files): Likewise.
55946         * modules/getline-tests (Files): Likewise.
55947         * modules/getndelim2-tests (Files): Likewise.
55948         * modules/glob-tests (Files): Likewise.
55949         * modules/hash-tests (Files): Likewise.
55950         * modules/i-ring-tests (Files): Likewise.
55951         * modules/iconv-tests (Files): Likewise.
55952         * modules/iconv_open-utf-tests (Files): Likewise.
55953         * modules/idpriv-drop-tests (Files): Likewise.
55954         * modules/idpriv-droptemp-tests (Files): Likewise.
55955         * modules/inet_ntop-tests (Files): Likewise.
55956         * modules/inet_pton-tests (Files): Likewise.
55957         * modules/isblank-tests (Files): Likewise.
55958         * modules/isfinite-tests (Files): Likewise.
55959         * modules/isinf-tests (Files): Likewise.
55960         * modules/isnan-tests (Files): Likewise.
55961         * modules/isnand-nolibm-tests (Files): Likewise.
55962         * modules/isnand-tests (Files): Likewise.
55963         * modules/isnanf-nolibm-tests (Files): Likewise.
55964         * modules/isnanf-tests (Files): Likewise.
55965         * modules/isnanl-nolibm-tests (Files): Likewise.
55966         * modules/isnanl-tests (Files): Likewise.
55967         * modules/lchown-tests (Files): Likewise.
55968         * modules/ldexpl-tests (Files): Likewise.
55969         * modules/link-tests (Files): Likewise.
55970         * modules/linkat-tests (Files): Likewise.
55971         * modules/linked-list-tests (Files): Likewise.
55972         * modules/linkedhash-list-tests (Files): Likewise.
55973         * modules/localename-tests (Files): Likewise.
55974         * modules/lseek-tests (Files): Likewise.
55975         * modules/lstat-tests (Files): Likewise.
55976         * modules/mbmemcasecmp-tests (Files): Likewise.
55977         * modules/mbmemcasecoll-tests (Files): Likewise.
55978         * modules/mbrtowc-tests (Files): Likewise.
55979         * modules/mbscasecmp-tests (Files): Likewise.
55980         * modules/mbscasestr-tests (Files): Likewise.
55981         * modules/mbschr-tests (Files): Likewise.
55982         * modules/mbscspn-tests (Files): Likewise.
55983         * modules/mbsinit-tests (Files): Likewise.
55984         * modules/mbsncasecmp-tests (Files): Likewise.
55985         * modules/mbsnrtowcs-tests (Files): Likewise.
55986         * modules/mbspbrk-tests (Files): Likewise.
55987         * modules/mbspcasecmp-tests (Files): Likewise.
55988         * modules/mbsrchr-tests (Files): Likewise.
55989         * modules/mbsrtowcs-tests (Files): Likewise.
55990         * modules/mbsspn-tests (Files): Likewise.
55991         * modules/mbsstr-tests (Files): Likewise.
55992         * modules/memchr-tests (Files): Likewise.
55993         * modules/memchr2-tests (Files): Likewise.
55994         * modules/memcmp-tests (Files): Likewise.
55995         * modules/memmem-tests (Files): Likewise.
55996         * modules/memrchr-tests (Files): Likewise.
55997         * modules/mkdir-tests (Files): Likewise.
55998         * modules/mkfifo-tests (Files): Likewise.
55999         * modules/mkfifoat-tests (Files): Likewise.
56000         * modules/mknod-tests (Files): Likewise.
56001         * modules/nanosleep-tests (Files): Likewise.
56002         * modules/nl_langinfo-tests (Files): Likewise.
56003         * modules/obstack-printf-tests (Files): Likewise.
56004         * modules/open-tests (Files): Likewise.
56005         * modules/openat-tests (Files): Likewise.
56006         * modules/pipe-filter-gi-tests (Files): Likewise.
56007         * modules/pipe-filter-ii-tests (Files): Likewise.
56008         * modules/pipe2-tests (Files): Likewise.
56009         * modules/popen-safer-tests (Files): Likewise.
56010         * modules/popen-tests (Files): Likewise.
56011         * modules/posixtm-tests (Files): Likewise.
56012         * modules/pread-tests (Files): Likewise.
56013         * modules/printf-frexp-tests (Files): Likewise.
56014         * modules/printf-frexpl-tests (Files): Likewise.
56015         * modules/printf-posix-tests (Files): Likewise.
56016         * modules/priv-set-tests (Files): Likewise.
56017         * modules/quotearg-tests (Files): Likewise.
56018         * modules/random_r-tests (Files): Likewise.
56019         * modules/rawmemchr-tests (Files): Likewise.
56020         * modules/rbtree-list-tests (Files): Likewise.
56021         * modules/rbtree-oset-tests (Files): Likewise.
56022         * modules/rbtreehash-list-tests (Files): Likewise.
56023         * modules/readlink-tests (Files): Likewise.
56024         * modules/remove-tests (Files): Likewise.
56025         * modules/rename-tests (Files): Likewise.
56026         * modules/renameat-tests (Files): Likewise.
56027         * modules/rmdir-tests (Files): Likewise.
56028         * modules/round-tests (Files): Likewise.
56029         * modules/roundf-tests (Files): Likewise.
56030         * modules/roundl-tests (Files): Likewise.
56031         * modules/safe-alloc-tests (Files): Likewise.
56032         * modules/setenv-tests (Files): Likewise.
56033         * modules/sigaction-tests (Files): Likewise.
56034         * modules/signbit-tests (Files): Likewise.
56035         * modules/sleep-tests (Files): Likewise.
56036         * modules/snprintf-posix-tests (Files): Likewise.
56037         * modules/snprintf-tests (Files): Likewise.
56038         * modules/sprintf-posix-tests (Files): Likewise.
56039         * modules/stat-tests (Files): Likewise.
56040         * modules/stat-time-tests (Files): Likewise.
56041         * modules/strcasestr-tests (Files): Likewise.
56042         * modules/strchrnul-tests (Files): Likewise.
56043         * modules/strerror-tests (Files): Likewise.
56044         * modules/striconv-tests (Files): Likewise.
56045         * modules/striconveh-tests (Files): Likewise.
56046         * modules/striconveha-tests (Files): Likewise.
56047         * modules/strsignal-tests (Files): Likewise.
56048         * modules/strstr-tests (Files): Likewise.
56049         * modules/strtod-tests (Files): Likewise.
56050         * modules/strverscmp-tests (Files): Likewise.
56051         * modules/symlink-tests (Files): Likewise.
56052         * modules/symlinkat-tests (Files): Likewise.
56053         * modules/trunc-tests (Files): Likewise.
56054         * modules/truncf-tests (Files): Likewise.
56055         * modules/truncl-tests (Files): Likewise.
56056         * modules/uname-tests (Files): Likewise.
56057         * modules/unicase/cased-tests (Files): Likewise.
56058         * modules/unicase/ignorable-tests (Files): Likewise.
56059         * modules/unicase/locale-language-tests (Files): Likewise.
56060         * modules/unicase/tolower-tests (Files): Likewise.
56061         * modules/unicase/totitle-tests (Files): Likewise.
56062         * modules/unicase/toupper-tests (Files): Likewise.
56063         * modules/unicase/u8-casecmp-tests (Files): Likewise.
56064         * modules/unicase/u8-casecoll-tests (Files): Likewise.
56065         * modules/unicase/u8-casefold-tests (Files): Likewise.
56066         * modules/unicase/u8-is-cased-tests (Files): Likewise.
56067         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
56068         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
56069         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
56070         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
56071         * modules/unicase/u8-tolower-tests (Files): Likewise.
56072         * modules/unicase/u8-totitle-tests (Files): Likewise.
56073         * modules/unicase/u8-toupper-tests (Files): Likewise.
56074         * modules/unicase/u16-casecmp-tests (Files): Likewise.
56075         * modules/unicase/u16-casecoll-tests (Files): Likewise.
56076         * modules/unicase/u16-casefold-tests (Files): Likewise.
56077         * modules/unicase/u16-is-cased-tests (Files): Likewise.
56078         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
56079         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
56080         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
56081         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
56082         * modules/unicase/u16-tolower-tests (Files): Likewise.
56083         * modules/unicase/u16-totitle-tests (Files): Likewise.
56084         * modules/unicase/u16-toupper-tests (Files): Likewise.
56085         * modules/unicase/u32-casecmp-tests (Files): Likewise.
56086         * modules/unicase/u32-casecoll-tests (Files): Likewise.
56087         * modules/unicase/u32-casefold-tests (Files): Likewise.
56088         * modules/unicase/u32-is-cased-tests (Files): Likewise.
56089         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
56090         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
56091         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
56092         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
56093         * modules/unicase/u32-tolower-tests (Files): Likewise.
56094         * modules/unicase/u32-totitle-tests (Files): Likewise.
56095         * modules/unicase/u32-toupper-tests (Files): Likewise.
56096         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
56097         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
56098         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
56099         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
56100         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
56101         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
56102         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
56103         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
56104         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
56105         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
56106         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
56107         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
56108         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
56109         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
56110         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
56111         * modules/unictype/bidicategory-name-tests (Files): Likewise.
56112         * modules/unictype/bidicategory-of-tests (Files): Likewise.
56113         * modules/unictype/bidicategory-test-tests (Files): Likewise.
56114         * modules/unictype/block-list-tests (Files): Likewise.
56115         * modules/unictype/block-of-tests (Files): Likewise.
56116         * modules/unictype/block-test-tests (Files): Likewise.
56117         * modules/unictype/category-C-tests (Files): Likewise.
56118         * modules/unictype/category-Cc-tests (Files): Likewise.
56119         * modules/unictype/category-Cf-tests (Files): Likewise.
56120         * modules/unictype/category-Cn-tests (Files): Likewise.
56121         * modules/unictype/category-Co-tests (Files): Likewise.
56122         * modules/unictype/category-Cs-tests (Files): Likewise.
56123         * modules/unictype/category-L-tests (Files): Likewise.
56124         * modules/unictype/category-Ll-tests (Files): Likewise.
56125         * modules/unictype/category-Lm-tests (Files): Likewise.
56126         * modules/unictype/category-Lo-tests (Files): Likewise.
56127         * modules/unictype/category-Lt-tests (Files): Likewise.
56128         * modules/unictype/category-Lu-tests (Files): Likewise.
56129         * modules/unictype/category-M-tests (Files): Likewise.
56130         * modules/unictype/category-Mc-tests (Files): Likewise.
56131         * modules/unictype/category-Me-tests (Files): Likewise.
56132         * modules/unictype/category-Mn-tests (Files): Likewise.
56133         * modules/unictype/category-N-tests (Files): Likewise.
56134         * modules/unictype/category-Nd-tests (Files): Likewise.
56135         * modules/unictype/category-Nl-tests (Files): Likewise.
56136         * modules/unictype/category-No-tests (Files): Likewise.
56137         * modules/unictype/category-P-tests (Files): Likewise.
56138         * modules/unictype/category-Pc-tests (Files): Likewise.
56139         * modules/unictype/category-Pd-tests (Files): Likewise.
56140         * modules/unictype/category-Pe-tests (Files): Likewise.
56141         * modules/unictype/category-Pf-tests (Files): Likewise.
56142         * modules/unictype/category-Pi-tests (Files): Likewise.
56143         * modules/unictype/category-Po-tests (Files): Likewise.
56144         * modules/unictype/category-Ps-tests (Files): Likewise.
56145         * modules/unictype/category-S-tests (Files): Likewise.
56146         * modules/unictype/category-Sc-tests (Files): Likewise.
56147         * modules/unictype/category-Sk-tests (Files): Likewise.
56148         * modules/unictype/category-Sm-tests (Files): Likewise.
56149         * modules/unictype/category-So-tests (Files): Likewise.
56150         * modules/unictype/category-Z-tests (Files): Likewise.
56151         * modules/unictype/category-Zl-tests (Files): Likewise.
56152         * modules/unictype/category-Zp-tests (Files): Likewise.
56153         * modules/unictype/category-Zs-tests (Files): Likewise.
56154         * modules/unictype/category-and-not-tests (Files): Likewise.
56155         * modules/unictype/category-and-tests (Files): Likewise.
56156         * modules/unictype/category-byname-tests (Files): Likewise.
56157         * modules/unictype/category-name-tests (Files): Likewise.
56158         * modules/unictype/category-none-tests (Files): Likewise.
56159         * modules/unictype/category-of-tests (Files): Likewise.
56160         * modules/unictype/category-or-tests (Files): Likewise.
56161         * modules/unictype/category-test-withtable-tests (Files): Likewise.
56162         * modules/unictype/combining-class-tests (Files): Likewise.
56163         * modules/unictype/ctype-alnum-tests (Files): Likewise.
56164         * modules/unictype/ctype-alpha-tests (Files): Likewise.
56165         * modules/unictype/ctype-blank-tests (Files): Likewise.
56166         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
56167         * modules/unictype/ctype-digit-tests (Files): Likewise.
56168         * modules/unictype/ctype-graph-tests (Files): Likewise.
56169         * modules/unictype/ctype-lower-tests (Files): Likewise.
56170         * modules/unictype/ctype-print-tests (Files): Likewise.
56171         * modules/unictype/ctype-punct-tests (Files): Likewise.
56172         * modules/unictype/ctype-space-tests (Files): Likewise.
56173         * modules/unictype/ctype-upper-tests (Files): Likewise.
56174         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
56175         * modules/unictype/decimal-digit-tests (Files): Likewise.
56176         * modules/unictype/digit-tests (Files): Likewise.
56177         * modules/unictype/mirror-tests (Files): Likewise.
56178         * modules/unictype/numeric-tests (Files): Likewise.
56179         * modules/unictype/property-alphabetic-tests (Files): Likewise.
56180         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
56181         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
56182         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
56183         Likewise.
56184         * modules/unictype/property-bidi-block-separator-tests (Files):
56185         Likewise.
56186         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
56187         Likewise.
56188         * modules/unictype/property-bidi-common-separator-tests (Files):
56189         Likewise.
56190         * modules/unictype/property-bidi-control-tests (Files): Likewise.
56191         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
56192         Likewise.
56193         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
56194         Likewise.
56195         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
56196         Likewise.
56197         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
56198         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
56199         Likewise.
56200         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
56201         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
56202         Likewise.
56203         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
56204         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
56205         * modules/unictype/property-bidi-segment-separator-tests (Files):
56206         Likewise.
56207         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
56208         * modules/unictype/property-byname-tests (Files): Likewise.
56209         * modules/unictype/property-combining-tests (Files): Likewise.
56210         * modules/unictype/property-composite-tests (Files): Likewise.
56211         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
56212         * modules/unictype/property-dash-tests (Files): Likewise.
56213         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
56214         * modules/unictype/property-default-ignorable-code-point-tests (Files):
56215         Likewise.
56216         * modules/unictype/property-deprecated-tests (Files): Likewise.
56217         * modules/unictype/property-diacritic-tests (Files): Likewise.
56218         * modules/unictype/property-extender-tests (Files): Likewise.
56219         * modules/unictype/property-format-control-tests (Files): Likewise.
56220         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
56221         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
56222         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
56223         * modules/unictype/property-hex-digit-tests (Files): Likewise.
56224         * modules/unictype/property-hyphen-tests (Files): Likewise.
56225         * modules/unictype/property-id-continue-tests (Files): Likewise.
56226         * modules/unictype/property-id-start-tests (Files): Likewise.
56227         * modules/unictype/property-ideographic-tests (Files): Likewise.
56228         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
56229         * modules/unictype/property-ids-trinary-operator-tests (Files):
56230         Likewise.
56231         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
56232         * modules/unictype/property-iso-control-tests (Files): Likewise.
56233         * modules/unictype/property-join-control-tests (Files): Likewise.
56234         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
56235         * modules/unictype/property-line-separator-tests (Files): Likewise.
56236         * modules/unictype/property-logical-order-exception-tests (Files):
56237         Likewise.
56238         * modules/unictype/property-lowercase-tests (Files): Likewise.
56239         * modules/unictype/property-math-tests (Files): Likewise.
56240         * modules/unictype/property-non-break-tests (Files): Likewise.
56241         * modules/unictype/property-not-a-character-tests (Files): Likewise.
56242         * modules/unictype/property-numeric-tests (Files): Likewise.
56243         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
56244         * modules/unictype/property-other-default-ignorable-code-point-tests
56245         (Files): Likewise.
56246         * modules/unictype/property-other-grapheme-extend-tests (Files):
56247         Likewise.
56248         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
56249         * modules/unictype/property-other-id-start-tests (Files): Likewise.
56250         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
56251         * modules/unictype/property-other-math-tests (Files): Likewise.
56252         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
56253         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
56254         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
56255         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
56256         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
56257         * modules/unictype/property-private-use-tests (Files): Likewise.
56258         * modules/unictype/property-punctuation-tests (Files): Likewise.
56259         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
56260         * modules/unictype/property-radical-tests (Files): Likewise.
56261         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
56262         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
56263         * modules/unictype/property-space-tests (Files): Likewise.
56264         * modules/unictype/property-terminal-punctuation-tests (Files):
56265         Likewise.
56266         * modules/unictype/property-test-tests (Files): Likewise.
56267         * modules/unictype/property-titlecase-tests (Files): Likewise.
56268         * modules/unictype/property-unassigned-code-value-tests (Files):
56269         Likewise.
56270         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
56271         * modules/unictype/property-uppercase-tests (Files): Likewise.
56272         * modules/unictype/property-variation-selector-tests (Files): Likewise.
56273         * modules/unictype/property-white-space-tests (Files): Likewise.
56274         * modules/unictype/property-xid-continue-tests (Files): Likewise.
56275         * modules/unictype/property-xid-start-tests (Files): Likewise.
56276         * modules/unictype/property-zero-width-tests (Files): Likewise.
56277         * modules/unictype/scripts-tests (Files): Likewise.
56278         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
56279         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
56280         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
56281         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
56282         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
56283         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
56284         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
56285         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
56286         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
56287         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
56288         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
56289         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
56290         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
56291         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
56292         * modules/uninorm/composition-tests (Files): Likewise.
56293         * modules/uninorm/decomposing-form-tests (Files): Likewise.
56294         * modules/uninorm/decomposition-tests (Files): Likewise.
56295         * modules/uninorm/filter-tests (Files): Likewise.
56296         * modules/uninorm/nfc-tests (Files): Likewise.
56297         * modules/uninorm/nfd-tests (Files): Likewise.
56298         * modules/uninorm/nfkc-tests (Files): Likewise.
56299         * modules/uninorm/nfkd-tests (Files): Likewise.
56300         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
56301         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
56302         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
56303         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
56304         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
56305         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
56306         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
56307         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
56308         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
56309         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
56310         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
56311         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
56312         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
56313         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
56314         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
56315         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
56316         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
56317         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
56318         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
56319         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
56320         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
56321         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
56322         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
56323         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
56324         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
56325         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
56326         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
56327         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
56328         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
56329         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
56330         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
56331         * modules/uniwidth/u8-width-tests (Files): Likewise.
56332         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
56333         * modules/uniwidth/u16-width-tests (Files): Likewise.
56334         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
56335         * modules/uniwidth/u32-width-tests (Files): Likewise.
56336         * modules/uniwidth/width-tests (Files): Likewise.
56337         * modules/unlink-tests (Files): Likewise.
56338         * modules/unsetenv-tests (Files): Likewise.
56339         * modules/usleep-tests (Files): Likewise.
56340         * modules/utimens-tests (Files): Likewise.
56341         * modules/utimensat-tests (Files): Likewise.
56342         * modules/vasnprintf-posix-tests (Files): Likewise.
56343         * modules/vasnprintf-tests (Files): Likewise.
56344         * modules/vasprintf-posix-tests (Files): Likewise.
56345         * modules/vasprintf-tests (Files): Likewise.
56346         * modules/vdprintf-posix-tests (Files): Likewise.
56347         * modules/vfprintf-posix-tests (Files): Likewise.
56348         * modules/vprintf-posix-tests (Files): Likewise.
56349         * modules/vsnprintf-posix-tests (Files): Likewise.
56350         * modules/vsnprintf-tests (Files): Likewise.
56351         * modules/vsprintf-posix-tests (Files): Likewise.
56352         * modules/wcrtomb-tests (Files): Likewise.
56353         * modules/wcsnrtombs-tests (Files): Likewise.
56354         * modules/wcsrtombs-tests (Files): Likewise.
56355         * modules/wctype-tests (Files): Likewise.
56356         * modules/wcwidth-tests (Files): Likewise.
56357         * modules/xmemdup0-tests (Files): Likewise.
56358         * modules/xprintf-posix-tests (Files): Likewise.
56359         * modules/xvasprintf-tests (Files): Likewise.
56361 2009-12-24  Eric Blake  <ebb9@byu.net>
56363         test-nanosleep: fix typo
56364         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
56365         patch.
56366         Reported by Bruno Haible.
56368 2009-12-24  Bruno Haible  <bruno@clisp.org>
56370         Reduce namespace pollution on glibc systems.
56371         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
56372         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
56373         systems.
56374         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
56375         <getopt.h> on glibc systems.
56376         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
56377         systems.
56378         * lib/fcntl.c: Include <unistd.h> here instead.
56380 2009-12-24  Bruno Haible  <bruno@clisp.org>
56382         * lib/stdlib.in.h (includes): Fix typo in today's commit.
56384 2009-12-24  Eric Blake  <ebb9@byu.net>
56386         tests: add signature checks
56387         * tests/signature.h (SIGNATURE_CHECK): New file.
56388         * modules/atexit-tests (Files): Use it.
56389         * modules/btowc-tests (Files): Likewise.
56390         * modules/canonicalize-lgpl-tests (Files): Likewise.
56391         * modules/ceilf-tests (Files): Likewise.
56392         * modules/ceill-tests (Files): Likewise.
56393         * modules/chown-tests (Files): Likewise.
56394         * modules/dprintf-posix-tests (Files): Likewise.
56395         * modules/dup2-tests (Files): Likewise.
56396         * modules/dup3-tests (Files): Likewise.
56397         * modules/duplocale-tests (Files): Likewise.
56398         * modules/fchdir-tests (Files): Likewise.
56399         * modules/fcntl-tests (Files): Likewise.
56400         * modules/fdopendir-tests (Files): Likewise.
56401         * modules/fflush-tests (Files): Likewise.
56402         * modules/flock-tests (Files): Likewise.
56403         * modules/floorf-tests (Files): Likewise.
56404         * modules/floorl-tests (Files): Likewise.
56405         * modules/fnmatch-tests (Files): Likewise.
56406         * modules/fopen-tests (Files): Likewise.
56407         * modules/fprintf-posix-tests (Files): Likewise.
56408         * modules/freopen-tests (Files): Likewise.
56409         * modules/frexp-nolibm-tests (Files): Likewise.
56410         * modules/frexp-tests (Files): Likewise.
56411         * modules/frexpl-nolibm-tests (Files): Likewise.
56412         * modules/frexpl-tests (Files): Likewise.
56413         * modules/fseek-tests (Files): Likewise.
56414         * modules/fseeko-tests (Files): Likewise.
56415         * modules/fsync-tests (Files): Likewise.
56416         * modules/ftell-tests (Files): Likewise.
56417         * modules/ftello-tests (Files): Likewise.
56418         * modules/futimens-tests (Files): Likewise.
56419         * modules/getaddrinfo-tests (Files): Likewise.
56420         * modules/getcwd-tests (Files): Likewise.
56421         * modules/getdelim-tests (Files): Likewise.
56422         * modules/getdtablesize-tests (Files): Likewise.
56423         * modules/getgroups-tests (Files): Likewise.
56424         * modules/gethostname-tests (Files): Likewise.
56425         * modules/getline-tests (Files): Likewise.
56426         * modules/getopt-posix-tests (Files): Likewise.
56427         * modules/gettimeofday-tests (Files): Likewise.
56428         * modules/glob-tests (Files): Likewise.
56429         * modules/iconv-tests (Files): Likewise.
56430         * modules/inet_ntop-tests (Files): Likewise.
56431         * modules/inet_pton-tests (Files): Likewise.
56432         * modules/isblank-tests (Files): Likewise.
56433         * modules/lchown-tests (Files): Likewise.
56434         * modules/ldexpl-tests (Files): Likewise.
56435         * modules/link-tests (Files): Likewise.
56436         * modules/linkat-tests (Files): Likewise.
56437         * modules/lseek-tests (Files): Likewise.
56438         * modules/lstat-tests (Files): Likewise.
56439         * modules/mbrtowc-tests (Files): Likewise.
56440         * modules/mbsinit-tests (Files): Likewise.
56441         * modules/mbsnrtowcs-tests (Files): Likewise.
56442         * modules/mbsrtowcs-tests (Files): Likewise.
56443         * modules/memchr-tests (Files): Likewise.
56444         * modules/memcmp-tests (Files): Likewise.
56445         * modules/memmem-tests (Files): Likewise.
56446         * modules/memrchr-tests (Files): Likewise.
56447         * modules/mkdir-tests (Files): Likewise.
56448         * modules/mkfifo-tests (Files): Likewise.
56449         * modules/mkfifoat-tests (Files): Likewise.
56450         * modules/mknod-tests (Files): Likewise.
56451         * modules/nanosleep-tests (Files): Likewise.
56452         * modules/nl_langinfo-tests (Files): Likewise.
56453         * modules/obstack-printf-tests (Files): Likewise.
56454         * modules/open-tests (Files): Likewise.
56455         * modules/openat-tests (Files): Likewise.
56456         * modules/perror-tests (Files): Likewise.
56457         * modules/pipe2-tests (Files): Likewise.
56458         * modules/poll-tests (Files): Likewise.
56459         * modules/popen-tests (Files): Likewise.
56460         * modules/posix_spawn-tests (Files): Likewise.
56461         * modules/posix_spawnp-tests (Files): Likewise.
56462         * modules/pread-tests (Files): Likewise.
56463         * modules/printf-posix-tests (Files): Likewise.
56464         * modules/pty-tests (Files): Likewise.
56465         * modules/random_r-tests (Files): Likewise.
56466         * modules/rawmemchr-tests (Files): Likewise.
56467         * modules/readlink-tests (Files): Likewise.
56468         * modules/remove-tests (Files): Likewise.
56469         * modules/rename-tests (Files): Likewise.
56470         * modules/renameat-tests (Files): Likewise.
56471         * modules/rmdir-tests (Files): Likewise.
56472         * modules/round-tests (Files): Likewise.
56473         * modules/roundf-tests (Files): Likewise.
56474         * modules/roundl-tests (Files): Likewise.
56475         * modules/select-tests (Files): Likewise.
56476         * modules/setenv-tests (Files): Likewise.
56477         * modules/sigaction-tests (Files): Likewise.
56478         * modules/sleep-tests (Files): Likewise.
56479         * modules/snprintf-posix-tests (Files): Likewise.
56480         * modules/snprintf-tests (Files): Likewise.
56481         * modules/sprintf-posix-tests (Files): Likewise.
56482         * modules/stat-tests (Files): Likewise.
56483         * modules/strcasestr-tests (Files): Likewise.
56484         * modules/strchrnul-tests (Files): Likewise.
56485         * modules/strerror-tests (Files): Likewise.
56486         * modules/strsignal-tests (Files): Likewise.
56487         * modules/strstr-tests (Files): Likewise.
56488         * modules/strtod-tests (Files): Likewise.
56489         * modules/strverscmp-tests (Files): Likewise.
56490         * modules/symlink-tests (Files): Likewise.
56491         * modules/symlinkat-tests (Files): Likewise.
56492         * modules/times-tests (Files): Likewise.
56493         * modules/trunc-tests (Files): Likewise.
56494         * modules/truncf-tests (Files): Likewise.
56495         * modules/truncl-tests (Files): Likewise.
56496         * modules/tsearch-tests (Files): Likewise.
56497         * modules/uname-tests (Files): Likewise.
56498         * modules/unlink-tests (Files): Likewise.
56499         * modules/unsetenv-tests (Files): Likewise.
56500         * modules/usleep-tests (Files): Likewise.
56501         * modules/utimensat-tests (Files): Likewise.
56502         * modules/vasprintf-tests (Files): Likewise.
56503         * modules/vdprintf-posix-tests (Files): Likewise.
56504         * modules/vfprintf-posix-tests (Files): Likewise.
56505         * modules/vprintf-posix-tests (Files): Likewise.
56506         * modules/vsnprintf-posix-tests (Files): Likewise.
56507         * modules/vsnprintf-tests (Files): Likewise.
56508         * modules/vsprintf-posix-tests (Files): Likewise.
56509         * modules/wcrtomb-tests (Files): Likewise.
56510         * modules/wcsnrtombs-tests (Files): Likewise.
56511         * modules/wcsrtombs-tests (Files): Likewise.
56512         * modules/wcwidth-tests (Files): Likewise.
56513         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
56514         * tests/test-isinf.c (isinf): Likewise.
56515         * tests/test-isnan.c (isnan): Likewise.
56516         * tests/test-signbit.c (signbit): Likewise.
56517         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
56518         declaration, either as macro or with correct signature.
56519         (select): Ensure function under test is declared with correct
56520         signature in correct header.
56521         * tests/test-atexit.c (atexit): Likewise.
56522         * tests/test-btowc.c (btowc): Likewise.
56523         * tests/test-canonicalize-lgpl.c (realpath)
56524         (canonicalize_file_name): Likewise.
56525         * tests/test-ceilf1.c (ceilf): Likewise.
56526         * tests/test-ceill.c (ceill): Likewise.
56527         * tests/test-chown.c (chown): Likewise.
56528         * tests/test-dprintf-posix.c (dprintf): Likewise.
56529         * tests/test-dup2.c (dup2): Likewise.
56530         * tests/test-dup3.c (dup3): Likewise.
56531         * tests/test-duplocale.c (duplocale): Likewise.
56532         * tests/test-fchdir.c (fchdir): Likewise.
56533         * tests/test-fchownat.c (fchownat): Likewise.
56534         * tests/test-fcntl.c (fcntl): Likewise.
56535         * tests/test-fdopendir.c (fdopendir): Likewise.
56536         * tests/test-fflush.c (fflush): Likewise.
56537         * tests/test-flock.c (flock): Likewise.
56538         * tests/test-floorf1.c (floorf): Likewise.
56539         * tests/test-floorl.c (floorl): Likewise.
56540         * tests/test-fnmatch.c (fnmatch): Likewise.
56541         * tests/test-fopen.c (fopen): Likewise.
56542         * tests/test-fprintf-posix.c (fprintf): Likewise.
56543         * tests/test-freopen.c (freopen): Likewise.
56544         * tests/test-frexp.c (frexp): Likewise.
56545         * tests/test-frexpl.c (frexpl): Likewise.
56546         * tests/test-fseek.c (fseek): Likewise.
56547         * tests/test-fseeko.c (fseeko): Likewise.
56548         * tests/test-fstatat.c (fstatat): Likewise.
56549         * tests/test-fsync.c (fsync): Likewise.
56550         * tests/test-ftell.c (ftell): Likewise.
56551         * tests/test-ftello.c (ftello): Likewise.
56552         * tests/test-futimens.c (futimens): Likewise.
56553         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
56554         (gai_strerror): Likewise.
56555         * tests/test-getcwd.c (getcwd): Likewise.
56556         * tests/test-getdelim.c (getdelim): Likewise.
56557         * tests/test-getdtablesize.c (getdtablesize): Likewise.
56558         * tests/test-getgroups.c (getgroups): Likewise.
56559         * tests/test-gethostname.c (gethostname): Likewise.
56560         * tests/test-getline.c (getline): Likewise.
56561         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
56562         Likewise.
56563         * tests/test-gettimeofday.c (gettimeofday): Likewise.
56564         * tests/test-glob.c (glob, globfree): Likewise.
56565         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
56566         * tests/test-inet_ntop.c (inet_ntop): Likewise.
56567         * tests/test-inet_pton.c (inet_pton): Likewise.
56568         * tests/test-isblank.c (isblank): Likewise.
56569         * tests/test-lchown.c (lchown): Likewise.
56570         * tests/test-ldexpl.c (ldexpl): Likewise.
56571         * tests/test-link.c (link): Likewise.
56572         * tests/test-linkat.c (linkat): Likewise.
56573         * tests/test-lseek.c (lseek): Likewise.
56574         * tests/test-lstat.c (lstat): Likewise.
56575         * tests/test-mbrtowc.c (mbrtowc): Likewise.
56576         * tests/test-mbsinit.c (mbsinit): Likewise.
56577         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
56578         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
56579         * tests/test-memchr.c (memchr): Likewise.
56580         * tests/test-memcmp.c (memcmp): Likewise.
56581         * tests/test-memmem.c (memmem): Likewise.
56582         * tests/test-memrchr.c (memrchr): Likewise.
56583         * tests/test-mkdir.c (mkdir): Likewise.
56584         * tests/test-mkdirat.c (mkdirat): Likewise.
56585         * tests/test-mkfifo.c (mkfifo): Likewise.
56586         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
56587         * tests/test-mknod.c (mknod): Likewise.
56588         * tests/test-nanosleep.c (nanosleep): Likewise.
56589         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
56590         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
56591         Likewise.
56592         * tests/test-open.c (open): Likewise.
56593         * tests/test-openat.c (openat): Likewise.
56594         * tests/test-perror.c (perror): Likewise.
56595         * tests/test-pipe2.c (pipe2): Likewise.
56596         * tests/test-poll.c (poll): Likewise.
56597         * tests/test-popen.c (popen, pclose): Likewise.
56598         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
56599         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
56600         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
56601         (posix_spawn_file_actions_destroy)
56602         (posix_spawn_file_actions_addclose)
56603         (posix_spawn_file_actions_addopen)
56604         (posix_spawn_file_actions_adddup2): Likewise.
56605         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
56606         * tests/test-pread.c (pread): Likewise.
56607         * tests/test-printf-posix.c (printf): Likewise.
56608         * tests/test-pty.c (openpty, forkpty): Likewise.
56609         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
56610         (random_r): Likewise.
56611         * tests/test-rawmemchr.c (rawmemchr): Likewise.
56612         * tests/test-readlink.c (readlink): Likewise.
56613         * tests/test-remove.c (remove): Likewise.
56614         * tests/test-rename.c (rename): Likewise.
56615         * tests/test-renameat.c (renameat): Likewise.
56616         * tests/test-rmdir.c (rmdir): Likewise.
56617         * tests/test-round1.c (round): Likewise.
56618         * tests/test-roundf1.c (roundf): Likewise.
56619         * tests/test-roundl.c (roundl): Likewise.
56620         * tests/test-setenv.c (setenv): Likewise.
56621         * tests/test-sigaction.c (sigaction): Likewise.
56622         * tests/test-sleep.c (sleep): Likewise.
56623         * tests/test-snprintf.c (snprintf): Likewise.
56624         * tests/test-sprintf-posix.c (sprintf): Likewise.
56625         * tests/test-stat.c (stat): Likewise.
56626         * tests/test-stpncpy.c (stpncpy): Likewise.
56627         * tests/test-strcasestr.c (strcasestr): Likewise.
56628         * tests/test-strchrnul.c (strchrnul): Likewise.
56629         * tests/test-strerror.c (strerror): Likewise.
56630         * tests/test-strsignal.c (strsignal): Likewise.
56631         * tests/test-strstr.c (strstr): Likewise.
56632         * tests/test-strtod.c (strtod): Likewise.
56633         * tests/test-strverscmp.c (strverscmp): Likewise.
56634         * tests/test-symlink.c (symlink): Likewise.
56635         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
56636         * tests/test-times.c (times): Likewise.
56637         * tests/test-trunc1.c (trunc): Likewise.
56638         * tests/test-truncf1.c (truncf): Likewise.
56639         * tests/test-truncl.c (truncl): Likewise.
56640         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
56641         Likewise.
56642         * tests/test-uname.c (uname): Likewise.
56643         * tests/test-unlink.c (unlink): Likewise.
56644         * tests/test-unlinkat.c (unlinkat): Likewise.
56645         * tests/test-unsetenv.c (unsetenv): Likewise.
56646         * tests/test-usleep.c (usleep): Likewise.
56647         * tests/test-utimensat.c (utimensat): Likewise.
56648         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
56649         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
56650         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
56651         * tests/test-vprintf-posix.c (vprintf): Likewise.
56652         * tests/test-vsnprintf.c (vsnprintf): Likewise.
56653         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
56654         * tests/test-wcrtomb.c (wcrtomb): Likewise.
56655         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
56656         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
56657         * tests/test-wcwidth.c (wcwidth): Likewise.
56659         build: pull in conditional headers during GNULIB_POSIXCHECK
56660         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
56661         definitions from any conditionally-included headers.
56662         * lib/stdlib.in.h (includes): Likewise.
56663         * lib/unistd.in.h (includes): Likewise.
56665 2009-12-24  Bruno Haible  <bruno@clisp.org>
56667         * tests/test-argv-iter.c: Include header file being tested immediately
56668         after config.h.
56669         * tests/test-base64.c: Likewise.
56670         * tests/test-flock.c: Likewise.
56671         * tests/test-fsync.c: Likewise.
56672         * tests/test-getdate.c: Likewise.
56673         * tests/test-getndelim2.c: Likewise.
56674         * tests/test-isfinite.c: Likewise.
56675         * tests/test-isinf.c: Likewise.
56676         * tests/test-strerror.c: Likewise.
56677         * tests/test-strsignal.c: Likewise.
56679 2009-12-23  Eric Blake  <ebb9@byu.net>
56681         unistd: work around cygwin bug
56682         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
56683         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
56684         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
56686 2009-12-23  Bruno Haible  <bruno@clisp.org>
56688         localename: More tests.
56689         * tests/test-localename.c (SIZEOF): New macro.
56690         (categories): New variable.
56691         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
56692         test_locale_name_default): Add test w.r.t. thread locale.
56693         (test_locale_name_thread): New function.
56694         (main): Invoke it.
56696         localename: Make aware of thread locale.
56697         * lib/localename.h (gl_locale_name_thread): New declaration.
56698         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
56699         behaviour with respect to thread locale.
56700         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
56701         <langinfo.h>, glthread/lock.h.
56702         (SIZE_BITS): New macro.
56703         (string_hash): New function.
56704         (struct hash_node): New type.
56705         (HASH_TABLE_SIZE): New macro.
56706         (struniq_hash_table, struniq_lock): New variables.
56707         (struniq): New function.
56708         (gl_locale_name_thread): New function.
56709         (gl_locale_name): Invoke it.
56710         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
56711         * modules/localename (Depends-on): Add lock.
56712         Reported by Mike Gran <spk121@yahoo.com>.
56714 2009-12-23  Eric Blake  <ebb9@byu.net>
56716         va-args: new module
56717         * modules/va-args: New file.
56718         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
56719         * MODULES.html.sh (Core language properties): Mention it.
56721         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
56722         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
56723         named alias for __attribute__((__unused__)).
56724         * lib/chown.c: Update client.
56725         * lib/fchmodat.c: Likewise.
56726         * lib/fts.c: Likewise.
56727         * lib/getdate.y: Likewise.
56728         * lib/getgroups.c: Likewise.
56729         * lib/getopt.c: Likewise.
56730         * lib/getugroups.c: Likewise.
56731         * lib/mkdir.c: Likewise.
56732         * lib/mkfifo.c: Likewise.
56733         * lib/mkfifoat.c: Likewise.
56734         * lib/mknod.c: Likewise.
56735         * lib/mknodat.c: Likewise.
56736         * lib/readlink.c: Likewise.
56737         * lib/se-context.in.h: Likewise.
56738         * lib/se-selinux.in.h: Likewise.
56739         * lib/sockets.c: Likewise.
56740         * lib/symlink.c: Likewise.
56741         * lib/symlinkat.c: Likewise.
56742         * lib/unicodeio.c: Likewise.
56743         * lib/unistr.h: Likewise.
56744         * tests/test-areadlink.c: Likewise.
56745         * tests/test-areadlinkat.c: Likewise.
56746         * tests/test-filenamecat.c: Likewise.
56747         * tests/test-fseeko.c: Likewise.
56748         * tests/test-ftello.c: Likewise.
56749         * tests/test-getdate.c: Likewise.
56750         * tests/test-getgroups.c: Likewise.
56751         * tests/test-gethostname.c: Likewise.
56752         * tests/test-quotearg.c: Likewise.
56753         * tests/test-version-etc.c: Likewise.
56754         * tests/test-xalloc-die.c: Likewise.
56755         * tests/test-xfprintf-posix.c: Likewise.
56756         * tests/test-xprintf-posix.c: Likewise.
56757         * tests/test-xvasprintf.c: Likewise.
56759         tests: avoid compiler warnings
56760         * tests/test-fcntl.c (main): Delete unused parameters.
56761         * tests/test-freopen-safer.c (main): Likewise.
56762         * tests/test-xalloc-die.c (main): Mark unused parameters.
56763         * tests/test-fseeko.c (main): Likewise.
56764         * tests/test-ftello.c (main): Likewise.
56765         * tests/test-nanosleep.c (main): Avoid declaration warning.
56766         * tests/test-sleep.c (main): Likewise.
56767         * tests/test-unsetenv.c (main): Silence warning about string
56768         literal.
56769         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
56771 2009-12-23  Bruno Haible  <bruno@clisp.org>
56773         * tests/test-localename.c (test_locale_name): New function, extracted
56774         from main. Also test mixed situations.
56775         (test_locale_name_posix, test_locale_name_environ,
56776         test_locale_name_default): New functions.
56777         (main): Invoke them all.
56778         * modules/localename-tests (configure.ac): Test for newlocale.
56780 2009-12-23  Bruno Haible  <bruno@clisp.org>
56782         unistd: Ensure getcwd gets declared before being overridden.
56783         * lib/unistd.in.h: Conditionally include <io.h>.
56785 2009-12-22  Bruno Haible  <bruno@clisp.org>
56787         wchar: Diagnose broken combination of glibc and gcc versions and flags.
56788         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
56789         (gl_WCHAR_H): Invoke it.
56790         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
56791         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
56792         Reported by Karl Berry <karl@freefriends.org>.
56794 2009-12-22  Eric Blake  <ebb9@byu.net>
56796         math, unistd: avoid redundant includes
56797         * lib/math.in.h (isnan): No need to re-include <math.h>.
56798         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
56800         getsubopt: work around cygwin bug
56801         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
56802         avoid conflicting with system getsubopt.
56803         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
56804         bug.
56806         getopt: synchronize from glibc
56807         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
56808         parameter order.  Adjust all callers.
56809         (_getopt_internal_r, main): Adjust quoting in error messages.
56810         Drop considerations for outdated POSIX 1003.2 error message.
56811         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
56812         callers.
56813         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
56815         test-getopt: test stderr behavior
56816         * modules/getopt-posix-tests (Depends-on): Add dup2.
56817         * tests/test-getopt.c (ASSERT): Avoid stderr.
56818         (main): Move stderr to a temporary file.
56819         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
56820         Instead, add parameter to inform caller if output occurred.
56821         (test_getopt): Adjust all existing tests to expect silence, and
56822         add new tests of leading ":".
56823         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
56824         glibc shortcomings with leading "-:" or "+:" in optstring.
56825         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
56826         Likewise.
56827         * doc/posix-functions/getopt.texi (getopt): Likewise.
56829         test-getopt: enhance test
56830         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
56831         supports optind=0.
56832         * tests/test-getopt.c (OPTIND_MIN): Move...
56833         * tests/test-getopt.h (OPTIND_MIN): ...here.
56834         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
56835         Require that optind=0 works, since modern BSD supports it in
56836         addition to optreset, and since coreutils expects it.
56837         (test_getopt_long_only): New test.
56838         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
56839         glibc shortcomings with 'W;', and enforcement of optind=0.
56840         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
56841         Likewise.
56843 2009-12-21  Bruno Haible  <bruno@clisp.org>
56845         localename: Improvements for MacOS X and Cygwin.
56846         * lib/localename.h (gl_locale_name_environ): New declaration.
56847         * lib/localename.c (gl_locale_name_environ): New function, extracted from
56848         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
56849         (gl_locale_name_posix): Invoke it.
56850         (gl_locale_name_default): Add comments. Use Windows native API also on
56851         Cygwin.
56853 2009-12-21  Bruno Haible  <bruno@clisp.org>
56855         Update list of Win32 locale ids.
56856         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
56857         (LANG_SAMI): Renamed from LANG_SAAMI.
56858         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
56859         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
56860         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
56861         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
56862         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
56863         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
56864         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
56865         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
56866         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
56867         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
56868         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
56869         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
56870         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
56871         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
56872         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
56873         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
56874         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
56875         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
56876         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
56877         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
56878         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
56879         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
56880         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
56881         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
56882         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
56883         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
56884         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
56885         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
56886         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
56887         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
56888         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
56889         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
56890         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
56891         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
56892         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
56893         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
56894         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
56895         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
56896         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
56897         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
56898         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
56899         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
56900         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
56901         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
56902         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
56903         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
56904         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
56905         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
56906         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
56907         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
56908         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
56909         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
56910         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
56911         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
56912         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
56913         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
56914         Add more languages and countries for Sami, Sorbian. Add more countries
56915         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
56916         for Pashto. Change country for Syriac, Tswana.
56918 2009-12-21  Eric Blake  <ebb9@byu.net>
56920         test-utimens: avoid spurious failure
56921         * tests/test-chown.h (nap): Factor...
56922         * tests/nap.h: ...into new file.
56923         * tests/test-lchown.h (nap): Avoid duplication.
56924         * tests/test-utimens-common.h (nap): Use shared implementation,
56925         necessary on file systems with 1-second resolution.
56926         * modules/chown-tests (Files): Include new file.
56927         * modules/fdutimensat-tests (Files): Likewise.
56928         * modules/futimens-tests (Files): Likewise.
56929         * modules/lchown-tests (Files): Likewise.
56930         * modules/openat-tests (Files): Likewise.
56931         * modules/utimens-tests (Files): Likewise.
56932         * modules/utimensat-tests (Files): Likewise.
56934 2009-12-19  Eric Blake  <ebb9@byu.net>
56936         futimens, utimensat: work around Linux bug
56937         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
56938         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
56939         * lib/utimensat.c (rpl_utimensat): Work around it.
56940         * lib/futimens.c (rpl_futimens): Adjust comment.
56942         utimens: work around Linux ctime bug
56943         * lib/utimens.c (detect_ctime_bug): New helper function.
56944         (update_timespec): Differentiate between workaround needed for
56945         this bug vs. what is needed for systems that lack utimensat.
56946         (fdutimens, lutimens): Work around bug.
56948         utimens: check for ctime update
56949         * tests/test-utimens-common.h (check_ctime): Define.
56950         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
56951         * tests/test-futimens.h (test_futimens): Likewise.
56952         * tests/test-lutimens.h (test_lutimens): Likewise.
56953         * doc/posix-functions/futimens.texi (futimens): Document the bug.
56954         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
56956 2009-12-19  Bruno Haible  <bruno@clisp.org>
56958         dprintf-posix: Check against memory leak fixed on 2009-12-15.
56959         * tests/test-dprintf-posix2.sh: New file.
56960         * tests/test-dprintf-posix2.c: New file.
56961         * modules/dprintf-posix-tests (Files): Add them.
56962         (configure.ac): Check for getrlimit and setrlimit.
56963         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
56965 2009-12-19  Bruno Haible  <bruno@clisp.org>
56967         fprintf-posix: Check against memory leak fixed on 2009-12-15.
56968         * tests/test-fprintf-posix3.sh: New file.
56969         * tests/test-fprintf-posix3.c: New file.
56970         * modules/fprintf-posix-tests (Files): Add them.
56971         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
56973 2009-12-19  Eric Blake  <ebb9@byu.net>
56975         dirfd: fix prototype
56976         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
56977         * lib/dirfd.c (dirfd): Likewise.
56979         canonicalize: reduce memory usage
56980         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
56981         allocation to size.
56982         Reported by Solar Designer <solar@openwall.com>.
56984 2009-12-19  Bruno Haible  <bruno@clisp.org>
56986         New module attribute 'Applicability'.
56987         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
56988         * gnulib-tool: New option --extract-applicability.
56989         (func_usage): Document it.
56990         (sed_extract_prog): Recognize it.
56991         (func_get_applicability): New function.
56992         (func_import): Generalize handling of 'link-warning' module.
56993         * modules/link-warning (Applicability): New section.
56994         * modules/arg-nonnull (Applicability): New section.
56995         Repoted by Simon Josefsson <simon@josefsson.org>.
56997 2009-12-19  Bruno Haible  <bruno@clisp.org>
56999         fflush: tweak
57000         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
57001         * lib/fseeko.c (rpl_fseeko): Likewise.
57003 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
57005         * lib/gl_list.h: Fix typo in comment.
57007 2009-12-16  Eric Blake  <ebb9@byu.net>
57009         fcntl: use to simplify other modules
57010         * modules/cloexec (Depends-on): Add fcntl.
57011         * modules/fchdir (Depends-on): Likewise.
57012         * modules/fd-safer-flag (Depends-on): Likewise.
57013         * modules/unistd-safer (Depends-on): Likewise.
57014         * modules/dup3 (configure.ac): Set module indicator.
57015         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
57016         missing.
57017         * lib/fchdir.c (_gl_register_dup): Fix comment.
57018         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
57019         * lib/dup-safer.c (dup_safer): Likewise.
57020         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
57021         * lib/dup3.c (dup3): Likewise.
57022         * tests/test-fchdir.c (main): Enhance test.
57023         Fixes a dup_cloexec bug reported by Ondřej Vašík.
57025         fcntl: port portions of fcntl to mingw
57026         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
57027         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
57028         replacement for mingw.
57029         * modules/fcntl (Description): Update.
57030         (Depends-on): Add dup2.
57031         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
57032         * modules/fcntl-h (Makefile.am): Substitute it.
57033         * lib/fcntl.in.h (fcntl): Update declaration.
57034         (F_DUPFD, F_GETFD): New macros, when needed.
57035         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
57036         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
57037         * tests/test-fcntl.c (check_flags, main): Enhance test for items
57038         we now guarantee.
57040         fcntl: work around cygwin bug in F_DUPFD
57041         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
57042         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
57043         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
57044         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
57045         * doc/posix-functions/fcntl.texi (fcntl): Document it.
57047         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
57048         * modules/fcntl (Files): List new files.
57049         (configure.ac): Run a test.
57050         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
57051         * lib/fcntl.c (rpl_fcntl): Likewise.
57052         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
57053         (gl_FCNTL_H): Always replace fcntl.h.
57054         * modules/fcntl-h (Makefile.am): Substitute witnesses.
57055         * lib/fcntl.in.h (fcntl): Declare replacement.
57056         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
57057         needed, plus a witness.
57058         * doc/posix-functions/fcntl.texi (fcntl): Document this.
57059         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
57060         * tests/test-fcntl.c: New file.
57061         * modules/fcntl-tests: Likewise.
57063         binary-io: avoid potential compilation warning
57064         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
57065         directives.
57067         fflush: avoid compilation error on NetBSD
57068         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
57069         between off_t and fpos_t, since the latter is sometimes a struct.
57070         * lib/fseeko.c (rpl_fseeko): Likewise.
57071         Reported by Alexander Nasonov <alnsn@yandex.ru>.
57073 2009-12-15  Eric Blake  <ebb9@byu.net>
57075         fcntl-h, stdio, sys_ioctl: fix declarations
57076         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
57077         function must not take arguments.
57078         * lib/sys_ioctl.in.h (ioctl): Likewise.
57079         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
57080         (open): Add a link warning.
57082 2009-12-15  Jim Meyering  <meyering@redhat.com>
57084         areadlink, areadlink-with-size: relax license to LGPLv2+
57085         * modules/areadlink (License): Relax to LGPLv2+.
57086         * modules/areadlink-with-size (License): Likewise.
57088 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
57089             Bruno Haible  <bruno@clisp.org>
57091         *printf: Fix memory leak.
57092         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
57093         * lib/vfprintf.c (vfprintf): Likewise.
57094         * lib/dprintf.c (dprintf): Likewise.
57095         * lib/vdprintf.c (vdprintf): Likewise.
57097 2009-12-14  Eric Blake  <ebb9@byu.net>
57099         accept4: adjust module dependencies
57100         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
57102         utimens: one more try at avoiding compiler warning
57103         * lib/utimens.c (lutimens): Lower scope of result.
57105 2009-12-13  Bruno Haible  <bruno@clisp.org>
57107         Move the malloc checking from module 'list' to new module 'xlist'.
57108         * modules/xlist: New file.
57109         * lib/gl_xlist.h: New file.
57110         * lib/gl_xlist.c: New file.
57111         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
57112         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
57113         gl_list_add_last, gl_list_add_before, gl_list_add_after,
57114         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
57115         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
57116         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
57117         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
57118         gl_sortedlist_nx_add): New declarations.
57119         (struct gl_list_implementation): Rename and change methods accordingly.
57120         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
57121         (gl_list_nx_create): Renamed from gl_list_create.
57122         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
57123         (gl_list_nx_set_at): Renamed from gl_list_set_at.
57124         (gl_list_nx_add_first): Renamed from gl_list_add_first.
57125         (gl_list_nx_add_last): Renamed from gl_list_add_last.
57126         (gl_list_nx_add_before): Renamed from gl_list_add_before.
57127         (gl_list_nx_add_after): Renamed from gl_list_add_after.
57128         (gl_list_nx_add_at): Renamed from gl_list_add_at.
57129         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
57130         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
57131         gl_list_create_empty.
57132         (gl_list_nx_create): Renamed from gl_list_create.
57133         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
57134         (gl_list_nx_set_at): Renamed from gl_list_set_at.
57135         (gl_list_nx_add_first): Renamed from gl_list_add_first.
57136         (gl_list_nx_add_last): Renamed from gl_list_add_last.
57137         (gl_list_nx_add_before): Renamed from gl_list_add_before.
57138         (gl_list_nx_add_after): Renamed from gl_list_add_after.
57139         (gl_list_nx_add_at): Renamed from gl_list_add_at.
57140         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
57141         * lib/gl_array_list.c: Don't include xalloc.h.
57142         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
57143         NULL upon out-of-memory.
57144         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
57145         out-of-memory.
57146         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
57147         Change return type to 'int'.
57148         (gl_array_nx_set_at): Renamed from gl_array_set_at.
57149         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
57150         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
57151         upon out-of-memory.
57152         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
57153         upon out-of-memory.
57154         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
57155         upon out-of-memory.
57156         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
57157         upon out-of-memory.
57158         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
57159         out-of-memory.
57160         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
57161         Update.
57162         (gl_array_list_implementation): Update.
57163         * lib/gl_carray_list.c: Don't include xalloc.h.
57164         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
57165         Return NULL upon out-of-memory.
57166         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
57167         out-of-memory.
57168         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
57169         Change return type to 'int'.
57170         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
57171         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
57172         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
57173         upon out-of-memory.
57174         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
57175         upon out-of-memory.
57176         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
57177         out-of-memory.
57178         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
57179         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
57180         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
57181         Update.
57182         (gl_carray_list_implementation): Update.
57183         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
57184         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
57185         gl_linked_create_empty. Return NULL upon out-of-memory.
57186         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
57187         out-of-memory.
57188         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
57189         Change return type to 'int'. Return -1 upon out-of-memory.
57190         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
57191         out-of-memory.
57192         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
57193         upon out-of-memory.
57194         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
57195         upon out-of-memory.
57196         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
57197         NULL upon out-of-memory.
57198         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
57199         upon out-of-memory.
57200         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
57201         out-of-memory.
57202         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
57203         Update.
57204         * lib/gl_linked_list.c: Don't include xalloc.h.
57205         (gl_linked_list_implementation): Update.
57206         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
57207         (add_to_bucket): Change return type to 'int'.
57208         (gl_linkedhash_list_implementation): Update.
57209         * lib/gl_anytree_list1.h (free_subtree): New function.
57210         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
57211         gl_tree_create_empty. Return NULL upon out-of-memory.
57212         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
57213         Change return type to 'int'. Return -1 upon out-of-memory.
57214         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
57215         out-of-memory.
57216         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
57217         (gl_tree_remove_node): New function, moved here from
57218         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
57219         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
57220         Update.
57221         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
57222         malloc, not xmalloc. Return NULL upon out-of-memory.
57223         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
57224         out-of-memory.
57225         (gl_tree_remove_node_from_tree): New function, extracted from
57226         gl_tree_remove_node.
57227         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
57228         upon out-of-memory.
57229         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
57230         out-of-memory.
57231         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
57232         upon out-of-memory.
57233         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
57234         upon out-of-memory.
57235         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
57236         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
57237         not xmalloc. Return NULL upon out-of-memory.
57238         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
57239         out-of-memory.
57240         (gl_tree_remove_node_from_tree): New function, extracted from
57241         gl_tree_remove_node.
57242         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
57243         upon out-of-memory.
57244         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
57245         out-of-memory.
57246         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
57247         upon out-of-memory.
57248         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
57249         upon out-of-memory.
57250         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
57251         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
57252         gl_anytree_list1.h before gl_anyavltree_list2.h.
57253         (gl_avltree_list_implementation): Update.
57254         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
57255         gl_anytree_list1.h before gl_anyavltree_list2.h.
57256         (gl_rbtree_list_implementation): Update.
57257         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
57258         Change return type to 'int'. Return -1 upon out-of-memory. Use
57259         __builtin_expect.
57260         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
57261         (gl_avltreehash_list_implementation): Update.
57262         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
57263         (gl_rbtreehash_list_implementation): Update.
57264         * modules/array-list (Depends-on): Remove xalloc.
57265         * modules/carray-list (Depends-on): Likewise.
57266         * modules/linked-list (Depends-on): Likewise.
57267         * modules/linkedhash-list (Depends-on): Likewise.
57268         * modules/avltree-list (Depends-on): Likewise.
57269         * modules/rbtree-list (Depends-on): Likewise.
57270         * modules/avltreehash-list (Depends-on): Likewise.
57271         * modules/rbtreehash-list (Depends-on): Likewise.
57273         * modules/xsublist: New file.
57274         * lib/gl_xsublist.h: New file.
57275         * lib/gl_xsublist.c: New file.
57276         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
57277         (gl_sublist_nx_create): New declaration.
57278         * lib/gl_sublist.c: Don't include xalloc.h.
57279         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
57280         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
57281         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
57282         Change return type to 'int'. Return -1 upon out-of-memory.
57283         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
57284         upon out-of-memory.
57285         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
57286         NULL upon out-of-memory.
57287         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
57288         upon out-of-memory.
57289         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
57290         NULL upon out-of-memory.
57291         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
57292         NULL upon out-of-memory.
57293         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
57294         upon out-of-memory.
57295         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
57296         (gl_sublist_list_implementation): Update.
57297         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
57298         upon out-of-memory.
57299         * modules/sublist (Depends-on): Remove xalloc.
57301         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
57302         * tests/test-carray_list.c: Likewise.
57303         * tests/test-linked_list.c: Likewise.
57304         * tests/test-linkedhash_list.c: Likewise.
57305         * tests/test-avltree_list.c: Likewise.
57306         * tests/test-rbtree_list.c: Likewise.
57307         * tests/test-avltreehash_list.c: Likewise.
57308         * tests/test-rbtreehash_list.c: Likewise.
57309         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
57310         * modules/carray-list-tests (Makefile.am): Likewise.
57311         * modules/linked-list-tests (Makefile.am): Likewise.
57312         * modules/linkedhash-list-tests (Makefile.am): Likewise.
57313         * modules/avltree-list-tests (Makefile.am): Likewise.
57314         * modules/rbtree-list-tests (Makefile.am): Likewise.
57315         * modules/avltreehash-list-tests (Makefile.am): Likewise.
57316         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
57318         * NEWS: Mention the changes.
57320         * lib/clean-temp.c: Include gl_xlist.h.
57321         * modules/clean-temp (Depends-on): Add xlist.
57323         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
57324         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
57326         * tests/test-array_oset.c: Include gl_xlist.h.
57327         * modules/array-oset-tests (Depends-on): Add xlist.
57329         Reported by José E. Marchesi <jemarch@gnu.org>.
57331 2009-12-13  Bruno Haible  <bruno@clisp.org>
57333         Move the malloc checking from module 'oset' to new module 'xoset'.
57334         * modules/xoset: New file.
57335         * lib/gl_xoset.h: New file.
57336         * lib/gl_xoset.c: New file.
57337         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
57338         declarations.
57339         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
57340         (struct gl_oset_implementation): Rename and change methods accordingly.
57341         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
57342         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
57343         'int'. Mark as __warn_unused_result__.
57344         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
57345         gl_oset_create_empty.
57346         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
57347         'int'.
57348         * lib/gl_array_oset.c: Don't include xalloc.h.
57349         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
57350         malloc, not xmalloc.
57351         (grow): Change return type to 'int'. Don't call xalloc_die.
57352         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
57353         to 'int'.
57354         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
57355         'int'.
57356         (gl_array_oset_implementation): Update.
57357         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
57358         gl_tree_create_empty.
57359         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
57360         'int'.
57361         * lib/gl_avltree_oset.c: Don't include xalloc.h.
57362         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
57363         xmalloc.
57364         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
57365         not xmalloc.
57366         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
57367         xmalloc.
57368         (gl_avltree_oset_implementation): Update.
57369         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
57370         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
57371         xmalloc.
57372         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
57373         not xmalloc.
57374         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
57375         xmalloc.
57376         (gl_rbtree_oset_implementation): Update.
57377         * modules/array-oset (Depends-on): Remove xalloc.
57378         * modules/avltree-oset (Depends-on): Likewise.
57379         * modules/rbtree-oset (Depends-on): Likewise.
57380         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
57381         * tests/test-avltree_oset.c: Likewise.
57382         * tests/test-rbtree_oset.c: Likewise.
57383         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
57384         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
57385         * modules/rbtree-oset-tests (Makefile.am): Likewise.
57386         * NEWS: Mention the change.
57388 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
57390         maint.mk: allow a project to override release-prep commands
57391         * top/maint.mk (alpha, beta, stable): Move release-preparatory
57392         commands into a new rule.
57393         (release-prep): New rule.
57394         (release-prep-hook): New overridable variable.
57396 2009-12-13  Bruno Haible  <bruno@clisp.org>
57398         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
57400 2009-12-13  Jim Meyering  <meyering@redhat.com>
57402         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
57403         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
57405 2009-12-12  Bruno Haible  <bruno@clisp.org>
57407         duplocale: Tweak.
57408         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
57410 2009-12-12  Karl Berry  <karl@gnu.org>
57412         * config/srclist.txt (strtoll.c): tab changes, no more sync.
57414 2009-12-12  Bruno Haible  <bruno@clisp.org>
57416         * m4/po.m4: Undo incorrect untabification.
57418 2009-12-12  Bruno Haible  <bruno@clisp.org>
57420         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
57421         * modules/c-strtod (Depends-on): Add locale.
57422         * modules/c-strtold (Depends-on): Likewise.
57424 2009-12-12  Bruno Haible  <bruno@clisp.org>
57426         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
57428 2009-12-11  Eric Blake  <ebb9@byu.net>
57430         setenv: relax requirement in light of POSIX ruling
57431         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
57432         not NULL.
57433         * tests/test-setenv.c (main): Relax test.
57434         * tests/test-unsetenv.c (main): Likewise.
57435         * doc/posix-functions/setenv.texi (setenv): Document this.
57436         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
57438 2009-12-11  Bruno Haible  <bruno@clisp.org>
57440         New module 'fd-safer-flag'.
57441         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
57442         * lib/dup-safer.c (dup_safer_flag): Remove function.
57443         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
57444         * lib/fd-safer.c (fd_safer_flag): Remove function.
57445         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
57446         * modules/cloexec (configure.ac): Drop indicator macro.
57447         * modules/fd-safer-flag: New file.
57448         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
57449         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
57450         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
57452 2009-12-11  Bruno Haible  <bruno@clisp.org>
57454         Tests for module 'nl_langinfo'.
57455         * modules/nl_langinfo-tests: New file.
57456         * tests/test-nl_langinfo.sh: New file.
57457         * tests/test-nl_langinfo.c: New file.
57459         New module 'nl_langinfo'.
57460         * lib/nl_langinfo.c: New file.
57461         * m4/nl_langinfo.m4: New file.
57462         * modules/nl_langinfo: New file.
57463         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
57465 2009-12-11  Bruno Haible  <bruno@clisp.org>
57467         Tests for module 'langinfo'.
57468         * modules/langinfo-tests: New file.
57469         * tests/test-langinfo.c: New file.
57471         New module 'langinfo'.
57472         * lib/langinfo.in.h: New file.
57473         * m4/langinfo_h.m4: New file.
57474         * modules/langinfo: New file.
57475         * doc/posix-headers/langinfo.texi: Mention the new module.
57477 2009-12-11  Bruno Haible  <bruno@clisp.org>
57479         * lib/config.charset: Untabify.
57481 2009-12-11  Bruno Haible  <bruno@clisp.org>
57483         * modules/unistd-safer (configure.ac): Drop indicator macro.
57485 2009-12-11  Bruno Haible  <bruno@clisp.org>
57487         Move pipe2-safer code to its own file.
57488         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
57489         * lib/pipe-safer.c (pipe2_safer): Remove function.
57490         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
57491         (Makefile.am): Add it to lib_SOURCES.
57493 2009-12-10  Bruno Haible  <bruno@clisp.org>
57495         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
57497 2009-12-10  Bruno Haible  <bruno@clisp.org>
57499         Declare which arguments expect non-NULL values, for GCC and clang.
57500         * build-aux/arg-nonnull.h: New file.
57501         * modules/arg-nonnull: New file.
57502         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
57503         (inet_ntop, inet_pton): Use it.
57504         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
57505         (closedir, dirfd, opendir, scandir, alphasort): Use it.
57506         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
57507         (open, openat): Use it.
57508         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
57509         (fnmatch): Use it.
57510         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
57511         (getopt, getopt_long, getopt_long_only): Use it.
57512         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
57513         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
57514         Use it.
57515         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
57516         (iconv_open): Use it.
57517         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
57518         (strtoimax, strtoumax): Use it.
57519         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
57520         (duplocale): Use it.
57521         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
57522         (frexp, frexpl): Use it.
57523         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
57524         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
57525         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
57526         (tsearch, tfind, tdelete, twalk): Use it.
57527         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
57528         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
57529         sigpending): Use it.
57530         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
57531         (posix_spawn, posix_spawnp, posix_spawnattr_init,
57532         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
57533         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
57534         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
57535         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
57536         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
57537         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
57538         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
57539         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
57540         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
57541         Use it.
57542         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
57543         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
57544         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
57545         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
57546         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
57547         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
57548         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
57549         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
57550         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
57551         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
57552         strtoull, unsetenv): Use it.
57553         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
57554         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
57555         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
57556         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
57557         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
57558         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
57559         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
57560         (strcasecmp, strncasecmp): Use it.
57561         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
57562         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
57563         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
57564         rpl_setsockopt): Use it.
57565         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
57566         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
57567         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
57568         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
57569         (gettimeofday): Use it.
57570         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
57571         (times): Use it.
57572         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
57573         (uname): Use it.
57574         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
57575         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
57576         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
57577         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
57578         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
57579         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
57580         unlinkat, write): Use it.
57581         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
57582         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
57583         * lib/argv-iter.h: Include arg-nonnull.h.
57584         (_ATTRIBUTE_NONNULL_): Remove macro.
57585         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
57586         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
57587         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
57588         optimization.
57589         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
57590         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
57591         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
57592         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
57593         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
57594         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
57595         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
57596         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
57597         * modules/arpa_inet (Depends-on): Add arg-nonnull.
57598         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
57599         * modules/dirent (Depends-on): Add arg-nonnull.
57600         (Makefile.am): Insert arg-nonnull.h into dirent.h.
57601         * modules/fcntl-h (Depends-on): Add arg-nonnull.
57602         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
57603         * modules/fnmatch (Depends-on): Add arg-nonnull.
57604         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
57605         * modules/getopt-posix (Depends-on): Add arg-nonnull.
57606         (Makefile.am): Insert arg-nonnull.h into getopt.h.
57607         * modules/glob (Depends-on): Add arg-nonnull.
57608         (Makefile.am): Insert arg-nonnull.h into glob.h.
57609         * modules/iconv_open (Depends-on): Add arg-nonnull.
57610         (Makefile.am): Insert arg-nonnull.h into iconv.h.
57611         * modules/inttypes (Depends-on): Add arg-nonnull.
57612         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
57613         * modules/locale (Depends-on): Add arg-nonnull.
57614         (Makefile.am): Insert arg-nonnull.h into locale.h.
57615         * modules/math (Depends-on): Add arg-nonnull.
57616         (Makefile.am): Insert arg-nonnull.h into math.h.
57617         * modules/netdb (Depends-on): Add arg-nonnull.
57618         (Makefile.am): Insert arg-nonnull.h into netdb.h.
57619         * modules/search (Depends-on): Add arg-nonnull.
57620         (Makefile.am): Insert arg-nonnull.h into search.h.
57621         * modules/signal (Depends-on): Add arg-nonnull.
57622         (Makefile.am): Insert arg-nonnull.h into signal.h.
57623         * modules/spawn (Depends-on): Add arg-nonnull.
57624         (Makefile.am): Insert arg-nonnull.h into spawn.h.
57625         * modules/stdio (Depends-on): Add arg-nonnull.
57626         (Makefile.am): Insert arg-nonnull.h into stdio.h.
57627         * modules/stdlib (Depends-on): Add arg-nonnull.
57628         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
57629         * modules/string (Depends-on): Add arg-nonnull.
57630         (Makefile.am): Insert arg-nonnull.h into string.h.
57631         * modules/strings (Depends-on): Add arg-nonnull.
57632         (Makefile.am): Insert arg-nonnull.h into strings.h.
57633         * modules/sys_socket (Depends-on): Add arg-nonnull.
57634         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
57635         * modules/sys_stat (Depends-on): Add arg-nonnull.
57636         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
57637         * modules/sys_time (Depends-on): Add arg-nonnull.
57638         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
57639         * modules/sys_times (Depends-on): Add arg-nonnull.
57640         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
57641         * modules/sys_utsname (Depends-on): Add arg-nonnull.
57642         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
57643         * modules/time (Depends-on): Add arg-nonnull.
57644         (Makefile.am): Insert arg-nonnull.h into time.h.
57645         * modules/unistd (Depends-on): Add arg-nonnull.
57646         (Makefile.am): Insert arg-nonnull.h into unistd.h.
57647         * modules/wchar (Depends-on): Add arg-nonnull.
57648         (Makefile.am): Insert arg-nonnull.h into wchar.h.
57649         * modules/argv-iter (Depends-on): Add arg-nonnull.
57650         * tests/test-canonicalize.c (null_ptr): New function.
57651         (main): Use it.
57652         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
57653         (main): Use it.
57654         * tests/test-memmem.c (null_ptr): New function.
57655         (main): Use it.
57656         Reported by Jim Meyering.
57658 2009-12-10  Bruno Haible  <bruno@clisp.org>
57660         Use spaces for indentation, not tabs.
57661         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
57662         * m4/*.m4: Untabify.
57663         * build-aux/*.h: Untabify.
57664         * tests/**/*.[hc]: Untabify.
57665         * README: New section "Indent with spaces, not TABs", based on
57666         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
57667         * NEWS: Mention the change.
57669 2009-12-10  Bruno Haible  <bruno@clisp.org>
57671         pty test: Fix link error.
57672         * modules/pty-tests (Makefile.am): Add the default LDADD value to
57673         test_pty_LDADD.
57675 2009-12-07  Simon Josefsson  <simon@josefsson.org>
57677         * modules/pty: New file.
57678         * modules/pty-tests: New file.
57679         * m4/pty.m4: New file.
57680         * tests/test-pty.c: New file.
57681         * doc/glibc-headers/pty.texi: Modified.
57682         * doc/glibc-functions/forkpty.texi: Modified.
57683         * doc/glibc-functions/openpty.texi: Modified.
57685 2009-12-10  Bruno Haible  <bruno@clisp.org>
57687         Avoid syntax error in C++ mode.
57688         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
57690 2009-12-10  Bruno Haible  <bruno@clisp.org>
57692         Use sed with option -e.
57693         * gnulib-tool (func_version, func_emit_copyright_notice,
57694         func_emit_initmacro_end, func_import, func_create_testdir): Pass
57695         option -e to sed.
57696         * modules/link-warning (Makefile.am): Likewise.
57698 2009-12-10  Jim Meyering  <meyering@redhat.com>
57700         mgetgroups: do not write bytes beyond end of malloc'd buffer
57701         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
57702         username, we call getgroups with a one-element-shorter buffer,
57703         but still told it the length was original, max_n_groups.
57705 2009-12-09  Eric Blake  <ebb9@byu.net>
57707         cloexec: relax license
57708         * modules/cloexec (Maintainer): Add myself.
57709         (License): Use LGPL, not GPL.
57711         link-warning: optimize generation
57712         * modules/link-warning (Makefile.am): Reduce process usage.
57714 2009-12-09  Bruno Haible  <bruno@clisp.org>
57716         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
57717         workaround was added on 2009-11-17.
57719 2009-12-09  Jim Meyering  <meyering@redhat.com>
57720             Bruno Haible  <bruno@clisp.org>
57722         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
57723         * modules/link-warning (Makefile.am): Make the comment-removing sed
57724         command more robust in the face of bootstrap-prepended comment lines.
57726 2009-12-09  Bruno Haible  <bruno@clisp.org>
57728         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
57729         most one group.
57731 2009-12-09  Simon Josefsson  <simon@josefsson.org>
57732             Bruno Haible  <bruno@clisp.org>
57734         * build-aux/link-warning.h: Add copyright notice.
57735         * modules/link-warning (Makefile.am): Generate link-warning.h from
57736         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
57737         * NEWS: Mention change in link-warning module.
57738         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
57739         * modules/dirent (Makefile.am): Add dependency to dirent.h.
57740         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
57741         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
57742         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
57743         * modules/math (Makefile.am): Add dependency to math.h.
57744         * modules/search (Makefile.am): Add dependency to search.h.
57745         * modules/signal (Makefile.am): Add dependency to signal.h.
57746         * modules/spawn (Makefile.am): Add dependency to spawn.h.
57747         * modules/stdio (Makefile.am): Add dependency to stdio.h.
57748         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
57749         * modules/string (Makefile.am): Add dependency to string.h.
57750         * modules/strings (Makefile.am): Add dependency to strings.h.
57751         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
57752         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
57753         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
57754         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
57755         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
57756         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
57757         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
57758         * modules/unistd (Makefile.am): Add dependency to unistd.h.
57759         * modules/wchar (Makefile.am): Add dependency to wchar.h.
57761 2009-12-09  Bruno Haible  <bruno@clisp.org>
57763         fchdir: Optimize away rpl_fstat when possible.
57764         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
57765         REPLACE_OPEN_DIRECTORY.
57766         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
57768 2009-12-09  Bruno Haible  <bruno@clisp.org>
57770         * lib/fchdir.c: Update comment.
57772 2009-12-09  Bruno Haible  <bruno@clisp.org>
57774         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
57776 2009-12-08  Eric Blake  <ebb9@byu.net>
57778         fchdir: avoid memory leak on re-registration.
57779         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
57781 2009-12-08  Jim Meyering  <meyering@redhat.com>
57783         init.sh: avoid Solaris 10 /bin/sh portability problem
57784         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
57785         sourced script:
57786           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
57787           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
57788           bar
57789         tests/init.sh relied on that, accepting a --set-path=DIR argument,
57790         and two tests used that idiom.
57791         * tests/init.sh: Update suggested usage comments.
57792         (path_prepend_): New function, to be used in place
57793         of the --src-path=DIR option.
57794         (setup_): Move PATH-prepending code into path_prepend_.
57795         * tests/test-pread.sh: Adapt to new usage.
57796         * tests/test-xalloc-die.sh: Likewise.
57798 2009-12-08  Simon Josefsson  <simon@josefsson.org>
57800         * doc/gnulib.texi (Glibc pty.h): Add.
57801         * doc/glibc-functions/forkpty.texi: Add.
57802         * doc/glibc-functions/openpty.texi: Add.
57803         Suggested by Bruno Haible.
57805 2009-12-08  Eric Blake  <ebb9@byu.net>
57807         fchdir: fix logic bugs
57808         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
57809         * tests/test-fchdir.c (main): Enhance test.
57810         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
57811         is in use.
57813         dup2: fix logic bugs
57814         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
57815         REPLACE_DUP2 to decide when rpl_dup2 is needed.
57816         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
57817         exists.
57818         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
57820 2009-12-07  Eric Blake  <ebb9@byu.net>
57822         unlink: fix m4 detection
57823         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
57825         unistd-safer: add unit test
57826         * modules/unistd-safer-tests: New file.
57827         * tests/test-dup-safer.c: Likewise.
57828         * tests/test-cloexec.c (setmode): Avoid compiler warning.
57829         * tests/test-dup2.c (setmode): Likewise.
57830         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
57832         cloexec: preserve text vs. binary across dup_cloexec
57833         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
57834         mode.
57835         * modules/dup2-tests (Depends-on): Add binary-io.
57836         * modules/cloexec-tests (Depends-on): Likewise.
57837         * tests/test-dup2.c (setmode, is_mode): New helpers.
57838         (main): Add tests that translation mode is preserved.
57839         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
57840         Reported by Bruno Haible.
57842         mgetgroups: reduce duplicate listings
57843         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
57844         resulting array.
57845         * tests/test-chown.h (test_chown): Simplify client.
57846         * tests/test-lchown.h (test_lchown): Likewise.
57848 2009-12-06  Bruno Haible  <bruno@clisp.org>
57850         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
57851         value.
57853 2009-12-06  Bruno Haible  <bruno@clisp.org>
57855         * lib/progname.c: Include stdio.h, stdlib.h.
57856         (set_program_name): Reject a NULL argument.
57858 2009-12-05  Eric Blake  <ebb9@byu.net>
57860         pipe2-safer: new module
57861         * modules/pipe2-safer: New file.
57862         * lib/unistd-safer.h (pipe2_safer): New prototype.
57863         * lib/unistd--.h (pipe2): New wrapper.
57864         * lib/pipe-safer.c (pipe2_safer): New function.
57865         * modules/pipe (Depends-on): Add pipe2-safer.
57866         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
57868         stdlib-safer: preserve cloexec flag for mkostemp[s]
57869         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
57870         fd_safer_flag.
57872         unistd-safer: allow preservation of cloexec status via flag
57873         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
57874         prototypes.
57875         * lib/dup-safer.c (dup_safer_flag): New function.
57876         * lib/fd-safer.c (fd_safer_flag): Likewise.
57877         * modules/cloexec (configure.ac): Set witness.
57879         test-dup2: enhance test
57880         * modules/dup2-tests (Depends-on): Add cloexec.
57881         * tests/test-dup2.c (main): Enhance test.
57883         cloexec: add dup_cloexec
57884         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
57885         header and comments.
57886         * lib/cloexec.c (set_cloexec_flag): Add comments.
57887         (dup_cloexec): New function, with mingw implementation borrowed
57888         from...
57889         * lib/w32spawn.h (dup_noinherit): ...here.
57890         * modules/execute (Depends-on): Add cloexec.
57891         * modules/pipe (Depends-on): Likewise.
57892         * modules/cloexec (Depends-on): Add dup2.
57893         * modules/cloexec-tests (Files): New file.
57894         * tests/test-cloexec.c: Likewise.
57896         test-xalloc-die: fix test for mingw
57897         * modules/xalloc-die-tests (Files): Add tests/init.sh.
57898         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
57899         directory and .exe suffix off argv[0] output.
57901         test-fseeko: fix test for mingw
57902         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
57903         than undefining fseek, so test will pass on mingw.
57905 2009-12-05  Bruno Haible  <bruno@clisp.org>
57907         * lib/progname.h (set_program_name): Clarify specification.
57908         * lib/progname.c (set_program_name): Likewise.
57909         Reported by Jim Meyering.
57911 2009-12-05  Jim Meyering  <meyering@redhat.com>
57913         maint.mk: backslash-escape parens in default regexp
57914         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
57915         backslash-escape the literal parentheses.
57917         maint.mk: news-date-check: use grep -E
57918         * top/maint.mk (today): Define a Make variable, not a...
57919         (news-date-check): ...shell variable.
57920         (news-date-regexp): Use the Make variable.
57921         Use grep's -E option.  Change the failing diagnostic to mention
57922         the variable, $(news-date-regexp).
57924 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
57926         maintainer-makefile: allow customization of NEWS entry format
57927         * top/maint.mk (news-date-regexp): New overridable variable.
57928         (news-date-check): Use it.
57930 2009-12-04  Eric Blake  <ebb9@byu.net>
57932         mgetgroups: add xgetgroups, and avoid ENOSYS failures
57933         * lib/mgetgroups.h (xgetgroups): New prototype.
57934         * lib/mgetgroups.c (xgetgroups): New wrapper.
57935         (mgetgroups): Handle ENOSYS.
57936         * modules/mgetgroups (Depends-on): Add realloc.
57937         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
57939         mgetgroups: avoid argument promotion issues with -1
57940         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
57941         for invalid gid_t.
57942         * tests/test-chown.h (getegid, test_chown): Likewise.
57943         * tests/test-lchown.h (getegid, test_lchown): Likewise.
57945 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
57947         exclude: Fix header file problems.
57948         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
57950 2009-12-01  Jim Meyering  <meyering@redhat.com>
57952         fts: fts_open: do not let an empty string cause immediate failure
57953         This is required in support of GNU rm, for which the command
57954         "rm A '' B" must process and remove both A and B, in spite of
57955         the empty string argument.
57956         * lib/fts.c (fts_open): Do not let the presence of an empty string
57957         cause fts_open to fail immediately.  Most fts-using tools must be
57958         able to process all arguments, in order, and can be expected to
57959         diagnose such arguments themselves.
57961 2009-11-30  Eric Blake  <ebb9@byu.net>
57963         utimens: fix compilation error
57964         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
57965         Declare variable at right scope.
57967 2009-11-29  Jim Meyering  <meyering@redhat.com>
57969         bootstrap: handle perl-5.11's changed --version output
57970         * build-aux/bootstrap (get_version): Handle perl separately,
57971         since perl-5.11's --version output is different.
57973 2009-11-28  Jim Meyering  <meyering@redhat.com>
57975         userspec: depend on the inttostr module, too
57976         * modules/userspec (Depends-on): Add inttostr.
57978         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
57979         * lib/userspec.c (parse_with_separator): Do not accept a user ID
57980         number of MAXUID when it evaluates to (uid_t) -1.
57981         Likewise for group ID.  Reported by Matt McCutchen in
57982         <http://savannah.gnu.org/bugs/?28113>
57984         userspec: reformat to use spaces, not TABs
57985         * lib/userspec.c: Expand TABs to spaces.
57986         Add Emacs' "indent-tabs-mode: nil" hint.
57988 2009-11-27  Eric Blake  <ebb9@byu.net>
57990         getopt-gnu: flush out another BSD bug
57991         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
57992         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
57993         flush out BSD bug.
57994         * tests/test-getopt.h (test_getopt): End lists with NULL.
57995         * tests/test-getopt_long.h (test_getopt_long): Likewise.
57996         (test_getopt_long_posix): Enhance test.
57997         * modules/getopt-posix-tests (Depends-on): Add stdbool.
57998         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
57999         getopt-gnu.
58000         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
58001         Likewise.
58003 2009-11-27  Simon Josefsson  <simon@josefsson.org>
58005         * modules/idpriv-droptemp-tests (Notice): Fix text.
58007 2009-11-27  Jim Meyering  <meyering@redhat.com>
58009         test-xalloc-die: avoid spurious failure due to libtool argv difference
58010         In a libtool-enabled project, this test would fail due to a difference
58011         in the emitted program name, e.g.,
58012         -test-xalloc-die: memory exhausted
58013         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
58014         Use program to avoid that.
58015         * modules/xalloc-die-tests (Depends-on): Add progname.
58016         * tests/test-xalloc-die.c: Include progname.h".
58017         (program_name): Remove decl.
58018         (main): Call set_program_name.
58019         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
58021 2009-11-26  Richard Jones  <rjones@redhat.com>
58023         w32sock: leave win32 error in place.
58024         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
58026 2009-11-26  Eric Blake  <ebb9@byu.net>
58028         init.sh: suggest to use skip_ and fail_ functions in comments
58029         * tests/init.sh: Add a sentence.
58031 2009-11-25  Bruno Haible  <bruno@clisp.org>
58033         init.sh: add documentation in comments
58034         * tests/init.sh: Add some developer and user documentation.
58036 2009-11-26  Jim Meyering  <meyering@redhat.com>
58038         init.sh: accommodate even those who specify bogus srcdir manually
58039         * tests/init.sh: Normally, srcdir is guaranteed by automake and
58040         configure-time tests to be sanitized, so that there is no need to
58041         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
58042         (with no double quotes) suffices.  However, since tests may be
58043         invoked manually, and since you may explicitly set srcdir to the
58044         name of a directory containing spaces, do quote its uses here.
58045         * tests/test-pread.sh: Likewise.
58046         Suggested by Bruno Haible.
58048         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
58049         * tests/test-pread.sh: Write no data into the pipe, because
58050         test-pread actually reads none.  This avoids a diagnostic,
58051         "bash: echo: write error: Broken pipe", that arises in the unusual
58052         event something is ignoring SIGPIPE, and might be interpreted
58053         as some sort of failure.  Reported by Bruno Haible.
58055 2009-11-25  Jim Meyering  <meyering@redhat.com>
58057         test-pread: cover failure with ESPIPE and EINVAL
58058         * tests/test-pread.c (main): Test for failure, too.
58059         * tests/test-pread.sh: Invoke with stdin on a pipe.
58060         Suggested by Eric Blake.
58062         pread: improvement and fix
58063         * modules/pread (Depends-on): Depend on lseek, for portability to
58064         e.g., mingw.  Suggested by Eric Blake.
58065         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
58067         unistd.in.h: correct declaration of pread
58068         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
58069         Reported by Richard W.M. Jones.
58071         test-pread.sh: distribute the test script
58072         * modules/pread-tests (Files): Include test-pread.sh.
58074         test-pread.sh: clean up
58075         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
58076         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
58077         That is unnecessary, since it's always ".".
58078         Suggestion from Eric Blake.
58080         test-pread.sh: make executable
58081         * tests/test-pread.sh: Set executable bit.
58082         Reported by Eric Blake.
58084         correct typo in test-pread.sh
58085         * tests/test-pread.sh: Add #! line.
58087         test pread
58088         * tests/test-pread.c: New file.
58089         * tests/test-pread.sh: Likewise.
58090         * modules/pread-tests: Likewise.
58092         pread: new module
58093         * modules/pread: New file.
58094         * lib/unistd.in.h (pread): Define/declare.
58095         * lib/pread.c (pread): New file.
58096         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
58097         * modules/unistd (Makefile.am): Substitute witnesses.
58098         * doc/posix-functions/pread.texi (pread): Update.
58099         * MODULES.html.sh: Add pread.
58101 2009-11-25  Jim Meyering  <meyering@redhat.com>
58103         tests/init.sh: new file to be used via most *.sh tests
58104         * tests/init.sh: New file.
58106 2009-11-25  Eric Blake  <ebb9@byu.net>
58108         utimens: work around older Linux failure with symlinks
58109         * lib/utimens.c (lutimensat_works_really): New variable.
58110         (fdutimens, lutimens): Use it to manage kernels that support
58111         nanosecond times on files, but not on symlinks.
58112         Reported by Ondřej Vašík.
58114         utimes: fix configure grammar
58115         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
58117 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
58119         regex: Fix fastmap for multibyte character ranges.
58120         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
58121         characters when a multibyte character range is included.
58123 2009-11-22  Andy Wingo  <wingo@pobox.com>
58125         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
58126         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
58128 2009-11-24  Bruno Haible  <bruno@clisp.org>
58130         doc: Most *_l functions exist in MacOS X 10.5.
58131         * doc/posix-functions/duplocale.texi: Update platforms list.
58132         * doc/posix-functions/freelocale.texi: Likewise.
58133         * doc/posix-functions/newlocale.texi: Likewise.
58134         * doc/posix-functions/uselocale.texi: Likewise.
58135         * doc/posix-functions/isalnum_l.texi: Likewise.
58136         * doc/posix-functions/isalpha_l.texi: Likewise.
58137         * doc/posix-functions/isblank_l.texi: Likewise.
58138         * doc/posix-functions/iscntrl_l.texi: Likewise.
58139         * doc/posix-functions/isdigit_l.texi: Likewise.
58140         * doc/posix-functions/isgraph_l.texi: Likewise.
58141         * doc/posix-functions/islower_l.texi: Likewise.
58142         * doc/posix-functions/isprint_l.texi: Likewise.
58143         * doc/posix-functions/ispunct_l.texi: Likewise.
58144         * doc/posix-functions/isspace_l.texi: Likewise.
58145         * doc/posix-functions/isupper_l.texi: Likewise.
58146         * doc/posix-functions/iswalnum_l.texi: Likewise.
58147         * doc/posix-functions/iswalpha_l.texi: Likewise.
58148         * doc/posix-functions/iswblank_l.texi: Likewise.
58149         * doc/posix-functions/iswcntrl_l.texi: Likewise.
58150         * doc/posix-functions/iswctype_l.texi: Likewise.
58151         * doc/posix-functions/iswdigit_l.texi: Likewise.
58152         * doc/posix-functions/iswgraph_l.texi: Likewise.
58153         * doc/posix-functions/iswlower_l.texi: Likewise.
58154         * doc/posix-functions/iswprint_l.texi: Likewise.
58155         * doc/posix-functions/iswpunct_l.texi: Likewise.
58156         * doc/posix-functions/iswspace_l.texi: Likewise.
58157         * doc/posix-functions/iswupper_l.texi: Likewise.
58158         * doc/posix-functions/iswxdigit_l.texi: Likewise.
58159         * doc/posix-functions/isxdigit_l.texi: Likewise.
58160         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
58161         * doc/posix-functions/strcasecmp_l.texi: Likewise.
58162         * doc/posix-functions/strcoll_l.texi: Likewise.
58163         * doc/posix-functions/strfmon_l.texi: Likewise.
58164         * doc/posix-functions/strftime_l.texi: Likewise.
58165         * doc/posix-functions/strncasecmp_l.texi: Likewise.
58166         * doc/posix-functions/strxfrm_l.texi: Likewise.
58167         * doc/posix-functions/tolower_l.texi: Likewise.
58168         * doc/posix-functions/toupper_l.texi: Likewise.
58169         * doc/posix-functions/towctrans_l.texi: Likewise.
58170         * doc/posix-functions/towlower_l.texi: Likewise.
58171         * doc/posix-functions/towupper_l.texi: Likewise.
58172         * doc/posix-functions/wcscoll_l.texi: Likewise.
58173         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
58174         * doc/posix-functions/wctrans_l.texi: Likewise.
58175         * doc/posix-functions/wctype_l.texi: Likewise.
58176         * doc/glibc-functions/strptime_l.texi: Likewise.
58177         * doc/glibc-functions/strtod_l.texi: Likewise.
58178         * doc/glibc-functions/strtof_l.texi: Likewise.
58179         * doc/glibc-functions/strtol_l.texi: Likewise.
58180         * doc/glibc-functions/strtold_l.texi: Likewise.
58181         * doc/glibc-functions/strtoll_l.texi: Likewise.
58182         * doc/glibc-functions/strtoul_l.texi: Likewise.
58183         * doc/glibc-functions/strtoull_l.texi: Likewise.
58184         * doc/glibc-functions/wcsftime_l.texi: Likewise.
58185         * doc/glibc-functions/wcstod_l.texi: Likewise.
58186         * doc/glibc-functions/wcstof_l.texi: Likewise.
58187         * doc/glibc-functions/wcstol_l.texi: Likewise.
58188         * doc/glibc-functions/wcstold_l.texi: Likewise.
58189         * doc/glibc-functions/wcstoll_l.texi: Likewise.
58190         * doc/glibc-functions/wcstoul_l.texi: Likewise.
58191         * doc/glibc-functions/wcstoull_l.texi: Likewise.
58193 2009-11-24  Bruno Haible  <bruno@clisp.org>
58195         duplocale: Fix logic bug.
58196         * lib/duplocale.c: Don't include <langinfo.h>.
58197         (_NL_LOCALE_NAME): Remove macro.
58198         (rpl_duplocale): Use setlocale instead of nl_langinfo.
58199         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
58201 2009-11-23  Jim Meyering  <meyering@redhat.com>
58203         test-update-copyright: don't hard-code /usr/bin/perl
58204         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
58205         perl to print the current year.  Gilles Espinasse reported that
58206         the replaced use of perl was hard-coded as /usr/bin/perl.
58208 2009-11-23  Bruno Haible  <bruno@clisp.org>
58210         duplocale: Add support for glibc 2.3.x.
58211         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
58213 2009-11-22  Bruno Haible  <bruno@clisp.org>
58215         vasnprintf: Tiny optimization.
58216         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
58217         MacOS X.
58219 2009-11-22  Bruno Haible  <bruno@clisp.org>
58221         Tests for module 'duplocale'.
58222         * modules/duplocale-tests: New file.
58223         * tests/test-duplocale.c: New file.
58225         New module 'duplocale'.
58226         * m4/duplocale.m4: New file.
58227         * lib/locale.in.h (duplocale): New declaration.
58228         * lib/duplocale.c: New file.
58229         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
58230         gl_LOCALE_H_DEFAULTS): New macros.
58231         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
58232         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
58233         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
58234         REPLACE_DUPLOCALE.
58235         * modules/duplocale: New file.
58236         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
58238 2009-11-22  Bruno Haible  <bruno@clisp.org>
58240         * modules/locale-tests (configure.ac): Test for newlocale function.
58241         * tests/test-locale.c: When the system has extended locale functions,
58242         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
58244         locale: Make locale_t available when possible.
58245         * lib/locale.in.h: Include <xlocale.h> when it exists.
58246         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
58247         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
58248         * modules/locale (Depends-on): Add extensions.
58249         (Makefile.am): Also substitute HAVE_XLOCALE_H.
58250         * doc/posix-headers/locale.texi: Document the problem with locale_t.
58252 2009-11-22  Bruno Haible  <bruno@clisp.org>
58254         Add comments.
58255         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
58256         invocation.
58257         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
58258         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
58259         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
58261 2009-11-22  Bruno Haible  <bruno@clisp.org>
58263         error: account for the possibility of freopen (stdout).
58264         * lib/error.c: Include <unistd.h>.
58265         (flush_stdout): New function, extracted from error and error_at_line.
58266         Determine stdout's fd dynamically.
58267         (error, error_at_line): Invoke flush_stdout.
58268         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
58269         * modules/error (Depends-on): Add unistd.
58271 2009-11-22  Bruno Haible  <bruno@clisp.org>
58273         diffseq: Add comment.
58274         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
58276 2009-11-22  Jim Meyering  <meyering@redhat.com>
58278         c-stack: avoid defining an unused static function
58279         * lib/c-stack.c (find_stack_direction): Do not define this function
58280         when it will not be used.
58282         diffseq: avoid spurious gcc warnings
58283         * lib/diffseq.h (IF_LINT2): Define.
58284         (compareseq): Use it to initialize two members of "part".
58285         This avoids two used-uninitialized warnings.
58287 2009-11-21  Jim Meyering  <meyering@redhat.com>
58289         c-stack: avoid "ignoring return value of `write'" warning
58290         * lib/c-stack.c: Include "ignore-value.h".
58291         (die): Explicitly ignore each write return value.
58292         * modules/c-stack (Depends-on): Add ignore-value.
58294 2009-11-21  Bruno Haible  <bruno@clisp.org>
58296         diffseq: reduce scope of variable 'best'.
58297         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
58298         variable, earlier used for two different purposes.
58300 2009-11-21  Jim Meyering  <meyering@redhat.com>
58302         diffseq: remove useless assignment to "best"
58303         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
58304         assignment.  At that point "best" is already guaranteed to be zero.
58306 2009-11-20  Eric Blake  <ebb9@byu.net>
58308         build: mention ftp redirector in release announcements
58309         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
58310         values that used to come from cfg.mk; mention FTP redirect URL.
58311         * build-aux/announce-gen: Mention the mirror list.
58312         Suggested by Karl Berry.
58314         nanosleep: improve port to mingw
58315         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
58316         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
58317         LIB_NANOSLEEP, but only when needed.
58318         * modules/select (Link): Document LIBSOCKET.
58319         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
58320         enough.
58322         nanosleep: work around cygwin bug
58323         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
58324         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
58325         bug.
58326         (getnow): Delete, not needed.
58327         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
58328         LIB_CLOCK_GETTIME.
58329         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
58330         clock-time, gettime.
58331         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
58332         bug.
58333         * modules/nanosleep-tests: New test.
58334         * tests/test-nanosleep.c: New file.
58336         sleep: work around cygwin bug
58337         * lib/sleep.c (rpl_sleep): Work around the bug.
58338         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
58339         (gl_PREREQ_SLEEP): Delete unused macro.
58340         * modules/sleep (Depends-on): Add verify.
58341         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
58342         * modules/unistd (Makefile.am): Substitute witness.
58343         * lib/unistd.in.h (sleep): Update prototype.
58344         * doc/posix-functions/sleep.texi (sleep): Document the bug.
58345         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
58346         * modules/sleep-tests (Depends-on): Check for alarm.
58348 2009-11-20  Jim Meyering  <meyering@redhat.com>
58350         maint.mk: improve sc_prohibit_magic_number_exit
58351         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
58352         so it does not match uses like System.exit(1).
58353         Add comments showing how to correct all offenders.
58355 2009-11-19  Eric Blake  <ebb9@byu.net>
58357         xalloc-die-tests: add missing library
58358         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
58360         test-xvasprintf: silence compiler warnings
58361         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
58362         empty string from gcc.
58364 2009-11-19  Jim Meyering  <meyering@redhat.com>
58366         xfreopen: new module, from coreutils
58367         * modules/xfreopen: New module.
58368         * lib/xfreopen.c: New file.
58369         * lib/xfreopen.h: New file.
58370         * MODULES.html.sh (File stream based Input/Output"): Add it.
58372 2009-11-19  Eric Blake  <ebb9@byu.net>
58374         manywarnings: depend on warnings
58375         * modules/manywarnings (Depends-on): Add warnings.
58377         build: avoid compiler warnings
58378         * lib/select.c (rpl_select): Delete unused variable.
58379         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
58381 2009-11-18  Eric Blake  <ebb9@byu.net>
58383         tests: avoid false negative with --with-packager
58384         * tests/test-version-etc.sh: Discard packager information.
58385         * tests/test-argp-version-etc-1.sh: Likewise.
58386         Reported by Mike Frysinger.
58388         utimens: fix regression on Solaris
58389         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
58390         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
58391         can only change fd timestamps via futimesat.  Instead, use an
58392         additional witness macro to avoid BSD bug.
58393         Reported by Jim Meyering.
58395 2009-11-17  Eric Blake  <ebb9@byu.net>
58397         usleep: use it to simplify tests
58398         * modules/stat-time-tests (Depends-on): Add usleep.
58399         (configure.ac): Drop usleep check.
58400         * modules/chown-tests (Depends-on, configure.ac): Likewise.
58401         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
58402         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
58403         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
58404         * modules/openat-tests (Depends-on, configure.ac): Likewise.
58405         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
58406         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
58407         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
58408         Likewise.
58409         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
58410         * tests/test-lchown.h (nap): Likewise.
58411         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
58412         * tests/test-stat-time.c (nap): Likewise.
58413         * tests/test-utimens-common.h (nap): Update comments.
58415         usleep: new module
58416         * modules/usleep: New file.
58417         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
58418         * lib/usleep.c (usleep): Likewise.
58419         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
58420         * modules/unistd (Makefile.am): Substitute witnesses.
58421         * lib/unistd.in.h (usleep): Add declaration.
58422         * doc/pastposix-functions/usleep.texi (usleep): Document this.
58423         * MODULES.html.sh (Date and time): Likewise.
58424         * modules/usleep-tests (Depends-on): New test.
58425         * tests/test-usleep.c: New file.
58427         chown: work around OpenBSD bug
58428         * lib/chown.c (rpl_chown): Work around the bug.
58429         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
58430         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
58431         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
58432         * modules/chown (Depends-on): Add stdbool.
58433         * modules/lchown (Depends-on): Likewise.
58434         * doc/posix-functions/chown.texi (chown): Document the bug.
58435         * doc/posix-functions/lchown.texi (lchown): Likewise.
58436         * tests/test-lchown.h (test_chown): Relax test.
58438         mkstemp: avoid conflict with C++ keyword template
58439         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
58440         * lib/mkostemp.c (mkostemp): Likewise.
58441         * lib/mkostemps.c (mkostemps): Likewise.
58442         * lib/mkstemp.c (mkstemp): Likewise.
58443         * lib/mkstemps.c (mkstemps): Likewise.
58445         xalloc-die-tests: optimize
58446         * tests/test-xalloc-die.sh: Reduce number of processes.
58448 2009-11-17  Simon Josefsson  <simon@josefsson.org>
58450         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
58451         patch from ludo@gnu.org (Ludovic Courtès).
58453 2009-11-17  Jim Meyering  <meyering@redhat.com>
58455         version-etc: use proper license string
58456         * modules/version-etc (License): Use LGPL, not LGPLv3+.
58457         * modules/version-etc-fsf: Likewise.
58459 2009-11-17  Simon Josefsson  <simon@josefsson.org>
58461         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
58462         printed to stdout.  Deal with EOL differences.
58464 2009-11-17  Eric Blake  <ebb9@byu.net>
58466         unsetenv: work around Solaris bug
58467         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
58468         * lib/unsetenv.c (rpl_unsetenv): Work around it.
58469         Reported by Jim Meyering.
58471         vasnprintf: avoid compiler warnings
58472         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
58473         variables.
58474         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
58476 2009-11-17  Simon Josefsson  <simon@josefsson.org>
58478         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
58479         settings since xalloc-die is no longer the self test,
58480         xalloc-die.sh is.
58482 2009-11-17  Jim Meyering  <meyering@redhat.com>
58484         test-xalloc-die.sh: make the code agree with the commit log
58485         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
58486         at the end, just in case you happen to have a test-xalloc-die
58487         program in some other PATH directory.
58489         test-xalloc-die.sh: fix a portability bug
58490         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
58491         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
58492         Otherwise, argv[0] (as often seen in diagnostics) would be too
58493         system-dependent, sometimes with, and sometimes without the leading "./".
58495         version-etc-fsf: relax license to LGPLv3+
58496         * modules/version-etc-fsf (License): Relax license.
58498 2009-11-16  Eric Blake  <ebb9@byu.net>
58500         xalloc-die-tests: avoid printing null pointer
58501         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
58502         shell script.
58503         * tests/test-xalloc-die.c (program_name): Declare.
58504         * tests/test-xalloc-die.sh (tmpfiles): New file.
58506         setenv, unsetenv: work around various bugs
58507         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
58508         (setenv) [HAVE_SETENV]: Work around bugs.
58509         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
58510         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
58511         for bugs.
58512         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
58513         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
58514         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
58515         * modules/stdlib (Makefile.am): Update substitutions.
58516         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
58517         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
58518         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
58519         * modules/setenv-tests: New test.
58520         * modules/unsetenv-tests: Likewise.
58521         * tests/test-setenv.c: New file.
58522         * tests/test-unsetenv.c: Likewise.
58524 2009-11-16  Jim Meyering  <meyering@redhat.com>
58526         version-etc: relax license to LGPLv3+
58527         * modules/version-etc (License): Relax license.
58529         better AC_REQUIRE expanded-before-required-warning avoidance
58530         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
58531         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
58532         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
58533         which is no longer needed.
58535 2009-11-16  Eric Blake  <ebb9@byu.net>
58537         test-freading: clean up temporary file
58538         * tests/test-freading.c (main): Remove file on success, and use
58539         ASSERT more liberally.
58540         Reported by Jim Meyering.
58542 2009-11-16  Jim Meyering  <meyering@redhat.com>
58544         avoid new AC_REQUIRE expanded-before-required warnings
58545         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
58546         merely using it.
58547         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
58548         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
58550 2009-11-15  Simon Josefsson  <simon@josefsson.org>
58552         * tests/test-xalloc-die.c: New file.
58553         * modules/xalloc-die-tests: New file.
58554         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
58555         XFAIL_TESTS so it can be appended by modules.
58557 2009-11-15  Simon Josefsson  <simon@josefsson.org>
58559         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
58560         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
58562 2009-11-14  Eric Blake  <ebb9@byu.net>
58564         fnmatch: avoid compiler warning
58565         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
58566         to silence compiler warning about mismatch signedness in ?:.
58567         Reported by Robert Millan.
58569         intprops: add double-inclusion guard
58570         * lib/intprops.h: Allow idempotent includes.
58571         Suggested by Bruce Korb.
58573         openat: detect Solaris fchownat bug
58574         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
58575         penalizing glibc chownat when only lchownat is broken.
58576         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
58577         trailing slash bugs.
58578         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
58579         * modules/openat-tests (Files): Include more files.
58580         (Depends-on): Add mgetgroups, sleep, stat-time.
58581         (configure.ac): Add additional checks.
58582         (Makefile.am): Build new test.
58583         * tests/test-fchownat.c: New file.
58585         lchown: detect Solaris and FreeBSD bug
58586         * lib/lchown.c (rpl_lchown): Work around bug.
58587         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
58588         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
58589         * modules/unistd (Makefile.am): Populate it.
58590         * lib/unistd.in.h (lchown): Update declaration.
58591         * doc/posix-functions/lchown.texi (lchown): Document the bug.
58592         * modules/lchown-tests: New file.
58593         * tests/test-lchown.h (test_lchown): Likewise.
58594         * tests/test-lchown.c (main): Likewise.
58596         chown: detect Solaris and FreeBSD bug
58597         * lib/chown.c (rpl_chown): Work around bug.
58598         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
58599         (gl_PREREQ_CHOWN): Delete.
58600         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
58601         * modules/unistd (Makefile.am): Populate it.
58602         * lib/unistd.in.h (chown): Update declaration.
58603         * lib/lchown.c (chown): Update client.
58604         * modules/lchown (Depends-on): Add lstat.
58605         * doc/posix-functions/chown.texi (chown): Document the bug.
58606         * doc/posix-functions/getgroups.texi (getgroups): Document
58607         getgroups pitfall.
58608         * modules/chown-tests: New file.
58609         * tests/test-chown.h (test_chown): Likewise.
58610         * tests/test-chown.c (main): Likewise.
58612 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
58614         gnulib-tool: correctly detect absence of m4 directories
58615         * gnulib-tool: Avoid extra newline on data passed to wc -l.
58617 2009-11-14  Jim Meyering  <meyering@redhat.com>
58619         maint.mk: Prohibit inclusion of "xalloc.h" without use.
58620         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
58622 2009-11-14  John W. Eaton  <jwe@gnu.org>
58624         strftime.h: wrap function declaration in extern "C" block
58625         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
58627 2009-11-13  Eric Blake  <ebb9@byu.net>
58629         getgroups: avoid compiler warning
58630         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
58632         getgroups: work around FreeBSD bug
58633         * lib/getgroups.c (rpl_getgroups): Work around the bug.
58634         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
58635         * doc/posix-functions/getgroups.texi (getgroups): Document it.
58636         * tests/test-getgroups.c (main): Fix buffer overrun.
58638         getgroups: avoid compilation failure
58639         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
58640         * modules/getgroups (Depends-on): Add stdint.
58642 2009-11-13  Jim Meyering  <meyering@redhat.com>
58644         test-getgroups: avoid compilation failure
58645         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
58647 2009-11-13  Eric Blake  <ebb9@byu.net>
58649         mgetgroups: new module, taken from coreutils
58650         * modules/mgetgroups: New file.
58651         * lib/mgetgroups.h: Likewise.
58652         * lib/mgetgroups.c (mgetgroups): Likewise.
58653         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
58654         * MODULES.html.sh (Users and groups): Mention it.
58656         getgroups: don't expose GETGROUPS_T to user
58657         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
58658         an element at a time if GETGROUPS_T is wrong size.
58659         * lib/getugroups.h (getugroups): Change signature.
58660         * lib/unistd.in.h (getgroups): Likewise.
58661         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
58662         signature needs fixing.
58663         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
58664         AC_TYPE_GETGROUPS.
58665         * modules/group-member (Depends-on): Add getgroups.
58666         * lib/group-member.c (group_info, get_group_info): Use gid_t.
58667         (group_member): Rely on getgroups replacement.
58668         * lib/getugroups.c (getugroups): Use gid_t.
58669         * tests/test-getgroups.c (main): Likewise.
58670         * NEWS: Mention the signature change.
58671         * doc/posix-functions/getgroups.texi (getgroups): Mention the
58672         problem with signature.
58673         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
58674         GETGROUPS_T is still useful for setgroups.
58676         getgroups, getugroups: provide stubs for mingw
58677         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
58678         * lib/getugroups.c (getugroups): Likewise.
58679         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
58680         function.  Modernize replacement scheme.
58681         (gl_PREREQ_GETGROUPS): Delete.
58682         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
58683         * modules/getgroups (configure.ac): Declare witness.
58684         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
58685         * modules/unistd (Depends-on): Substitute witness.
58686         * lib/unistd.in.h (getgroups): Declare replacement.
58688         getgroups: avoid calling exit
58689         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
58690         drop xalloc.
58691         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
58692         dependencies.
58693         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
58694         exiting, in the rare case of malloc failure.
58696         getgroups: fix logic error
58697         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
58698         has more than 20 groups.
58699         * modules/getgroups-tests: New test.
58700         * tests/test-getgroups.c: New file.
58702 2009-11-13  Simon Josefsson  <simon@josefsson.org>
58704         * tests/test-base64.c: Improve.
58706 2009-11-13  Simon Josefsson  <simon@josefsson.org>
58708         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
58709         Blake <ebb9@byu.net>.
58711 2009-11-13  Simon Josefsson  <simon@josefsson.org>
58713         * tests/test-xvasprintf.c: Add %s%s related checks.
58715 2009-11-12  Eric Blake  <ebb9@byu.net>
58717         version-etc: match standards.texi style
58718         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
58719         and use <> only for URLs.
58721 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
58723         fts: do not fail on a submount during traversal
58724         * lib/fts.c (fts_build): Read the stat info again after opening
58725         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
58726         Original report at http://bugzilla.redhat.com/501848.
58728 2009-11-12  Jim Meyering  <meyering@redhat.com>
58730         bootstrap: sync from coreutils
58731         * build-aux/bootstrap (bootstrap_epilogue): New function.
58732         Use git_modules_config in one more place.  This make bootstrap's
58733         --gnulib-srcdir option more useful for testing.
58735         bootstrap: generalize autoheader check
58736         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
58737         AC_CONFIG_HEADERS.
58739 2009-11-11  Eric Blake  <ebb9@byu.net>
58741         mkfifoat: use new modules for Solaris and BSD bugs
58742         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
58743         * lib/mkfifoat.c (mknodat): Split...
58744         * lib/mknodat.c (mknodat): ...into new file.
58745         * modules/mkfifoat (Files): Ship new file.
58746         (Depends-on): Add mkfifo, mknod.
58747         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
58748         (Depends-on): Add symlink.
58749         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
58750         redundant with test_mkfifo.h.
58751         (do_mkfifoat, do_mknodat): New helpers.
58753         mknod: new module
58754         * modules/mknod: New file.
58755         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
58756         * lib/mknod.c (mknod): Likewise.
58757         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
58758         defaults.
58759         * modules/sys_stat (Makefile.am): Substitute them.
58760         * lib/sys_stat.in.h (mknod): Declare replacement.
58761         * MODULES.html.sh (Support for systems lacking POSIX:2008):
58762         Document it.
58763         * doc/posix-functions/mknod.texi (mknod): Likewise.
58764         * modules/mknod-tests: New test.
58765         * tests/test-mknod.c: Likewise.
58767         mkfifo: new module
58768         * modules/mkfifo: New file.
58769         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
58770         * lib/mkfifo.c (mkfifo): Likewise.
58771         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
58772         defaults.
58773         * modules/sys_stat (Makefile.am): Substitute them.
58774         * lib/sys_stat.in.h (mkfifo): Declare replacement.
58775         * MODULES.html.sh (Support for systems lacking POSIX:2008):
58776         Document it.
58777         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
58778         * modules/mkfifo-tests: New test.
58779         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
58780         from test-mkfifoat.c.
58781         * tests/test-mkfifo.c: New file.
58783         readlink: detect FreeBSD bug
58784         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
58785         slash on symlink.
58786         * doc/posix-functions/readlink.texi (readlink): Document the bug.
58787         * tests/test-readlink.h (test_readlink): Enhance test.
58789         symlink: detect FreeBSD bug
58790         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
58791         slash on symlink.
58792         * doc/posix-functions/symlink.texi (symlink): Document the bug.
58793         * tests/test-symlink.h (test_symlink): Enhance test.
58795 2009-11-10  Eric Blake  <ebb9@byu.net>
58797         link: detect FreeBSD bug
58798         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
58799         symlink.
58800         * doc/posix-functions/link.texi (link): Document the bug.
58801         * tests/test-link.h (test_link): Enhance test.
58802         * tests/test-linkat.c (main): Update caller.
58804         unlink, remove: detect FreeBSD bug
58805         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
58806         slash on symlink.
58807         * doc/posix-functions/unlink.texi (unlink): Document the bug.
58808         * doc/posix-functions/remove.texi (remove): Likewise.
58809         * tests/test-unlink.h (test_unlink): Enhance test.
58810         * tests/test-remove.c (main): Likewise.
58812 2009-11-09  Eric Blake  <ebb9@byu.net>
58814         rename: detect FreeBSD bug
58815         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
58816         slash on symlink.
58817         * modules/renameat-tests (Depends-on): Add filenamecat.
58818         * tests/test-rename.h (test_rename): Allow one more errno.
58819         * tests/test-renameat.c (main): Likewise.
58820         * doc/posix-functions/rename.texi (rename): Document the bug.
58822         open: detect FreeBSD bug
58823         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
58824         symlink.
58825         * doc/posix-functions/open.texi (open): Document the bug.
58826         * doc/posix-functions/utimes.texi (utimes): Likewise.
58827         * tests/test-open.h (test_open): Add parameters, and test symlink
58828         handling.
58829         * tests/test-open.c (main): Adjust caller.
58830         * tests/test-fcntl-safer.c (main): Likewise.
58831         * modules/open-tests (Depends-on): Add stdbool, symlink.
58832         * modules/fcntl-safer-tests (Depends-on): Likewise.
58833         * tests/test-openat.c (main): Add test-open tests.
58835         stat: detect FreeBSD bug
58836         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
58837         symlink.
58838         * doc/posix-functions/stat.texi (stat): Document the bug.
58839         * tests/test-stat.h (test_stat_func): Add argument.
58840         * tests/test-stat.c (main): Adjust caller.
58841         * tests/test-fstatat.c (main): Likewise.
58842         * modules/stat-tests (Depends-on): Add stdbool, symlink.
58843         Reported by Jim Meyering.
58845 2009-11-09  James Youngman  <jay@gnu.org>
58847         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
58848         * lib/strftime.c: Correct placement of #include "ignore-value.h".
58850 2009-11-08  Jim Meyering  <meyering@redhat.com>
58852         utimens: remove invalid futimesat call
58853         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
58854         It used the file descriptor of the target file as the DIR_FD
58855         parameter and NULL as the file name.  That caused failure with
58856         errno == EFAULT on FreeBSD-8.0-rc2
58858 2009-11-07  Eric Blake  <ebb9@byu.net>
58860         fflush, freadseek: use fseeko, not fseek
58861         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
58862         (clear_ungetc_buffer): Avoid potential problems on large files.
58863         * lib/freadseek.c (freadseek): Likewise.
58864         * modules/freadseek (Depends-on): Add fseeko.
58865         * modules/fseek (configure.ac): Set a witness.
58866         * tests/test-fflush.c (main): Use fseeko.
58867         * tests/test-fpurge.c (fseek): Disable link warning.
58868         * tests/test-freadable.c (fseek): Likewise.
58869         * tests/test-freading.c (fseek): Likewise.
58870         * tests/test-fseeko.c (fseek): Likewise.
58871         * tests/test-ftell.c (fseek): Likewise.
58872         * tests/test-ftello.c (fseek): Likewise.
58873         * tests/test-fwritable.c (fseek): Likewise.
58874         * tests/test-fwriting.c (fseek): Likewise.
58876 2009-11-06  Simon Josefsson  <simon@josefsson.org>
58878         * modules/memchr (Depends-on): Drop getpagesize dependency.
58880 2009-11-06  Simon Josefsson  <simon@josefsson.org>
58882         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
58883         Reported by Ludovic Courtès.
58884         * build-aux/pmccabe2html: Improve example usage.
58885         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
58887 2009-11-06  Jim Meyering  <meyering@redhat.com>
58889         do-release-commit-and-tag: New module.
58890         Automate the release-commit and tag process.
58891         * build-aux/do-release-commit-and-tag: New script, from coreutils.
58892         * modules/do-release-commit-and-tag: New file.
58893         * MODULES.html.sh (Support for maintaining and releasing): Add it.
58895 2009-11-06  Simon Josefsson  <simon@josefsson.org>
58897         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
58898         because test-select.c uses inet_pton.
58900 2009-11-06  Simon Josefsson  <simon@josefsson.org>
58902         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
58903         GETADDRINFO_LIB.  Bump serial number.
58904         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
58905         Suggested by Eric Blake <ebb9@byu.net>.
58907 2009-11-05  Eric Blake  <ebb9@byu.net>
58909         strtod: detect darwin bug
58910         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
58911         Reported by Leo Davis.
58913         freopen-safer: new module
58914         * modules/freopen-safer: New module.
58915         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
58916         * lib/freopen-safer.c (freopen_safer): New file.
58917         * lib/stdio-safer.h (freopen_safer): New declaration.
58918         * lib/stdio--.h (freopen): New override.
58919         * MODULES.html.sh (File stream based Input/Output): Mention it.
58920         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
58921         freopen-safer module.
58922         * doc/posix-functions/stderr.texi (stderr): Likewise.
58923         * doc/posix-functions/stdin.texi (stdin): Likewise.
58924         * doc/posix-functions/stdout.texi (stdout): Likewise.
58925         * modules/freopen-safer-tests: New test.
58926         * tests/test-reopen-safer.c: New file.
58928 2009-11-05  Jim Meyering  <meyering@redhat.com>
58930         maint.mk: Prohibit inclusion of "close-stream.h" without use.
58931         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
58933 2009-11-05  Simon Josefsson  <simon@josefsson.org>
58935         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
58937 2009-11-05  Simon Josefsson  <simon@josefsson.org>
58939         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
58941 2009-11-05  Simon Josefsson  <simon@josefsson.org>
58943         Fix link error.
58944         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
58945         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
58947 2009-11-05  Simon Josefsson  <simon@josefsson.org>
58949         * tests/test-func.c: Also test value of __func__.
58951 2009-11-05  Simon Josefsson  <simon@josefsson.org>
58953         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
58954         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
58956 2009-11-05  Bruno Haible  <bruno@clisp.org>
58958         Fix link error.
58959         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
58960         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
58961         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
58963 2009-11-05  Bruno Haible  <bruno@clisp.org>
58965         Tests for module 'inet_pton'.
58966         * modules/inet_pton-tests: New file.
58967         * tests/test-inet_pton.c: New file.
58969 2009-11-05  Bruno Haible  <bruno@clisp.org>
58971         Tests for module 'inet_ntop'.
58972         * modules/inet_ntop-tests: New file.
58973         * tests/test-inet_ntop.c: New file.
58975 2009-11-04  Eric Blake  <ebb9@byu.net>
58977         stdlib-safer: wrap all mkstemp variants
58978         * modules/mkostemp (configure.ac): Set witness.
58979         * modules/mkostemps (configure.ac): Likewise.
58980         * modules/mkstemps (configure.ac): Likewise.
58981         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
58982         (mkstemps_safer): Wrap more functions.
58983         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
58984         wrapping.
58985         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
58986         (mkstemps_safer): Implement the wrappers.
58988         mkstemps, mkostemps: new modules
58989         * modules/mkostemps: New module.
58990         * modules/mkstemps: Likewise.
58991         * lib/mkostemps.c (mkostemps): New file.
58992         * lib/mkstemps.c (mkstemps): Likewise.
58993         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
58994         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
58995         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
58996         * modules/stdlib (Makefile.am): Substitute them.
58997         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
58998         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
58999         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
59000         * doc/gnulib.texi (Glibc stdlib.h): Include them.
59001         * MODULES.html.sh (File system functions): Mention them.
59003         tempname: resync from glibc
59004         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
59005         same values for __GT_FILE as glibc.  Abort even when assertions
59006         are disabled.
59007         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
59008         match its value otherwise.  Allow idempotent inclusion.
59009         * lib/mkdtemp.c (mkdtemp): Adjust caller.
59010         * lib/mkostemp.c (mkostemp): Likewise.
59011         * lib/mkstemp.c (mkstemp): Likewise.
59012         * lib/tmpfile.c (tmpfile): Likewise.
59013         * NEWS: Document this.
59015         utimens: fix use of futimens on older Linux
59016         * lib/utimens.c (fdutimens): Use updated, rather than original,
59017         timespec to avoid bug in older Linux kernel.
59018         Reported by Simon Josefsson.
59020 2009-11-04  Bruno Haible  <bruno@clisp.org>
59022         Make num_processors more flexible and consistent.
59023         * lib/nproc.h (enum nproc_query): New type.
59024         (num_processors): Add a 'query' argument.
59025         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
59026         (num_processors): Add a 'query' argument. Test the value of the
59027         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
59028         mingw, count the number of CPUs available for the current process.
59029         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
59030         Check for sched_getaffinity and sched_getaffinity_np.
59031         * modules/nproc (Depends-on): Add c-ctype, extensions.
59032         * NEWS: Mention the change.
59034 2009-11-03  Bruno Haible  <bruno@clisp.org>
59036         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
59038 2009-11-03  Jim Meyering  <meyering@redhat.com>
59040         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
59041         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
59042         if it is defined.
59044 2009-11-02  Eric Blake  <ebb9@byu.net>
59046         mktime, timegm: share common declaration
59047         * lib/mktime-internal.h: New file.
59048         * lib/mktime.c: Use it rather than open-coding a declaration.
59049         * lib/timegm.c: Likewise.
59050         * modules/mktime (Files): Ship it.
59051         * modules/timegm (Files): Likewise.
59052         Suggested by Bruno Haible.
59054         test-update-copyright: update test to match script changes
59055         * tests/test-update-copyright.sh: Avoid hard-coding perl
59056         location.  Don't update *.bak created by earlier runs.
59058 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
59059             Simon Josefsson  <simon@josefsson.org>
59060             Bruno Haible  <bruno@clisp.org>
59062         Fix link error on Solaris 8.
59063         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
59064         also in libnsl. Define also INET_PTON_LIB.
59065         * modules/inet_pton (Link): New section.
59067 2009-11-02  Simon Josefsson  <simon@josefsson.org>
59068             Bruno Haible  <bruno@clisp.org>
59070         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
59071         * modules/inet_ntop (Link): New section.
59072         Reported by Boyan Kasarov <bkasarov@gmail.com>.
59074 2009-11-02  Eric Blake  <ebb9@byu.net>
59076         maint: avoid compiler warnings in m4 macros
59077         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
59078         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
59080 2009-11-02  Simon Josefsson  <simon@josefsson.org>
59082         * m4/pmccabe2html.m4: Remove file.
59083         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
59084         function.  Change maintainer.
59085         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
59086         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
59087         Courtès).
59089 2009-10-31  Eric Blake  <ebb9@byu.net>
59091         fseeko: fix m4 regression
59092         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
59093         regression from 2009-10-27.
59094         Reported by Ralf Wildenhues.
59096 2009-10-31  Jim Meyering  <meyering@redhat.com>
59098         inttostr: aesthetics and improved (compile-time) safety
59099         Define inttype_is_signed rather than inttype_is_unsigned,
59100         since the sole use is via "#if inttype_is_signed".
59101         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
59102         inttype_is_unsigned.
59103         * lib/offtostr.c (inttype_is_signed): Likewise.
59104         * lib/uinttostr.c (inttype_is_signed): Likewise.
59105         * lib/umaxtostr.c (inttype_is_signed): Likewise.
59106         * lib/inttostr.c (inttostr): Use verify to cross-check the
59107         inttype_is_signed value and the signedness of the actual type.
59108         * modules/inttostr (Depends-on): Add verify.
59110 2009-10-30  Eric Blake  <ebb9@byu.net>
59112         build: avoid compiler warnings
59113         * lib/fchmodat.c (lchmod): Mark unused variables.
59114         * lib/getopt.c (_getopt_initialize): Likewise.
59115         * lib/mktime.c (__mktime_internal): Provide prototype.
59116         * lib/inttostr.c (inttostr): Avoid compiler warning even with
59117         older gcc that do not understand #pragma GCC diagnostic.
59118         * lib/uinttostr.c (inttype_is_unsigned): Define.
59119         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
59121 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
59123         stat: fix compilation on AIX
59124         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
59125         only see struct stat64.
59127 2009-10-30  Eric Blake  <ebb9@byu.net>
59129         exclude: make more robust
59130         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
59131         rather than masking a coding bug.
59132         Suggested by Bruno Haible.
59134 2009-10-30  Jim Meyering  <meyering@redhat.com>
59136         perl scripts: remove #!/usr/bin/perl in favor of more portable...
59137         Rather than putting #!/usr/bin/perl on the first line,
59138         start with a variant of what's recommended by "man perlrun" that
59139         invokes the first "perl" program from your shell's search path.
59140         * build-aux/gitlog-to-changelog: Replace #!... as above.
59141         Add a "Local Variables" perl mode setting.
59142         Prompted by a patch from Ludovic Courtès.
59143         Improved by Eric Blake.
59144         * build-aux/useless-if-before-free: Likewise.
59145         * build-aux/announce-gen: Likewise.
59146         * build-aux/update-copyright: Likewise.
59148 2009-10-29  Eric Blake  <ebb9@byu.net>
59150         filenamecat-lgpl: adjust clients
59151         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
59152         filenamecat.
59153         * modules/renameat (Depends-on): Likewise.
59155         filenamecat: split into filenamecat-lgpl
59156         * modules/filenamecat-lgpl: New module.
59157         * modules/filenamecat (Files): Move library-safe files into
59158         filenamecat-lgpl.
59159         (Depends-on): Add filenamecat-lgpl.
59160         (configure.ac): Declare witness.
59161         * lib/filenamecat.h (file_name_concat): Only declare when using
59162         GPL module.
59163         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
59164         Move...
59165         * lib/filenamecat-lgpl.c: ...into new file.
59166         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
59167         (gl_FILE_NAME_CONCAT): Use it.
59168         * MODULES.html.sh (File system functions): Mention new module.
59170         argp: avoid memory leak
59171         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
59172         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
59173         base_name, since the latter malloc()s and can call exit().
59174         Leak introduced 2006-07-03.
59176         dirname-lgpl: adjust clients that don't need full dirname
59177         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
59178         * modules/filenamecat (Depends-on): Likewise.
59179         * modules/linkat (Depends-on): Likewise.
59180         * modules/mkancesdirs (Depends-on): Likewise.
59181         * modules/mkdir (Depends-on): Likewise.
59182         * modules/openat (Depends-on): Likewise.
59183         * modules/savewd (Depends-on): Likewise.
59184         * modules/rename (Depends-on): Likewise.
59185         (License): Relax license.
59186         * modules/mkdir-tests (Depends-on): Drop progname.
59187         (Makefile.am): Delete unneeded LDADD.
59188         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
59190         dirname: split into dirname-lgpl
59191         * modules/dirname-lgpl: New module.
59192         * modules/dirname (Files): Move library-safe files into
59193         dirname-lgpl.
59194         (Depends-on): Add dirname-lgpl.
59195         (configure.ac): Declare witness.
59196         * modules/double-slash-root (License): Relax license.
59197         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
59198         module.
59199         * lib/dirname.c (dir_len, mdir_name): Move...
59200         * lib/dirname-lgpl.c: ...into new file.
59201         * lib/basename.c (last_component, base_len): Move...
59202         * lib/basename-lgpl.c: ...into new file.
59203         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
59204         (gl_DIRNAME): Use it.
59205         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
59206         Mention new module.
59207         * modules/dirname-tests (Depends-on): Add progname.
59208         * tests/test-dirname.c (program_name): Delete.
59210         mkdir: make safe for libraries
59211         * modules/mkdir (Depends-on): Drop xalloc.
59212         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
59213         exit.
59215         tests: avoid some compiler warnings
59216         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
59217         literals.
59218         * tests/test-memchr.c (main): Avoid type mismatch.
59219         * tests/test-arpa_inet.c (main): Avoid unused parameters.
59220         * tests/test-base64.c (main): Likewise.
59221         * tests/test-getdelim.c (main): Likewise.
59222         * tests/test-gethostname.c (main): Likewise.
59223         * tests/test-getline.c (main): Likewise.
59224         * tests/test-netinet_in.c (main): Likewise.
59225         * tests/test-select.c (open_server_socket, main): Likewise.
59226         * tests/test-select-stdin.c (main): Likewise.
59227         * tests/test-sockets.c (main): Likewise.
59228         * tests/test-strsignal.c (main): Likewise.
59229         * tests/test-sys_select.c (main): Likewise.
59230         * tests/test-sys_socket.c (main): Likewise.
59231         * tests/test-u64.c (main): Likewise.
59232         * tests/test-xfprintf-posix.c (main): Likewise.
59233         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
59235         sockets: avoid compiler warning
59236         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
59238         maint: detect usage(1) and other suspicious exits
59239         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
59241 2009-10-29  Jim Meyering  <meyering@redhat.com>
59243         timespec: long-to-int truncation could make timespec_cmp malfunction
59244         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
59245         a multiple of 2^32 nanoseconds as no difference.
59247 2009-10-28  Jim Meyering  <meyering@redhat.com>
59249         fprintftime: wrap macro code argument in "do {...} while(0)"
59250         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
59251         cpy macro must be a statement that can be followed by a semicolon.
59252         Now that the else clause contains a comment and is hence longer
59253         than one line, I require curly braces.  That in turn requires
59254         that we wrap this code block in the standard do...while(0).
59256         fprintftime: remove stray semicolon from previous change
59257         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
59259         fprintftime: avoid a warning about ignored fwrite return value
59260         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
59261         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
59262         that is unsafe.
59263         * modules/fprintftime (Depends-on): Add ignore-value.
59265         exclude: avoid an unwarranted warning
59266         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
59268 2009-10-27  Eric Blake  <ebb9@byu.net>
59270         fseek: avoid compilation failure when fflush is replaced
59271         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
59272         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
59273         module is in use.
59274         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
59275         module is not in use; since REPLACE_FSEEK worked otherwise.
59276         (GNULIB_FTELLO): Likewise for ftell.
59277         Reported by Ian Beckwith and others.
59279 2009-10-27  Bruno Haible  <bruno@clisp.org>
59281         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
59282         Reported by Jim Meyering.
59284 2009-10-27  Jim Meyering  <jim@meyering.net>
59285             Bruno Haible  <bruno@clisp.org>
59287         Avoid warning despite dropping the return value of fwrite.
59288         * lib/unicodeio.c: Include ignore-value.h.
59289         (fwrite_success_callback): Explicitly ignore fwrite's return value.
59290         * modules/unicodeio (Depends-on): Add ignore-value.
59292 2009-10-26  Eric Blake  <ebb9@byu.net>
59294         areadlinkat: fix fallback path
59295         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
59296         pointer and zero.
59298 2009-10-22  Pádraig Brady  <P@draigBrady.com>
59300         Use a better IO block size for modern systems
59301         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
59302         * lib/md2.c: Likewise.
59303         * lib/md4.c: Likewise.
59304         * lib/md5.c: Likewise.
59305         * lib/sha1.c: Likewise.
59306         * lib/sha256.c: Likewise.
59307         * lib/sha512.c: Likewise.
59309 2009-10-22  Eric Blake  <ebb9@byu.net>
59311         tests: avoid several compiler warnings
59312         * tests/test-getcwd.c (main): Avoid buffer underflow.
59313         * tests/test-getdate.c (main): String literals are not safe with
59314         putenv, so use setenv.  Declare unused argument.
59315         * modules/getdate-tests (Depends-on): Add setenv.
59316         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
59317         problems with string literals in char *.
59318         * tests/test-hash.c (main): Avoid shadowing declaration.
59319         (insert_new): Treat string literals as char const *.
59320         * tests/test-getopt.h (test_getopt): Likewise.
59321         (getopt_loop): Alter types to minimize casting elsewhere.
59322         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
59323         (test_getopt_long_posix): Likewise.
59324         (do_getopt_long): Add wrapper to minimize casting.
59325         * tests/test-atexit.c (clear_temp_file): Use void.
59326         * tests/test-areadlink-with-size.c (main): Declare unused
59327         arguments.
59328         * tests/test-areadlink.c (main): Likewise.
59329         * tests/test-areadlinkat-with-size.c (main): Likewise.
59330         * tests/test-areadlinkat.c (main): Likewise.
59331         * tests/test-canonicalize-lgpl.c (main): Likewise.
59332         * tests/test-canonicalize.c (main): Likewise.
59333         * tests/test-dirent-safer.c (main): Likewise.
59334         * tests/test-dirname.c (main): Likewise.
59335         * tests/test-dup2.c (main): Likewise.
59336         * tests/test-fchdir.c (main): Likewise.
59337         * tests/test-fcntl-h.c (main): Likewise.
59338         * tests/test-fcntl-safer.c (main): Likewise.
59339         * tests/test-fdopendir.c (main): Likewise.
59340         * tests/test-fdutimensat.c (main): Likewise.
59341         * tests/test-fflush.c (main): Likewise.
59342         * tests/test-filenamecat.c (main): Likewise.
59343         * tests/test-filevercmp.c (main): Likewise.
59344         * tests/test-fopen-safer.c (main): Likewise.
59345         * tests/test-fopen.c (main): Likewise.
59346         * tests/test-fpending.c (main): Likewise.
59347         * tests/test-fpurge.c (main): Likewise.
59348         * tests/test-freading.c (main): Likewise.
59349         * tests/test-fstatat.c (main): Likewise.
59350         * tests/test-fsync.c (main): Likewise.
59351         * tests/test-futimens.c (main): Likewise.
59352         * tests/test-getndelim2.c (main): Likewise.
59353         * tests/test-gettimeofday.c (main): Likewise.
59354         * tests/test-getopt.c (main): Likewise.
59355         * tests/test-i-ring.c (main): Likewise.
59356         * tests/test-inttypes.c (main): Likewise.
59357         * tests/test-link.c (main): Likewise.
59358         * tests/test-lstat.c (main): Likewise.
59359         * tests/test-math.c (main): Likewise.
59360         * tests/test-md5.c (main): Likewise.
59361         * tests/test-memchr2.c (main): Likewise.
59362         * tests/test-memrchr.c (main): Likewise.
59363         * tests/test-mkdir.c (main): Likewise.
59364         * tests/test-mkdirat.c (main): Likewise.
59365         * tests/test-mkfifoat.c (main): Likewise.
59366         * tests/test-open.c (main): Likewise.
59367         * tests/test-openat-safer.c (main): Likewise.
59368         * tests/test-openat.c (main): Likewise.
59369         * tests/test-quotearg.c (main): Likewise.
59370         * tests/test-rawmemchr.c (main): Likewise.
59371         * tests/test-readlink.c (main): Likewise.
59372         * tests/test-remove.c (main): Likewise.
59373         * tests/test-rename.c (main): Likewise.
59374         * tests/test-renameat.c (main): Likewise.
59375         * tests/test-rmdir.c (main): Likewise.
59376         * tests/test-sha1.c (main): Likewise.
59377         * tests/test-signal.c (main): Likewise.
59378         * tests/test-sigaction.c (main): Likewise.
59379         * tests/test-stat.c (main): Likewise.
59380         * tests/test-stat-time.c (main): Likewise.
59381         * tests/test-stddef.c (main): Likewise.
59382         * tests/test-stdint.c (main): Likewise.
59383         * tests/test-stdio.c (main): Likewise.
59384         * tests/test-stdlib.c (main): Likewise.
59385         * tests/test-strchrnul.c (main): Likewise.
59386         * tests/test-strerror.c (main): Likewise.
59387         * tests/test-string.c (main): Likewise.
59388         * tests/test-strtod.c (main): Likewise.
59389         * tests/test-strverscmp.c (main): Likewise.
59390         * tests/test-symlink.c (main): Likewise.
59391         * tests/test-symlinkat.c (main): Likewise.
59392         * tests/test-sys_stat.c (main): Likewise.
59393         * tests/test-sys_time.c (main): Likewise.
59394         * tests/test-time.c (main): Likewise.
59395         * tests/test-unistd.c (main): Likewise.
59396         * tests/test-unlink.c (main): Likewise.
59397         * tests/test-unlinkat.c (main): Likewise.
59398         * tests/test-utimens.c (main): Likewise.
59399         * tests/test-utimensat.c (main): Likewise.
59400         * tests/test-version-etc.c (main): Likewise.
59401         * tests/test-wchar.c (main): Likewise.
59402         * tests/test-wctype.c (main): Likewise.
59403         * tests/test-xprintf-posix.c (main): Likewise.
59404         * tests/test-posixtm.c (main): Likewise.
59405         (STREQ): Delete unused macro.
59406         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
59407         shadowed variables.
59408         * tests/test-memchr.c (main): Likewise.
59410 2009-10-21  Eric Blake  <ebb9@byu.net>
59412         areadlinkat: avoid failure on older glibc
59413         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
59414         rather than mis-comparing 0 against FUNC_RESULT of char*.
59416 2009-10-21  Bruno Haible  <bruno@clisp.org>
59418         * modules/stpncpy (License): Relicense under LGPLv2+.
59419         Reported by David Lutterkort <lutter@redhat.com>.
59421 2009-10-20  Eric Blake  <ebb9@byu.net>
59423         utimensat: work around Solaris 9 bug
59424         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
59425         has trailing slash bugs.
59426         * tests/test-lutimens.h (test_lutimens): Enhance test.
59427         * tests/test-utimens.h (test_utimens): Likewise.
59428         * doc/posix-functions/utime.texi (utime): Enhance documentation.
59429         * doc/posix-functions/utimes.texi (utimes): Likewise.
59430         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
59431         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
59432         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
59433         * doc/posix-functions/futimens.texi (futimens): Likewise.
59435         fdutimensat: new module
59436         * modules/fdutimensat: New file.
59437         * lib/fdutimensat.c (fdutimensat): Likewise.
59438         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
59439         * MODULES.html.sh (File system functions): Mention module.
59440         * modules/fdutimensat-tests: New test.
59441         * tests/test-fdutimensat.c: Likewise.
59443         doc: regenerate INSTALL
59444         * doc/INSTALL: Reflect recent autoconf update.
59445         * doc/INSTALL.ISO: Likewise.
59446         * doc/INSTALL.UTF-8: Likewise.
59448 2009-10-20  Pádraig Brady  <P@draigBrady.com>
59450         acl: warn if ACL support is not detected
59451         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
59453 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
59455         * lib/nproc.h: Add extern "C" block for C++.
59457 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
59458             Bruno Haible  <bruno@clisp.org>
59460         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
59461         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
59462         * doc/posix-functions/isalpha.texi: Likewise.
59463         * doc/posix-functions/isblank.texi: Likewise.
59464         * doc/posix-functions/iscntrl.texi: Likewise.
59465         * doc/posix-functions/isdigit.texi: Likewise.
59466         * doc/posix-functions/isgraph.texi: Likewise.
59467         * doc/posix-functions/islower.texi: Likewise.
59468         * doc/posix-functions/isprint.texi: Likewise.
59469         * doc/posix-functions/ispunct.texi: Likewise.
59470         * doc/posix-functions/isspace.texi: Likewise.
59471         * doc/posix-functions/isupper.texi: Likewise.
59472         * doc/posix-functions/isxdigit.texi: Likewise.
59474 2009-10-18  Bruno Haible  <bruno@clisp.org>
59476         Tests for module 'isblank'.
59477         * modules/isblank-tests: New file.
59478         * tests/test-isblank.c: New file.
59480         New module 'isblank'.
59481         * lib/isblank.c: New file.
59482         * m4/isblank.m4: New file.
59483         * modules/isblank: New file.
59484         * doc/posix-functions/isblank.texi: Mention the new module.
59486 2009-10-18  Bruno Haible  <bruno@clisp.org>
59488         New module 'ctype'.
59489         * lib/ctype.in.h: New file.
59490         * m4/ctype.m4: New file.
59491         * modules/ctype: New file.
59492         * doc/posix-headers/ctype.texi: Mention the new module.
59494 2009-10-18  Jim Meyering  <meyering@redhat.com>
59496         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
59497         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
59498         right after its initialization, rather than farther down.
59499         Keeping these in close proximity makes it easier to ensure
59500         that each such variable is initialized.  E.g.,
59502             LIB_CLOCK_GETTIME=
59503             AC_SUBST([LIB_CLOCK_GETTIME])
59505         This change also increments these serial numbers.
59506         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
59507         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
59508         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
59510 2009-10-18  Bruno Haible  <bruno@clisp.org>
59512         Don't let environment variables perturb build.
59513         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
59514         (gl_PREREQ_GETHRXTIME): ... not here.
59516 2009-10-18  Bruno Haible  <bruno@clisp.org>
59518         Avoid symlink attack in localcharset module.
59519         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
59520         (O_NOFOLLOW): Define fallback.
59521         (get_charset_aliases): Don't open the file if it is a symbolic link.
59522         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
59523         gl_FCNTL_H.
59524         (gl_FCNTL_H): Require it.
59525         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
59526         * modules/localcharset (Files): Add m4/fcntl_h.m4.
59527         Reported by Fergal Glynn <fglynn@veracode.com>.
59529 2009-10-18  Bruno Haible  <bruno@clisp.org>
59531         Implement nproc for mingw.
59532         * lib/nproc.c: Include <windows.h>
59533         (num_processors): On native Windows platforms, try GetSystemInfo.
59535 2009-10-18  Bruno Haible  <bruno@clisp.org>
59537         Implement nproc for IRIX.
59538         * lib/nproc.c: Include <sys/sysmp.h>.
59539         (num_processors): On IRIX systems, try sysmp.
59540         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
59542 2009-10-18  Bruno Haible  <bruno@clisp.org>
59544         Implement nproc for HP-UX.
59545         * lib/nproc.c: Include <sys/pstat.h>
59546         (num_processors): On HP-UX systems, try pstat_getdynamic.
59547         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
59548         pstat_getdynamic.
59550 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
59551             Bruno Haible  <bruno@clisp.org>
59553         Implement nproc for NetBSD, OpenBSD.
59554         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
59555         (ARRAY_SIZE): New macro.
59556         (num_processors): On BSD systems, try sysctl of HW_NCPU.
59557         * m4/nproc.m4: New file.
59558         * modules/nproc (Files): Add m4/nproc.m4.
59559         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
59560         (Makefile.am): Instead, augment lib_SOURCES.
59562 2009-10-18  Bruno Haible  <bruno@clisp.org>
59564         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
59565         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
59566         sys/param.h.
59568 2009-10-16  Eric Blake  <ebb9@byu.net>
59570         utimensat: new module
59571         * modules/utimensat: New file.
59572         * lib/utimensat.c (utimensat): Likewise.
59573         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
59574         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
59575         so we can work around Linux bugs.
59576         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
59577         * modules/sys_stat (Makefile.am): Substitute them.
59578         * lib/sys_stat.in.h (utimensat): Declare it.
59579         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
59580         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
59581         * modules/utimensat-tests: New test.
59582         * tests/test-utimensat.c: Likewise.
59584         utimens: let lutimens work on non-symlinks
59585         * lib/utimens.c (lutimens): Fall back to utimens rather than
59586         failing with ENOSYS, when file is not a symlink.
59587         (utimens): Reduce redirection.
59588         * tests/test-lutimens.h (test_lutimens): Update test to cover
59589         non-symlinks.
59590         * tests/test-utimens.h (test_utimens): Update test to cover
59591         symlinks.
59592         * tests/test-utimens.c (main): Update caller.
59594         utimens: cache whether utimensat syscall works
59595         * lib/utimens.c (utimensat_works_really): New cache variable.
59596         (fdutimens, lutimens): Use it to avoid failing syscall.
59598         test-stat-time, test-utimens: improve portability
59599         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
59600         ext4 on alpha, and for cygwin.
59601         * tests/test-utimens-common.h: New file.
59602         (nap): Factor delays into single function.
59603         * tests/test-lutimens.h (test_lutimens): Use new header.
59604         * tests/test-futimens.h (test_futimens): Likewise.
59605         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
59606         timestamps to occur from same machine, as was done previously for
59607         test_utimens.
59608         * modules/utimens-tests (Files): Ship new file.
59609         * modules/futimens-tests (Files): Likewise.
59610         Reported in part by Jim Meyering.
59612         sys_stat: sort replacement declarations
59613         * lib/sys_stat.in.h: Sort declarations.
59614         * lib/futimens.c (futimens): Fix typo.
59616 2009-10-15  Jim Meyering  <meyering@redhat.com>
59618         don't let environment settings perturb build
59619         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
59620         could cause a configure-time and/or build-time malfunction.
59621         Typically, a configure-time function-in-library test is performed
59622         via code like this:
59624           LIB_VAR=
59625           AC_SUBST([LIB_VAR])
59626           prefix_saved_LIBS=$LIBS
59627             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
59628                        [test "$ac_cv_search_FUNC" = "none required" ||
59629                         LIB_VAR=$ac_cv_search_FUNC])
59630           LIBS=$prefix_saved_LIBS
59632         However, in each of the files affected by this change, the LIB_VAR=
59633         initialization was omitted.  Thus, when set in the environment, its
59634         value would propagate into generated Makefiles when FUNC is not found
59635         in LIB_NAME.
59636         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
59637         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
59638         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
59640 2009-10-14  Eric Blake  <ebb9@byu.net>
59642         fchdir: avoid infinite recursion in mingw
59643         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
59644         recursing.
59646         test-stat-time: port to mingw
59647         * tests/test-stat-time.c (force_unlink): Return a value.
59648         (test_ctime) [W32]: Fix compilation error.
59649         (nap): Don't call usleep with too large an argument.  Use
59650         force_unlink.
59651         * doc/pastposix-functions/usleep.texi (usleep): Document the
59652         portability issue.
59654 2009-10-13  Jim Meyering  <meyering@redhat.com>
59656         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
59657         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
59658         * modules/pipe-filter-ii: Likewise.
59659         * modules/sys_socket-tests: Likewise.
59660         * modules/tsearch-tests: Likewise.
59661         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
59662         (check): Depend on it.
59664 2009-10-12  Eric Blake  <ebb9@byu.net>
59666         utimens-tests: port to NFS file systems
59667         * tests/test-utimens.h (test_utimens): Refactor utimecmp
59668         comparisons to avoid spurious failures from timestamp drift
59669         between NFS machines.
59671 2009-10-12  Eric Blake  <ebb9@byu.net>
59673         stat-time-tests: minor cleanups
59674         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
59675         * tests/test-stat-time.c (nap): Separate assignment from call.
59676         Suggested by Paolo Bonzini and Bruno Haible.
59678         sys_stat: guarantee struct timespec
59679         * lib/sys_stat.in.h (includes): Always include <time.h>
59680         * modules/sys_stat (Depends-on): Add time.
59681         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
59682         mode_t permission values.
59683         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
59684         get at subsecond timestamps.
59686 2009-10-10  Eric Blake  <ebb9@byu.net>
59688         futimens: new module
59689         * modules/futimens: New file.
59690         * lib/futimens.c (futimens): Likewise.
59691         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
59692         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
59693         we can work around Linux bugs.
59694         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
59695         * modules/sys_stat (Makefile.am): Substitute them.
59696         * lib/sys_stat.in.h (futimens): Declare it.
59697         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
59698         * doc/posix-functions/futimens.texi (futimens): Likewise.
59699         * modules/futimens-tests: New test.
59700         * tests/test-futimens.c: Likewise.
59702         utimens: introduce fdutimens
59703         * lib/utimens.h (fdutimens): New prototype.
59704         * lib/utimens.c (gl_futimens): Move guts...
59705         (fdutimens): ...to new interface.
59706         * tests/test-utimens.c (do_fdutimens): Use it.
59708         utimens: add UTIME_NOW and UTIME_OMIT support
59709         * lib/utimens.c (validate_timespec, update_timespec): New helper
59710         functions.
59711         (gl_futimens, lutimens): Use them.
59712         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
59713         stdbool, sys_stat.
59714         (Link): Mention resulting library dependency.
59715         * modules/utimecmp (Link): Likewise.
59716         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
59717         (Makefile.am): Pick up library dependency.
59718         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
59719         definition.
59720         * tests/test-sys_stat.c: Test the definitions.
59721         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
59722         * NEWS: Document library dependency.
59724         utimecmp: support symlink timestamps
59725         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
59726         hashing when possible.  Use pathconf when available.
59727         (SYSCALL_RESOLUTION): Recognize tighter resolution.
59728         * modules/utimecmp (Depends-on): Add lstat.
59730         utimens: add lutimens interface
59731         * lib/utimens.c (lutimens): New function.
59732         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
59733         * lib/utimens.h (lutimens): Declare new interface.
59734         * tests/test-utimens.c (main): Enhance test.
59735         * tests/test-lutimens.h (test_lutimens): New file.
59736         * modules/utimens-tests (Files): Distribute it.
59737         (Depends-on): Add symlink.
59738         (configure.ac): Check for usleep.
59740         utimens: validate futimens usage
59741         * lib/utimens.c (gl_futimens): Require valid fd up front, using
59742         fewer syscalls on failure later on.  Avoid compiler warning on
59743         mingw.
59744         * modules/utimens (Depends-on): Add dup2.
59746         utimens: add test
59747         * modules/utimens-tests: New test.
59748         * tests/test-utimens.h: New file.
59749         * tests/test-futimens.h: Likewise.
59750         * tests/test-utimens.c: Likewise.
59752         doc: mention timestamp portability issues
59753         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
59754         instead.
59755         * doc/posix-functions/utime.texi (utime): Likewise.
59756         * doc/posix-functions/utimes.texi (utimes): Likewise.
59757         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
59758         instead.
59759         * doc/posix-functions/futimens.texi (futimens): Mention utimens
59760         module.
59761         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
59762         Mention weakness with symlink timestamps.
59763         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
59764         to utimensat/futimens instead.
59765         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
59767         test-dup2: enhance test
59768         * tests/test-dup2.c (main): Also check AT_FDCWD.
59770         test-stat-time: avoid more spurious failures
59771         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
59772         xfs; and avoid race if the two timestamps cross quantization edge.
59774         relocatable: prefer 'file system' over 'filesystem'
59775         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
59776         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
59777         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
59778         * doc/relocatable.texi (Enabling Relocatability): Likewise.
59779         * lib/relocatable.c (compute_curr_prefix): Likewise.
59781 2009-10-10  Jim Meyering  <meyering@redhat.com>
59783         stat-time-tests: check for the usleep function
59784         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
59786 2009-10-10  Bruno Haible  <bruno@clisp.org>
59788         * modules/xnanosleep: Put the Link section after the Include section.
59790 2009-10-09  Eric Blake  <ebb9@byu.net>
59792         dup2: work around FreeBSD 6.1 bug
59793         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
59794         * doc/posix-functions/dup2.texi (dup2): Document it.
59795         Reported by Nelson H. F. Beebe and Jim Meyering.
59797         test-stat-time: port to buggy NFS clients
59798         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
59799         (test_ctime): Also skip test if mtime and ctime are skewed.
59801         maint: prefer 'file system' over 'filesystem'
59802         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
59803         * doc/posix-functions/lstat.texi (lstat): Likewise.
59804         * lib/file-has-acl.c (file_has_acl): Likewise.
59805         * lib/fwriteerror.c [TEST]: Likewise.
59806         * tests/test-areadlink.h (test_areadlink): Likewise.
59807         * tests/test-areadlinkat-with-size.c (main): Likewise.
59808         * tests/test-areadlinkat.c (main): Likewise.
59809         * tests/test-canonicalize-lgpl.c (main): Likewise.
59810         * tests/test-canonicalize.c (main): Likewise.
59811         * tests/test-fstatat.c (main): Likewise.
59812         * tests/test-linkat.c (main): Likewise.
59813         * tests/test-lstat.h (test_lstat_func): Likewise.
59814         * tests/test-mkdir.h (test_mkdir): Likewise.
59815         * tests/test-readlink.h (test_readlink): Likewise.
59816         * tests/test-remove.c (main): Likewise.
59817         * tests/test-rename.h (test_rename): Likewise.
59818         * tests/test-renameat.c (main): Likewise.
59819         * tests/test-rmdir.h (test_rmdir_func): Likewise.
59820         * tests/test-symlink.h (test_symlink): Likewise.
59821         * tests/test-symlinkat.c (main): Likewise.
59822         * tests/test-unlink.h (test_unlink_func): Likewise.
59823         * tests/test-unlinkat.c (main): Likewise.
59825         maint: make realtime library usage explicit
59826         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
59827         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
59828         * modules/settime (Link): Likewise.
59829         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
59831         test-stat-time: speed up execution
59832         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
59833         warning on mingw.
59834         (nap): New helper function.
59835         (prepare_test): Use it to reduce sleep time.
59836         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
59837         execution.
59838         * modules/stat-time-tests (configure.ac): Check for usleep.
59840 2009-10-09  Jim Meyering  <meyering@redhat.com>
59842         selinux-h: always use getfilecon wrappers
59843         * lib/getfilecon.c: New file.
59844         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
59845         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
59846         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
59847         (fgetfilecon): Provide a stub.
59848         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
59849         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
59850         file unconditionally.
59851         When <selinux/selinux.h> is found, arrange to use wrappers.
59852         * modules/selinux-h (Files): Add getfilecon.c.
59853         (Makefile.am): Substitute include-next-related bits
59854         into the now-always-generated selinux/selinux.h file.
59855         * doc/glibc-functions/lgetfilecon.texi: New file.
59856         * doc/glibc-functions/fgetfilecon.texi: New file.
59857         * doc/glibc-functions/getfilecon.texi: New file.
59858         * doc/glibc-functions/getfilecon-desc.texi: New file.
59859         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
59860         which to pull in the new files.
59861         * MODULES.html.sh (Misc): Add selinux-h.
59863 2009-10-08  Jim Meyering  <meyering@redhat.com>
59865         unistd: fix comment typo
59866         * lib/unistd.in.h (euidaccess): Fix a comment typo.
59868 2009-10-08  Eric Blake  <ebb9@byu.net>
59870         areadlink: use SIZE_MAX consistently
59871         * modules/areadlink (Depends-on): Add stdint.
59872         * modules/areadlink-with-size (Depends-on): Likewise.
59873         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
59874         gives NULL; drop sys/types, since unistd gives size_t; and add
59875         stdint for SIZE_MAX.
59876         (SIZE_MAX): Rely on headers.
59877         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
59878         and add stdint.
59879         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
59880         (SIZE_MAX): Likewise.
59881         (INITIAL_BUF_SIZE): Turn into enum.
59882         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
59884 2009-10-08  Jim Meyering  <meyering@redhat.com>
59886         areadlinkat: avoid compilation failure
59887         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
59888         Fix typo in comment.
59890 2009-10-07  Eric Blake  <ebb9@byu.net>
59892         areadlinkat-with-size: new module
59893         * modules/areadlinkat-with-size: New module.
59894         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
59895         * lib/areadlink.h (areadlinkat): Declare it.
59896         * MODULES.html.sh (File system functions): Mention it.
59897         * modules/areadlinkat-with-size-tests: New test.
59898         * tests/test-areadlinkat-with-size.c: New file.
59900         xreadlinkat: new module
59901         * modules/xreadlinkat: New module.
59902         * lib/xreadlinkat.c (xreadlinkat): New file.
59903         * lib/xreadlink.h (xreadlinkat): Declare it.
59904         * MODULES.html.sh (File system functions): Mention it.
59906         areadlinkat: new module
59907         * lib/at-func.c (FUNC_FAIL): New define.
59908         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
59909         * modules/areadlinkat: New module.
59910         * lib/linkat.c (areadlinkat): Move...
59911         * lib/areadlinkat.c (areadlinkat): ...to new file.
59912         * lib/areadlink.h (areadlinkat): Declare it.
59913         * modules/linkat (Depends-on): Add areadlinkat.
59914         * MODULES.html.sh (File system functions): Mention it.
59915         * modules/areadlinkat-tests: New test.
59916         * tests/test-areadlinkat.c: New file.
59918         areadlink, areadlink-with-size: add tests
59919         * modules/areadlink-tests: New test.
59920         * modules/areadlink-with-size-tests: Likewise.
59921         * tests/test-areadlink.h: New file.
59922         * tests/test-areadlink.c: Likewise.
59923         * tests/test-areadlink-with-size.c: Likewise.
59925         maint: minor cleanups
59926         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
59927         _UNUSED_PARAMETER_ instead.
59928         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
59929         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
59930         * modules/linkat-tests (Files): Distribute test-link.h.
59932         openat, utimens: whitespace cleanup
59933         * lib/openat.c: Prefer space throughout, rather than mix of 8
59934         spaces vs. tabs.
59935         * lib/at-func.c: Likewise.
59936         * lib/utimens.c: Likewise.
59938         openat: avoid using wrong fd
59939         * lib/openat.c (openat_permissive): Reject user's fd if saving the
59940         working directory chooses same fd.
59941         * lib/at-func.c (AT_FUNC_NAME): Likewise.
59943         mkdir, mkdirat: fix cygwin 1.5.x bug
59944         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
59945         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
59946         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
59947         bug.
59948         (gl_PREREQ_MKDIR): Delete unused macro.
59949         * modules/mkdir (Files): Track file rename.
59950         (configure.ac): Update macro name.
59951         * modules/openat (Depends-on): Add mkdir.
59952         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
59954         mkdir, mkdirat: add tests
59955         * modules/mkdir-tests: New test.
59956         * tests/test-mkdir.h: New file.
59957         * tests/test-mkdir.c: Likewise.
59958         * tests/test-mkdirat.c: Likewise.
59959         * modules/openat-tests (Files): Add new files.
59960         (Makefile.am): Run new test.
59962 2009-10-06  Eric Blake  <ebb9@byu.net>
59964         doc: tweak *at function documentation
59965         * doc/posix-functions/faccessat.texi (faccessat): Mention
59966         known issue with replacement.
59967         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
59968         * doc/posix-functions/linkat.texi (linkat): Likewise.
59969         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
59970         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
59971         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
59972         * doc/posix-functions/renameat.texi (renameat): Likewise.
59973         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
59975         openat: fix GNU/Hurd bug in unlinkat
59976         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
59977         broken.
59978         * doc/posix-functions/unlink.texi (unlink): Document this.
59979         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
59981         fdopendir: fix GNU/Hurd bug
59982         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
59983         allowing non-directory fds.
59984         * lib/fdopendir.c (rpl_fdopendir): Work around it.
59985         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
59986         * modules/dirent (Makefile.am): Substitute it.
59987         * lib/dirent.in.h (fdopendir): Declare replacement.
59988         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
59989         * tests/test-fdopendir.c (main): Test something other than
59990         /dev/null, since on Hurd that behaves like a directory.
59992         test-symlink: port to GNU/Hurd
59993         * tests/test-symlink.h (test_symlink): Relax expected errno.
59995         doc: tweak more cygwin information
59996         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
59997         now compatible with glibc.
59998         * doc/posix-functions/getopt.texi (getopt): Likewise.
60000         getopt-gnu: add another test
60001         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
60002         guarantee behavior relied on by m4.
60003         * tests/test-getopt.c (main): Use it.
60004         * modules/getopt-posix-tests (Depends-on): Add setenv.
60005         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
60007         getopt: fix compilation on darwin
60008         * lib/getopt.in.h (includes): Leave breadcrumbs during system
60009         include.
60010         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
60011         Reported by Ludovic Courtès.
60013 2009-10-06  Bruno Haible  <bruno@clisp.org>
60015         * modules/size_max (Description): Discourage its use.
60016         Reported by Simon Josefsson.
60018 2009-10-06  Jim Meyering  <meyering@redhat.com>
60020         linkat: avoid compilation failure
60021         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
60023 2009-10-05  Eric Blake  <ebb9@byu.net>
60025         linkat: support Linux 2.6.17
60026         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
60027         linkat on Linux, but allow cache variable override.
60028         * lib/linkat.c (rpl_linkat): Define override.
60029         * modules/linkat (Depends-on): Add symlinkat.
60030         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
60031         * modules/unistd (Makefile.am): Substitute it.
60032         * lib/unistd.in.h (linkat): Declare replacement.
60033         Reported by Pádraig Brady.
60035         quotearg: port test to systems with C.UTF-8 locale
60036         * tests/test-quotearg.c (struct result_strings): Add another
60037         member, differentiating between C.ASCII and C.UTF-8 handling.
60038         (compare_strings): Add parameter.
60039         (main): Adjust all callers.
60041         getopt: avoid clash with FreeBSD _getopt_internal
60042         * lib/getopt.in.h (_getopt_internal): Override the name.
60043         * lib/getopt_int.h (includes): Pick up any overrides.
60044         Reported by Reuben Thomas.
60046         hash: allow C89 compilation
60047         * lib/hash.c (check_tuning): Move declaration before statement.
60048         Reported by Reuben Thomas.
60050 2009-10-05  Karl Berry  <karl@gnu.org>
60052         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
60054 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
60055             Bruno Haible  <bruno@clisp.org>
60057         * lib/uname.c (uname): Use a table-driven algorithm to compute
60058         Windows NT versions.
60060 2009-10-04  Bruno Haible  <bruno@clisp.org>
60062         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
60063         program_invocation_short_name.
60064         * modules/progname (configure.ac): Test for presence of
60065         program_invocation_short_name.
60066         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
60068 2009-10-04  Bruno Haible  <bruno@clisp.org>
60070         * lib/progname.c (set_program_name): Fix comment.
60071         Reported by Jim Meyering.
60073 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
60074             Bruno Haible  <bruno@clisp.org>
60076         * lib/uname.c: Include <string.h>.
60077         (uname): Do only one call to GetVersionEx in the common case.
60079 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
60080             Bruno Haible  <bruno@clisp.org>
60082         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
60083         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
60084         (uname): Add support for Windows CE and various non-x86 CPU types.
60086 2009-10-03  Bruno Haible  <bruno@clisp.org>
60088         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
60089         invocation to tests/configure.ac.
60090         Reported by Ian Beckwith <ianb@erislabs.net>.
60092 2009-10-02  Eric Blake  <ebb9@byu.net>
60094         fchdir: avoid compiler warning
60095         * lib/fchdir.c (canonicalize_file_name)
60096         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
60098         test-open: support mingw errno values
60099         * tests/test-open.h (test_open): Relax test.
60100         * tests/test-fopen.h (test_fopen): Likewise.
60101         * tests/test-openat-safer.c (main): Likewise.
60103         open: fix opening directory on mingw
60104         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
60106         test-open: on GNU/Hurd, /dev/null is a directory
60107         * tests/test-fopen.h (main): Rename...
60108         (test_fopen): ...to this.  Use a guaranteed non-directory when
60109         confirming open behavior on trailing slash.
60110         * tests/test-openat-safer.c (main): Likewise.
60111         * tests/test-open.h (main): Likewise....
60112         (test_open): ...to this.
60113         * tests/test-fopen.c (main): Adjust caller.
60114         * tests/test-fopen-safer.c (main): Likewise.
60115         * tests/test-open.c (main): Likewise.
60116         * tests/test-fcntl-safer.c (main): Likewise.
60117         Reported by Samuel Thibault.
60119         rename, fchdir: don't ignore chdir failure
60120         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
60121         * lib/rename.c (rpl_rename) [W32]: Likewise.
60122         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
60123         an empty destination directory if source cannot be renamed,
60124         although there is still possibility for failure.
60125         * doc/posix-functions/rename.texi (rename): Document the race.
60126         Reported by Jim Meyering.
60128         maint: cleanup whitespace in recent commits
60129         * lib/rename.c (rpl_rename): Remove tabs.
60130         * tests/test-link.h (test_link): Likewise.
60131         * lib/fchdir.c (get_name): Likewise.
60132         Reported by Jim Meyering.
60134 2009-10-02  Ben Pfaff  <blp@gnu.org>
60136         relocatable-prog-wrapper: Add missing dependency on
60137         double-slash-root.
60138         * modules/relocatable-prog-wrapper: Add dependency.
60139         Reported by Ian Beckwith <ianb@erislabs.net>.
60141 2009-10-02  Eric Blake  <ebb9@byu.net>
60143         renameat: fix Solaris bugs
60144         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
60145         needed fixing.
60146         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
60147         * modules/stdio (Makefile.am): Substitute it.
60148         * lib/stdio.in.h (renameat): Declare replacement.
60149         * lib/renameat.c (rpl_renameat): Implement fix.
60151         renameat: new module
60152         * modules/renameat: New file.
60153         * lib/renameat.c (renameat): Likewise.
60154         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
60155         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
60156         * modules/stdio (Makefile.am): Substitute them.
60157         * lib/stdio.in.h (renameat): Declare it.
60158         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
60159         * doc/posix-functions/renameat.texi (renameat): Likewise.
60160         * modules/renameat-tests: New test.
60161         * tests/test-renameat.c: Likewise.
60163         rename: fix mingw bugs
60164         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
60165         directory overwrite bugs.
60167         rename: fix another cygwin 1.5 bug
60168         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
60169         checks.
60170         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
60171         unnecessary cygwin workarounds.  Also work around bug with moving
60172         full directory onto an empty one.
60173         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
60175         rename-dest-slash: merge into rename module
60176         * modules/rename-dest-slash (Status): Mark obsolete.
60177         (Depends-on): Add rename.
60178         (Files): Let rename do it all.
60179         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
60180         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
60181         * m4/rename-dest-slash.m4: ...so this file can be deleted.
60182         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
60183         * lib/rename.c (rpl_rename): Update comments.
60185         rename: fix cygwin 1.5.x bugs
60186         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
60187         * lib/rename.c (rpl_rename): Work around them.
60188         * modules/rename (Depends-on): Add same-inode.
60190         rename: fix Solaris 10 bug
60191         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
60192         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
60193         was the only bug.
60195         rename: fix Solaris 9 bug
60196         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
60197         on non-directory.  Avoid calling exit.
60198         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
60199         strdup.
60200         * modules/rename-tests (Depends-on): Drop lstat.
60201         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
60202         (gl_PREREQ_RENAME): Delete unused macro.
60204         rename-dest-slash: fix NetBSD bug
60205         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
60206         links.
60207         * modules/rename-dest-slash (Depends-on): Add same-inode.
60209         rename-tests: new test, exposes several platform bugs
60210         * modules/rename-tests: New file.
60211         * tests/test-rename.h: Likewise.
60212         * tests/test-rename.c: Likewise.
60213         * doc/posix-functions/rename.texi (rename): Improve documentation,
60214         including bugs that will eventually be fixed in gnulib.
60216 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
60218         * lib/uname.c: Include <stdlib.h>
60219         (uname): Assume version info is available.
60221 2009-10-02  Jim Meyering  <meyering@redhat.com>
60223         gnu-web-doc-update: correct --help output
60224         * build-aux/gnu-web-doc-update: Make --help output relevant.
60226         gnu-web-doc-update: add standard options
60227         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
60229         gnu-web-doc-update: New module.
60230         Use this script to automatically update the on-line web documentation
60231         for your GNU project at http://www.gnu.org/software/$pkg/manual/
60232         * modules/gnu-web-doc-update: New file, from coreutils.
60233         * build-aux/gnu-web-doc-update: New script.
60235 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
60237         link: LoadLibrary is not needed.
60238         * lib/link.c: Use GetModuleHandle.
60240 2009-10-01  Eric Blake  <ebb9@byu.net>
60242         getopt: bump serial number
60243         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
60244         change.
60246         tests: tighten link, rmdir, and remove tests
60247         * tests/test-link.h (includes): No need to use <config.h> here.
60248         Clean up if directory hard link was created, otherwise test for
60249         trailing '.'.
60250         * tests/test-linkat.c (main): Simplify.
60251         * tests/test-remove.c (main): Enhance test for trailing '.'.
60252         * tests/test-rmdir.h (test_rmdir_func): Likewise.
60254 2009-10-01  Jim Meyering  <meyering@redhat.com>
60256         maint.mk: requiring "make major" was annoying, for a "minor" release.
60257         What is intended is "stable", to contrast with alpha and beta,
60258         so require "make stable", not "make major".
60259         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
60260         (get_tool_versions): Likewise.
60261         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
60263 2009-09-30  Ben Pfaff  <blp@gnu.org>
60265         Fix broken build of replacement for Windows tmpfile().
60266         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
60267         flags argument added along with the 'mkostemp' module.
60269 2009-09-28  Bruno Haible  <bruno@clisp.org>
60271         Avoid identifier clash with POSIX function 'remove' defined as a macro.
60272         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
60273         to 'remove_elt'.
60274         (gl_list_remove): Update.
60275         * lib/gl_list.c (gl_list_remove): Update.
60276         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
60277         to 'remove_elt'.
60278         (gl_oset_remove): Update.
60279         * lib/gl_list.c (gl_oset_remove): Update.
60280         Reported by Eric Blake.
60282 2009-09-28  Eric Blake  <ebb9@byu.net>
60284         doc: mention yet more cygwin 1.7 status
60285         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
60286         cygwin.
60287         * doc/glibc-functions/execvpe.texi (execvpe): New file.
60288         * doc/gnulib.texi (Glibc unistd.h): Mention it.
60290         argp: fix test failure
60291         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
60292         that are not upper-case.  Pass correct range to tolower.
60294 2009-09-27  Jim Meyering  <meyering@redhat.com>
60296         test-yesno: work around sparc-dash here-document infelicity
60297         Without this change, the literal \177 byte in a here document
60298         would make dash 0.5.5.1-3 access uninitialized memory.
60299         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
60300         Instead, use a marker, "@", and filter through tr to create the desired
60301         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
60303 2009-09-27  Bruno Haible  <bruno@clisp.org>
60305         Disable untested support for new flavours of ACLs on AIX.
60306         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
60307         progress.
60308         * lib/set-mode-acl.c (qset_acl): Likewise.
60310 2008-12-07  Bruno Haible  <bruno@clisp.org>
60312         Add support for new flavours of ACLs on AIX. (Untested.)
60313         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
60314         (file_has_acl): Add support for newer AIX.
60315         * lib/set-mode-acl.c (qset_acl): Likewise.
60316         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
60317         Rainer Tammer <tammer@tammer.net>.
60319 2009-09-26  Eric Blake  <ebb9@byu.net>
60321         argp: fix compilation of getopt
60322         * lib/getopt.in.h (includes): Use different guard than glibc.
60323         Reported by Sergey Poznyakoff.
60325         doc: mention more cygwin 1.7 status
60326         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
60327         bug.
60328         * doc/posix-functions/execl.texi (execl): Likewise.
60329         * doc/posix-functions/execle.texi (execle): Likewise.
60330         * doc/posix-functions/execlp.texi (execlp): Likewise.
60331         * doc/posix-functions/execv.texi (execv): Likewise.
60332         * doc/posix-functions/execve.texi (execve): Likewise.
60333         * doc/posix-functions/execvp.texi (execvp): Likewise.
60334         * doc/glibc-functions/canonicalize_file_name.texi
60335         (canonicalize_file_name): Cygwin 1.7 now provides this.
60336         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
60337         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
60338         on AT_SYMLINK_NOFOLLOW.
60340 2009-09-24  Eric Blake  <ebb9@byu.net>
60342         test-linkat: make test more robust
60343         * tests/test-linkat.c (main): Avoid collision with EEXIST.
60345         getopt: fix inclusion guards for cygwin
60346         * modules/getopt-posix (Depends-on): Add include-next.
60347         (Makefile.am): Substitute more items in replacement header.
60348         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
60349         <getopt.h>.
60350         * lib/getopt.in.h (includes): Use split inclusion guard, and
60351         prefer <getopt.h> over include <unistd.h> when one is present.
60352         (option): Also override name of 'struct option'.
60354         same-inode: revert prior change; it is not yet ready
60355         * NEWS: Undo mention of this change.
60356         * lib/same-inode.h (same-inode.h): Undo tri-state change.
60357         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
60358         * lib/cycle-check.c (cycle_check): Likewise.
60359         * lib/same.c (same_name): Likewise.
60360         * lib/at-func2.c (at_func2): Likewise.
60362 2009-09-23  Eric Blake  <ebb9@byu.net>
60364         linkat: new module
60365         * modules/linkat: New file.
60366         * lib/at-func2.c (at_func2): Likewise.
60367         * lib/linkat.c (linkat): Likewise.
60368         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
60369         * lib/openat-priv.h (at_func2): Add declaration.
60370         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
60371         * modules/unistd (Makefile.am): Substitute them.
60372         * lib/unistd.in.h (linkat): Declare it.
60373         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
60374         * doc/posix-functions/linkat.texi (linkat): Likewise.
60375         * doc/posix-functions/link.texi (link): Tweak wording.
60376         * tests/test-link.c (main): Move guts...
60377         * tests/test-link.h (test_link): ...into new file.
60378         * modules/linkat-tests: New test.
60379         * tests/test-linkat.c: Likewise.
60380         * modules/link-tests (Files): Ship new file.
60381         (Depends-on): Add stdbool.
60383         dirname: add library-safe mdir_name
60384         * lib/dirname.h (mdir_name): New prototype.
60385         * lib/dirname.c (dir_name): Move guts...
60386         (mdir_name): ...to new function that avoids xalloc_die.
60388         fchdir: another mingw fix
60389         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
60390         * lib/fchdir.c (get_name): New helper method; skips canonicalize
60391         on mingw (where it has not yet been ported), and make it optional
60392         elsewhere.
60393         (_gl_register_fd): Use it.
60395         same-inode: make SAME_INODE tri-state, to port to mingw
60396         * NEWS: Mention this change.
60397         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
60398         st_ino always being 0.
60399         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
60400         * lib/cycle-check.c (cycle_check): Likewise.
60401         * lib/same.c (same_name): Likewise.
60403         lstat: avoid mingw compilation error
60404         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
60405         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
60406         lstat ourselves.
60407         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
60408         was adequate.
60409         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
60410         the checks for lstat.
60411         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
60413         link: fix test failure on Solaris 9
60414         * lib/link.c (rpl_link): Don't assume link will catch bogus
60415         trailing slash on source.
60417         test-symlinkat: enhance test
60418         * tests/test-readlink.c (main): Move guts...
60419         * tests/test-readlink.h (test_readlink): ...into new file.
60420         * tests/test-symlink.c (main): Move guts...
60421         * tests/test-symlink.h (test_symlink): ...into new file.
60422         * tests/test-symlinkat.c (main): Use new files for further
60423         coverage.
60424         (do_symlink, do_readlink): New helper functions.
60425         * modules/symlink-tests (Files): Ship new file.
60426         (Depends-on): Add stdbool.
60427         * modules/readlink-tests (Files): Ship new file.
60428         (Depends-on): Add stdbool.
60429         * modules/symlinkat-tests (Files): Use new files.
60431 2009-09-23  Eric Blake  <ebb9@byu.net>
60433         readlink: document portability issue with symlink length
60434         * doc/posix-functions/lstat.texi (lstat): Mention that some file
60435         systems have bogus st_size on symlinks, and mention the
60436         areadlink-with-size module.
60437         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
60438         * doc/posix-functions/readlink.texi (readlink): Mention the
60439         areadlink module, and ERANGE failure.
60440         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
60441         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
60443         readlink: fix Solaris 9 bug with trailing slash
60444         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
60445         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
60446         * doc/posix-functions/readlink.texi (readlink): Document this.
60447         * modules/readlink-tests: New test.
60448         * tests/test-readlink.c: Likewise.
60450         readlink: fix cygwin 1.5.x bug with return type
60451         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
60452         * lib/unistd.in.h (readlink): Use ssize_t.
60453         * lib/readlink.c (readlink): Likewise.
60454         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
60455         * modules/unistd (Makefile.am): Substitute it.
60456         * lib/unistd.in.h (readlink): Declare replacement.
60457         * doc/posix-functions/readlink.texi (readlink): Document this.
60459         symlink: use throughout gnulib
60460         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
60461         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
60462         symlink is not used.
60463         * modules/symlinkat (Depends-on): Add symlink.
60464         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
60465         * modules/canonicalize-tests (Depends-on): Likewise.
60466         * modules/lstat-tests (Depends-on): Likewise.
60467         * modules/openat-tests (Depends-on): Likewise.
60468         * modules/remove-tests (Depends-on): Likewise.
60469         * modules/rmdir-tests (Depends-on): Likewise.
60470         * modules/unlink-tests (Depends-on): Likewise.
60471         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
60472         * tests/test-canonicalize.c (symlink): Likewise.
60473         * tests/test-fstatat.c (symlink): Likewise.
60474         * tests/test-lstat.c (symlink): Likewise.
60475         * tests/test-remove.c (symlink): Likewise.
60476         * tests/test-rmdir.c (symlink): Likewise.
60477         * tests/test-unlink.c (symlink): Likewise.
60478         * tests/test-unlinkat.c (symlink): Likewise.
60480         symlink: new module, for Solaris 9 bug
60481         * modules/symlink: New file.
60482         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
60483         * lib/symlink.c: Likewise.
60484         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
60485         * modules/unistd (Makefile.am): Substitute them.
60486         * lib/unistd.in.h (symlink): Declare replacement.
60487         * MODULES.html.sh (File system functions): Mention it.
60488         * doc/posix-functions/symlink.texi (symlink): Likewise.
60489         * modules/symlink-tests: New test.
60490         * tests/test-symlink.c: Likewise.
60492 2009-09-23  Bruno Haible  <bruno@clisp.org>
60494         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
60495         when needed.
60496         Test case: gnulib-tool --import --with-tests atexit inttypes.
60497         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
60499 2009-09-23  Bruno Haible  <bruno@clisp.org>
60501         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
60502         subcommand, not in a subshell.
60504 2009-09-22  Eric Blake  <ebb9@byu.net>
60506         unistd: sort replacement declarations
60507         * lib/unistd.in.h: Sort declarations.
60509         open, openat: minor optimization
60510         * lib/open.c (open): If open succeeded, len is non-zero.
60511         * lib/openat.c (rpl_openat): Likewise.
60513         link-follow: ensure correct result
60514         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
60515         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
60516         distinguish between possible failures.
60518 2009-09-21  Eric Blake  <ebb9@byu.net>
60520         fts: avoid compiler warning
60521         * lib/fts.c (dirent_inode_sort_may_be_useful)
60522         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
60524 2009-09-19  Bruno Haible  <bruno@clisp.org>
60526         * lib/progreloc.c (canonicalize_file_name): New declaration.
60528 2009-09-19  Eric Blake  <ebb9@byu.net>
60530         link: fix quoting
60531         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
60533         openat: fix openat bugs on Solaris 9
60534         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
60535         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
60536         * modules/openat (Depends-on): Add open.
60537         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
60538         * modules/fcntl-h (Makefile.am): Substitute it.
60539         * lib/fcntl.in.h (openat): Declare replacement.
60540         * doc/posix-functions/openat.texi (openat): Document this.
60542         openat: move fstatat and unlinkat into correct files
60543         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
60544         compiled.
60545         * lib/openat.c (fstatat, unlinkat): Move...
60546         * lib/fstatat.c (fstatat): ...into correct files.
60547         * lib/unlinkat.c (unlinkat): Likewise.
60549         openat: fix unlinkat bugs on Solaris 9
60550         * lib/unlinkat.c (unlinkat): New file.
60551         * modules/openat (Depends-on): Add unlink.
60552         (Files): Distribute it.
60553         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
60554         trailing slash behavior is broken.
60555         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
60556         * modules/unistd (Makefile.am): Substitute it.
60557         * lib/unistd.in.h (unlinkat): Declare replacement.
60558         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
60560         openat: fix fstatat bugs on Solaris 9
60561         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
60562         stat.
60563         * doc/posix-functions/fstatat.texi (fstatat): Document this.
60565         test-unlinkat: enhance test, to expose Solaris 9 bug
60566         * tests/test-unlink.c (main): Factor guts...
60567         * tests/test-unlink.h (test_rmdir_func): ...into new file.
60568         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
60569         * tests/test-rmdir.c (main): Adjust caller.
60570         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
60571         (unlinker): New helper function.
60572         (rmdirat): Enhance check.
60573         * modules/rmdir-tests (Depends-on): Add stdbool.
60574         * modules/unlink-tests (Depends-on): Likewise.
60575         (Files): Add test-unlink.h.
60576         * modules/openat-tests (Files): Likewise.
60577         (Depends-on): Add unlinkdir.
60579         test-fstatat: new test, to expose Solaris 9 bugs
60580         * tests/test-stat.c (main): Factor guts...
60581         * tests/test-stat.h (test_stat_func): ...into new file.
60582         * tests/test-lstat.c (main): Factor guts...
60583         * tests/test-lstat.h (test_lstat_func): ...into new file.
60584         * tests/test-fstatat.c: New file.
60585         * modules/stat-tests (Files): Add test-stat.h.
60586         * modules/lstat-tests (Files): Add test-lstat.h.
60587         (Depends-on): Add stdbool.
60588         * modules/openat-tests (Depends-on): Add pathmax.
60589         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
60590         (Makefile.am): Run new test.
60592         remove: new module, for mingw and Solaris 9 bugs
60593         * modules/remove: New file.
60594         * lib/remove.c: Likewise.
60595         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
60596         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
60597         * modules/stdio (Makefile.am): Use them.
60598         * lib/stdio.in.h (remove): Declare replacement.
60599         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
60600         * doc/posix-functions/remove.texi (remove): Likewise.
60601         * modules/remove-tests: New test.
60602         * tests/test-remove.c: Likewise.
60604         unlink: new module, for Solaris 9 bug
60605         * modules/unlink: New file.
60606         * lib/unlink.c: Likewise.
60607         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
60608         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
60609         * modules/unistd (Makefile.am): Use them.
60610         * lib/unistd.in.h (stat): Declare replacement.
60611         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
60612         * doc/posix-functions/unlink.texi (unlink): Likewise.
60613         * modules/unlink-tests: New test.
60614         * tests/test-unlink.c: Likewise.
60616         lstat: fix Solaris 9 bug
60617         * lib/lstat.c (lstat): Also check for trailing slash on
60618         non-symlink, non-directories.  Use stat module to simplify logic.
60619         * doc/posix-functions/lstat.texi (lstat): Document it.
60620         * modules/lstat-tests (Depends-on): Add errno, same-inode.
60621         (configure.ac): Check for symlink.
60622         * tests/test-lstat.c (main): Add more tests.
60624         stat: add as dependency to other modules
60625         * modules/chown (Depends-on): Add stat.
60626         * modules/euidaccess (Depends-on): Likewise.
60627         * modules/fchdir (Depends-on): Likewise.
60628         * modules/isdir (Depends-on): Likewise.
60629         * modules/link (Depends-on): Likewise.
60630         * modules/lstat (Depends-on): Likewise.
60631         * modules/mkdir-p (Depends-on): Likewise.
60632         * modules/modechange (Depends-on): Likewise.
60633         * modules/open (Depends-on): Likewise.
60634         * modules/readlink (Depends-on): Likewise.
60635         * modules/same (Depends-on): Likewise.
60637         stat: fix Solaris 9 bug
60638         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
60639         slash.
60640         * lib/stat.c (rpl_stat): Work around it.
60641         * doc/posix-functions/stat.texi (stat): Update documentation.
60643         stat: new module, for mingw bug
60644         * modules/stat: New file.
60645         * lib/stat.c: Likewise.
60646         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
60647         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
60648         * modules/sys_stat (Makefile.am): Use them.
60649         * lib/sys_stat.in.h (stat): Declare replacement.
60650         * lib/openat.c (fstatat): Deal with lstat and stat being function
60651         macros.
60652         * modules/openat (Depends-on): Add inline.
60653         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
60654         * doc/posix-functions/stat.texi (stat): Likewise.
60655         * modules/stat-tests: New test.
60656         * tests/test-stat.c: Likewise.
60658 2009-09-19  Jim Meyering  <meyering@redhat.com>
60660         syntax-check: detect unnecessary inclusion of canonicalize.h
60661         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
60663 2009-09-19  Eric Blake  <ebb9@byu.net>
60665         canonicalize-lgpl: adjust clients to use correct header
60666         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
60667         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
60668         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
60669         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
60670         * lib/progreloc.c (includes): Likewise.
60672 2009-09-19  Jim Meyering  <meyering@redhat.com>
60674         test-posixtm.c: correct a comment
60675         * tests/test-posixtm.c: Correct first-line comment.
60676         Spotted by Eric Blake.
60678 2009-09-16  Jim Meyering  <meyering@redhat.com>
60680         posixtm-tests: make T const-correct; add a test case
60681         * tests/test-posixtm.c (T): Declare const.
60682         Add a test for -(2^31+1).
60683         Remove useless can-succeed-only-in-2002 test.
60685         posixtm-tests: adjust the sole failing test
60686         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
60687         expected output matches what mktime now produces.  Cross-checked via
60688         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
60690         posixtm: move #ifdef'd tests into a new module
60691         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
60692         * tests/test-posixtm.c: ... this new file.
60693         * modules/posixtm-tests: New module.
60695 2009-09-19  Eric Blake  <ebb9@byu.net>
60697         openat: simplify use of at-func.c
60698         * lib/at-func.c (includes): Include prerequisites here, to
60699         simplify requirements on client files.
60700         * lib/openat-priv.h: Add double-inclusion guard.
60701         * lib/faccessat.c (includes): Simplify.
60702         * lib/fchmodat.c (includes): Likewise.
60703         * lib/fchownat.c (includes): Likewise.
60704         * lib/mkdirat.c (includes): Likewise.
60705         * lib/mkfifoat.c (includes): Likewise.
60706         * lib/symlinkat.c (includes): Likewise.
60708         openat: allow return of fd 0
60709         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
60710         * modules/save-cwd (Depends-on): Replace fcntl-safer with
60711         unistd-safer.
60712         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
60713         <fcntl.h>; this module does not leak fds.
60714         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
60715         must be allowed to return 0, leaving openat_safer to add the
60716         safety.
60717         (openat_permissive): Avoid writing to just-opened fd 2 if
60718         restoring the current directory fails.
60719         * lib/openat-die.c (openat_restore_fail): Add comment.
60720         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
60721         (save_cwd): Guarantee safe fd, but without use of open_safer.
60722         * tests/test-openat.c: New test.
60723         * modules/openat-tests (Files, Makefile.am): Distribute and build
60724         new file.
60726         relocatable-prog-wrapper: fix build
60727         * modules/relocatable-prog-wrapper (Files): Update name of
60728         canonicalize m4 file, broken on 2009-09-17.
60729         Reported by emad hajjar <aleppos@hotmail.com>.
60731 2009-09-19  Bruno Haible  <bruno@clisp.org>
60733         * lib/safe-alloc.h: Use the standard header with GPL copyright.
60734         * lib/safe-alloc.c: Likewise.
60735         Reported by Ian Beckwith <ianb@erislabs.net>.
60737 2009-09-18  Bruno Haible  <bruno@clisp.org>
60739         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
60740         Reported by <erobles@sensacd.com.mx>.
60742 2009-09-17  Eric Blake  <ebb9@byu.net>
60744         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
60745         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
60746         slashes when checking if last component is missing.
60747         * tests/test-canonicalize.c (main): Test this.
60749         canonicalize, canonicalize-lgpl: honor // if distinct from /
60750         * modules/canonicalize (Files): Add double-slash-root.m4.
60751         * modules/canonicalize-lgpl (Files): Likewise.
60752         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
60753         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
60754         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
60755         fallback definition.
60756         (canonicalize_filename_mode): Use it to protect //.
60757         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
60758         (__realpath): Likewise.
60759         * tests/test-canonicalize.c (main): Test this.
60760         * tests/test-canonicalize-lgpl.c (main): Likewise.
60761         * modules/canonicalize-tests (Depends-on): Add same-inode.
60762         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
60764         canonicalize-lgpl: fix glibc bug with trailing slash
60765         * m4/canonicalize-lgpl.m4: Move contents...
60766         * m4/canonicalize.m4: ...here.
60767         (gl_CANONICALIZE_LGPL): Factor realpath check...
60768         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
60769         glibc 2.3.5 bug, fixed 2005-04-27.
60770         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
60771         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
60772         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
60773         * modules/canonicalize-lgpl (Files): Manage file rename.
60774         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
60775         * modules/stdlib (Makefile.am): Substitute witness.
60776         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
60777         is needed.
60778         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
60779         replacement is required.
60780         * lib/canonicalize.c (canonicalize_file_name): Likewise.
60781         * doc/glibc-functions/canonicalize_file_name.texi
60782         (canonicalize_file_name): Document this.
60783         * doc/posix-functions/realpath.texi (realpath): Likewise.
60785         canonicalize-lgpl: reject non-directory with trailing slash
60786         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
60787         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
60788         catches failures in glibc 2.3.5.
60789         * tests/test-canonicalize.c (main): Likewise.
60791         canonicalize-lgpl: use native realpath if it works
60792         * lib/canonicalize-lgpl.c (realpath): Guard with
60793         FUNC_REALPATH_WORKS.
60794         * lib/stdlib.in.h (realpath): Make declaration optional based on
60795         HAVE_REALPATH.
60796         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
60797         native realpath works.
60798         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
60799         * modules/stdlib (Makefile.am): Substitute witness.
60801         canonicalize, canonicalize-lgpl: use <stdlib.h>
60802         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
60803         (Include): Mention <stdlib.h>.
60804         (configure.ac): Mention functions we provide.
60805         * modules/canonicalize (configure.ac): Likewise.
60806         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
60807         realpath if canonicalize_file_name is missing.
60808         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
60809         * modules/stdlib (Makefile.am): Substitute witnesses.
60810         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
60811         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
60812         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
60813         * NEWS: Document this.
60814         * doc/glibc-functions/canonicalize_file_name.texi
60815         (canonicalize_file_name): Likewise.
60816         * doc/posix-functions/realpath.texi (realpath): Likewise.
60817         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
60819         test-canonicalize: consolidate into single C program
60820         * tests/test-canonicalize.sh: Delete; move setup into...
60821         * tests/test-canonicalize.c (main): ...the program, making it
60822         easier to run in debugger.  Add some tests.
60823         * modules/canonicalize-tests (Files): Remove unused file.
60824         (Depends-on): Add progname.
60825         (configure.ac, Makefile.am): Simplify.
60827         test-canonicalize-lgpl: consolidate into single C program
60828         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
60829         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
60830         easier to run in debugger.  Add some tests.
60831         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
60832         (configure.ac, Makefile.am): Simplify.
60834         canonicalize: avoid resolvepath
60835         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
60836         unnecessary checks.
60837         * lib/canonicalize.c (includes): Simplify.
60838         (canonicalize_file_name): Drop resolvepath implementation.
60839         * modules/canonicalize (Depends-on): Drop filenamecat.
60841         canonicalize: don't lose errno
60842         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
60843         over calls to free.
60845         canonicalize: simplify errno handling
60846         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
60847         assignment.
60849         canonicalize, canonicalize-lgpl: update module dependencies
60850         * modules/canonicalize (Depends-on): Add extensions, lstat,
60851         pathmax, stdlib.
60852         (Files): Drop pathmax.h.
60853         (configure.ac): Adjust macro name.
60854         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
60855         lstat, stdlib, sys_stat.
60856         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
60857         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
60858         extensions.
60859         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
60860         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
60861         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
60862         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
60863         declaration, if available.
60864         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
60865         we can rely on the readlink module.
60866         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
60867         (includes): Use <unistd.h> unconditionally.
60869 2009-09-17  Eric Blake  <ebb9@byu.net>
60871         maint: make Include sections of modules consistent
60872         * modules/alloca: Use only header name; no need to list #include.
60873         * modules/alloca-opt: Likewise.
60874         * modules/arpa_inet: Likewise.
60875         * modules/canon-host: Likewise.
60876         * modules/configmake: Likewise.
60877         * modules/dirent: Likewise.
60878         * modules/eealloc: Likewise.
60879         * modules/environ: Likewise.
60880         * modules/fchdir: Likewise.
60881         * modules/fcntl: Likewise.
60882         * modules/fcntl-h: Likewise.
60883         * modules/gethrxtime: Likewise.
60884         * modules/gettime: Likewise.
60885         * modules/ignore-value: Likewise.
60886         * modules/inet_ntop: Likewise.
60887         * modules/inet_pton: Likewise.
60888         * modules/inttypes: Likewise.
60889         * modules/isnand-nolibm: Likewise.
60890         * modules/isnanf-nolibm: Likewise.
60891         * modules/mbchar: Likewise.
60892         * modules/mbfile: Likewise.
60893         * modules/mbiter: Likewise.
60894         * modules/mbuiter: Likewise.
60895         * modules/netdb: Likewise.
60896         * modules/netinet_in: Likewise.
60897         * modules/nproc: Likewise.
60898         * modules/pagealign_alloc: Likewise.
60899         * modules/poll: Likewise.
60900         * modules/printf-frexp: Likewise.
60901         * modules/pthread: Likewise.
60902         * modules/putenv: Likewise.
60903         * modules/random_r: Likewise.
60904         * modules/relocatable-prog: Likewise.
60905         * modules/search: Likewise.
60906         * modules/select: Likewise.
60907         * modules/selinux-h: Likewise.
60908         * modules/settime: Likewise.
60909         * modules/signal: Likewise.
60910         * modules/size_max: Likewise.
60911         * modules/socklen: Likewise.
60912         * modules/ssize_t: Likewise.
60913         * modules/stdarg: Likewise.
60914         * modules/stdbool: Likewise.
60915         * modules/stddef: Likewise.
60916         * modules/stdint: Likewise.
60917         * modules/stdio: Likewise.
60918         * modules/stdlib: Likewise.
60919         * modules/string: Likewise.
60920         * modules/strings: Likewise.
60921         * modules/sys_file: Likewise.
60922         * modules/sys_ioctl: Likewise.
60923         * modules/sys_select: Likewise.
60924         * modules/sys_socket: Likewise.
60925         * modules/sys_stat: Likewise.
60926         * modules/sys_time: Likewise.
60927         * modules/sys_times: Likewise.
60928         * modules/sys_utsname: Likewise.
60929         * modules/sys_wait: Likewise.
60930         * modules/sysexits: Likewise.
60931         * modules/time: Likewise.
60932         * modules/times: Likewise.
60933         * modules/tmpfile: Likewise.
60934         * modules/trim: Likewise.
60935         * modules/unistd: Likewise.
60936         * modules/wchar: Likewise.
60937         * modules/wctype: Likewise.
60939 2009-09-17  Bruno Haible  <bruno@clisp.org>
60941         Make getdate.y compile on QNX and NetBSD 5 / i386.
60942         * m4/getdate.m4 (gl_GETDATE): Conditionally define
60943         TIME_T_FITS_IN_LONG_INT.
60944         * lib/getdate.y (long_time_t): New type.
60945         (relative_time): Change type of 'seconds' field to long_time_t.
60946         (get_date): Update types of local variables. Check against overflow
60947         during conversion from long_time_t to time_t.
60948         Reported by Matt Kraai <kraai@ftbfs.org>
60949         and Hasso Tepper <hasso@netbsd.org>.
60951 2009-09-17  Bruno Haible  <bruno@clisp.org>
60953         * modules/COPYING: Update copyright years.
60954         * modules/README: Likeiwse.
60955         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
60956         Reported by Ian Beckwith <ianb@erislabs.net>.
60958 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
60960         * users.txt: Update references for gnuit package.
60962 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
60964         * m4/getdelim.m4: Fix typo in copyright line.
60966 2009-09-17  Bruno Haible  <bruno@clisp.org>
60968         * lib/atoll.c: Use the standard header with GPL copyright.
60969         * lib/argz.in.h: Likewise.
60970         * lib/glob.c: Likewise.
60971         * lib/glob-libc.h: Likewise.
60972         * lib/random_r.c: Likewise.
60973         * lib/siglist.h: Likewise.
60974         * lib/strsignal.c: Likewise.
60975         Reported by Ian Beckwith <ianb@erislabs.net>.
60977 2009-09-17  Eric Blake  <ebb9@byu.net>
60979         rmdir: ensure correct dependency order
60980         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
60982 2009-09-17  Bruno Haible  <bruno@clisp.org>
60984         Disable assertion that fails on NetBSD 5 / i386.
60985         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
60986         Reported by Sam Steingold <sds@gnu.org>
60987         and Hasso Tepper <hasso@netbsd.org>.
60989 2009-09-16  Eric Blake  <ebb9@byu.net>
60991         unlinkdir: port to mingw
60992         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
60993         on which no one can unlink a directory.
60995         stdlib: sort witness names
60996         * modules/stdlib (Makefile.am): Sort replacements.
60997         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
60998         * lib/stdlib.in.h: Likewise.
61000         parse-duration-tests: avoid link failure
61001         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
61002         LIBINTL.
61003         Reported by Tom G. Christensen.
61005         openat-tests: ensure unlinkat behaves like rmdir
61006         * tests/test-rmdir.c (main): Factor guts...
61007         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
61008         * modules/rmdir-tests (Files): Ship new file.
61009         * modules/openat-tests: New test.
61010         * tests/test-unlinkat.c: Likewise.
61012         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
61013         * modules/rmdir-errno (Status, Notice): Now obsolete.
61015         rmdir: work around cygwin 1.5.x and mingw bugs
61016         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
61017         * lib/rmdir.c (rmdir): Work around it.
61018         * modules/rmdir (Status, Notice): No longer obsolete.
61019         (Files): Add dos.m4.
61020         (Depends-on): Add unistd.
61021         (configure.ac): Set witnesses.
61022         (License): Relax to LGPLv2+.
61023         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
61024         * modules/unistd (Makefile.am): Substitute witnesses.
61025         * lib/unistd.in.h (rmdir): Declare replacement.
61026         * doc/posix-functions/rmdir.texi (rmdir): Document this.
61027         * modules/rmdir-tests: New tests.
61028         * tests/test-rmdir.c: Likewise.
61030 2009-09-15  Eric Blake  <ebb9@byu.net>
61032         fchdir: improve use of replacement functions
61033         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
61034         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
61035         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
61036         REPLACE_CLOSEDIR.
61037         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
61038         * modules/sys_stat (Makefile.am): Substitute correct witness.
61039         * modules/dirent (Makefile.am): Likewise.
61040         * modules/unistd (Makefile.am): Likewise.
61041         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
61042         * lib/unistd.in.h (dup): Likewise.
61043         * lib/sys_stat.in.h (fstat): Likewise.
61045         maint: ignore gnulib-tool temp files
61046         * .gitignore: Ignore files created during gnulib-tool --test.
61048 2009-09-13  Jim Meyering  <meyering@redhat.com>
61050         posixtm: don't reject a time that specify "60" as the number of seconds
61051         * lib/posixtm.c (posixtime): The code to reject invalid dates
61052         would also reject a time specified with the .60 suffix.
61053         But POSIX allows that, in order to accommodate leap seconds.
61054         So don't reject it.
61055         (main): Adjust tests accordingly.
61056         * modules/posixtm (Depends-on): Add stpcpy.
61058 2009-09-11  Jim Meyering  <meyering@redhat.com>
61060         announce-gen: include [$release_type] in emitted Subject:
61061         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
61062         e.g., [stable] in the emitted Subject: line.
61064 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61066         Remove obsolete macros from several modules.
61067         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
61068         obsolete Autoconf macros with their modern counterparts.
61069         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
61070         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
61071         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
61072         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
61073         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
61074         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
61075         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
61076         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
61077         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
61078         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
61079         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
61080         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
61081         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
61082         * m4/sockets.m4 (gl_SOCKETS): Likewise.
61083         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
61084         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
61085         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
61086         * m4/time_r.m4 (gl_TIME_R): Likewise.
61087         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
61088         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
61089         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
61091         Fix copyright header in build-aux scripts.
61092         * build-aux/git-version-gen: Fix copyright header to match GPLv3
61093         recommendation.
61094         * build-aux/ncftpput-ftp: Likewise.
61095         * build-aux/update-copyright: Likewise.
61097 2009-09-09  Eric Blake  <ebb9@byu.net>
61099         test-link: allow Linux choice of errno
61100         * tests/test-link.c (main): Relax test for alternate error.
61102         strndup: fix improper m4 caching
61103         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
61104         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
61105         (gl_PREREQ_STRNDUP): Delete.
61106         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
61107         * modules/string (Makefile.am): Substitute it.
61108         * lib/string.in.h (strndup): Modernize prototype.
61110         getcwd: port to mingw
61111         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
61112         different from the POSIX assumptions made throughout the getcwd
61113         module; fortunately, the mingw getcwd does not need replacement.
61114         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
61115         * modules/getcwd-tests: New test.
61116         * tests/test-getcwd.c: Likewise.
61118         link: fix platform bugs
61119         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
61120         * lib/link.c (link): Work around them.  Fix related mingw bug.
61121         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
61122         * modules/unistd (Makefile.am): Substitute it.
61123         * lib/unistd.in.h (link): Declare replacement.
61124         * doc/posix-functions/link.texi (link): Document this.
61125         * modules/link (Depends-on): Add strdup-posix, sys_stat.
61127         test-link: consolidate into single C program, test more cases
61128         * tests/test-link.sh: Delete.
61129         * tests/test-link.c: Test more error conditions.  Exposes bugs on
61130         at least Cygwin and Solaris.
61131         * modules/link-tests (Files): Remove unused file.
61132         (Depends-on): Add errno, sys_stat.
61133         (Makefile.am): Simplify.
61135 2009-09-08  Bruno Haible  <bruno@clisp.org>
61137         Work around towlower, towupper bug on mingw.
61138         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
61139         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
61140         * doc/posix-functions/towlower.texi: Mention the mingw bug.
61141         * doc/posix-functions/towupper.texi: Likewise.
61142         Reported by Eric Blake.
61144 2009-09-08  Jim Meyering  <meyering@redhat.com>
61146         build: don't try to run autoheader if we don't use it
61147         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
61148         is not used in configure.ac.
61150 2009-09-08  Eric Blake  <ebb9@byu.net>
61152         euidaccess: fix compilation error
61153         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
61155         rawmemchr: relax license
61156         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
61157         okay.
61158         Reported by Jim Meyering.
61160         mkfifoat: new module
61161         * modules/mkfifoat: New file.
61162         * lib/mkfifoat.c: Likewise.
61163         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
61164         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
61165         * modules/sys_stat (Makefile.am): Use them.
61166         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
61167         * MODULES.html.sh (File system functions): Mention module.
61168         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
61169         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
61170         * modules/mkfifoat-tests: New test.
61171         * tests/test-mkfifoat.c: Likewise.
61173         strchrnul: relax license
61174         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
61175         okay.
61176         Reported by Jim Meyering.
61178 2009-09-08  Eric Blake  <ebb9@byu.net>
61180         fstatat: fix compilation on Solaris
61181         * lib/fstatat.c (includes): Add fcntl.h.
61182         Reported by Pádraig Brady.
61184 2009-09-07  Eric Blake  <ebb9@byu.net>
61186         rename: modernize replacement
61187         * modules/rename (Depends-on): Add stdio.
61188         (configure.ac): Declare witness.
61189         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
61190         stdio take care of replacement.
61191         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
61192         * modules/stdio (Makefile.am): Substitute them.
61193         * lib/stdio.in.h (rename): Declare replacement.
61194         * lib/rename.c (includes): Allow cross-compilation to non-windows
61195         machines.
61196         * doc/posix-functions/rename.texi (rename): Improve
61197         documentation.
61199         stdio: sort witness names
61200         * modules/stdio (Makefile.am): Sort replacements.
61201         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
61202         * lib/stdio.in.h: Likewise.
61204         getcwd: minor cleanups
61205         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
61206         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
61208         openat: provide more convenience names
61209         * modules/faccessat (configure.ac): Add C witness.
61210         * lib/unistd.in.h (readlinkat): Fix typo.
61211         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
61212         convenience wrappers.
61213         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
61214         wrappers in syntax checks.
61216 2009-09-06  Eric Blake  <ebb9@byu.net>
61218         doc: fix comments in recent patches
61219         * lib/faccessat.c: Mention correct function.
61220         * lib/fchmodat.c: Likewise.
61221         * lib/fchownat.c: Likewise.
61222         * lib/symlinkat.c: Likewise.
61223         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
61224         constants.
61226         faccessat, symlinkat: continue cleanup of previous patch
61227         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
61228         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
61229         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
61230         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
61231         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
61232         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
61233         set.
61235 2009-09-06  Bruno Haible  <bruno@clisp.org>
61237         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
61238         (fstatat): Declare if GNULIB_FSTATAT is set.
61239         (mkdirat): Declare if GNULIB_MKDIRAT is set.
61240         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
61241         (unlinkat): Declare if GNULIB_UNLINKAT is set.
61242         * modules/fcntl-h (Files): Remove m4/openat.m4.
61243         * modules/sys_stat (Files): Remove m4/openat.m4.
61244         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
61245         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
61246         * modules/unistd (Files): Remove m4/openat.m4.
61247         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
61248         GNULIB_OPENAT.
61249         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
61250         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
61251         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
61252         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
61253         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
61254         gl_OPENAT_DEFAULTS.
61255         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
61256         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
61257         Don't require gl_OPENAT_DEFAULTS.
61258         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
61259         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
61260         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
61261         (gl_OPENAT_DEFAULTS): Remove macro.
61263 2009-09-06  Bruno Haible  <bruno@clisp.org>
61265         * modules/openat (configure.ac): Remove unneeded witness.
61267 2009-09-06  Bruno Haible  <bruno@clisp.org>
61269         Set errno to ENOSYS when a function is entirely unsupported.
61270         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
61271         EOPNOTSUPP.
61272         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
61273         * modules/chown (Depends-on): Remove errno.
61275 2009-09-06  Bruno Haible  <bruno@clisp.org>
61277         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
61279 2009-09-06  Bruno Haible  <bruno@clisp.org>
61281         * lib/sys_stat.in.h: Fix preprocessor command indentation.
61283 2009-09-06  Ben Pfaff  <blp@gnu.org>
61284             Bruno Haible  <bruno@clisp.org>
61286         Work around a glibc bug in strtok_r.
61287         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
61288         Undefine if UNDEFINE_STRTOK_R is set.
61289         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
61290         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61291         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
61292         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
61293         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
61294         UNDEFINE_STRTOK_R.
61295         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
61297 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
61299         exclude: minor fix
61300         * lib/exclude.c: Include wctype.h
61302 2009-09-06  Akim Demaille  <demaille@gostai.com>
61304         bootstrap: improve error message
61305         * build-aux/bootstrap (find_tool): Upon failure, report the list
61306         of candidates.
61307         Honor the initial value of the envvar.
61309 2009-09-05  Eric Blake  <ebb9@byu.net>
61311         symlinkat: new module
61312         * modules/symlinkat: New file.
61313         * lib/symlinkat.c: Likewise.
61314         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
61315         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
61316         * modules/unistd (Makefile.am): Use them.
61317         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
61318         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
61319         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
61320         * MODULES.html.sh (File system functions): Mention module.
61321         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
61322         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
61323         * modules/symlinkat-tests: New test.
61324         * tests/test-symlinkat.c: Likewise.
61326         test-openat-safer: add more checks
61327         * tests/test-openat-safer.c (main): Check more code paths.
61329 2009-09-05  Jim Meyering  <meyering@redhat.com>
61331         syntax-check: detect unnecessary inclusion of openat.h
61332         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
61334 2009-09-05  Bruno Haible  <bruno@clisp.org>
61336         Support towlower, towupper.
61337         * doc/posix-functions/towlower.texi: Mention module wctype.
61338         * doc/posix-functions/towupper.texi: Likewise.
61339         * lib/wctype.in.h (towlower, towupper): New functions.
61340         * tests/test-wctype.c: Include stdio.h, stdlib.h.
61341         (ASSERT): New macro.
61342         (e): New variable.
61343         (main): Test also towlower, towupper. Test WEOF argument.
61344         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
61346 2009-09-05  Bruno Haible  <bruno@clisp.org>
61348         Fix conversion behaviour when the input is invalid.
61349         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
61350         mark occurring in first pass of indirect conversion.
61351         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
61352         input.
61353         Found by clang's static analyzer.
61355 2009-09-05  Bruno Haible  <bruno@clisp.org>
61357         * tests/test-striconveh.c (main): Test indirect conversion on platforms
61358         where direct conversion is possible.
61360 2009-09-04  Eric Blake  <ebb9@byu.net>
61362         openat: fail with ENOENT on empty name
61363         * lib/openat-proc.c (openat_proc_name): Special-case the empty
61364         buffer.
61366         link-follow: fix logic bug in prior patch
61367         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
61368         reversed sense of yes and no in prior patch.  Avoid confusing
61369         compilation failure with desired semantics.
61371         link-follow: accommodate mingw and cross-compilation
61372         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
61373         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
61374         cross-compilation results to -1, to make linkat easier to
61375         implement when cross-compiling.  Trivially support mingw.
61376         * modules/link-follow (configure.ac): Call new name.
61377         * NEWS: Mention this.
61379 2009-09-03  Eric Blake  <ebb9@byu.net>
61381         faccessat: compile replacement
61382         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
61383         needed.
61385         fts: fix compilation error
61386         * lib/fts.c (includes): Re-add "openat.h", for
61387         openat_needs_fchdir.
61389         faccessat: new module
61390         * modules/faccessat: New file.
61391         * lib/faccessat.c: Likewise.
61392         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
61393         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
61394         * modules/unistd (Makefile.am): Use it.
61395         * lib/unistd.in.h (faccessat): Declare it.
61396         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
61397         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
61398         * MODULES.html.sh (File system functions): Mention it.
61399         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
61400         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
61402         euidaccess: prefer POSIX over non-standard implementation
61403         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
61404         * lib/euidaccess.c (euidaccess): Use it if available.
61406         openat: make template easier to use
61407         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
61408         AT_FUNC_F2 to be undefined.
61409         (VALIDATE_FLAG): New macro; use it to reject bad flags.
61410         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
61411         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
61412         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
61413         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
61414         Likewise.
61415         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
61416         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
61417         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
61418         Likewise.
61420         openat: declare in POSIX headers
61421         * NEWS: Mention this.
61422         * modules/openat (configure.ac): Declare witnesses.
61423         (Depends-on): Add fcntl-h, sys_stat, unistd.
61424         (Include): Mention correct headers.
61425         * modules/fcntl-h (Depends-on): Add link-warning.
61426         (Files): Add openat.m4.
61427         (Makefile.am): Substitute witnesses.
61428         * modules/sys_stat (Files, Makefile.am): Likewise.
61429         * modules/unistd (Files, Makefile.am): Likewise.
61430         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
61431         (gl_OPENAT_DEFAULTS): New macro.
61432         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
61433         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
61434         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
61435         (SYS_STAT_H): Remove unused variable.
61436         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
61437         * lib/fcntl--.h (includes): Remove unneeded header.
61438         * lib/openat-safer.c (includes): Likewise.
61439         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
61440         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
61441         appropriate headers.
61442         (__OPENAT_PREFIX): Delete.
61443         * lib/fcntl.in.h (openat): Provide declaration.
61444         (AT_FDCWD): Fix Solaris bug.
61445         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
61446         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
61447         * lib/fchmodat.c (includes):  Adjust to find declaration.
61448         * lib/fchownat.c (includes): Likewise.
61449         * lib/mkdirat.c (includes): Likewise.
61450         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
61451         still visible.
61453 2009-09-02  Eric Blake  <ebb9@byu.net>
61455         errno: use consistently
61456         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
61457         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
61458         * lib/canonicalize.c (ELOOP): Likewise.
61459         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
61460         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
61461         * lib/lchown.c (EOPNOTSUPP): Likewise.
61462         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
61463         * lib/savewd.c (ESTALE): Likewise.
61464         * lib/settime.c (ENOSYS): Likewise.
61465         * lib/utimens.c (ENOSYS): Likewise.
61466         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
61467         * lib/chdir-safer.c (ELOOP): Likewise.
61468         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
61469         * modules/c-stack (Depends-on): Add errno.
61470         * modules/canonicalize (Depends-on): Likewise.
61471         * modules/chdir-safer (Depends-on): Likewise.
61472         * modules/fdopendir (Depends-on): Likewise.
61473         * modules/inet_ntop (Depends-on): Likewise.
61474         * modules/inet_pton (Depends-on): Likewise.
61475         * modules/lchown (Depends-on): Likewise.
61476         * modules/openat (Depends-on): Likewise.
61477         * modules/savewd (Depends-on): Likewise.
61478         * modules/settime (Depends-on): Likewise.
61479         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
61481         fts: avoid leaking fds
61482         * modules/fts (Depends-on): Add cloexec.
61483         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
61484         flag.
61486         fts: make directory fds more robust
61487         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
61488         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
61490         backupfile, chdir-long, fts, savedir: make safer
61491         * lib/backupfile.c (includes): Use "dirent--.h", since
61492         numbered_backup can write to stderr during readdir.
61493         * lib/savedir.c (includes): Likewise.
61494         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
61495         emulation can write to stderr on failure.
61496         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
61497         * lib/getcwd.c: Document why opendir_safer is unused.
61498         * lib/glob.c: Likewise.
61499         * lib/scandir.c: Likewise.
61500         * lib/openat-proc.c: Likewise, for open_safer.
61501         * modules/backupfile (Depends-on): Add dirent-safer.
61502         * modules/savedir (Depends-on): Likewise.
61503         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
61504         * modules/chdir-long (Depends-on): Add openat-safer.
61506         openat-safer: new module
61507         * modules/openat-safer: New file.
61508         * lib/openat-safer.c: Likewise.
61509         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
61510         * lib/fcntl-safer.h (openat_safer): Declare.
61511         * lib/fcntl--.h (openat): Override.
61512         * MODULES.html.sh (File descriptor based I/O): Mention it.
61513         * lib/openat.h: Add double-inclusion guards.
61514         * lib/openat.c (includes): Only include "fcntl-safer.h", not
61515         "fcntl--.h", so we can implement openat.
61516         * modules/openat-safer-tests: New test.
61517         * tests/test-openat-safer.c: New file.
61519         dirent-safer: new module
61520         * modules/dirent-safer: New file.
61521         * lib/dirent--.h: Likewise.
61522         * lib/dirent-safer.h: Likewise.
61523         * lib/opendir-safer.c: Likewise.
61524         * m4/dirent-safer.m4: Likewise.
61525         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
61526         * modules/dirent-safer-tests: New test.
61527         * tests/test-dirent-safer.c: New file.
61528         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
61530         fdopendir: optimize on mingw
61531         * lib/unistd.in.h (_gl_directory_name): New prototype.
61532         * lib/fchdir.c (_gl_directory_name): Implement it.
61533         (fchdir): Use it to simplify implementation.
61534         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
61535         fchdir, when available, to avoid calling [f]chdir().
61537         fdopendir: split into its own module
61538         * lib/openat.c (fdopendir): Move...
61539         * lib/fdopendir.c: ...into new file.
61540         * modules/fdopendir: New module.
61541         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
61542         * modules/openat (Depends-on): Add fdopendir.
61543         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
61544         fdopendir here.
61545         * modules/savedir (Depends-on): Only need fdopendir, not full
61546         openat.
61547         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
61548         * lib/openat.h (fdopendir): Drop prototype.
61549         * lib/dirent.in.h (fdopendir): Provide prototype.
61550         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
61551         * modules/dirent (Makefile.am): Substitute them.
61552         * MODULES.html.sh (File system functions): Mention it.
61553         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
61554         * modules/fdopendir-tests: New file.
61555         * tests/test-fdopendir.c: Likewise.
61557         fchdir: use more consistent macro convention
61558         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
61559         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
61560         REPLACE_FCHDIR, rather than relying on config.h macros.
61561         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
61562         inside a single make-time REPLACE_FCHDIR block, rather than using
61563         the config.h FCHDIR_REPLACEMENT.
61564         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
61565         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
61566         Manage fstat replacement.
61567         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
61568         REPLACE_FCHDIR.
61569         * modules/sys_stat (Files): Add m4/unistd_h.m4.
61570         (Makefile.am): Substitute REPLACE_FCHDIR.
61571         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
61572         FCHDIR_REPLACEMENT.
61573         * lib/dup-safer.c (dup_safer): Likewise.
61574         * lib/dup2.c (rpl_dup2): Likewise.
61575         * lib/dup3.c (rpl_dup3): Likewise.
61576         * lib/open.c (rpl_open): Likewise.
61578         fchdir: simplify error handling, and support dup3
61579         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
61580         stdbool, malloc-posix, realloc-posix.
61581         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
61582         (ensure_dirs_slot): Return false on allocation failure.
61583         (rpl_dup2): Delete.
61584         (_gl_register_dup): New function.
61585         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
61586         (_gl_register_fd): Close fd on allocation failure.
61587         * lib/fcntl.in.h (_gl_register_fd): Update signature.
61588         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
61589         prototype.
61590         (rpl_dup2_fchdir): Delete prototype.
61591         * lib/open.c (open): Update caller.
61592         * lib/dup2.c (dup2): Track fchdir metadata.
61593         * lib/dup3.c (dup3): Likewise.
61594         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
61595         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
61597 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61599         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
61600         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
61601         don't pass arguments to AC_OUTPUT.
61603 2009-09-02  Bruno Haible  <bruno@clisp.org>
61605         * modules/mkdtemp (License): Relicense under LGPLv2+.
61606         Reported by Paolo Bonzini.
61608 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61610         Replace uses of obsolete autoconf macros in Jim's modules.
61611         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
61612         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
61613         can evoke a warning from autoconf when run with -Wobsolete
61614         enabled.  They were declared obsolete for good reasons (see
61615         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
61616         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
61617         should not continue using the deprecated macros.
61618         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
61619         obsolete Autoconf macros with modern counterparts.
61620         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
61621         * m4/dos.m4 (gl_AC_DOS): Likewise.
61622         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
61623         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
61624         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
61625         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
61626         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
61627         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
61628         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
61629         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
61630         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
61631         Likewise.
61632         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
61633         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
61634         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
61635         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
61636         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
61637         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
61639 2009-09-01  Eric Blake  <ebb9@byu.net>
61641         fchdir: fix off-by-one bug in previous patch
61642         * lib/fchdir.c (rpl_fstat): Use correct bounds.
61643         (_gl_unregister_fd): Delete useless if.
61645 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
61647         maint.mk: sort the list of syntax-check rules
61648         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
61649         easier to get a sense of progress when the rules are run sequentially
61650         and take a long time.
61652 2009-09-01  Simon Josefsson  <simon@josefsson.org>
61654         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
61655         * modules/netinet_in: Likewise.
61656         * modules/sys_file: Likewise.
61657         * modules/sys_ioctl: Likewise.
61658         * modules/sys_select: Likewise.
61659         * modules/sys_socket: Likewise.
61660         * modules/sys_stat: Likewise.
61661         * modules/sys_time: Likewise.
61662         * modules/sys_times: Likewise.
61663         * modules/sys_utsname: Likewise.
61664         * modules/sys_wait: Likewise.
61666 2009-09-01  Jim Meyering  <meyering@redhat.com>
61668         fts: help ensure that return values are not ignored
61669         * lib/fts_.h (__GNUC_PREREQ): Define.
61670         (__attribute_warn_unused_result__): Define.
61671         (fts_children, fts_close, fts_open, fts_read): Declare with
61672         __attribute_warn_unused_result__.
61674         fts: fts_close now fails also when closing a dir file descriptor fails
61675         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
61676         and propagate to caller, along with errno.
61678         announce-gen: correct formatting in --help output
61679         * build-aux/announce-gen (usage): Move the one-line description in
61680         --help output "up", to where it belongs, just after Usage:.
61682 2009-08-31  Eric Blake  <ebb9@byu.net>
61684         fchdir: port to mingw
61685         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
61686         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
61687         opened, then use a substitute.
61688         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
61689         replacement.
61690         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
61691         (_gl_register_fd): No need to check stat if open already filters
61692         all directories.
61693         (fchdir): Fix error condition to match POSIX.
61694         * modules/fchdir (Depends-on): Add sys_stat.
61695         * doc/posix-functions/open.texi (open): Document the limitation.
61696         * modules/fchdir-tests: New file.
61697         * tests/test-fchdir.c: Likewise.
61699         canonicalize: allow cross-testing from cygwin to mingw
61700         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
61701         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
61702         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
61703         Likewise.
61704         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
61705         target does not support symlinks.
61706         * tests/test-canonicalize-lgpl.sh: Likewise.
61708         chown: avoid compilation warning on mingw
61709         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
61710         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
61711         mingw.
61712         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
61713         * modules/chown (Depends-on): Add errno.
61715 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
61717         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
61718         command.
61720 2009-08-31  Jim Meyering  <meyering@redhat.com>
61722         canonicalize: remove useless initialization
61723         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
61724         initialization of local, "end".
61726 2009-08-30  Bruno Haible  <bruno@clisp.org>
61728         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
61729         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
61730         ENOSYS.
61732 2009-08-30  Bruno Haible  <bruno@clisp.org>
61734         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
61735         /usr/xpg4/bin/tr when it exists.
61736         * tests/test-pipe-filter-gi1.sh: Likewise.
61738 2009-08-30  Bruno Haible  <bruno@clisp.org>
61740         Work around deficient /usr/bin/id program on Solaris.
61741         * tests/test-file-has-acl.sh (ID): New variable.
61742         * tests/test-set-mode-acl.sh (ID): Likewise.
61743         * tests/test-copy-acl.sh (ID): Likewise.
61744         * tests/test-copy-file.sh (ID): Likewise.
61746 2009-08-30  Bruno Haible  <bruno@clisp.org>
61748         New module 'xstriconveh'.
61749         * lib/xstriconveh.h: New file.
61750         * lib/xstriconveh.c: New file.
61751         * modules/xstriconveh: New file.
61753 2009-08-30  Bruno Haible  <bruno@clisp.org>
61755         Make it easier to use mem_cd_iconveh.
61756         * lib/striconveh.h (iconveh_t): New type.
61757         (iconveh_open, iconveh_close): New declarations.
61758         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
61759         with a single 'const iconveh_t *' argument.
61760         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
61761         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
61762         with a single 'const iconveh_t *' argument.
61763         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
61764         * tests/test-striconveh.c (main): Update.
61765         * NEWS: Mention the change.
61767 2009-08-30  Bruno Haible  <bruno@clisp.org>
61769         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
61770         problem.
61772 2009-08-30  Bruno Haible  <bruno@clisp.org>
61774         Work around iconv_open problem on Solaris.
61775         * lib/iconv_open-solaris.gperf: New file.
61776         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
61777         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
61778         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
61779         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
61780         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
61781         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
61783 2009-08-29  Jim Meyering  <meyering@redhat.com>
61785         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
61786         * top/maint.mk (cvs-check): Remove target; it was just an alias
61787         to the better-named vc-diff-check.
61788         (maintainer-distcheck): Remove rule.  It was used only from
61789         the (alpha/beta/major) target, and all of its commands but one
61790         were coreutils-specific.
61791         (vc-dist): Remove rule.
61792         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
61793         Run vc-diff-check, not vc-dist.
61794         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
61796 2009-08-27  Bruno Haible  <bruno@clisp.org>
61798         * tests/test-bitrotate.c (main): Remove test that uses a shift count
61799         of 0.
61801 2009-08-27  Bruno Haible  <bruno@clisp.org>
61803         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
61804         compilers.
61805         * doc/func.texi: Document the SunPRO C bug.
61807 2009-08-27  Bruno Haible  <bruno@clisp.org>
61809         Fix link error on Solaris.
61810         * tests/test-parse-duration.c (xstrdup): Remove function.
61812 2009-08-26  Pádraig Brady  <P@draigbrady.com>
61814         ignore-value: handle pointer types, too
61815         * lib/ignore-value.h (__attribute__): Remove definition.
61816         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
61817         of a more concise and more-often effective "(void) i" statement.
61818         (ignore_ptr): New function to suppress warnings from functions that
61819         return pointers, and to make it explicit that one function doesn't
61820         handle all cases.
61822 2009-08-25  Bruno Haible  <bruno@clisp.org>
61824         dup2: work around a Linux bug.
61825         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
61826         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
61827         * doc/posix-functions/dup2.texi: Mention the Linux bug.
61828         Reported by Simon Josefsson.
61830 2009-08-25  Jim Meyering  <meyering@redhat.com>
61832         libguestfs uses gnulib
61833         * users.txt: Add libguestfs.
61835 2009-08-24  Eric Blake  <ebb9@byu.net>
61837         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
61838         * lib/pipe2.c (includes): Add binary-io.h.
61839         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
61841 2009-08-24  Bruno Haible  <bruno@clisp.org>
61843         Tolerate declared but missing accept4 syscall.
61844         * lib/accept4.c (accept4): Invoke original accept4 function first, if
61845         available.
61846         * lib/sys_socket.in.h (accept4): If the function is already present,
61847         override it.
61848         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
61849         * modules/accept4 (Makefile.am): Compile accept4.c always.
61850         Reported by Paolo Bonzini and Eric Blake.
61852 2009-08-23  Bruno Haible  <bruno@clisp.org>
61854         New module 'accept4'.
61855         * lib/sys_socket.in.h (accept4): New declaration.
61856         * lib/accept4.c: New file.
61857         * m4/accept4.m4: New file.
61858         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
61859         GNULIB_ACCEPT4, HAVE_ACCEPT4.
61860         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
61861         HAVE_ACCEPT4.
61862         * modules/accept4: New file.
61863         * doc/glibc-functions/accept4.texi: Mention the new module.
61865 2009-08-24  Jim Meyering  <meyering@redhat.com>
61867         progname: also set global program_invocation_name, when possible
61868         Before this change, a libtool-enabled program that calls glibc's
61869         error function would report the program name as
61870         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
61871         * modules/progname (configure.ac): Check for a declaration of
61872         program_invocation_name.
61873         * lib/progname.c:  Include <errno.h>.
61874         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
61875         Set program_invocation_name.
61877 2009-08-23  Bruno Haible  <bruno@clisp.org>
61879         * lib/dup3.c: Include <string.h>.
61881 2009-08-23  Bruno Haible  <bruno@clisp.org>
61883         * lib/dup3.c (dup3): Test only once whether the system actually exists.
61884         * lib/pipe2.c (pipe2): Likewise.
61885         Suggested by Eric Blake.
61887 2009-08-23  Bruno Haible  <bruno@clisp.org>
61889         Tolerate declared but missing dup3 syscall.
61890         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
61891         * lib/unistd.in.h (dup3): If the function is already present,
61892         override it.
61893         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
61894         * modules/dup3 (Makefile.am): Compile dup3.c always.
61895         Reported by Paolo Bonzini.
61897 2009-08-23  Bruno Haible  <bruno@clisp.org>
61899         Tolerate declared but missing pipe2 syscall.
61900         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
61901         available.
61902         * lib/unistd.in.h (pipe2): If the function is already present,
61903         override it.
61904         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
61905         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
61906         Reported by Paolo Bonzini.
61908 2009-08-23  Bruno Haible  <bruno@clisp.org>
61910         * lib/pipe2.c (pipe2): Move #ifs inside function.
61912 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
61914         quotearg: document limitations of quote_these_too
61915         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
61916         those limitations are created.
61917         * lib/quotearg.h (set_char_quoting): Document that digits and
61918         letters that are special after backslash are not permitted.
61919         (quotearg_char): Cross-reference set_char_quoting documentation.
61921 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
61923         quotearg: implement custom_quoting_style
61924         * lib/quotearg.c: (struct quoting_options): Add left_quote and
61925         right_quote fields.
61926         (set_custom_quoting): New public function.
61927         (quotearg_buffer_restyled): Add left_quote and right_quote
61928         arguments, handle them very much like locale quoting, and update
61929         all uses.
61930         (quotearg_n_custom): New public function.
61931         (quotearg_n_custom_mem): New public function.
61932         (quotearg_custom): New public function.
61933         (quotearg_custom_mem): New public function.
61934         * lib/quotearg.h: Prototype and document new public functions.
61935         (enum quoting_style): For escape_quoting_style and
61936         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
61937         ignored even though they're otherwise like c_quoting_style.
61938         Add custom_quoting_style member and document with comparison to
61939         clocale_quoting_style.
61940         * tests/test-quotearg.c (custom_quotes): New array.
61941         (custom_results): New array.
61942         (main): Extend to test custom quoting.
61944 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
61946         quotearg: fix right quote escaping when it's in quote_these_too
61947         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
61948         quote, be sure to prepend only one backslash.
61949         * tests/test-quotearg.c (use_quote_double_quotes): New function.
61950         (main): Test it.
61952 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
61954         quotearg-tests: test escaping of embedded locale quotes
61955         * tests/test-quotearg.c (struct result_strings): Add member for
61956         new input.
61957         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
61958         (inputs): Add new input.
61959         (results_g): Add expected results.
61960         (flag_results): Likewise.
61961         (locale_results): Likewise.
61962         (compare_strings): Check those.
61964 2009-08-23  Bruno Haible  <bruno@clisp.org>
61966         Tests for module 'dup3'.
61967         * modules/dup3-tests: New file.
61968         * tests/test-dup3.c: New file.
61970         New module 'dup3'.
61971         * lib/unistd.in.h (dup3): New declaration.
61972         * lib/dup3.c: New file.
61973         * m4/dup3.m4: New file.
61974         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
61975         HAVE_DUP3.
61976         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
61977         * modules/dup3: New file.
61978         * doc/glibc-functions/dup3.texi: Mention the new module.
61980 2009-08-23  Bruno Haible  <bruno@clisp.org>
61982         Tweak the dup2 test.
61983         * tests/test-dup2.c (main): Create the test file empty. Verify that an
61984         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
61985         the test file is still empty. Fix argument order of lseek.
61987 2009-08-23  Bruno Haible  <bruno@clisp.org>
61989         Avoid test link errors when the modules getopt-gnu, gettext are used.
61990         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
61991         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
61993 2009-08-23  Bruno Haible  <bruno@clisp.org>
61995         Fix getdtablesize() on mingw.
61996         * lib/getdtablesize.c (getdtablesize): Implement differently.
61997         * lib/unistd.in.h (getdtablesize): Improve comment.
61999 2009-08-23  Bruno Haible  <bruno@clisp.org>
62001         New module 'mkostemp'.
62002         Based on Ulrich Drepper's 2007-08-10 change in glibc.
62003         * lib/stdlib.in.h (mksotemp): New declaration.
62004         * lib/mkostemp.c: New file, from glibc with modifications.
62005         * lib/tempname.h (GT_FILE): Remove outdated comment.
62006         (gen_tempname): Add flags argument.
62007         * lib/tempname.c (__GT_BIGFILE): Remove macro.
62008         (__GT_FILE): Map to 1.
62009         (small_open, large_open): Remove macros.
62010         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
62011         * lib/mkstemp.c (mkstemp): Update.
62012         * lib/mkdtemp.c (mkdtemp): Likewise.
62013         * m4/mkostemp.m4: New file.
62014         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
62015         HAVE_MKOSTEMP.
62016         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
62017         HAVE_MKOSTEMP.
62018         * modules/mkostemp: New file, based on modules/mkstemp.
62019         * doc/glibc-functions/mkostemp.texi: Mention the new module.
62020         * NEWS: Mention the change.
62022 2009-08-23  Bruno Haible  <bruno@clisp.org>
62024         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
62025         Reported by Eric Blake.
62027 2009-08-23  Bruno Haible  <bruno@clisp.org>
62029         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
62030         Reported by Eric Blake.
62032 2009-08-23  Bruno Haible  <bruno@clisp.org>
62034         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
62035         * modules/pipe2 (Depends-on): Likewise.
62037 2009-08-23  Eric Blake  <ebb9@byu.net>
62039         fcntl-h: add O_TTY_INIT support
62040         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
62041         * tests/test-fcntl-h.c (o): Test it.
62042         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
62044         fcntl-h: rename from fcntl, in preparation for fcntl(2)
62045         * modules/fcntl: Move <fcntl.h> header replacement...
62046         * modules/fcntl-h: ...to new name, so as not to collide with
62047         like-named function.
62048         * tests/test-fcntl.c: Rename...
62049         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
62050         * modules/fcntl-tests: Rename...
62051         * modules/fcntl-h-tests: ...to this.  Update test file name.
62052         * modules/chdir-long (Depends-on): Update clients.
62053         * modules/chdir-safer (Depends-on): Likewise.
62054         * modules/fcntl-safer (Depends-on): Likewise.
62055         * modules/fts (Depends-on): Likewise.
62056         * modules/mkancesdirs (Depends-on): Likewise.
62057         * modules/mkdir-p (Depends-on): Likewise.
62058         * modules/open (Depends-on): Likewise.
62059         * modules/savewd (Depends-on): Likewise.
62060         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
62061         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
62063 2009-08-22  Bruno Haible  <bruno@clisp.org>
62065         * modules/binary-io (License): Relicense under LGPL.
62066         * modules/pipe2 (License): Likewise.
62068 2009-08-22  Bruno Haible  <bruno@clisp.org>
62070         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
62071         return value.
62072         * lib/pipe-filter-gi.c (filter_init): Likewise.
62073         Reported by Eric Blake.
62075 2009-08-22  Bruno Haible  <bruno@clisp.org>
62077         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
62078         * modules/pipe (Depends-on): Add pipe2.
62080 2009-08-22  Bruno Haible  <bruno@clisp.org>
62082         Tests for module 'pipe2'.
62083         * modules/pipe2-tests: New file.
62084         * tests/test-pipe2.c: New file.
62086         New module 'pipe2'.
62087         * lib/unistd.in.h (pipe2): New declaration.
62088         * lib/pipe2.c: New file.
62089         * m4/pipe2.m4: New file.
62090         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
62091         HAVE_PIPE2.
62092         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
62093         * modules/pipe2: New file.
62094         * doc/glibc-functions/pipe2.texi: Mention the new module.
62096 2009-08-22  Bruno Haible  <bruno@clisp.org>
62098         Reference some new glibc functions.
62099         * doc/glibc-functions/accept4.texi: New file.
62100         * doc/glibc-functions/dup3.texi: New file.
62101         * doc/glibc-functions/mkostemp.texi: New file.
62102         * doc/glibc-functions/pipe2.texi: New file.
62103         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
62104         (Glibc sys/socket.h): Refer to accept4.
62105         (Glibc unistd.h): Refer to dup3, pipe2.
62106         Reported by Eric Blake.
62108 2009-08-22  Jim Meyering  <meyering@redhat.com>
62109             Bruno Haible  <bruno@clisp.org>
62111         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
62112         This makes it so packages using automake-1.11's silent-rules option
62113         can print e.g., a single "GEN    configmake.h" line, rather than
62114         the 30+ statements that perform the job.  If you want to see the
62115         actual commands, you can still run "make V=1".
62116         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
62117         so that make output is abbreviated when those variables are defined
62118         appropriately.
62119         * modules/argz: Likewise.
62120         * modules/arpa_inet: Likewise.
62121         * modules/byteswap: Likewise.
62122         * modules/configmake: Likewise.
62123         * modules/dirent: Likewise.
62124         * modules/errno: Likewise.
62125         * modules/fcntl: Likewise.
62126         * modules/float: Likewise.
62127         * modules/fnmatch: Likewise.
62128         * modules/getopt-posix: Likewise.
62129         * modules/glob: Likewise.
62130         * modules/iconv_open: Likewise.
62131         * modules/inttypes: Likewise.
62132         * modules/localcharset: Likewise.
62133         * modules/locale: Likewise.
62134         * modules/math: Likewise.
62135         * modules/netdb: Likewise.
62136         * modules/netinet_in: Likewise.
62137         * modules/poll: Likewise.
62138         * modules/posix_spawnp-tests: Likewise.
62139         * modules/sched: Likewise.
62140         * modules/search: Likewise.
62141         * modules/selinux-h: Likewise.
62142         * modules/signal: Likewise.
62143         * modules/spawn: Likewise.
62144         * modules/stdarg: Likewise.
62145         * modules/stdbool: Likewise.
62146         * modules/stddef: Likewise.
62147         * modules/stdint: Likewise.
62148         * modules/stdio: Likewise.
62149         * modules/stdlib: Likewise.
62150         * modules/string: Likewise.
62151         * modules/strings: Likewise.
62152         * modules/sys_file: Likewise.
62153         * modules/sys_ioctl: Likewise.
62154         * modules/sys_select: Likewise.
62155         * modules/sys_socket: Likewise.
62156         * modules/sys_stat: Likewise.
62157         * modules/sys_time: Likewise.
62158         * modules/sys_times: Likewise.
62159         * modules/sys_utsname: Likewise.
62160         * modules/sys_wait: Likewise.
62161         * modules/sysexits: Likewise.
62162         * modules/time: Likewise.
62163         * modules/unistd: Likewise.
62164         * modules/wchar: Likewise.
62165         * modules/wctype: Likewise.
62167 2009-08-22  Jim Meyering  <meyering@redhat.com>
62169         announce-gen: detect write failure
62170         * build-aux/announce-gen: Add Coda at end.
62171         Remove equivalent-but-more-verbose block at top.
62173 2009-08-19  Akim Demaille  <demaille@gostai.com>
62175         bootstrap: --help to stdout.
62176         * bootstrap (usage): Don't send --help to stderr.
62177         Use a here doc instead of a long string.
62179 2009-08-21  Eric Blake  <ebb9@byu.net>
62181         test-popen-safer: split from test-popen
62182         * tests/test-popen.c (main): Move...
62183         * tests/test-popen.h: ...into new file.
62184         * tests/test-popen-safer2.c: New file.
62185         * modules/popen-tests (Files): Add test-popen.h.
62186         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
62187         Suggested by Bruno Haible.
62189         test-fcntl-safer: split from test-open
62190         * tests/test-open.c (main): Move...
62191         * tests/test-open.h: ...into new file.
62192         * tests/test-fcntl-safer.c: New file.
62193         * modules/open-tests (Files): Add test-open.h.
62194         * modules/fcntl-safer-tests: New file.
62195         Suggested by Bruno Haible.
62197         test-fopen-safer: split from test-fopen
62198         * tests/test-fopen.c (main): Move...
62199         * tests/test-fopen.h: ...into new file.
62200         * tests/test-fopen-safer.c: New file.
62201         * modules/fopen-tests (Files): Add test-fopen.h.
62202         * modules/fopen-safer-tests: New file.
62203         Suggested by Bruno Haible.
62205 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
62207         popen-safer: test O_CLOEXEC at run-time.
62208         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
62210 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
62212         fcntl: move more flags to the header
62213         * lib/cloexec.c: Do not define FD_CLOEXEC here.
62214         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
62215         * lib/fcntl.in.h: Do both things here.
62217 2009-08-21  Jim Meyering  <meyering@redhat.com>
62219         consistently remove $@-t before redirecting to it
62220         * modules/argz: Remove $@-t and $@ before redirecting to the former.
62221         * modules/alloca-opt: Likewise.
62222         * modules/byteswap: Likewise.
62223         * modules/fnmatch: Likewise.
62224         * modules/getopt-posix: Likewise.
62225         * modules/glob: Likewise.
62226         * modules/poll: Likewise.
62227         * modules/posix_spawnp-tests: Likewise.
62228         * modules/sys_socket: Likewise.
62229         * modules/sysexits: Likewise.
62231 2009-08-21  Eric Blake  <ebb9@byu.net>
62233         popen: simplify access to original popen
62234         * lib/popen.c (rpl_popen): No need to worry about popen being a
62235         macro.
62236         Reported by Bruno Haible.
62238 2009-08-20  Eric Blake  <ebb9@byu.net>
62240         build: avoid some compiler warnings
62241         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
62242         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
62243         type.
62244         (new_exclude_segment, excluded_file_pattern_p)
62245         (excluded_file_name_p): Reduce scope.
62246         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
62247         old-style declaration.
62249 2009-08-20  Simon Josefsson  <simon@josefsson.org>
62251         * tests/test-exclude1.sh: Handle Windows EOL.
62252         * tests/test-exclude2.sh: Likewise.
62253         * tests/test-exclude3.sh: Likewise.
62254         * tests/test-exclude4.sh: Likewise.
62255         * tests/test-exclude5.sh: Likewise.
62256         * tests/test-exclude6.sh: Likewise.
62257         * tests/test-exclude7.sh: Likewise.
62259 2009-08-19  Akim Demaille  <demaille@gostai.com>
62261         bootstrap: find sha1sum when named gsha1sum.
62262         * bootstrap (find_tool): New.
62263         ($SHA1SUM): New.
62264         Use it.
62266 2009-08-20  Jim Meyering  <meyering@redhat.com>
62268         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
62269         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
62270         expression that converts "." in a file name to "\." in the resulting
62271         regexp.  Start with a dummy statement, so that prior shell variable
62272         definitions are expanded portably.  Reported by Simon Josefsson.
62274 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
62276         Fix polling for writeability of a screen buffer.
62277         * lib/poll.c: Distinguish input and screen buffers for the
62278         Win32 implementation.
62279         * lib/select.c: Likewise.
62281 2009-08-19  Eric Blake  <ebb9@byu.net>
62283         popen-safer: prevent popen from clobbering std descriptors
62284         * modules/popen-safer: New file.
62285         * lib/popen-safer.c: Likewise.
62286         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
62287         * lib/stdio--.h (popen): Provide override.
62288         * lib/stdio-safer.h (popen_safer): Provide declaration.
62289         * tests/test-popen.c (includes): Partially test this.
62290         * modules/popen-safer-tests: New file, for more tests.
62291         * tests/test-popen-safer.c: Likewise.
62292         * MODULES.html.sh (file stream based Input/Output): Mention it.
62294         tests: test some of the *-safer modules
62295         * modules/fopen-safer (Depends-on): Add fopen.
62296         * modules/fcntl-safer (Depends-on): Add fcntl.
62297         * modules/stdlib-safer (Depends-on): Add stdlib.
62298         (configure.ac): Set indicator.
62299         * modules/unistd-safer (configure.ac): Likewise.
62300         * modules/tmpfile-safer (configure.ac): Likewise.
62301         (Depends-on): Add tmpfile.
62302         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
62303         active.
62304         * tests/test-fopen.c (includes): Test safer versions when they are
62305         in use.
62306         * tests/test-open.c (includes): Likewise.
62308         popen: fix cygwin 1.5 bug when stdin closed
62309         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
62310         * modules/popen: New file.
62311         * modules/popen-tests: Likewise.
62312         * tests/test-popen.c: Likewise.
62313         * m4/popen.m4: Likewise.
62314         * lib/popen.c: Likewise.
62315         * lib/stdio.in.h (popen): New declaration.
62316         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
62317         * modules/stdio (Makefile.am): Likewise.
62318         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
62320 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
62322         maint.mk: give full control over update-copyright exclusions
62323         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
62324         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
62325         (update-copyright): Don't force inclusion of top-level
62326         ChangeLog.  Don't force exclusion of all COPYING files, but make
62327         them the default exclusion instead.
62329 2009-08-16  Bruno Haible  <bruno@clisp.org>
62331         Fix test failures on Solaris 10.
62332         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
62333         tests when Solaris iconv() is used.
62334         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
62335         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
62336         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
62337         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
62338         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
62340 2009-08-16  Bruno Haible  <bruno@clisp.org>
62342         Fix test failures on Solaris 10.
62343         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
62344         'tr' program and pass it as first argument.
62345         * tests/test-pipe-filter-gi1.sh: Likewise.
62346         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
62347         program as first argument.
62348         * tests/test-pipe-filter-gi1.c (main): Likewise.
62350 2009-08-16  Eric Blake  <ebb9@byu.net>
62352         fpurge: fix previous commits
62353         * modules/fpurge (Makefile.am): Make replacement conditional,
62354         partially reverting 2007-04-29 change; missed in previous
62355         attempt.
62356         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
62357         is missing.
62359 2009-08-16  Bruno Haible  <bruno@clisp.org>
62361         Clarify fpurge's effect on the file position.
62362         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
62363         * tests/test-fpurge.c (main): Make a second pass for checking the file
62364         position.
62366 2009-08-16  Bruno Haible  <bruno@clisp.org>
62368         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
62369         declaration of fpurge is missing.
62370         * tests/test-fpurge.c (main): Check that the file has not more contents
62371         than expected. Close the file before removing it.
62373 2009-08-15  Eric Blake  <ebb9@byu.net>
62375         fpurge: don't wrap working cygwin implementation
62376         * lib/fpurge.c (fpurge): Fix comment typo.
62377         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
62378         1.7 to avoid replacement.
62379         * tests/test-fpurge.c (main): Enhance test.
62381 2009-08-15  Eric Blake  <ebb9@byu.net>
62382         and Jim Meyering  <meyering@redhat.com>
62384         test-update-copyright: skip if perl is insufficient
62385         * tests/test-update-copyright.sh: Failure to run maintainer tool
62386         should not cause testsuite failure on cygwin 1.5.
62388 2009-08-14  Eric Blake  <ebb9@byu.net>
62390         doc: mention more functions added in cygwin 1.7.0
62391         * doc/posix-headers/limits.texi (limits.h): Update for recent
62392         cygwin additions.
62393         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
62394         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
62395         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
62396         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
62397         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
62399 2009-08-14  Eric Blake  <ebb9@byu.net>
62401         maint.mk: simplify update-copyright rule
62402         * top/maint.mk (update-copyright-local): Delete, and document how
62403         to do it in cfg.mk instead.
62404         (update-copyright-exclude-regexp): Delete, and document how to do
62405         it in .x-update-copyright instead.
62406         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
62407         exclude ChangeLog.
62409 2009-08-14  Bruno Haible  <bruno@clisp.org>
62411         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
62413 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
62415         maint.mk: support update-copyright-env
62416         * top/maint.mk (update-copyright-env): Define place-holder.
62417         (update-copyright): Expand $(update-copyright-env) before
62418         invoking update-copyright.
62420 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
62422         update-copyright: implement forced reformatting
62423         * build-aux/update-copyright: Implement and document
62424         UPDATE_COPYRIGHT_FORCE.
62425         * tests/test-update-copyright.sh: Test it.
62427 2009-08-14  Eric Blake  <ebb9@byu.net>
62428         and Bruno Haible  <bruno@clisp.org>
62430         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
62431         * tests/test-locale.c: Revert previous patch related to NULL.
62432         * tests/test-stdio.c: Likewise.
62433         * tests/test-stdlib.c: Likewise.
62434         * tests/test-string.c: Likewise.
62435         * tests/test-unistd.c: Likewise.
62436         * modules/time-tests (Depends-on): Add verify.
62437         * modules/wchar-tests (Depends-on): Likewise.
62438         * tests/test-time.c: Test for NULL compliance.
62439         * tests/test-wchar.c: Likewise.
62440         * modules/locale (Depends-on): Add stddef.
62441         * modules/stdio (Depends-on): Likewise.
62442         * modules/stdlib (Depends-on): Likewise.
62443         * modules/string (Depends-on): Likewise.
62444         * modules/time (Depends-on): Likewise.
62445         * modules/unistd (Depends-on): Likewise.
62446         * modules/wchar (Depends-on): Likewise.
62447         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
62448         * lib/stdlib.in.h (includes): Likewise.
62449         * lib/string.in.h (includes): Likewise.
62450         * lib/time.in.h (includes): Likewise.
62451         * lib/unistd.in.h (includes): Likewise.
62452         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
62453         replaced.
62454         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
62455         * m4/stddef_h.m4: New file.
62456         * modules/stddef: Likewise.
62457         * lib/stddef.in.h: Likewise.
62458         * modules/stddef-tests: Likewise.
62459         * tests/test-stddef.c: Likewise.
62460         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
62461         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
62462         * doc/posix-headers/locale.texi (locale.h): Likewise.
62463         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
62464         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
62465         * doc/posix-headers/string.texi (string.h): Likewise.
62466         * doc/posix-headers/time.texi (time.h): Likewise.
62467         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
62468         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
62470 2009-08-14  Eric Blake  <ebb9@byu.net>
62472         doc: improve git diff of texinfo files
62473         * .gitattributes: Add rule for *.texi files, with hint on how to
62474         use it.
62475         Copied from m4, and based on a report by Bruno Haible.
62477 2009-08-14  Bruno Haible  <bruno@clisp.org>
62479         Disable multithread support by default on Cygwin 1.5.x for real.
62480         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
62482 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
62484         update-copyright: much ado about intervals
62485         * build-aux/update-copyright: Implement and document
62486         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
62487         of copyright year intervals.
62488         Also, document UPDATE_COPYRIGHT_YEAR.
62489         * tests/test-update-copyright.sh: Test it.
62491         update-copyright: convert 2-digit to 4-digit years
62492         * build-aux/update-copyright: Implement and document.
62493         * tests/test-update-copyright.sh: Update.
62495 2009-08-14  Jim Meyering  <meyering@redhat.com>
62497         test-exclude: avoid coreutils "make check" failure
62498         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
62499         just as in test-argmatch.c.
62501 2009-08-13  Eric Blake  <ebb9@byu.net>
62503         test-dup2: fix bad assumption
62504         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
62505         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
62507         test-version-etc: fix CRLF portability issue
62508         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
62509         recognize \r.
62510         * tests/test-argp-version-etc-1.sh: Likewise.
62512         getopt: update client modules
62513         * modules/argp (Depends-on): Use getopt-gnu.
62514         * modules/git-merge-changelog (Depends-on): Likewise.
62515         * modules/long-options (Depends-on): Likewise.
62516         * modules/xstrtol (Depends-on): Likewise.
62518 2009-08-13  Simon Josefsson  <simon@josefsson.org>
62520         * tests/test-version-etc.sh: Don't fail on different
62521         project/version.  Don't fail on CRLF differences.  Rewrite to use
62522         multiple -e instead of multiple sed forks, suggested by Eric Blake
62523         <ebb9@byu.net>.
62524         * tests/test-argp-version-etc-1.sh: Likewise.
62526 2009-08-13  Simon Josefsson  <simon@josefsson.org>
62528         * tests/test-version-etc.sh: Don't fail on different
62529         project/version.
62531 2009-08-12  Bruno Haible  <bruno@clisp.org>
62533         Tests for modules 'getopt-posix', 'getopt-gnu'.
62534         * modules/getopt-posix-tests: New file.
62535         * tests/test-getopt.c: New file.
62536         * tests/test-getopt.h: New file.
62537         * tests/test-getopt_long.h: New file.
62539         New modules 'getopt-posix', 'getopt-gnu'.
62540         * modules/getopt-gnu: New file, renamed from modules/getopt.
62541         * modules/getopt-posix: New file.
62542         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
62543         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
62544         (gl_GETOPT): Remove macro.
62545         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
62546         Disable the test against BSD systems that declare optreset. Test
62547         against mingw bug. Test against lack of support of optional arguments
62548         on many platforms.
62549         * doc/glibc-headers/getopt.texi: Update module name and list of
62550         relevant platforms.
62551         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
62552         'getopt-gnu' and more portability problems.
62553         * NEWS: Mention the changes.
62555 2009-08-12  Bruno Haible  <bruno@clisp.org>
62557         Ensure that optarg etc. get declared by <unistd.h>.
62558         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
62559         AC_USE_SYSTEM_EXTENSIONS.
62560         * modules/getopt (Depends-on): Add 'extensions'.
62562 2009-08-12  Bruno Haible  <bruno@clisp.org>
62564         Avoid test link errors.
62565         * modules/pipe-filter-ii-tests (Makefile.am): Define
62566         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
62567         * modules/pipe-filter-gi-tests (Makefile.am): Define
62568         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
62569         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
62571 2009-08-12  Bruno Haible  <bruno@clisp.org>
62573         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
62574         gl_GETOPT_SUBSTITUTE before.
62575         (gl_GETOPT): Use it.
62576         * m4/argp.m4 (gl_ARGP): Update.
62577         Reported by Sergey Poznyakoff.
62579         * m4/getopt.m4: Reorder macros.
62580         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
62581         (gl_GETOPT_SUBSTITUTE): Remove macro.
62583 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
62585         Minor improvement in gitlog-to-changelog
62587         * build-aux/gitlog-to-changelog: New option `--format' makes
62588         output format string configurable.
62590 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
62592         Optimize exclude: use hash tables for non-wildcard patterns.
62594         * lib/exclude.c: Include hash.h and mbuiter.h
62595         (struct exclude_pattern, exclude_segment): New data types.
62596         (struct exclude): Rewrite.
62597         (fnmatch_pattern_has_wildcards): New function.
62598         (new_exclude_segment, free_exclude_segment): New functions.
62599         (excluded_file_pattern_p, excluded_file_name_p): New functions.
62600         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
62601         * lib/exclude.h (is_fnmatch_pattern): New prototype.
62602         * modules/exclude: Depend on hash and mbuiter.
62604         * modules/exclude-tests: New file.
62605         * tests/test-exclude.c: New file.
62606         * tests/test-exclude1.sh: New file.
62607         * tests/test-exclude2.sh: New file.
62608         * tests/test-exclude3.sh: New file.
62609         * tests/test-exclude4.sh: New file.
62610         * tests/test-exclude5.sh: New file.
62611         * tests/test-exclude6.sh: New file.
62612         * tests/test-exclude7.sh: New file.
62614 2009-08-12  Bruno Haible  <bruno@clisp.org>
62616         Ensure that getopt() gets declared by <unistd.h>.
62617         * lib/unistd.in.h: Conditionally include getopt.h.
62618         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
62619         Set GNULIB_UNISTD_H_GETOPT.
62620         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
62621         GNULIB_UNISTD_H_GETOPT.
62622         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
62624 2009-08-12  Bruno Haible  <bruno@clisp.org>
62626         Clarify logic.
62627         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
62628         gl_replace_getopt instead of GETOPT_H.
62630 2009-08-12  Bruno Haible  <bruno@clisp.org>
62632         * m4/getopt.m4: Add comments.
62634 2009-08-12  Bruno Haible  <bruno@clisp.org>
62636         Disable multithread support by default on Cygwin 1.5.x.
62637         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
62638         set gl_use_threads=no if not specified otherwise.
62640 2009-08-11  Bruno Haible  <bruno@clisp.org>
62642         Avoid compilation error on NetBSD 5.0.
62643         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
62644         * tests/test-stdio.c: Likewise.
62645         * tests/test-stdlib.c: Likewise.
62646         * tests/test-string.c: Likewise.
62647         * tests/test-unistd.c: Likewise.
62648         Reported by Greg Troxel <gdt@ir.bbn.com>
62649         at <https://savannah.gnu.org/support/?106973>.
62651 2009-08-11  Bruno Haible  <bruno@clisp.org>
62653         * modules/dup2-tests (Depends-on): Remove close.
62655         Undo 2009-07-19 commit.
62656         * modules/acl-tests (Depends-on): Remove close.
62657         * modules/binary-io-tests (Depends-on): Likewise.
62658         * modules/closein-tests (Depends-on): Likewise.
62659         * modules/flock-tests (Depends-on): Likewise.
62660         * modules/fsync-tests (Depends-on): Likewise.
62661         * modules/lseek-tests (Depends-on): Likewise.
62662         * modules/pipe-tests (Depends-on): Likewise.
62663         * modules/posix_spawn-tests (Depends-on): Likewise.
62664         * modules/posix_spawnp-tests (Depends-on): Likewise.
62665         * modules/stat-time-tests (Depends-on): Likewise.
62666         * modules/yesno-tests (Depends-on): Likewise.
62668 2009-08-10  Bruno Haible  <bruno@clisp.org>
62670         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
62672 2009-08-10  Bruno Haible  <bruno@clisp.org>
62674         Fix a gcc warning.
62675         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
62677 2009-08-10  Bruno Haible  <bruno@clisp.org>
62679         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
62680         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
62681         not only the first time.
62682         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
62683         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
62684         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
62685         is 1, not only the first time.
62687 2009-08-10  Bruno Haible  <bruno@clisp.org>
62689         Make it possible to use module 'gethostname' without module 'close'.
62690         * lib/unistd.in.h (close): Evoke a link error only if
62691         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
62692         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
62693         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
62694         * modules/unistd (Makefile.am): Substitute
62695         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
62696         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
62697         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
62698         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
62699         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
62700         * modules/sys_ioctl (Makefile.am): Substitute
62701         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
62702         * modules/socket (configure.ac): On native Windows, set
62703         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
62704         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
62705         Reported by Sam Steingold <sds@gnu.org>.
62707 2009-08-10  Bruno Haible  <bruno@clisp.org>
62709         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
62710         * modules/ioctl (configure.ac): Likewise.
62712 2009-08-10  Bruno Haible  <bruno@clisp.org>
62714         Avoid collision between gnulib wrapper and libintl wrapper.
62715         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
62716         already defined in intl/printf.c.
62717         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
62718         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
62720 2009-08-09  Bruno Haible  <bruno@clisp.org>
62722         Make <sys/select.h> really self-contained, also on Solaris 10.
62723         * lib/sys_select.in.h: Include <string.h>.
62724         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
62725         Solaris 10 problem.
62726         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
62727         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
62728         Reported by Jim Meyering.
62730 2009-08-09  Bruno Haible  <bruno@clisp.org>
62732         Avoid warnings from 'aclocal' that are due to a use of macro name
62733         AM_XGETTEXT_OPTION that is not defined in automake.
62734         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
62735         automake.
62736         * modules/error (configure.ac): Likewise.
62737         * modules/propername (configure.ac): Likewise.
62738         * modules/vasprintf (configure.ac): Likewise.
62739         * modules/verror (configure.ac): Likewise.
62740         * modules/xprintf (configure.ac): Likewise.
62741         * modules/xvasprintf (configure.ac): Likewise.
62743 2009-08-08  Bruno Haible  <bruno@clisp.org>
62745         Avoid compilation error in C++ mode.
62746         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
62747         Reported by Sam Steingold <sds@gnu.org>.
62749 2009-08-08  Bruno Haible  <bruno@clisp.org>
62751         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
62752         for the various Unix platforms.
62753         * doc/posix-headers/limits.texi: Update platforms list regarding
62754         HOST_NAME_MAX.
62755         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
62757 2009-08-07  Jim Meyering  <meyering@redhat.com>
62759         selinux-at: fix typo in a comment
62760         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
62761         Spotted by Paolo Bonzini.
62763         selinux-at: remove redundant m4 code, add documentation
62764         * modules/selinux-at (configure.ac): Remove redundant code.
62765         LIB_SELINUX is already set via the dependent module, selinux-h.
62766         (Include): Add quotes around selinux-at.h.
62767         * lib/selinux-at.h: Add documentation.
62768         Reported by Bruno Haible in
62769         http://marc.info/?l=gnulib-bug&m=124958988300749
62771 2009-08-07  Bruno Haible  <bruno@clisp.org>
62773         Avoid link error on MacOS X 10.3 and 10.4.
62774         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
62775         on non-ELF systems.
62776         * lib/argp-pv.c (argp_program_version): Likewise.
62777         Reported by Simon Josefsson.
62779 2009-08-07  Simon Josefsson  <simon@josefsson.org>
62781         * tests/test-version-etc.sh: Use $EXEEXT.
62783 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
62785         update-copyright: update documentation to point to maint.mk
62786         * build-aux/update-copyright: Here.
62788 2009-08-06  Jim Meyering  <meyering@redhat.com>
62790         maint.mk: support update-copyright-local
62791         * top/maint.mk (update-copyright-local): Define place-holder.
62792         (update-copyright): Depend on $(update-copyright-local).
62794 2009-08-06  Jim Meyering  <meyering@redhat.com>
62796         selinux-at: new module
62797         Initially written for coreutils, this module will soon be
62798         used by findutils, too.
62799         * MODULES.html.sh [Misc]: Add selinux-at.
62800         * lib/selinux-at.h: New file, from coreutils.
62801         * lib/selinux-at.c: Likewise.
62802         * modules/selinux-at: Likewise.
62803         (License): Change from LGPL to GPL, since it depends
62804         on the GPL'd openat module.
62806         doc: update README
62807         * README: Remove references to cogito.
62808         Remove cvs-repo-updating instructions from 2007.
62809         Don't imply that CVS is better if you have limited disk space.
62811 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
62813         update-copyright: support C-style comments
62814         * build-aux/update-copyright: Implement and document.
62815         * tests/test-update-copyright.sh: Test.
62817 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
62819         update-copyright: support omitted "(C)"
62820         * build-aux/update-copyright: Implement and document.  Also,
62821         allow variable whitespace before "(C)".
62822         * tests/test-update-copyright.sh: Test.
62824 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
62826         update-copyright: don't trip on non-FSF copyright statements
62827         * build-aux/update-copyright: Fix so that the first correctly
62828         formatted FSF copyright statement is recognized no matter what
62829         appears before it.  Update documentation.
62830         * tests/test-update-copyright.sh: Test that.
62832 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
62834         update-copyright: clean up code a little
62835         * build-aux/update-copyright: Append "_re" to the name of any
62836         variable holding a regular expression.
62837         Replace "old" and "new" with "stmt" in variable names.
62838         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
62839         handled correctly.
62840         Format code more consistently.
62842 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
62844         update-copyright-tests: improve portability
62845         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
62846         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
62848 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
62850         update-copyright: support @copyright{} and &copy;
62851         * build-aux/update-copyright: Implement and document.
62852         * tests/test-update-copyright.sh: Test.
62854 2009-08-04  Jim Meyering  <meyering@redhat.com>
62856         update-copyright-tests: correctly test EOL=\r\n handling
62857         * tests/test-update-copyright.sh: Put \r at the end of some lines
62858         for the dos-eol tests.  Based on a patch by Joel E. Denny.
62860         maint.mk: make update-copyright exclusion list more configurable
62861         * top/maint.mk (update-copyright): Default to excluding COPYING,
62862         but allow an override, in case someone does want to update that file.
62864         maint.mk: don't update copyright date in COPYING
62865         * top/maint.mk (update-copyright): Exclude COPYING.
62867         maint.mk: add a copyright-updating rule
62868         * top/maint.mk (update-copyright): New rule.
62869         Derived from coreutils/Makefile.am.
62871         update-copyright: rename some variables
62872         * build-aux/update-copyright: Rename a few variables for clarity.
62873         Tweak syntax.  List Joel E. Denny as coauthor.
62875 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
62877         update-copyright: fix bug for 2-digit last year and add tests
62878         * build-aux/update-copyright: Fix bug.
62879         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
62880         specified.
62881         * modules/update-copyright-tests: New
62882         * tests/test-update-copyright.sh: New.
62884 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
62886         update-copyright: handle leading tabs in line prefix
62887         * build-aux/update-copyright: Count leading tabs as 8 spaces
62888         when computing margin.  This helps with the formatting of
62889         ChangeLogs, for example.
62890         Fix documentation a little.
62892 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
62894         update-copyright: support EOL=\r\n
62895         * build-aux/update-copyright: Implement that.
62897 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
62899         update-copyright: automatically format copyright statements
62900         * build-aux/update-copyright: Implement that.
62901         Also, be a little more predictable and safer by always failing
62902         when the full copyright format is not perfectly recognized as an
62903         unbroken whole.  Discussed at
62904         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
62905         Rewrite documentation.
62907 2009-08-03  Bruno Haible  <bruno@clisp.org>
62909         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
62911 2009-08-02  Bruno Haible  <bruno@clisp.org>
62913         Tests for module 'uname'.
62914         * modules/uname-tests: New file.
62915         * tests/test-uname.c: New file.
62917         New module 'uname'.
62918         * lib/uname.c: New file.
62919         * m4/uname.m4: New file.
62920         * modules/uname: New file.
62921         * doc/posix-functions/uname.texi: Mention the new module.
62923 2009-08-02  Bruno Haible  <bruno@clisp.org>
62925         Tests for module 'sys_utsname'.
62926         * modules/sys_utsname-tests: New file.
62927         * tests/test-sys_utsname.c: New file.
62929         New module 'sys_utsname'.
62930         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
62931         * m4/sys_utsname_h.m4: New file.
62932         * modules/sys_utsname: New file.
62933         * doc/posix-headers/sys_utsname.texi: Mention the new module.
62935 2009-08-02  Bruno Haible  <bruno@clisp.org>
62937         Implicitly initialize the sockets library.
62938         * lib/gethostname.c: Include sockets.h.
62939         (rpl_gethostname): Invoke gl_sockets_startup.
62940         * lib/socket.c: Include sockets.h.
62941         (rpl_socket): Invoke gl_sockets_startup.
62942         * modules/gethostname (Depends-on): Add sockets.
62943         * modules/socket (Depends-on): Likewise.
62944         * tests/test-poll.c: Don't include sockets.h.
62945         (main): Don't invoke gl_sockets_startup.
62946         * tests/test-select.c: Don't include sockets.h.
62947         (main): Don't invoke gl_sockets_startup.
62949 2009-08-02  Bruno Haible  <bruno@clisp.org>
62951         Allow multiple calls to gl_sockets_startup.
62952         * lib/sockets.c (initialized_sockets_version): New variable.
62953         (gl_sockets_startup): Do nothing if already called for this or a higher
62954         version.
62955         (gl_sockets_cleanup): Reset initialized_sockets_version.
62957 2009-08-03  Simon Josefsson  <simon@josefsson.org>
62959         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
62960         different project/version.
62962 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
62963             Bruno Haible  <bruno@clisp.org>
62965         Tests for module 'pipe-filter-gi'.
62966         * modules/pipe-filter-gi-tests: New file.
62967         * tests/test-pipe-filter-gi1.sh: New file.
62968         * tests/test-pipe-filter-gi1.c: New file.
62969         * tests/test-pipe-filter-gi2.sh: New file.
62970         * tests/test-pipe-filter-gi2-main.c: New file.
62971         * tests/test-pipe-filter-gi2-child.c: New file.
62973         New module 'pipe-filter-gi'.
62974         * lib/pipe-filter-gi.c: New file.
62975         * modules/pipe-filter-gi: New file.
62977 2009-08-02  Bruno Haible  <bruno@clisp.org>
62978             Paolo Bonzini  <bonzini@gnu.org>
62980         Tests for module 'pipe-filter-ii'.
62981         * modules/pipe-filter-ii-tests: New file.
62982         * tests/test-pipe-filter-ii1.sh: New file.
62983         * tests/test-pipe-filter-ii1.c: New file.
62984         * tests/test-pipe-filter-ii2.sh: New file.
62985         * tests/test-pipe-filter-ii2-main.c: New file.
62986         * tests/test-pipe-filter-ii2-child.c: New file.
62988         New module 'pipe-filter-ii'.
62989         * lib/pipe-filter.h: New file.
62990         * lib/pipe-filter-ii.c: New file.
62991         * lib/pipe-filter-aux.h: New file.
62992         * modules/pipe-filter-ii: New file.
62994 2009-08-02  Simon Josefsson  <simon@josefsson.org>
62996         * lib/gc-libgcrypt.c: Change copyright to FSF.
62997         * lib/gc-gnulib.c: Likewise.
62999 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
63001         * lib/gethostname.c: Include limits.h.
63003 2009-08-02  Simon Josefsson  <simon@josefsson.org>
63004             Bruno Haible  <bruno@clisp.org>
63006         Ensure HOST_NAME_MAX as part of the gethostname module.
63007         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
63008         define also HOST_NAME_MAX.
63009         * tests/test-gethostname.c: Include <limits.h>.
63010         (main): Check also HOST_NAME_MAX.
63011         * doc/posix-headers/limits.texi: Document the mingw problem.
63013 2009-08-02  Bruno Haible  <bruno@clisp.org>
63015         * lib/gethostname.c (gethostname): Fix handling of large len argument.
63016         Add comments.
63018 2009-03-31  Simon Josefsson  <simon@josefsson.org>
63020         * lib/gethostname.c: Add Windows wrapper.
63021         * m4/gethostname.m4: Look for gethostname in -lws2_32.
63022         * modules/gethostname: Depend on sys_socket & errno, for also
63023         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
63024         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
63026 2009-07-31  Jim Meyering  <meyering@redhat.com>
63028         getloadavg: fix symbol name in comment
63029         * lib/getloadavg.c: Correct a typo I introduced when adding
63030         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
63031         Matt Kraai spotted the problem.
63033 2009-07-29  Matt Kraai  <mkraai@beckman.com>
63035         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
63036         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
63037         code also if ! defined N_NAME_POINTER.
63038         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
63039         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
63040         but the n_name member is a 12-byte array.
63042 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
63044         update-copyright: generalize comment handling
63045         * build-aux/update-copyright: Handle copyright statements
63046         within more comment styles.
63047         Document usage.
63048         Report any file with an external copyright holder or parse failure.
63050 2009-07-29  Jim Meyering  <meyering@redhat.com>
63052         mktime: correct setting of REPLACE_MKTIME
63053         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
63055         update-copyright: new module
63056         * modules/update-copyright: New file.
63057         * build-aux/update-copyright: New file.
63058         * MODULES.html.sh (maint+release support): Add update-copyright.
63060 2009-07-27  Bruno Haible  <bruno@clisp.org>
63062         Fix compilation error when <ctime> is used and mktime is replaced.
63063         * lib/time.in.h (mktime): New declaration.
63064         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
63065         REPLACE_MKTIME instead of defining mktime in config.h.
63066         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
63067         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
63068         Reported by Ross McFarland <rwmcfa1@neces.com>.
63070 2009-07-27  Bruno Haible  <bruno@clisp.org>
63072         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
63073         Reported by Matt Kraai <mkraai@beckman.com>.
63075 2009-07-25  Jim Meyering  <meyering@redhat.com>
63077         maint.mk: avoid warnings about missing files
63078         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
63079         diagnostic when .prev-version does not exist.
63080         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
63081         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
63082         nonexistent cfg.mk.
63083         Suggestions from Simon Josefsson.
63085 2009-07-25  Bruno Haible  <bruno@clisp.org>
63087         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
63088         defined as macros. Needed on QNX 6.4.1.
63089         Reported by Matt Kraai <mkraai@beckman.com>.
63091 2009-07-23  Jim Meyering  <meyering@redhat.com>
63093         maint.mk: invoke "make dist" with a working value of XZ_OPT
63094         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
63096 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
63098         Make fseeko.c compile on QNX.
63099         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
63101 2009-07-22  Peter Simons  <simons@cryp.to>
63103         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
63104         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
63105         * lib/md4.h: Likewise.
63106         * lib/md5.h: Likewise.
63107         * lib/sha1.h: Likewise.
63108         * lib/sha256.h: Likewise.
63109         * lib/sha512.h: Likewise.
63111         tests-sha1: don't assign literal string to 'char *' variable
63112         * tests/test-sha1.c (main): Declare locals with "const" to match
63113         attributes of the right hand side.
63115 2009-07-21  Eric Blake  <ebb9@byu.net>
63117         dup2: fix more mingw problems
63118         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
63119         fd to itself.
63120         * doc/posix-functions/dup2.texi (dup2): Document the bug.
63121         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
63122         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
63123         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
63124         care of mingw bugs.
63126 2009-07-21  Jim Meyering  <meyering@redhat.com>
63128         vc-list-files: avoid failure when /bin/sh is dash
63129         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
63130         On some Debian based systems, /bin/sh is a symlink to dash, and running
63131         this command would omit the "/" following each 'tests' prefix:
63132           dash -x build-aux/vc-list-files -C . tests
63133         That is because bash and dash work differently:
63134           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
63135           bash ok
63136           dash odd
63138 2009-07-21  Eric Blake  <ebb9@byu.net>
63140         dup2-tests: test previous patch
63141         * modules/dup2-tests: New file.
63142         * tests/test-dup2.c: Likewise.
63143         * tests/test-open.c (main): Avoid unspecified behavior.
63144         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
63145         test.
63147         dup2: work around mingw and cygwin 1.5 bug
63148         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
63149         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
63150         * modules/unistd (Makefile.am): Substitute it.
63151         * lib/unistd.in.h (dup2): Declare the replacement.
63152         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
63153         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
63154         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
63155         * modules/execute (Depends-on): Add dup2.
63156         * modules/fseterr (Depends-on): Likewise.
63157         * modules/pipe (Depends-on): Likewise.
63158         * modules/posix_spawn-internal (Depends-on): Likewise.
63160 2009-07-21  Bruno Haible  <bruno@clisp.org>
63162         * modules/.gitattributes: New file.
63164 2009-07-20  Bruno Haible  <bruno@clisp.org>
63166         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
63167         (main): Use it.
63169 2009-07-20  Eric Blake  <ebb9@byu.net>
63171         test-pipe: make a bit more robust.
63172         * tests/test-pipe.c (myerr): Allow error messages regardless of
63173         what we do to stderr.
63174         (test_pipe): Rearrange to avoid deadlock.
63175         (child_main): Try a larger read, to ensure we avoided deadlock.
63176         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
63177         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
63178         if misused.
63180 2009-07-19  Jim Meyering  <meyering@redhat.com>
63182         fts: avoid false-positive cycle-detection
63183         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
63184         for each new command line argument.
63186 2009-07-19  Bruno Haible  <bruno@clisp.org>
63188         Fix build error on mingw with the modules sys_select and unistd.
63189         * modules/acl-tests (Depends-on): Add close.
63190         * modules/binary-io-tests (Depends-on): Likewise.
63191         * modules/closein-tests (Depends-on): Likewise.
63192         * modules/flock-tests (Depends-on): Likewise.
63193         * modules/fsync-tests (Depends-on): Likewise.
63194         * modules/lseek-tests (Depends-on): Likewise.
63195         * modules/pipe-tests (Depends-on): Likewise.
63196         * modules/posix_spawn-tests (Depends-on): Likewise.
63197         * modules/posix_spawnp-tests (Depends-on): Likewise.
63198         * modules/stat-time-tests (Depends-on): Likewise.
63199         * modules/yesno-tests (Depends-on): Likewise.
63201 2009-07-19  Bruno Haible  <bruno@clisp.org>
63203         Unify conditionals.
63204         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
63205         macros, not at the compiler macros.
63206         * lib/pipe.c: Likewise.
63207         * lib/execute.c: Likewise.
63208         * lib/spawni.c: Likewise.
63210 2009-07-19  Bruno Haible  <bruno@clisp.org>
63212         Fix handling of closed stdin/stdout/stderr on mingw.
63213         * lib/w32spawn.h: Include unistd.h.
63214         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
63215         file descriptor with O_NOINHERIT flag.
63216         (fd_safer_noinherit): New function, based on fd-safer.c.
63217         (dup_safer_noinherit): New function, based on dup-safer.c.
63218         (undup_safer_noinherit): New function.
63219         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
63220         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
63221         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
63222         instead of fd_safer.
63223         * tests/test-pipe.c: Include <windows.h>.
63224         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
63225         result.
63227         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
63228         from main.
63229         (test_pipe): Pass an extra argument for disambiguation.
63230         (main): Invoke parent_main or child_main.
63232         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
63233         consistently.
63235 2009-07-18  Eric Blake  <ebb9@byu.net>
63237         test-pipe: fix mingw build
63238         * tests/test-pipe.c (main): Avoid fcntl on mingw.
63240 2009-07-18  Bruno Haible  <bruno@clisp.org>
63242         * modules/pipe-tests (Makefile.am): Fix typo.
63244 2009-07-18  Eric Blake  <ebb9@byu.net>
63246         error: fix mingw build
63247         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
63248         Reported by Bruno Haible.
63250         error: avoid undefined use of stdout
63251         * lib/error.c (error, error_at_line): Check that fd 1 is open
63252         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
63253         is handling faults and the close_stdout module wants to report the
63254         detection of closed stdout as an error.
63256 2009-07-17  Eric Blake  <ebb9@byu.net>
63258         pipe: be robust in face of closed fds
63259         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
63260         should cause child to misbehave.
63261         * modules/pipe-tests: New module.
63262         * tests/test-pipe.c: New file.
63263         * tests/test-pipe.sh: New file.
63264         Reported by Akim Demaille.
63266 2009-07-14  Bruno Haible  <bruno@clisp.org>
63268         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
63269         Reported by anonymous kc.
63271 2009-07-07  Jim Meyering  <meyering@redhat.com>
63273         maint.mk: don't look for translatable strings in *.m4 or *.mk
63274         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
63275         when searching for translatable strings.
63277 2009-07-05  Jim Meyering  <meyering@redhat.com>
63279         remove superfluous parentheses in STREQ definition
63280         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
63281         * lib/getugroups.c (STREQ): Likewise.
63282         * lib/fnmatch.c (STREQ): Likewise.
63283         Spotted by Bruno Haible.
63285 2009-07-04  Jim Meyering  <meyering@redhat.com>
63287         argv-iter: new module
63288         * MODULES.html.sh: Add argv-iter.
63289         * lib/argv-iter.c, lib/argv-iter.h: New files.
63290         * modules/argv-iter: New file.
63291         * modules/argv-iter-tests: New file.
63292         * tests/test-argv-iter.c: Test it.
63294 2009-07-04  Bruno Haible  <bruno@clisp.org>
63296         Fix assertion.
63297         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
63298         contains more exact copies of a given entry than file2, leave the extra
63299         copies unpaired rather than aborting.
63300         Reported by Eric Blake.
63302 2009-07-02  Bruno Haible  <bruno@clisp.org>
63304         Speedup git-merge-changelog for git cherry-pick.
63305         * lib/git-merge-changelog.c (struct entries_mapping): New type.
63306         (entries_mapping_get): New function, extracted from compute_mapping.
63307         (entries_mapping_reverse_get): New function.
63308         (compute_mapping): Add a 'full' argument. Return the result in a
63309         'struct entries_mapping'.
63310         (main): Update. Access the mappings through entries_mapping_get.
63311         Reported by Eric Blake.
63313 2009-07-02  Bruno Haible  <bruno@clisp.org>
63315         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
63316         best_i.
63318 2009-07-02  Bruno Haible  <bruno@clisp.org>
63320         Speed up approximate search for matching ChangeLog entries.
63321         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
63322         argument. Call fstrcmp_bounded instead of fstrcmp.
63323         (compute_mapping, try_split_merged_entry, main): Update callers.
63325 2009-07-02  Bruno Haible  <bruno@clisp.org>
63327         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
63329 2009-06-30  Bruno Haible  <bruno@clisp.org>
63331         Reduce the number of uc_is_cased calls.
63332         * lib/unicase.h (casing_suffix_context_t): Add
63333         'first_char_except_ignorable' field.
63334         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
63335         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
63336         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
63337         Update initializer.
63338         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
63339         case-ignorable characters.
63340         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
63341         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
63342         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
63343         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
63344         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
63346 2009-06-30  Bruno Haible  <bruno@clisp.org>
63348         Tests for module 'unicase/ignorable'.
63349         * modules/unicase/ignorable-tests: New file.
63350         * tests/unicase/test-ignorable.c: New file, generated by
63351         gen-uni-tables.
63353         Tests for module 'unicase/cased'.
63354         * modules/unicase/cased-tests: New file.
63355         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
63356         * tests/unicase/test-predicate-part1.h: New file, derived from
63357         tests/unictype/test-predicate-part1.h.
63358         * tests/unicase/test-predicate-part2.h: New file, same as
63359         tests/unictype/test-predicate-part2.h.
63361         Fix evaluation of "Before C" condition of FINAL_SIGMA.
63362         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
63363         (output_casing_properties): New function.
63364         (main): Call it.
63365         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
63366         * lib/unicase/cased.c: Include unictype/bitmap.h.
63367         (uc_is_cased): Define through a bitmap lookup.
63368         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
63369         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
63370         (uc_is_case_ignorable): Define through a bitmap lookup.
63371         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
63372         lib/unictype/bitmap.h.
63373         (Depends-on): Add inline. Clean up.
63374         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
63375         lib/unictype/bitmap.h.
63376         (Depends-on): Add inline. Clean up.
63377         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
63378         recognition.
63379         * tests/unicase/test-u16-tolower.c (main): Likewise.
63380         * tests/unicase/test-u32-tolower.c (main): Likewise.
63382 2009-06-30  Bruno Haible  <bruno@clisp.org>
63384         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
63385         * lib/unicase/u16-casemap.c: Likewise.
63386         * lib/unicase/u32-casemap.c: Likewise.
63388 2009-06-29  Bruno Haible  <bruno@clisp.org>
63390         Define u32_casefold as a wrapper around u32_ct_casefold.
63391         * lib/unicase/u32-casefold.c: Update.
63392         * modules/unicase/u32-casefold (Depends-on): Add
63393         unicase/u32-ct-casefold, unicase/empty-prefix-context,
63394         unicase/empty-suffix-context. Clean up.
63396         Define u16_casefold as a wrapper around u16_ct_casefold.
63397         * lib/unicase/u16-casefold.c: Update.
63398         * modules/unicase/u16-casefold (Depends-on): Add
63399         unicase/u16-ct-casefold, unicase/empty-prefix-context,
63400         unicase/empty-suffix-context. Clean up.
63402         Define u8_casefold as a wrapper around u8_ct_casefold.
63403         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
63404         * lib/unicase/u8-casefold.c: Update.
63405         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
63406         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
63408         Define u32_totitle as a wrapper around u32_ct_totitle.
63409         * lib/unicase/u32-totitle.c: Update.
63410         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
63411         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
63413         Define u16_totitle as a wrapper around u16_ct_totitle.
63414         * lib/unicase/u16-totitle.c: Update.
63415         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
63416         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
63418         Define u8_totitle as a wrapper around u8_ct_totitle.
63419         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
63420         functions.
63421         (FUNC): Delegate to U_CT_TOTITLE.
63422         * lib/unicase/u8-totitle.c: Update.
63423         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
63424         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
63426         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
63427         invocation.
63428         * modules/unicase/u32-tolower (Depends-on): Add
63429         unicase/empty-prefix-context, unicase/empty-suffix-context.
63431         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
63432         invocation.
63433         * modules/unicase/u16-tolower (Depends-on): Add
63434         unicase/empty-prefix-context, unicase/empty-suffix-context.
63436         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
63437         * modules/unicase/u8-tolower (Depends-on): Add
63438         unicase/empty-prefix-context, unicase/empty-suffix-context.
63440         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
63441         invocation.
63442         * modules/unicase/u32-toupper (Depends-on): Add
63443         unicase/empty-prefix-context, unicase/empty-suffix-context.
63445         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
63446         invocation.
63447         * modules/unicase/u16-toupper (Depends-on): Add
63448         unicase/empty-prefix-context, unicase/empty-suffix-context.
63450         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
63451         * modules/unicase/u8-toupper (Depends-on): Add
63452         unicase/empty-prefix-context, unicase/empty-suffix-context.
63454         New module 'unicase/u32-ct-casefold'.
63455         * lib/unicase/u32-ct-casefold.c: New file.
63456         * modules/unicase/u32-ct-casefold: New file.
63458         New module 'unicase/u16-ct-casefold'.
63459         * lib/unicase/u16-ct-casefold.c: New file.
63460         * modules/unicase/u16-ct-casefold: New file.
63462         New module 'unicase/u8-ct-casefold'.
63463         * lib/unicase/u8-ct-casefold.c: New file.
63464         * lib/unicase/u-ct-casefold.h: New file, derived from
63465         lib/unicase/u-casefold.h.
63466         * modules/unicase/u8-ct-casefold: New file.
63468         New module 'unicase/u32-ct-totitle'.
63469         * lib/unicase/u32-ct-totitle.c: New file.
63470         * modules/unicase/u32-ct-totitle: New file.
63472         New module 'unicase/u16-ct-totitle'.
63473         * lib/unicase/u16-ct-totitle.c: New file.
63474         * modules/unicase/u16-ct-totitle: New file.
63476         New module 'unicase/u8-ct-totitle'.
63477         * lib/unicase/u8-ct-totitle.c: New file.
63478         * lib/unicase/u-ct-totitle.h: New file, derived from
63479         lib/unicase/u-totitle.h.
63480         * modules/unicase/u8-ct-totitle: New file.
63482         New module 'unicase/u32-ct-tolower'.
63483         * lib/unicase/u32-ct-tolower.c: New file.
63484         * modules/unicase/u32-ct-tolower: New file.
63486         New module 'unicase/u16-ct-tolower'.
63487         * lib/unicase/u16-ct-tolower.c: New file.
63488         * modules/unicase/u16-ct-tolower: New file.
63490         New module 'unicase/u8-ct-tolower'.
63491         * lib/unicase/u8-ct-tolower.c: New file.
63492         * modules/unicase/u8-ct-tolower: New file.
63494         New module 'unicase/u32-ct-toupper'.
63495         * lib/unicase/u32-ct-toupper.c: New file.
63496         * modules/unicase/u32-ct-toupper: New file.
63498         New module 'unicase/u16-ct-toupper'.
63499         * lib/unicase/u16-ct-toupper.c: New file.
63500         * modules/unicase/u16-ct-toupper: New file.
63502         New module 'unicase/u8-ct-toupper'.
63503         * lib/unicase/u8-ct-toupper.c: New file.
63504         * modules/unicase/u8-ct-toupper: New file.
63506         Add context arguments to u*_casemap functions.
63507         * lib/unicase/unicasemap.h: Include unicase.h.
63508         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
63509         suffix_context arguments.
63510         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
63511         functions.
63512         (FUNC): Add prefix_context and suffix_context arguments. Use
63513         uc_is_cased and uc_is_case_ignorable.
63514         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
63515         * lib/unicase/u16-casemap.c: Likewise.
63516         * lib/unicase/u32-casemap.c: Likewise.
63517         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
63518         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
63519         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
63520         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
63521         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
63522         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
63524         New module 'unicase/u32-suffix-context'.
63525         * lib/unicase/u32-suffix-context.c: New file.
63526         * modules/unicase/u32-suffix-context: New file.
63528         New module 'unicase/u16-suffix-context'.
63529         * lib/unicase/u16-suffix-context.c: New file.
63530         * modules/unicase/u16-suffix-context: New file.
63532         New module 'unicase/u8-suffix-context'.
63533         * lib/unicase/u8-suffix-context.c: New file.
63534         * lib/unicase/u-suffix-context.h: New file.
63535         * modules/unicase/u8-suffix-context: New file.
63537         New module 'unicase/empty-suffix-context'.
63538         * lib/unicase/empty-suffix-context.c: New file.
63539         * modules/unicase/empty-suffix-context: New file.
63541         New module 'unicase/u32-prefix-context'.
63542         * lib/unicase/u32-prefix-context.c: New file.
63543         * modules/unicase/u32-prefix-context: New file.
63545         New module 'unicase/u16-prefix-context'.
63546         * lib/unicase/u16-prefix-context.c: New file.
63547         * modules/unicase/u16-prefix-context: New file.
63549         New module 'unicase/u8-prefix-context'.
63550         * lib/unicase/u8-prefix-context.c: New file.
63551         * lib/unicase/u-prefix-context.h: New file.
63552         * lib/unicase/context.h: New file.
63553         * modules/unicase/u8-prefix-context: New file.
63555         New module 'unicase/empty-prefix-context'.
63556         * lib/unicase/empty-prefix-context.c: New file.
63557         * modules/unicase/empty-prefix-context: New file.
63559         New module 'unicase/ignorable'.
63560         * lib/unicase/ignorable.c: New file.
63561         * modules/unicase/ignorable: New file.
63563         New module 'unicase/cased'.
63564         * lib/unicase/caseprop.h: New file.
63565         * lib/unicase/cased.c: New file.
63566         * modules/unicase/cased: New file.
63568         New functions for case mapping of substrings.
63569         * lib/unicase.h (casing_prefix_context_t): New type.
63570         (unicase_empty_prefix_context): New variable.
63571         (u8_casing_prefix_context, u16_casing_prefix_context,
63572         u32_casing_prefix_context, u8_casing_prefixes_context,
63573         u16_casing_prefixes_context, u32_casing_prefixes_context): New
63574         declarations.
63575         (casing_suffix_context_t): New type.
63576         (unicase_empty_suffix_context): New variable.
63577         (u8_casing_suffix_context, u16_casing_suffix_context,
63578         u32_casing_suffix_context, u8_casing_suffixes_context,
63579         u16_casing_suffixes_context, u32_casing_suffixes_context,
63580         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
63581         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
63582         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
63583         declarations.
63585 2009-06-28  Jim Meyering  <meyering@redhat.com>
63587         boostrap: indent only with spaces
63588         * build-aux/bootstrap: Indent only with spaces, never TABs.
63590         bootstrap: split long lines
63591         * build-aux/bootstrap: Keep line length < 80.
63593         bootstrap: sync from coreutils
63594         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
63595         just as autoreconf does.  Verify a list of prerequisite
63596         package-name,version-number pairs if defined in bootstrap.conf.
63597         Refer to README-prereq, if prerequisites are not satisfied.
63599 2009-06-27  Eric Blake  <ebb9@byu.net>
63601         tests: add test for bogus NULL definition
63602         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
63603         * tests/test-stdlib.c: Likewise.
63604         * tests/test-string.c: Likewise.
63605         * tests/test-locale.c: Likewise.
63606         * tests/test-unistd.c: Likewise.
63607         * modules/stdio-tests (Depends-on): Add verify.
63608         * modules/stdlib-tests (Depends-on): Likewise.
63609         * modules/string-tests (Depends-on): Likewise.
63610         * modules/locale-tests (Depends-on): Likewise.
63611         * modules/unistd-tests (Depends-on): Likewise.
63613 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
63615         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
63616         self-explaining comment.
63617         * m4/selinux-selinux-h: Update serial.
63618         (gl_LIBSELINUX): New macro, adding a warning for missing development
63619         packages to code extracted from...
63620         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
63621         Add warning for missing development packages here, too.
63623 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
63625         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
63627 2009-06-25  Eric Blake  <ebb9@byu.net>
63629         version-etc: fix regression
63630         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
63631         gcc.
63632         (version_etc): Use it, to catch bugs with trailing NULL.
63633         * lib/version-etc.c (version_etc_arn): Delete unused argument.
63634         (version_etc_va): Fix logic bug.
63635         * modules/version-etc-tests: Add test.
63636         * tests/test-version-etc.c: New file.
63637         * tests/test-version-etc.sh: Likewise.
63639 2009-06-25  Sam Steingold  <sds@gnu.org>
63641         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
63642         mbtowc declaration.
63644 2009-06-25  Eric Blake  <ebb9@byu.net>
63646         fpurge: migrate into <stdio.h>
63647         * lib/fpurge.h: Delete...
63648         * lib/stdio.in.h (fpurge): ...and declare here, instead.
63649         * lib/fpurge.c (fpurge): Change declaring header.
63650         * modules/fpurge (Files): Drop deleted file.
63651         (Depends-on): Add stdio.
63652         (configure.ac): Set witness.
63653         * modules/stdio (Makefile.am): Support fpurge macros.
63654         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
63655         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
63656         * lib/fflush.c: Update client.
63657         * tests/test-fpurge.c: Likewise.
63658         * NEWS: Mention the change.
63660 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
63662         * lib/argp-version-etc.c (program_authors): Add const
63663         qualifier.
63664         * lib/version-etc.c: Fix typos in the comments.
63665         * modules/argp-version-etc: Depends on version-etc.
63667 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
63669         argp-version-etc: new module.
63671         * lib/argp-version-etc.c: New file.
63672         * lib/argp-version-etc.h: New file.
63673         * modules/argp-version-etc: New file.
63674         * modules/argp-version-etc-tests: New file.
63675         * tests/test-argp-version-etc.c: New test.
63676         * tests/test-argp-version-etc-1.sh: New test.
63678 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
63680         Provide additional interfaces and documentation for version-etc
63681         module.
63683         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
63684         interfaces.
63685         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
63686         prototypes.
63688 2009-06-24  Bruno Haible  <bruno@clisp.org>
63690         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
63691         HAVE_LIB${NAME} macro.
63692         Reported by Sam Steingold <sds@gnu.org>.
63694 2009-06-23  Simon Josefsson  <simon@josefsson.org>
63696         * modules/hash-tests (test_hash_LDADD): Link to libintl when
63697         needed.
63699 2009-06-21  Bruno Haible  <bruno@clisp.org>
63701         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
63702         work.
63703         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
63704         together with LIB${NAME}, LTLIB${NAME}.
63705         Reported by Sam Steingold <sds@gnu.org>.
63707 2009-06-20  Jim Meyering  <meyering@redhat.com>
63709         tests: make sc_require_test_exit_idiom more generic
63710         * top/maint.mk (Exit_witness_file): New overridable variable.
63711         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
63712         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
63714 2009-06-19  Jim Meyering  <meyering@redhat.com>
63716         hash: reverse order of src/dst parameters in an internal interface
63717         * lib/hash.c (transfer_entries): Reverse order of parameters to
63718         put DST before SRC.  Adjust callers.
63720         tests: test-hash: avoid wholesale duplication
63721         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
63722         Instead, use a loop and add a single conditional.
63724         tests: test-hash: allow seed selection via a command line argument
63725         * tests/test-hash.c (get_seed): New function.
63726         (main): Use it.
63728 2009-06-19  Eric Blake  <ebb9@byu.net>
63730         hash: avoid memory leak on allocation failure
63731         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
63732         failure.  Factor repeated algorithm...
63733         (transfer_entries): ...into new helper routine.
63734         (hash_delete): React to hash_rehash return value.
63736         hash: reduce memory pressure in hash_rehash no-op case
63737         * lib/hash.c (next_prime): Avoid overflow.
63738         (hash_initialize): Factor bucket size computation...
63739         (compute_bucket_size): ...into new helper function.
63740         (hash_rehash): Use new function and open coding to reduce memory
63741         pressure, and avoid a memory leak in USE_OBSTACK code.
63742         Reported by Jim Meyering.
63744 2009-06-18  Eric Blake  <ebb9@byu.net>
63746         hash: make rotation more obvious
63747         * modules/hash (Depends-on): Add bitrotate and stdint.
63748         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
63749         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
63750         (SIZE_MAX): Rely on headers for definition.
63751         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
63752         (raw_hasher): Use rotr_sz.
63753         Suggested by Jim Meyering.
63755         hash: fix memory leak in last patch
63756         * lib/hash.c (hash_rehash): Avoid memory leak.
63758         hash: avoid no-op rehashing
63759         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
63761         hash: provide default callback functions
63762         * lib/hash.c (raw_hasher, raw_comparator): New functions.
63763         (hash_initialize): Use them as defaults.
63764         * tests/test-hash.c (main): Test this.
63766         hash: minor optimization
63767         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
63768         when possible.
63769         (hash_initialize): Document this promise.
63770         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
63771         * tests/test-hash.c (hash_compare_strings): Test this.
63773 2009-06-18  Bruno Haible  <bruno@clisp.org>
63775         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
63776         going to be replaced anyway.
63778 2009-06-18  Bruno Haible  <bruno@clisp.org>
63780         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
63781         in one place.
63782         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
63783         be replaced anyway.
63785 2009-06-18  Eric Blake  <ebb9@byu.net>
63787         hash: check for resize before insertion
63788         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
63789         threshold before insertion, so that a pathological hash_rehash
63790         that fills every bucket can still trigger another rehash.
63792 2009-06-18  Jim Meyering  <meyering@redhat.com>
63794         hash-tests: add a loop around the small tests
63795         * tests/test-hash.c (main): Repeat small tests with selected
63796         small initial table sizes.
63798 2009-06-17  Eric Blake  <ebb9@byu.net>
63800         hash: minor cleanups
63801         * lib/hash.h (hash_entry): Make opaque, by moving...
63802         * lib/hash.c (hash_entry): ...here.
63803         (hash_insert): Clarify restrictions on what can be inserted.
63804         (hash_get_next): Clarify when it is safe to remove an element
63805         during traversal.
63806         (check_tuning): Skip verification when tuning is known safe.
63807         (hash_initialize): Clarify restrictions on tuning.
63809 2009-06-17  Jim Meyering  <jim@meyering.net>
63810         and Eric Blake  <ebb9@byu.net>
63812         hash-tests: new module
63813         * modules/hash-tests: New file.
63814         * tests/test-hash.c: New file.
63816 2009-06-17  Eric Blake  <ebb9@byu.net>
63818         strstr-simple: document new module
63819         * MODULES.html.sh: Document new module.
63821         strstr, strcasestr: replace on platforms with broken memchr
63822         * modules/strstr: Split into...
63823         * modules/strstr-simple: ...new module that does not care about
63824         performance, but does care about glibc bug.
63825         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
63826         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
63827         if platform memchr is broken, per Debian bug 521737.
63828         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
63829         memchr.
63830         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
63831         * doc/posix-functions/strstr.texi (strstr): Document the fix.
63832         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
63833         * modules/mountlist (Depends-on): Add strstr-simple.
63834         * modules/gen-uni-tables (Depends-on): Likewise.
63835         * modules/argz (Depends-on): Add strstr.
63837 2009-06-17  Bruno Haible  <bruno@clisp.org>
63839         * modules/posix_spawn-internal (Depends-on): Add errno.
63841 2009-06-17  Bruno Haible  <bruno@clisp.org>
63843         Define missing ESTALE on Interix 3.5.
63844         * lib/errno.in.h (ESTALE): Assign a value if missing.
63845         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
63846         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
63847         missing.
63848         * doc/posix-headers/errno.texi: Mention the Interix bug.
63849         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
63851 2009-06-15  Eric Blake  <ebb9@byu.net>
63853         memchr, memchr2: add valgrind exception
63854         * lib/memchr.valgrind: New file.
63855         * lib/memchr2.valgrind: New file.
63856         * modules/memchr (Files): Distribute valgrind file.
63857         * modules/memchr2 (Files): Likewise.
63859         docs: memchr is no longer obsolete
63860         * MODULES.html.sh: Move memchr from obsolete to string.h section.
63861         * lib/string.in.h (memchr): Simplify logic.
63863 2009-06-14  Jim Meyering  <meyering@redhat.com>
63865         link-follow: fix the "checking..." message to not mention trailing slash
63866         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
63867         never considered trailing slashes.
63869 2009-06-14  Bruno Haible  <bruno@clisp.org>
63871         * m4/memchr.m4: Mention also the bug on IA-64.
63872         * doc/posix-functions/memchr.texi: Likewise.
63874 2009-06-12  Eric Blake  <ebb9@byu.net>
63876         memchr: detect broken x86_64 and alpha implementations
63877         * modules/memchr-tests (Depends-on): Move mmap detection...
63878         * modules/memchr (Depends-on): ...here.
63879         (configure.ac): Set indicator.
63880         * lib/string.in.h (memchr): Declare replacement.
63881         * modules/string (Makefile.am): Trigger replacement.
63882         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
63883         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
63884         bugs.
63885         * doc/posix-functions/memchr.texi (memchr): Document the bug.
63886         * modules/getpagesize (License): Relax license.
63888 2009-06-11  Bruno Haible  <bruno@clisp.org>
63890         * lib/idpriv.h: Add more references.
63892 2009-06-08  Bruno Haible  <bruno@clisp.org>
63894         Tests for module 'idpriv-droptemp'.
63895         * modules/idpriv-droptemp-tests: New file.
63896         * tests/test-idpriv-droptemp.sh: New file.
63897         * tests/test-idpriv-droptemp.su.sh: New file.
63898         * tests/test-idpriv-droptemp.c: New file.
63900         New module 'idpriv-droptemp'.
63901         * lib/idpriv-droptemp.c: New file.
63902         * modules/idpriv-droptemp: New file.
63904 2009-06-08  Bruno Haible  <bruno@clisp.org>
63906         Tests for module 'idpriv-drop'.
63907         * modules/idpriv-drop-tests: New file.
63908         * tests/test-idpriv-drop.sh: New file.
63909         * tests/test-idpriv-drop.su.sh: New file.
63910         * tests/test-idpriv-drop.c: New file.
63912         New module 'idpriv-drop'.
63913         * lib/idpriv.h: New file.
63914         * lib-idpriv-drop.c: New file.
63915         * m4/idpriv.m4: New file.
63916         * modules/idpriv-drop: New file.
63918 2009-06-08  Bruno Haible  <bruno@clisp.org>
63920         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
63921         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
63922         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
63923         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
63924         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
63925         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
63926         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
63928 2009-06-08  Eric Blake  <ebb9@byu.net>
63930         test-strstr: use memory fence, when possible
63931         * tests/test-strstr.c (main): Use memory fence, in order to be
63932         more likely to trigger Debian bug 521737.
63933         * modules/strstr-tests (Files): Pull in additional files.
63935         memchr: no longer obsolete, for wider field testing
63936         * modules/memchr (Status, Notice): Delete, this module is no
63937         longer obsolete.
63938         * modules/vasnprintf (Depends-on): Add memchr.
63940 2009-06-07  Jim Meyering  <meyering@redhat.com>
63942         hash: declare some functions with the warn_unused_result attribute
63943         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
63945 2009-06-07  Bruno Haible  <bruno@clisp.org>
63947         * tests/test-alignof.c: Don't test int64_t if it does not exist.
63948         Reported by Eric Blake.
63950 2009-06-06  Eric Blake  <ebb9@byu.net>
63952         test-alignof: fix typo with long double
63953         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
63954         compiler error.
63956 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
63958         Escape non-texinfo { and }s.
63959         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
63960         markup error.
63962 2009-06-04  Jim Meyering  <meyering@redhat.com>
63964         gitlog-to-changelog: don't infloop on an empty commit log
63965         * build-aux/gitlog-to-changelog: Warn about an empty log message.
63966         Reported by Boris Petersen <transacid@centerim.org>.
63968 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
63970         version-etc: extend for packagers
63971         Add three new configure options, intended for packagers:
63972           --with-packager="packager name"
63973           --with-packager-version="packager-specific version"
63974           --with-packager-bug-reports="packager bug reporting"
63975         An example with coreutils:
63976           $ ./configure \
63977             --with-packager=Gentoo \
63978             --with-packager-bug-report=http://bugs.gentoo.org/ \
63979             --with-packager-version="patchset 1.6"
63980           $ ./src/ls --version | head -n2
63981           ls (GNU coreutils) 7.1-dirty
63982           Packaged by Gentoo (patchset 1.6)
63983         Note that the bug reporting info via --help doesn't show up because
63984         coreutils uses its own custom emit_bug_reporting_address() implementation
63985         in src/system.h.  If it didn't, it'd look like:
63986           $ ./src/ls --help | tail -n4
63987           Report bugs to <bug-coreutils@gnu.org>.
63988           Report Gentoo bugs to <http://bugs.gentoo.org/>.
63989           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
63990           General help using GNU software: <http://www.gnu.org/gethelp/>.
63991         * lib/version-etc.c: Print new information, if provided.
63992         * m4/version-etc.m4: New file.
63993         * modules/version-etc (Files): Add m4/version-etc.m4.
63994         (configure.ac): Add gl_VERSION_ETC.
63996 2009-05-31  Bruno Haible  <bruno@clisp.org>
63998         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
63999         and 'int64_t'.
64000         * modules/alignof-tests (Dependencies): Add stdint.
64001         Reported by Eric Blake.
64003 2009-05-31  Bruno Haible  <bruno@clisp.org>
64005         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
64006         restriction due to compiler bugs.
64007         Reported by Eric Blake.
64009 2009-05-31  Simon Josefsson  <simon@josefsson.org>
64010             Bruno Haible  <bruno@clisp.org>
64012         Fix test-alignof failure.
64013         * lib/alignof.h (alignof_slot): New macro.
64014         (alignof_type): New macro, with the same semantics as the previous
64015         'alignof'.
64016         (alignof): Alias to alignof_slot.
64017         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
64018         check that the results are usable as constant expressions.
64020 2009-05-31  Bruno Haible  <bruno@clisp.org>
64022         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
64023         * tests/test-memchr.c (main): Check that memchr does not read past the
64024         first occurrence of the byte.
64025         * tests/test-strstr.c (main): Update comment.
64026         Suggested by Eric Blake.
64028 2009-05-30  Bruno Haible  <bruno@clisp.org>
64030         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
64031         detail how to use dumpbin.
64032         Reported by David Byron <dbyron@dbyron.com>.
64034 2009-06-02  Simon Josefsson  <simon@josefsson.org>
64036         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
64038 2009-06-02  Simon Josefsson  <simon@josefsson.org>
64040         * m4/manywarnings.m4: Add GCC 4.4 warnings.
64042 2009-05-28  Bruno Haible  <bruno@clisp.org>
64044         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
64045         build-aux/ files.
64047 2009-05-28  Simon Josefsson  <simon@josefsson.org>
64049         * gnulib-tool (func_import): Transform license on build-aux/ files too.
64051 2009-05-27  Simon Josefsson  <simon@josefsson.org>
64053         * gnulib-tool (sed_transform_main_lib_file)
64054         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
64055         regexps.
64057 2009-05-26  Simon Josefsson  <simon@josefsson.org>
64059         * tests/test-strstr.c: Add another self-test.
64060         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
64061         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
64063 2009-05-23  Bruno Haible  <bruno@clisp.org>
64065         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
64066         change.
64068 2009-05-21  Bruno Haible  <bruno@clisp.org>
64070         Simplify use of mode_t varargs.
64071         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
64072         uses 'mode_t' or 'int'.
64073         * lib/openat.c (openat): Likewise.
64074         * lib/open-safer.c (open_safer): Likewise.
64075         * m4/mode_t.m4: New file.
64076         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
64077         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
64078         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
64079         * modules/open (Files): Add m4/mode_t.m4.
64080         * modules/openat (Files): Likewise.
64081         * modules/fcntl-safer (Files): Likewise.
64082         Suggested by Eric Blake.
64084 2009-05-21  Pádraig Brady  <P@draigbrady.com>
64086         * doc/glibc-functions/fallocate.texi: New file.
64087         * doc/gnulib.texi: Include it.
64089 2009-05-21  Eric Blake  <ebb9@byu.net>
64090             Bruno Haible  <bruno@clisp.org>
64092         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
64093         invocations.
64094         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
64096 2009-05-21  Eric Blake  <ebb9@byu.net>
64097             Bruno Haible  <bruno@clisp.org>
64099         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
64100         include_next. Fix of 2008-11-20 commit.
64101         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
64102         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
64103         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
64104         NEXT_MATH_H.
64105         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
64106         instead of NEXT_MATH_H.
64108 2009-05-21  Bruno Haible  <bruno@clisp.org>
64110         Avoid redefinition warnings for SIZE_MAX.
64111         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
64112         Reported by Simon Josefsson.
64114 2009-05-21  Bruno Haible  <bruno@clisp.org>
64116         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
64117         AC_CACHE_VAL.
64119 2009-05-20  Bruno Haible  <bruno@clisp.org>
64121         Make zeroptr.h work on mingw.
64122         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
64123         mprotect.
64124         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
64125         * modules/memchr2-tests (configure.ac): Likewise.
64126         * modules/memcmp-tests (configure.ac): Likewise.
64127         * modules/memmem-tests (configure.ac): Likewise.
64128         * modules/memrchr-tests (configure.ac): Likewise.
64129         Reported by Simon Josefsson.
64131 2009-05-20  Simon Josefsson  <simon@josefsson.org>
64133         * tests/test-glob.c: Include string.h for strcmp prototype.
64135 2009-05-20  Simon Josefsson  <simon@josefsson.org>
64137         * modules/getdelim (Depends-on): Add explicit stdint, although it
64138         was implicitly already pulled in via realloc-posix.
64139         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
64141 2009-05-20  Simon Josefsson  <simon@josefsson.org>
64143         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
64144         G. Christensen" <tgc@jupiterrise.com>.
64145         * m4/sys_socket_h.m4: Check for sa_family_t.
64146         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
64147         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
64148         * tests/test-sys_socket.c: Check that sa_family_t works.
64150 2009-05-18  Eric Blake  <ebb9@byu.net>
64152         maint.mk: allow gnulib_dir in VPATH build
64153         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
64155 2009-05-15  Jim Meyering  <meyering@redhat.com>
64157         maint.mk: Give gnulib_dir a default definition.
64158         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
64159         Thus, most packages no longer need to specify this variable in cfg.mk
64161 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
64163         rename.m4: fix typos that would make non-mingw cross-configure fail
64164         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
64166 2009-05-13  Eric Blake  <ebb9@byu.net>
64168         mmap-anon: avoid out-of-order autoconf expansion
64169         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
64170         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
64171         * modules/memchr-tests (Depends-on): Add extensions.
64172         * modules/memchr2-tests (Depends-on): Add extensions.
64173         * modules/memcmp-tests (Depends-on): Add extensions.
64174         * modules/memmem-tests (Depends-on): Add extensions.
64175         * modules/memrchr-tests (Depends-on): Add extensions.
64177 2009-05-13  Bruno Haible  <bruno@clisp.org>
64179         Make some tests ISO C 99 compliant.
64180         * tests/zerosize-ptr.h: New file.
64181         * tests/test-memchr.c: Include zerosize-ptr.h.
64182         (main): Use a zero-size object pointer instead of NULL.
64183         * tests/test-memchr2.c: Include zerosize-ptr.h.
64184         (main): Use a zero-size object pointer instead of NULL.
64185         * tests/test-memcmp.c: Include zerosize-ptr.h.
64186         (main): Use a zero-size object pointer instead of NULL.
64187         * tests/test-memmem.c: Include zerosize-ptr.h.
64188         (main): Use a zero-size object pointer instead of NULL.
64189         * tests/test-memrchr.c: Include zerosize-ptr.h.
64190         (main): Use a zero-size object pointer instead of NULL.
64191         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
64192         m4/mmap-anon.m4.
64193         (Depends-on): Add getpagesize.
64194         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
64195         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
64196         m4/mmap-anon.m4.
64197         (Depends-on): Add getpagesize.
64198         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
64199         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
64200         m4/mmap-anon.m4.
64201         (Depends-on): Add getpagesize.
64202         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
64203         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
64204         m4/mmap-anon.m4.
64205         (Depends-on): Add getpagesize.
64206         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
64207         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
64208         m4/mmap-anon.m4.
64209         (Depends-on): Add getpagesize.
64210         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
64212 2009-05-12  Bruno Haible  <bruno@clisp.org>
64214         Tests for module 'alignof'.
64215         * modules/alignof-tests: New file.
64216         * tests/test-alignof.c: New file.
64218 2009-05-12  Bruno Haible  <bruno@clisp.org>
64220         Fix alignof macro.
64221         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
64222         vendor compilers that are always correct.
64224 2009-05-12  Bruno Haible  <bruno@clisp.org>
64226         Make the MAP_ANONYMOUS detection work on HP-UX 11.
64227         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
64228         not whether its fully works.
64230 2009-05-12  Bruno Haible  <bruno@clisp.org>
64232         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
64234 2009-05-12  Jim Meyering  <meyering@redhat.com>
64236         * top/maint.mk: Adjust backslash alignment.
64238 2009-05-11  Simon Josefsson  <simon@josefsson.org>
64240         * top/maint.mk: Make $(srcdir)/build-aux configurable.
64242 2009-05-11  Eric Blake  <ebb9@byu.net>
64244         argp: avoid undefined behavior
64245         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
64246         macros.
64248 2009-05-08  Simon Josefsson  <simon@josefsson.org>
64250         * tests/test-vc-list-files-git.sh: Do git config of user.email and
64251         user.name to prevent git commit from complaining.
64253 2009-05-10  Bruno Haible  <bruno@clisp.org>
64255         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
64256         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
64257         it rewrites every file name only once.
64258         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
64260 2009-05-08  Bruno Haible  <bruno@clisp.org>
64262         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
64263         instead of 'max'.
64265 2009-05-08  Simon Josefsson  <simon@josefsson.org>
64267         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
64268         sockaddr_storage test.
64270 2009-05-07  Simon Josefsson  <simon@josefsson.org>
64272         * modules/sys_socket (Makefile.am): Substitute
64273         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
64274         * m4/sys_socket_h.m4: Check for sockaddr_storage.
64275         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
64276         * tests/test-sys_socket.c: Check sockaddr_storage.
64278 2009-05-08  Bruno Haible  <bruno@clisp.org>
64280         New module 'alignof'.
64281         * lib/alignof.h: New file.
64282         * modules/alignof: New file.
64284 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
64285             Bruno Haible  <bruno@clisp.org>
64287         Fix test-file-has-acl on FreeBSD.
64288         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
64289         mask is implicitly added.
64290         * tests/test-file-has-acl.c: Include <signal.h>.
64291         (main): Terminate the test after 5 seconds.
64292         * modules/acl-tests (configure.ac): Check for alarm function.
64294 2009-05-04  Bruno Haible  <bruno@clisp.org>
64296         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
64297         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
64298         * modules/errno (configure.ac): Drop AC_REQUIRE.
64299         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
64300         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
64302 2009-05-04  Simon Josefsson  <simon@josefsson.org>
64304         * modules/glob-tests: New module.
64305         * tests/test-glob.c: Add.
64307 2009-05-04  Simon Josefsson  <simon@josefsson.org>
64309         * modules/fnmatch-tests: New module.
64310         * tests/test-fnmatch.c: Add.
64312 2009-05-04  Eric Blake  <ebb9@byu.net>
64314         maint: make the new no-submodule-changes rule VPATH-safe
64315         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
64317 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
64318             Bruno Haible  <bruno@clisp.org>
64320         acl: Fix infinite loop on FreeBSD.
64321         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
64322         of return value from acl_get_entry.
64323         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
64324         Likewise.
64326 2009-05-03  Bruno Haible  <bruno@clisp.org>
64328         * lib/acl-internal.h (acl_entries): Clarify return value.
64329         * lib/acl_entries.c (acl_entries): Likewise.
64331 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
64333         Bug fix in acl module.
64334         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
64336 2009-05-03  Bruno Haible  <bruno@clisp.org>
64338         Create gperf-generated file in the source dir, not in the build dir.
64339         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
64340         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
64341         * modules/unicase/locale-language (unicase/locale-languages.h):
64342         Likewise.
64343         * modules/unicase/special-casing (unicase/special-casing-table.h):
64344         Likewise.
64345         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
64346         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
64347         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
64348         Reported by Ralf Wildenhues.
64350 2009-05-03  Bruno Haible  <bruno@clisp.org>
64352         * modules/fnmatch (Description, configure.ac): Taken from
64353         fnmatch-posix.
64354         * modules/fnmatch-posix: Turn into a symbolic reference to the
64355         'fnmatch' module, and deprecate.
64356         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
64358 2009-05-03  Bruno Haible  <bruno@clisp.org>
64360         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
64361         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
64362         Reported by Ralf Wildenhues.
64364 2009-05-04  Simon Josefsson  <simon@josefsson.org>
64366         * m4/fnmatch.m4: Fix fnmatch re-define.
64368 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
64370         priv-set: new module and tests; adapt write-any-file
64371         * lib/priv-set.c: New file.
64372         * lib/priv-set.h: New file.
64373         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
64374         * lib/write-any-file.c: Simplify by using priv-set module.
64375         * m4/priv-set.m4: New file.
64376         * modules/priv-set: New file.
64377         * modules/unlinkdir: Add dependency on priv-set module.
64378         * modules/write-any-file: Likewise.
64380         Tests for module 'priv-set'.
64381         * modules/priv-set-tests: New file.
64382         * tests/test-priv-set.c: New file.
64384 2009-05-03  Jim Meyering  <meyering@redhat.com>
64385             Bruno Haible  <bruno@clisp.org>
64387         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
64388         use the converted UTF-8 variant of the name instead.
64390 2009-05-03  Jim Meyering  <meyering@redhat.com>
64392         tests: tighten some getdate tests
64393         * tests/test-getdate.c (main): Tighten tests: require equality,
64394         not just greater than.  Set TZ envvar to UTC0.
64396 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
64398         getdate: correctly interpret "next monday" when run on a Monday
64399         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
64400         that e.g., "next tues" (when run on a tuesday) results in a date
64401         that is one week in the future, and not today's date.
64402         I.e., add a week when the wday is the same as the current one.
64403         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
64404         and earlier by Martin Bernreuther and Jan Minář.
64405         * tests/test-getdate.c (main): Check that "next DAY" is always in
64406         the future and that "last DAY" is always in the past.
64408 2009-05-02  Jim Meyering  <meyering@redhat.com>
64410         build: ensure that a release build fails when a submodule is unclean
64411         * top/maint.mk (no-submodule-changes): New rule.
64412         (alpha beta major): Depend on it.
64414 2009-05-02  Bruno Haible  <bruno@clisp.org>
64416         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
64417         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
64418         shell variable gl_fnmatch_required to detect which variant is
64419         requested.
64420         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
64421         gl_FUNC_FNMATCH_POSIX.
64422         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
64423         exclude fnmatch-posix.
64425 2009-05-02  Bruno Haible  <bruno@clisp.org>
64427         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
64428         * modules/mbsrtowcs (License): Change to LGPLv2+.
64429         * modules/strnlen1 (License): Likewise.
64430         Reported by Simon Josefsson.
64432 2009-05-02  Bruno Haible  <bruno@clisp.org>
64434         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
64435         "cross".
64436         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
64437         gnulib-tool was called with option --source-base=lib.
64439 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64441         Use automake *-local hooks without commands, for extensibility.
64442         * modules/localcharset (Makefile.am): Rename install-exec-local
64443         rule to install-exec-localcharset, and make it a prerequisite of
64444         install-exec-local.  Likewise, rename the uninstall-local rule to
64445         uninstall-localcharset, and make it a prerequisite of the former.
64447 2009-05-01  Bruno Haible  <bruno@clisp.org>
64449         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
64450         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
64451         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
64452         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
64453         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
64454         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
64455         m4/locale-zh.m4, m4/codeset.m4.
64457         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
64458         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
64459         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
64460         m4/locale-zh.m4.
64462         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
64463         REPLACE_WCRTOMB if mbstate_t must be replaced.
64464         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
64465         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
64467 2009-05-01  Bruno Haible  <bruno@clisp.org>
64469         Avoid compiler warnings when redefining macros defined by <libintl.h>.
64470         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
64471         dngettext, dcngettext, textdomain, bindtextdomain,
64472         bind_textdomain_codeset): Undefine before redefining.
64474 2009-04-30  Bruno Haible  <bruno@clisp.org>
64476         Fix bug introduced on 2009-04-25.
64477         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
64478         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
64479         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
64480         is defined.
64481         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
64482         is defined.
64483         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
64484         is defined.
64485         Reported by Elbert_Pol <elbert.pol@gmail.com>.
64487 2009-04-28  Bruno Haible  <bruno@clisp.org>
64489         Comment tweaks.
64490         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
64491         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
64492         * lib/unicase.h (u*_casexfrm): Likewise.
64493         Reported by Paolo Bonzini.
64495 2009-04-28  Bruno Haible  <bruno@clisp.org>
64497         Fix a compilation error.
64498         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
64499         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
64500         Reported by Jim Meyering.
64502 2009-04-27  Bruno Haible  <bruno@clisp.org>
64504         New module 'libunistring'.
64505         * modules/libunistring: New file.
64506         * m4/libunistring.m4: New file.
64507         * MODULES.html.sh (Unicode string functions): Add it.
64509 2009-04-27  Eric Blake  <ebb9@byu.net>
64511         maint.mk: allow package-specific header to provide <config.h>
64512         * top/maint.mk (sc_require_config_h): New variable.
64513         (sc_require_config_h, sc_require_config_h_first): Use it.
64515 2009-04-27  Simon Josefsson  <simon@josefsson.org>
64517         * top/maint.mk (sc_avoid_if_before_free): Except
64518         useless-if-before-free script.
64520 2009-04-27  Eric Blake  <ebb9@byu.net>
64522         maintainer-makefile: depend on all required helper scripts
64523         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
64524         useless-if-before-free.
64525         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
64526         version, rather than assuming gnulib checkout is available.
64527         Reported by Simen Josefsson.
64529 2009-04-26  Bruno Haible  <bruno@clisp.org>
64531         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
64532         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
64533         "../" or "..".
64535 2009-04-26  Bruno Haible  <bruno@clisp.org>
64537         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
64538         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
64539         AC_LIB_HAVE_LINKFLAGS.
64541 2009-04-26  Bruno Haible  <bruno@clisp.org>
64543         Simplify calling convention of u*_conv_from_encoding.
64544         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
64545         u32_conv_from_encoding): Expect a resultbuf argument and return the
64546         result directly as a pointer.
64547         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
64548         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
64549         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
64550         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
64551         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
64552         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
64553         Update.
64554         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
64555         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
64556         * lib/vasnprintf.c (VASNPRINTF): Update.
64557         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
64558         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
64559         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
64560         * NEWS: Mention the change.
64562 2009-04-26  Bruno Haible  <bruno@clisp.org>
64564         Simplify calling convention of u*_conv_to_encoding.
64565         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
64566         u32_conv_to_encoding): Expect a resultbuf argument and return the
64567         result directly as a pointer.
64568         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
64569         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
64570         freeing scaled_offsets if mem_iconveha failed.
64571         * lib/unicase/u-casexfrm.h (FUNC): Update.
64572         * lib/uninorm/u-normxfrm.h (FUNC): Update.
64573         * lib/vasnprintf.c (VASNPRINTF): Update.
64574         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
64575         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
64576         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
64577         * NEWS: Mention the change.
64579 2009-04-26  Bruno Haible  <bruno@clisp.org>
64581         Avoid test failures on AIX and OSF/1.
64582         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
64583         malloc(0).
64584         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
64585         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
64586         Likewise.
64587         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
64588         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
64589         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
64590         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
64591         * doc/posix-functions/malloc.texi: Document the portability problem
64592         related to malloc(0).
64594 2009-04-26  Bruno Haible  <bruno@clisp.org>
64596         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
64597         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
64598         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
64600 2009-04-25  Bruno Haible  <bruno@clisp.org>
64602         Avoid link error when creating a namespace clean library.
64603         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
64604         as macro with arguments if already defined as an alias.
64605         * lib/signbitf.c (gl_signbitf): Don't undefine.
64606         * lib/signbitd.c (gl_signbitd): Don't undefine.
64607         * lib/signbitl.c (gl_signbitl): Don't undefine.
64609 2009-04-25  Jim Meyering  <meyering@redhat.com>
64611         vc-list-files: fix another quoting bug
64612         * build-aux/vc-list-files: Avoid sed backslash expansion
64613         of pathological directory names.
64615 2009-04-25  Eric Blake  <ebb9@byu.net>
64617         vc-list-files: fix shell quoting error
64618         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
64619         timestamp.
64621 2009-04-25  Jim Meyering  <meyering@redhat.com>
64623         vc-list-files: restore lost functionality with subdir argument
64624         * build-aux/vc-list-files: When given a non-"." sub-directory
64625         argument, substitute the $dir/ prefix back onto each resulting name.
64626         Otherwise, coreutils' root_tests check would fail.
64628 2009-04-24  Eric Blake  <ebb9@byu.net>
64630         vc-list-files: ignore git symlinks
64631         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
64632         than ls-files, to ignore git symlinks.
64634         maint.mk: import improvements from m4
64635         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
64636         (move_if_change): Delete unused macro.
64637         (news-date-check, vc-diff-check): Support VPATH builds.
64638         (announcement): Likewise.  Split --bootstrap-tools list...
64639         (boostrap-tools): ...into separate list, which can be overridden
64640         in cfg.mk.
64641         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
64642         requiring dependency on useless-if-before-free module.
64643         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
64644         Support VPATH builds.
64646 2009-04-24  Jim Meyering  <meyering@redhat.com>
64648         maint.mk: remove coreutils-specific rules and variables
64649         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
64650         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
64651         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
64653         maint.mk: remove obsolete rule
64654         * top/maint.mk (rel-check): Remove rule.
64655         (WGET, WGETFLAGS): Remove now-unused variables.
64657 2009-04-24  Simon Josefsson  <simon@josefsson.org>
64659         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
64660         consistency.
64662         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
64663         '$(PATH_SEPARATOR)' instead of ':'.
64665 2009-04-24  Simon Josefsson  <simon@josefsson.org>
64667         * lib/getopt1.c (main): Use 'const' for static array.
64669 2009-04-24  Simon Josefsson  <simon@josefsson.org>
64671         * top/maint.mk: Sync with coreutils.
64672         * NEWS: Explain incompatibilities.
64674 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64675             Bruno Haible  <bruno@clisp.org>
64677         Fix cross-compilation results.
64678         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
64679         statement, as third argument of AC_TRY_RUN.
64680         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
64681         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
64682         Likewise.
64683         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
64684         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
64685         Likewise.
64686         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
64687         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
64688         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
64690 2009-04-20  Bruno Haible  <bruno@clisp.org>
64692         Avoid test failure on mingw.
64693         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
64695 2009-04-20  Bruno Haible  <bruno@clisp.org>
64697         Avoid compilation error on mingw.
64698         * modules/localename-tests (Depends-on): Add locale.
64700 2009-04-19  Bruno Haible  <bruno@clisp.org>
64702         Support for building a shared library on Windows platforms.
64703         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
64704         (main): Test the presence of UNINORM_NFC here.
64705         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
64706         (main): Test the presence of UNINORM_NFD here.
64707         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
64708         (main): Test the presence of UNINORM_NFKC here.
64709         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
64710         (main): Test the presence of UNINORM_NFKD here.
64712 2009-04-19  Bruno Haible  <bruno@clisp.org>
64714         Avoid a compiler warning.
64715         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
64716         Change type of variable 'sequence'.
64718 2009-04-19  Bruno Haible  <bruno@clisp.org>
64720         * modules/configmake (Makefile.am): When the contents of configmake.h
64721         does not change, arrange to preserve its modification time.
64723 2009-04-17  Simon Josefsson  <simon@josefsson.org>
64725         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
64726         gettext domain.
64728 2009-04-16  Jim Meyering  <meyering@redhat.com>
64730         useless-if-before-free: improve conversion code
64731         * build-aux/useless-if-before-free: Adjust code-in-comment to match
64732         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
64734 2009-04-14  Bruno Haible  <bruno@clisp.org>
64736         * modules/fcntl (Depends-on): Add extensions.
64737         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
64739 2009-04-12  Ben Pfaff  <blp@gnu.org>
64741         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
64742         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
64744 2009-03-20  Ben Pfaff  <blp@gnu.org>
64746         Make rename replace existing destinations on Windows.
64747         * m4/rename.m4: Add test for Mingw.
64748         * lib/rename.c: Add rename replacement that uses MoveFileEx with
64749         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
64750         * doc/posix-functions/rename.texi: Document.
64752 2009-04-10  Bruno Haible  <bruno@clisp.org>
64754         New include file "iconveh.h".
64755         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
64756         * lib/striconveh.h: Include it.
64757         (enum iconv_ilseq_handler): Remove definition.
64758         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
64759         striconveh.h.
64760         * lib/striconveha.c: Include striconveh.h.
64761         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
64762         * modules/striconveh (Files): Add lib/iconveh.h.
64763         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
64764         lib/striconveh.h.
64766 2009-04-10  Bruno Haible  <bruno@clisp.org>
64768         * lib/uniconv.h: Update comment.
64770 2009-04-10  Bruno Haible  <bruno@clisp.org>
64772         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
64773         always.
64774         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
64775         * lib/unistr/u16-mbtouc-aux.c: Likewise.
64776         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
64777         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
64778         "unistring-notinline.h", so that the function gets defined always.
64779         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
64780         * lib/unistr/u8-uctomb.c: Likewise.
64781         * lib/unistr/u16-mbtouc.c: Likewise.
64782         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
64783         * lib/unistr/u16-uctomb.c: Likewise.
64784         * lib/unistr/u32-mbtouc.c: Likewise.
64785         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
64786         * lib/unistr/u32-uctomb.c: Likewise.
64788 2009-04-10  Bruno Haible  <bruno@clisp.org>
64790         Mark 'utime' obsolete.
64791         * modules/utime (Status, Notice): New sections.
64792         Suggested by Jim Meyering.
64794         Fix cross-compile guess for utime test.
64795         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
64796         autoconf.
64797         * doc/posix-functions/utime.texi: Give more precisions.
64798         Reported by Jan <ipif@ymail.com>.
64800 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
64802         filevercmp: correct today's change
64803         * lib/filevercmp.c: Also handle coreutils' test inputs.
64804         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
64806         Fix regression in 'filevercmp' module. Thanks Sven Joachim
64807         for reporting it.
64808         * lib/filevercmp.c: Special handle for "", "." and "..".
64809         * tests/test-filevercmp.c: Enlarge the set suite.
64811 2009-04-07  Jim Meyering  <meyering@redhat.com>
64813         useless-if-before-free: show how to remove braced useless free, too
64814         * build-aux/useless-if-before-free: still only in a comment, though.
64816 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
64818         maint.mk: import changes to syntax-check macros from coreutils
64819         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
64820         Use them in the relevant macros.
64822 2009-04-06  Bruno Haible  <bruno@clisp.org>
64824         Fix unportable use of bit-fields.
64825         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
64826         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
64827         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
64829 2009-04-06  Bruno Haible  <bruno@clisp.org>
64831         Avoid test failures on AIX and OSF/1.
64832         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
64833         that malloc(0) = NULL.
64834         * tests/unicase/test-u8-tolower.c (check): Likewise.
64835         * tests/unicase/test-u8-totitle.c (check): Likewise.
64836         * tests/unicase/test-u8-toupper.c (check): Likewise.
64837         * tests/unicase/test-u16-casefold.c (check): Likewise.
64838         * tests/unicase/test-u16-tolower.c (check): Likewise.
64839         * tests/unicase/test-u16-totitle.c (check): Likewise.
64840         * tests/unicase/test-u16-toupper.c (check): Likewise.
64841         * tests/unicase/test-u32-casefold.c (check): Likewise.
64842         * tests/unicase/test-u32-tolower.c (check): Likewise.
64843         * tests/unicase/test-u32-totitle.c (check): Likewise.
64844         * tests/unicase/test-u32-toupper.c (check): Likewise.
64845         * tests/uninorm/test-u8-nfc.c (check): Likewise.
64846         * tests/uninorm/test-u8-nfd.c (check): Likewise.
64847         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
64848         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
64849         * tests/uninorm/test-u16-nfc.c (check): Likewise.
64850         * tests/uninorm/test-u16-nfd.c (check): Likewise.
64851         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
64852         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
64853         * tests/uninorm/test-u32-nfc.c (check): Likewise.
64854         * tests/uninorm/test-u32-nfd.c (check): Likewise.
64855         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
64856         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
64858 2009-04-05  Bruno Haible  <bruno@clisp.org>
64860         Work around an autoconf limitation.
64861         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
64862         comment line if it would be longer than 3 KB.
64864 2009-04-05  Bruno Haible  <bruno@clisp.org>
64866         Avoid test failure with libiconv-1.13.
64867         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
64868         of the expected test results.
64870 2009-04-05  Bruno Haible  <bruno@clisp.org>
64872         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
64873         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
64874         that it should be installed.
64876 2009-04-05  Bruno Haible  <bruno@clisp.org>
64878         * gnulib-tool: New option --copy-file.
64879         (func_usage): Document it.
64880         (func_dest_tmpfilename): Moved out of func_import.
64881         (func_add_file, func_update_file): New functions, extracted from
64882         func_import.
64883         (func_import): Update.
64885 2009-04-05  Karl Berry  <karl@gnu.org>
64887         * README: prominently mention gnulib-tool.
64888         Rearrange sections so getting the code is near the top.
64890 2009-04-05  Bruno Haible  <bruno@clisp.org>
64892         * lib/unicase.h: Mention u*_cmp2.
64893         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
64894         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
64895         * lib/unicase/ulc-casecmp.c: Likewise.
64896         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
64897         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
64898         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
64899         unistr/u8-cmp.
64900         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
64901         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
64902         unistr/u16-cmp.
64903         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
64904         unistr/u32-cmp.
64906         * lib/uninorm.h: Mention u*_cmp2.
64907         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
64908         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
64909         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
64910         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
64911         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
64912         unistr/u8-cmp.
64913         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
64914         unistr/u16-cmp.
64915         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
64916         unistr/u32-cmp.
64918         New module 'unistr/u32-cmp2'.
64919         * lib/unistr/u32-cmp2.c: New file.
64920         * modules/unistr/u32-cmp2: New file.
64922         New module 'unistr/u16-cmp2'.
64923         * lib/unistr/u16-cmp2.c: New file.
64924         * modules/unistr/u16-cmp2: New file.
64926         New module 'unistr/u8-cmp2'.
64927         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
64928         * lib/unistr/u8-cmp2.c: New file.
64929         * lib/unistr/u-cmp2.h: New file.
64930         * modules/unistr/u8-cmp2: New file.
64932 2009-04-05  Bruno Haible  <bruno@clisp.org>
64934         * lib/unictype.h (uc_property_is_valid): New macro.
64935         * tests/unictype/test-pr_byname.c (main): Use it.
64937         * lib/unistr.h: Doc fixes.
64938         * lib/uniconv.h: Doc fixes.
64939         * lib/unictype.h: Doc fixes.
64941 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
64943         Port coreutils 7.2 to Solaris 8.
64945         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
64946         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
64947         for Solaris 8.  This is a bit of a hack, as it means it's the
64948         caller's responsibility to add -lnsl if needed, but most likely it
64949         won't be needed since only getaddrinfo uses this and getaddrinfo
64950         isn't needed on Solaris 8.
64952         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
64953         problem to Solaris 8 encountered with coreutils 7.2, which
64954         resulted in a message "fnmatch.c:292: warning: passing argument 4
64955         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
64956         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
64958 2009-04-03  Simon Josefsson  <simon@josefsson.org>
64960         * m4/ld-version-script.m4: Add FIXME comment.
64962 2009-04-02  Simon Josefsson  <simon@josefsson.org>
64964         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
64965         SOVERSION variable.
64967 2009-04-02  Bruno Haible  <bruno@clisp.org>
64969         * Makefile (info, html, dvi, pdf): Combine the rules.
64970         Suggested by Jim Meyering.
64972 2009-04-01  Bruno Haible  <bruno@clisp.org>
64974         * Makefile (info, html, dvi, pdf): New targets.
64975         Reported by Reuben Thomas <rrt@sc3d.org>.
64977 2009-04-01  Bruno Haible  <bruno@clisp.org>
64979         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
64980         can be put into PATH.
64981         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
64983 2009-04-01  Bruno Haible  <bruno@clisp.org>
64985         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
64987 2009-04-01  Bruno Haible  <bruno@clisp.org>
64989         Rename module 'visibility'.
64990         * modules/lib-symbol-visibility: Renamed from modules/visibility.
64991         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
64992         * doc/gnulib.texi: Update.
64993         * MODULES.html.sh (Misc): Update.
64994         * NEWS: Mention the change.
64996 2009-04-01  Simon Josefsson  <simon@josefsson.org>
64998         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
64999         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
65000         Eric Blake <ebb9@byu.net> for review.
65001         * MODULES.html.sh: Add lib-msvc-compat.
65002         * doc/gnulib.texi: Link to new section.
65003         * m4/ld-output-def.m4: New file.
65004         * doc/ld-output-def.texi: New file.
65006 2009-04-01  Simon Josefsson  <simon@josefsson.org>
65008         Rename ld-version-script to lib-symbol-versions.  Suggested by
65009         Bruno Haible <bruno@clisp.org>.
65010         * modules/ld-version-script: Renamed to lib-symbol-versions.
65011         * doc/ld-version-script.texi: Fix module name.
65012         * MODULES.html.sh: Add lib-symbol-versions.
65014 2009-03-31  Simon Josefsson  <simon@josefsson.org>
65016         * modules/u64-tests: New file.
65017         * tests/test-u64.c: New file.
65019 2009-03-04  Simon Josefsson  <simon@josefsson.org>
65021         * MODULES.html.sh: Mention u64.
65022         * modules/u64: New module.
65023         * modules/crypto/sha512: Depend on u64 module instead of providing
65024         u64.h.
65026 2009-03-27  Eric Blake  <ebb9@byu.net>
65028         test-strerror: make debugging EAI_SYSTEM easier
65029         * modules/getaddrinfo-tests (Depends-on): Add strerror.
65030         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
65031         failure was EAI_SYSTEM.
65033 2009-03-25  Bruno Haible  <bruno@clisp.org>
65035         Fix a problem with --enable-relocatable on Solaris 7.
65036         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
65037         since 2008-02-24.
65039 2009-03-25  Eric Blake  <ebb9@byu.net>
65041         test-sockets: avoid gcc warning
65042         * tests/test-sockets.c (main): Silence compiler warning.
65044 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
65046         New modules nproc, pthread, contributed by Glen Lenker.
65048         * MODULES.html.sh: Add pthread, nproc.
65049         * lib/nproc.c: New file.
65050         * lib/nproc.h: New file.
65051         * lib/pthread.in.h: New file.
65052         * m4/pthread.m4: New file.
65053         * modules/nproc: New file.
65054         * modules/pthread: New file.
65056 2009-03-24  Simon Josefsson  <simon@josefsson.org>
65058         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
65059         New variable.
65061 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
65063         filevercmp: handle simple~ and numbered.~3~ backup suffixes
65064         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
65065         * tests/test-filevercmp.c: Add tests for backup suffixes.
65067 2009-03-24  Simon Josefsson  <simon@josefsson.org>
65069         * modules/stdlib (Depends-on): Add stdint, needed when defining
65070         struct random_data on, for example, HP-UX 10.20.  Reported by
65071         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
65073 2009-03-24  Simon Josefsson  <simon@josefsson.org>
65075         * lib/readline.c (readline): Call fflush on stdout after printing
65076         prompt.
65078 2009-03-20  Bruno Haible  <bruno@clisp.org>
65080         Remove dependency from 'close' module to -lws2_32 on native Windows.
65081         * lib/close-hook.h: New file.
65082         * lib/close-hook.c: New file.
65083         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
65084         w32sock.h.
65085         (_gl_close_fd_maybe_socket): Remove function.
65086         (rpl_close): Invoke execute_all_close_hooks instead of
65087         _gl_close_fd_maybe_socket.
65088         * lib/sockets.c: Include close-hook.h, w32sock.h.
65089         (close_fd_maybe_socket): New function, essentially from lib/close.c.
65090         (close_sockets_hook): New variable.
65091         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
65092         (gl_sockets_cleanup): Unregister it.
65093         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
65094         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
65095         * modules/close-hook: New file.
65096         * modules/close (Files): Remove lib/w32sock.h.
65097         (Depends-on): Add close-hook.
65098         (Link): Remove section.
65099         * modules/sockets (Files): Add lib/w32sock.h.
65100         (Depends-on): Add close-hook.
65101         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
65102         invocation.
65103         * NEWS: Mention that LIB_CLOSE is gone.
65105 2009-03-23  Eric Blake  <ebb9@byu.net>
65107         signal-tests: test previous patch
65108         * tests/test-signal.c: New file.
65109         * modules/signal-tests: Likewise.
65111         signal.h: always support 'volatile sig_atomic_t'
65112         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
65113         (gl_SIGNAL_H_DEFAULTS): Add a default.
65114         * modules/signal (Makefile.am): Substitute if needed.
65115         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
65116         users can blindly add volatile.
65117         * doc/posix-headers/signal.texi (signal.h): Document it.
65118         Reported by Matthew Woehlke.
65120 2009-03-23  Jim Meyering  <meyering@redhat.com>
65122         pathmax: PATH_MAX: use pathconf only when available
65123         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
65124         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
65125         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
65126         This avoids a link failure in a PSP cross-compilation environment
65127         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
65129         * lib/vasnprintf.c (divide): Fix typo in comment.
65131 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65133         * gnulib-tool (func_filter_filelist): Fix comment.
65135 2009-03-20  Bruno Haible  <bruno@clisp.org>
65137         Make sockets.h self-contained.
65138         * lib/sockets.c: Include sockets.h first.
65139         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
65141 2009-03-19  Eric Blake  <ebb9@byu.net>
65143         doc: mention more functions added in cygwin 1.7.0
65144         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
65145         addition.
65146         * doc/posix-functions/log2f.texi: Likewise.
65148 2009-03-19  Jim Meyering  <meyering@redhat.com>
65150         fsusage: avoid syntax error due to statement-before-declaration
65151         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
65152         after all declarations.  Reported by Matthew Woehlke in
65153         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
65155 2009-03-18  Eric Blake  <ebb9@byu.net>
65157         build-aux/compile: sync from automake
65158         * build-aux/compile: New file, from automake.
65159         * config/srclist.txt: Mention build-aux/compile.
65161 2009-03-17  Bruno Haible  <bruno@clisp.org>
65163         * lib/git-merge-changelog.c: Fix typo in comment.
65164         Reported by Reuben Thomas <rrt@sc3d.org>.
65166 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
65168         * m4/regex.m4: update and improve help for
65169         --without-included-regex.
65171 2009-03-17  Simon Josefsson  <simon@josefsson.org>
65173         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
65174         failure on missing include files.
65176 2009-03-17  Eric Blake  <ebb9@byu.net>
65178         doc: mention more functions added in cygwin 1.7.0
65179         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
65180         addition.
65181         * doc/posix-functions/fwscanf.texi: Likewise.
65182         * doc/posix-functions/swprintf.texi: Likewise.
65183         * doc/posix-functions/swscanf.texi: Likewise.
65184         * doc/posix-functions/vfwprintf.texi: Likewise.
65185         * doc/posix-functions/vfwscanf.texi: Likewise.
65186         * doc/posix-functions/vswprintf.texi: Likewise.
65187         * doc/posix-functions/vswscanf.texi: Likewise.
65188         * doc/posix-functions/vwprintf.texi: Likewise.
65189         * doc/posix-functions/vwscanf.texi: Likewise.
65190         * doc/posix-functions/wcscasecmp.texi: Likewise.
65191         * doc/posix-functions/wcsdup.texi: Likewise.
65192         * doc/posix-functions/wcsftime.texi: Likewise.
65193         * doc/posix-functions/wcsncasecmp.texi: Likewise.
65194         * doc/posix-functions/wprintf.texi: Likewise.
65195         * doc/posix-functions/wscanf.texi: Likewise.
65196         * doc/glibc-functions/gethostbyname2.texi: Likewise.
65198 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65200         maint.mk: really add $(AM_MAKEFLAGS)
65201         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
65202         was inadvertently omitted in the last commit.
65203         Spotted by Bruno Haible.
65205         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
65206         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
65207         $(AM_MAKEFLAGS)' rather than plain `make'.
65209         gnulib-tool: execute $MAKE not make
65210         * gnulib-tool: Default $MAKE to 'make'.
65211         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
65212         than make.  Initialize $MAKE in the do-autobuild script.
65214         gnulib-tool: use $MAKE not make in generated files
65215         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
65216         make, in generated files.  Initialize $MAKE in the do-autobuild
65217         script.
65219         * top/GNUmakefile (_have-git-version-gen): Fix typo.
65221         GNUmakefile: disable parallelism only for multiple, recursive targets
65222         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
65223         additions in the Makefile.
65224         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
65225         by Automake.
65226         (.NOTPARALLEL): Only disable parallel builds if multiple targets
65227         are listed on the command line and at least one of them is
65228         listed in $(ALL_RECURSIVE_TARGETS).
65230 2009-03-14  Bruno Haible  <bruno@clisp.org>
65232         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
65233         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
65234         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
65235         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
65236         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
65237         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
65238         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
65239         unistr/u8-uctomb.
65240         * modules/unistr/u8-strchr (Depends-on): Likewise.
65241         * modules/unistr/u8-strrchr (Depends-on): Likewise.
65242         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
65243         unistr/u16-uctomb.
65244         * modules/unistr/u16-strchr (Depends-on): Likewise.
65245         * modules/unistr/u16-strrchr (Depends-on): Likewise.
65247 2009-03-12  Bruno Haible  <bruno@clisp.org>
65249         Work around select() bug on Interix 3.5.
65250         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
65251         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
65252         * m4/select.m4: New file.
65253         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
65254         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
65255         * modules/select (Files): Add m4/select.m4.
65256         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
65257         * modules/nanosleep (Depends-on): Add select.
65258         * modules/poll (Depends-on): Likewise.
65259         * doc/posix-functions/select.texi: Mention the Interix bug.
65260         Reported by Markus Duft <mduft@gentoo.org>.
65262         * lib/select.c: Renamed from lib/winsock-select.c.
65263         * modules/select (Files): Add lib/select.c, remove
65264         lib/winsock-select.c.
65265         (configure.ac): Update.
65267 2009-03-12  Jim Meyering  <meyering@redhat.com>
65269         avoid gcc warnings about unused macro definitions
65270         * lib/readtokens.c (STREQ): Remove unused definition.
65271         * lib/xmalloc.c (SIZE_MAX): Likewise.
65272         * lib/openat-die.c (N_): Likewise.
65273         * lib/mountlist.c (SIZE_MAX): Remove definition.
65274         Instead, include <stdint.h>.
65275         * lib/readutmp.c: Likewise.
65276         * modules/readutmp (Depends-on): Add stdint.
65277         * modules/mountlist (Depends-on): Add stdint.
65278         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
65280 2009-03-10  Bruno Haible  <bruno@clisp.org>
65282         Tests for module 'mbmemcasecoll'.
65283         * modules/mbmemcasecoll-tests: New file.
65284         * tests/test-mbmemcasecoll1.sh: New file.
65285         * tests/test-mbmemcasecoll2.sh: New file.
65286         * tests/test-mbmemcasecoll3.sh: New file.
65287         * tests/test-mbmemcasecoll.c: New file.
65289         New module 'mbmemcasecoll'.
65290         * lib/mbmemcasecoll.h: New file.
65291         * lib/mbmemcasecoll.c: New file.
65292         * modules/mbmemcasecoll: New file.
65294         * tests/test-mbmemcasecmp.h: New file, extracted from
65295         tests/test-mbmemcasecmp.c.
65296         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
65297         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
65298         (main): Update.
65299         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
65301 2009-03-09  Bruno Haible  <bruno@clisp.org>
65303         Tests for module 'mbmemcasecmp'.
65304         * modules/mbmemcasecmp-tests: New file.
65305         * tests/test-mbmemcasecmp1.sh: New file.
65306         * tests/test-mbmemcasecmp2.sh: New file.
65307         * tests/test-mbmemcasecmp3.sh: New file.
65308         * tests/test-mbmemcasecmp.c: New file.
65310         New module 'mbmemcasecmp'.
65311         * lib/mbmemcasecmp.h: New file.
65312         * lib/mbmemcasecmp.c: New file.
65313         * modules/mbmemcasecmp: New file.
65315 2009-03-09  Bruno Haible  <bruno@clisp.org>
65317         Tests for module 'unicase/ulc-casecoll'.
65318         * modules/unicase/ulc-casecoll-tests: New file.
65319         * tests/unicase/test-ulc-casecoll1.sh: New file.
65320         * tests/unicase/test-ulc-casecoll2.sh: New file.
65321         * tests/unicase/test-ulc-casecoll.c: New file.
65323         New module 'unicase/ulc-casecoll'.
65324         * lib/unicase.h (ulc_casecoll): New declaration.
65325         * lib/unicase/ulc-casecoll.c: New file.
65326         * modules/unicase/ulc-casecoll: New file.
65328         New module 'unicase/ulc-casexfrm'.
65329         * lib/unicase.h (ulc_casexfrm): New declaration.
65330         * lib/unicase/ulc-casexfrm.c: New file.
65331         * modules/unicase/ulc-casexfrm: New file.
65333 2009-03-09  Bruno Haible  <bruno@clisp.org>
65335         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
65336         invocations.
65338         * m4/mbscasecmp.m4: Remove file.
65339         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
65340         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
65342         * m4/mbscasestr.m4: Remove file.
65343         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
65344         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
65346         * m4/mbschr.m4: Remove file.
65347         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
65348         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
65350         * m4/mbscspn.m4: Remove file.
65351         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
65352         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
65354         * m4/mbslen.m4: Remove file.
65355         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
65356         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
65358         * m4/mbsncasecmp.m4: Remove file.
65359         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
65360         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
65362         * m4/mbsnlen.m4: Remove file.
65363         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
65364         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
65366         * m4/mbspbrk.m4: Remove file.
65367         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
65368         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
65370         * m4/mbspcasecmp.m4: Remove file.
65371         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
65372         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
65374         * m4/mbsrchr.m4: Remove file.
65375         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
65376         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
65378         * m4/mbssep.m4: Remove file.
65379         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
65380         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
65382         * m4/mbsspn.m4: Remove file.
65383         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
65384         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
65386         * m4/mbsstr.m4: Remove file.
65387         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
65388         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
65390         * m4/mbstok_r.m4: Remove file.
65391         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
65392         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
65394         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
65396         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
65397         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
65399         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
65401 2009-03-08  Bruno Haible  <bruno@clisp.org>
65403         Tests for module 'unicase/ulc-casecmp'.
65404         * modules/unicase/ulc-casecmp-tests: New file.
65405         * tests/unicase/test-ulc-casecmp1.sh: New file.
65406         * tests/unicase/test-ulc-casecmp2.sh: New file.
65407         * tests/unicase/test-ulc-casecmp.c: New file.
65409         New module 'unicase/ulc-casecmp'.
65410         * lib/unicase.h (ulc_casecmp): New declaration.
65411         * lib/unicase/ulc-casecmp.c: New file.
65412         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
65413         'const SRC_UNIT *'.
65414         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
65415         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
65416         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
65417         * modules/unicase/ulc-casecmp: New file.
65419         Tests for module 'unicase/u32-is-cased'.
65420         * modules/unicase/u32-is-cased-tests: New file.
65421         * tests/unicase/test-u32-is-cased.c: New file.
65423         Tests for module 'unicase/u16-is-cased'.
65424         * modules/unicase/u16-is-cased-tests: New file.
65425         * tests/unicase/test-u16-is-cased.c: New file.
65427         Tests for module 'unicase/u8-is-cased'.
65428         * modules/unicase/u8-is-cased-tests: New file.
65429         * tests/unicase/test-u8-is-cased.c: New file.
65430         * tests/unicase/test-is-cased.h: New file.
65432         New module 'unicase/u32-is-cased'.
65433         * lib/unicase/u32-is-cased.c: New file.
65434         * modules/unicase/u32-is-cased: New file.
65436         New module 'unicase/u16-is-cased'.
65437         * lib/unicase/u16-is-cased.c: New file.
65438         * modules/unicase/u16-is-cased: New file.
65440         New module 'unicase/u8-is-cased'.
65441         * lib/unicase/u8-is-cased.c: New file.
65442         * lib/unicase/u-is-cased.h: New file.
65443         * modules/unicase/u8-is-cased: New file.
65445         Tests for module 'unicase/u32-is-casefolded'.
65446         * modules/unicase/u32-is-casefolded-tests: New file.
65447         * tests/unicase/test-u32-is-casefolded.c: New file.
65449         Tests for module 'unicase/u16-is-casefolded'.
65450         * modules/unicase/u16-is-casefolded-tests: New file.
65451         * tests/unicase/test-u16-is-casefolded.c: New file.
65453         Tests for module 'unicase/u8-is-casefolded'.
65454         * modules/unicase/u8-is-casefolded-tests: New file.
65455         * tests/unicase/test-u8-is-casefolded.c: New file.
65456         * tests/unicase/test-is-casefolded.h: New file.
65458         New module 'unicase/u32-is-casefolded'.
65459         * lib/unicase/u32-is-casefolded.c: New file.
65460         * modules/unicase/u32-is-casefolded: New file.
65462         New module 'unicase/u16-is-casefolded'.
65463         * lib/unicase/u16-is-casefolded.c: New file.
65464         * modules/unicase/u16-is-casefolded: New file.
65466         New module 'unicase/u8-is-casefolded'.
65467         * lib/unicase/u8-is-casefolded.c: New file.
65468         * modules/unicase/u8-is-casefolded: New file.
65470         Tests for module 'unicase/u32-is-titlecase'.
65471         * modules/unicase/u32-is-titlecase-tests: New file.
65472         * tests/unicase/test-u32-is-titlecase.c: New file.
65474         Tests for module 'unicase/u16-is-titlecase'.
65475         * modules/unicase/u16-is-titlecase-tests: New file.
65476         * tests/unicase/test-u16-is-titlecase.c: New file.
65478         Tests for module 'unicase/u8-is-titlecase'.
65479         * modules/unicase/u8-is-titlecase-tests: New file.
65480         * tests/unicase/test-u8-is-titlecase.c: New file.
65481         * tests/unicase/test-is-titlecase.h: New file.
65483         New module 'unicase/u32-is-titlecase'.
65484         * lib/unicase/u32-is-titlecase.c: New file.
65485         * modules/unicase/u32-is-titlecase: New file.
65487         New module 'unicase/u16-is-titlecase'.
65488         * lib/unicase/u16-is-titlecase.c: New file.
65489         * modules/unicase/u16-is-titlecase: New file.
65491         New module 'unicase/u8-is-titlecase'.
65492         * lib/unicase/u8-is-titlecase.c: New file.
65493         * modules/unicase/u8-is-titlecase: New file.
65495         Tests for module 'unicase/u32-is-lowercase'.
65496         * modules/unicase/u32-is-lowercase-tests: New file.
65497         * tests/unicase/test-u32-is-lowercase.c: New file.
65499         Tests for module 'unicase/u16-is-lowercase'.
65500         * modules/unicase/u16-is-lowercase-tests: New file.
65501         * tests/unicase/test-u16-is-lowercase.c: New file.
65503         Tests for module 'unicase/u8-is-lowercase'.
65504         * modules/unicase/u8-is-lowercase-tests: New file.
65505         * tests/unicase/test-u8-is-lowercase.c: New file.
65506         * tests/unicase/test-is-lowercase.h: New file.
65508         New module 'unicase/u32-is-lowercase'.
65509         * lib/unicase/u32-is-lowercase.c: New file.
65510         * modules/unicase/u32-is-lowercase: New file.
65512         New module 'unicase/u16-is-lowercase'.
65513         * lib/unicase/u16-is-lowercase.c: New file.
65514         * modules/unicase/u16-is-lowercase: New file.
65516         New module 'unicase/u8-is-lowercase'.
65517         * lib/unicase/u8-is-lowercase.c: New file.
65518         * modules/unicase/u8-is-lowercase: New file.
65520         Tests for module 'unicase/u32-is-uppercase'.
65521         * modules/unicase/u32-is-uppercase-tests: New file.
65522         * tests/unicase/test-u32-is-uppercase.c: New file.
65524         Tests for module 'unicase/u16-is-uppercase'.
65525         * modules/unicase/u16-is-uppercase-tests: New file.
65526         * tests/unicase/test-u16-is-uppercase.c: New file.
65528         Tests for module 'unicase/u8-is-uppercase'.
65529         * modules/unicase/u8-is-uppercase-tests: New file.
65530         * tests/unicase/test-u8-is-uppercase.c: New file.
65531         * tests/unicase/test-is-uppercase.h: New file.
65533         New module 'unicase/u32-is-uppercase'.
65534         * lib/unicase/u32-is-uppercase.c: New file.
65535         * modules/unicase/u32-is-uppercase: New file.
65537         New module 'unicase/u16-is-uppercase'.
65538         * lib/unicase/u16-is-uppercase.c: New file.
65539         * modules/unicase/u16-is-uppercase: New file.
65541         New module 'unicase/u8-is-uppercase'.
65542         * lib/unicase/u8-is-uppercase.c: New file.
65543         * modules/unicase/u8-is-uppercase: New file.
65545         New module 'unicase/u32-is-invariant'.
65546         * lib/unicase/u32-is-invariant.c: New file.
65547         * modules/unicase/u32-is-invariant: New file.
65549         New module 'unicase/u16-is-invariant'.
65550         * lib/unicase/u16-is-invariant.c: New file.
65551         * modules/unicase/u16-is-invariant: New file.
65553         New module 'unicase/u8-is-invariant'.
65554         * lib/unicase/u8-is-invariant.c: New file.
65555         * lib/unicase/invariant.h: New file.
65556         * lib/unicase/u-is-invariant.h: New file.
65557         * modules/unicase/u8-is-invariant: New file.
65559         Tests for module 'unicase/u32-casecoll'.
65560         * modules/unicase/u32-casecoll-tests: New file.
65561         * tests/unicase/test-u32-casecoll.c: New file.
65563         Tests for module 'unicase/u16-casecoll'.
65564         * modules/unicase/u16-casecoll-tests: New file.
65565         * tests/unicase/test-u16-casecoll.c: New file.
65567         Tests for module 'unicase/u8-casecoll'.
65568         * modules/unicase/u8-casecoll-tests: New file.
65569         * tests/unicase/test-u8-casecoll.c: New file.
65571         New module 'unicase/u32-casecoll'.
65572         * lib/unicase/u32-casecoll.c: New file.
65573         * modules/unicase/u32-casecoll: New file.
65575         New module 'unicase/u16-casecoll'.
65576         * lib/unicase/u16-casecoll.c: New file.
65577         * modules/unicase/u16-casecoll: New file.
65579         New module 'unicase/u8-casecoll'.
65580         * lib/unicase/u8-casecoll.c: New file.
65581         * lib/unicase/u-casecoll.h: New file.
65582         * modules/unicase/u8-casecoll: New file.
65584         New module 'unicase/u32-casexfrm'.
65585         * lib/unicase/u32-casexfrm.c: New file.
65586         * modules/unicase/u32-casexfrm: New file.
65588         New module 'unicase/u16-casexfrm'.
65589         * lib/unicase/u16-casexfrm.c: New file.
65590         * modules/unicase/u16-casexfrm: New file.
65592         New module 'unicase/u8-casexfrm'.
65593         * lib/unicase/u8-casexfrm.c: New file.
65594         * lib/unicase/u-casexfrm.h: New file.
65595         * modules/unicase/u8-casexfrm: New file.
65597         Tests for module 'unicase/u32-casecmp'.
65598         * modules/unicase/u32-casecmp-tests: New file.
65599         * tests/unicase/test-u32-casecmp.c: New file.
65601         Tests for module 'unicase/u16-casecmp'.
65602         * modules/unicase/u16-casecmp-tests: New file.
65603         * tests/unicase/test-u16-casecmp.c: New file.
65605         Tests for module 'unicase/u8-casecmp'.
65606         * modules/unicase/u8-casecmp-tests: New file.
65607         * tests/unicase/test-u8-casecmp.c: New file.
65608         * tests/unicase/test-casecmp.h: New file.
65610         New module 'unicase/u32-casecmp'.
65611         * lib/unicase/u32-casecmp.c: New file.
65612         * modules/unicase/u32-casecmp: New file.
65614         New module 'unicase/u16-casecmp'.
65615         * lib/unicase/u16-casecmp.c: New file.
65616         * modules/unicase/u16-casecmp: New file.
65618         New module 'unicase/u8-casecmp'.
65619         * lib/unicase/u8-casecmp.c: New file.
65620         * lib/unicase/u-casecmp.h: New file.
65621         * modules/unicase/u8-casecmp: New file.
65623         Tests for module 'unicase/u32-casefold'.
65624         * modules/unicase/u32-casefold-tests: New file.
65625         * tests/unicase/test-u32-casefold.c: New file.
65627         Tests for module 'unicase/u16-casefold'.
65628         * modules/unicase/u16-casefold-tests: New file.
65629         * tests/unicase/test-u16-casefold.c: New file.
65631         Tests for module 'unicase/u8-casefold'.
65632         * modules/unicase/u8-casefold-tests: New file.
65633         * tests/unicase/test-u8-casefold.c: New file.
65635         New module 'unicase/u32-casefold'.
65636         * lib/unicase/u32-casefold.c: New file.
65637         * modules/unicase/u32-casefold: New file.
65639         New module 'unicase/u16-casefold'.
65640         * lib/unicase/u16-casefold.c: New file.
65641         * modules/unicase/u16-casefold: New file.
65643         New module 'unicase/u8-casefold'.
65644         * lib/unicase/u8-casefold.c: New file.
65645         * lib/unicase/u-casefold.h: New file.
65646         * modules/unicase/u8-casefold: New file.
65648         New module 'unicase/tocasefold'.
65649         * lib/unicase/casefold.h: New file.
65650         * lib/unicase/tocasefold.c: New file.
65651         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
65652         * modules/unicase/tocasefold: New file.
65654         Tests for module 'unicase/u32-totitle'.
65655         * modules/unicase/u32-totitle-tests: New file.
65656         * tests/unicase/test-u32-totitle.c: New file.
65658         Tests for module 'unicase/u16-totitle'.
65659         * modules/unicase/u16-totitle-tests: New file.
65660         * tests/unicase/test-u16-totitle.c: New file.
65662         Tests for module 'unicase/u8-totitle'.
65663         * modules/unicase/u8-totitle-tests: New file.
65664         * tests/unicase/test-u8-totitle.c: New file.
65666         New module 'unicase/u32-totitle'.
65667         * lib/unicase/u32-totitle.c: New file.
65668         * modules/unicase/u32-totitle: New file.
65670         New module 'unicase/u16-totitle'.
65671         * lib/unicase/u16-totitle.c: New file.
65672         * modules/unicase/u16-totitle: New file.
65674         New module 'unicase/u8-totitle'.
65675         * lib/unicase/u8-totitle.c: New file.
65676         * lib/unicase/u-totitle.h: New file.
65677         * modules/unicase/u8-totitle: New file.
65679         Tests for module 'unicase/u32-tolower'.
65680         * modules/unicase/u32-tolower-tests: New file.
65681         * tests/unicase/test-u32-tolower.c: New file.
65683         Tests for module 'unicase/u16-tolower'.
65684         * modules/unicase/u16-tolower-tests: New file.
65685         * tests/unicase/test-u16-tolower.c: New file.
65687         Tests for module 'unicase/u8-tolower'.
65688         * modules/unicase/u8-tolower-tests: New file.
65689         * tests/unicase/test-u8-tolower.c: New file.
65691         New module 'unicase/u32-tolower'.
65692         * lib/unicase/u32-tolower.c: New file.
65693         * modules/unicase/u32-tolower: New file.
65695         New module 'unicase/u16-tolower'.
65696         * lib/unicase/u16-tolower.c: New file.
65697         * modules/unicase/u16-tolower: New file.
65699         New module 'unicase/u8-tolower'.
65700         * lib/unicase/u8-tolower.c: New file.
65701         * modules/unicase/u8-tolower: New file.
65703         Tests for module 'unicase/u32-toupper'.
65704         * modules/unicase/u32-toupper-tests: New file.
65705         * tests/unicase/test-u32-toupper.c: New file.
65707         Tests for module 'unicase/u16-toupper'.
65708         * modules/unicase/u16-toupper-tests: New file.
65709         * tests/unicase/test-u16-toupper.c: New file.
65711         Tests for module 'unicase/u8-toupper'.
65712         * modules/unicase/u8-toupper-tests: New file.
65713         * tests/unicase/test-u8-toupper.c: New file.
65715         New module 'unicase/u32-toupper'.
65716         * lib/unicase/u32-toupper.c: New file.
65717         * modules/unicase/u32-toupper: New file.
65719         New module 'unicase/u16-toupper'.
65720         * lib/unicase/u16-toupper.c: New file.
65721         * modules/unicase/u16-toupper: New file.
65723         New module 'unicase/u8-toupper'.
65724         * lib/unicase/u8-toupper.c: New file.
65725         * modules/unicase/u8-toupper: New file.
65727         New module 'unicase/u32-casemap'.
65728         * lib/unicase/u32-casemap.c: New file.
65729         * modules/unicase/u32-casemap: New file.
65731         New module 'unicase/u16-casemap'.
65732         * lib/unicase/u16-casemap.c: New file.
65733         * modules/unicase/u16-casemap: New file.
65735         New module 'unicase/u8-casemap'.
65736         * lib/unicase/unicasemap.h: New file.
65737         * lib/unicase/u8-casemap.c: New file.
65738         * lib/unicase/u-casemap.h: New file.
65739         * modules/unicase/u8-casemap: New file.
65741         New module 'unicase/special-casing'.
65742         * lib/unicase/special-casing.h: New file.
65743         * lib/unicase/special-casing.c: New file.
65744         * lib/unicase/special-casing-table.gperf: New file, generated by
65745         gen-uni-tables.c.
65746         * modules/unicase/special-casing: New file.
65748         Tests for module 'unicase/locale-language'.
65749         * modules/unicase/locale-language-tests: New file.
65750         * tests/unicase/test-locale-language.sh: New file.
65751         * tests/unicase/test-locale-language.c: New file.
65753         New module 'unicase/locale-language'.
65754         * lib/unicase/locale-language.c: New file.
65755         * lib/unicase/locale-languages.gperf: New file.
65756         * modules/unicase/locale-language: New file.
65758         Generate more tables for case conversion and case folding.
65759         * lib/gen-uni-tables.c (SCC_*): New enum items.
65760         (struct special_casing_rule): New type.
65761         (casing_rules, num_casing_rules, allocated_casing_rules): New
65762         variables.
65763         (add_casing_rule, fill_casing_rules): New functions.
65764         (struct casefold_rule): New type.
65765         (casefolding_rules, num_casefolding_rules,
65766         allocated_casefolding_rules): New variables.
65767         (fill_casefolding_rules): New function.
65768         (unicode_casefold): New variable.
65769         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
65770         sort_casing_rules, output_casing_rules): New functions.
65771         (main): Accept to more arguments: SpecialCasing.txt and
65772         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
65773         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
65774         Output mapping for casefolding.
65776         * lib/unicase.h: Include stdbool.h, uninorm.h.
65777         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
65778         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
65779         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
65780         arguments.
65781         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
65782         resultp arguments.
65783         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
65784         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
65785         resultp arguments.
65786         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
65787         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
65788         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
65789         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
65790         declarations.
65791         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
65793 2009-03-08  Bruno Haible  <bruno@clisp.org>
65795         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
65796         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
65797         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
65798         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
65800 2009-03-07  Bruno Haible  <bruno@clisp.org>
65802         Adjust u*_normcmp, u*_normcoll API.
65803         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
65804         u16_normcoll, u32_normcoll): Change failure conventions.
65805         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
65806         errno and return -1.
65807         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
65809 2009-03-07  Bruno Haible  <bruno@clisp.org>
65811         Tests for module 'uninorm/u32-normcoll'.
65812         * modules/uninorm/u32-normcoll-tests: New file.
65813         * tests/uninorm/test-u32-normcoll.c: New file.
65815         Tests for module 'uninorm/u16-normcoll'.
65816         * modules/uninorm/u16-normcoll-tests: New file.
65817         * tests/uninorm/test-u16-normcoll.c: New file.
65819         Tests for module 'uninorm/u8-normcoll'.
65820         * modules/uninorm/u8-normcoll-tests: New file.
65821         * tests/uninorm/test-u8-normcoll.c: New file.
65823 2009-03-07  Bruno Haible  <bruno@clisp.org>
65825         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
65826         tests/uninorm/test-u32-normcmp.c.
65827         * tests/uninorm/test-u32-normcmp.c: Include it.
65828         (test_nonascii): New function, extracted from main. Add some more
65829         tests.
65830         (main): Invoke test_ascii and test_nonascii.
65831         * modules/uninorm/u32-normcmp-tests (Files): Add
65832         tests/uninorm/test-u32-normcmp.h.
65833         (Depends-on): Remove uninorm/u32-normcmp.
65835         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
65836         tests/uninorm/test-u16-normcmp.c.
65837         * tests/uninorm/test-u16-normcmp.c: Include it.
65838         (test_nonascii): New function, extracted from main. Add some more
65839         tests.
65840         (main): Invoke test_ascii and test_nonascii.
65841         * modules/uninorm/u16-normcmp-tests (Files): Add
65842         tests/uninorm/test-u16-normcmp.h.
65843         (Depends-on): Remove uninorm/u16-normcmp.
65845         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
65846         tests/uninorm/test-u8-normcmp.c.
65847         * tests/uninorm/test-u8-normcmp.c: Include it.
65848         (test_nonascii): New function, extracted from main. Add some more
65849         tests.
65850         (main): Invoke test_ascii and test_nonascii.
65851         * modules/uninorm/u8-normcmp-tests (Files): Add
65852         tests/uninorm/test-u8-normcmp.h.
65853         (Depends-on): Remove uninorm/u8-normcmp.
65855 2009-03-07  Bruno Haible  <bruno@clisp.org>
65857         New module 'uninorm/u32-normcoll'.
65858         * lib/uninorm/u32-normcoll.c: New file.
65859         * modules/uninorm/u32-normcoll: New file.
65861         New module 'uninorm/u16-normcoll'.
65862         * lib/uninorm/u16-normcoll.c: New file.
65863         * modules/uninorm/u16-normcoll: New file.
65865         New module 'uninorm/u8-normcoll'.
65866         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
65867         declarations.
65868         * lib/uninorm/u8-normcoll.c: New file.
65869         * lib/uninorm/u-normcoll.h: New file.
65870         * modules/uninorm/u8-normcoll: New file.
65872         New module 'uninorm/u32-normxfrm'.
65873         * lib/uninorm/u32-normxfrm.c: New file.
65874         * modules/uninorm/u32-normxfrm: New file.
65876         New module 'uninorm/u16-normxfrm'.
65877         * lib/uninorm/u16-normxfrm.c: New file.
65878         * modules/uninorm/u16-normxfrm: New file.
65880         New module 'uninorm/u8-normxfrm'.
65881         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
65882         declarations.
65883         * lib/uninorm/u8-normxfrm.c: New file.
65884         * lib/uninorm/u-normxfrm.h: New file.
65885         * modules/uninorm/u8-normxfrm: New file.
65887 2009-03-07  Bruno Haible  <bruno@clisp.org>
65889         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
65890         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
65891         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
65893 2009-03-07  Bruno Haible  <bruno@clisp.org>
65895         New module 'memxfrm'.
65896         * lib/memxfrm.h: New file.
65897         * lib/memxfrm.c: New file.
65898         * modules/memxfrm: New file.
65900 2009-03-07  Bruno Haible  <bruno@clisp.org>
65902         New module 'memcmp2'.
65903         * lib/memcmp2.h: New file.
65904         * lib/memcmp2.c: New file.
65905         * modules/memcmp2: New file.
65907 2009-03-07  Bruno Haible  <bruno@clisp.org>
65909         Tests for module 'uninorm/decomposing-form'.
65910         * modules/uninorm/decomposing-form-tests: New file.
65911         * tests/uninorm/test-decomposing-form.c: New file.
65913         New module 'uninorm/decomposing-form'.
65914         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
65915         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
65916         Add 'decomposing_variant' field.
65917         * lib/uninorm/decomposing-form.c: New file.
65918         * lib/uninorm/nfc.c (uninorm_nfc): Update.
65919         * lib/uninorm/nfd.c (uninorm_nfd): Update.
65920         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
65921         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
65922         * modules/uninorm/decomposing-form: New file.
65923         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
65924         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
65926 2009-03-07  Bruno Haible  <bruno@clisp.org>
65928         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
65929         strings.
65931 2009-03-06  Bruno Haible  <bruno@clisp.org>
65933         Tests for module 'uninorm/u32-normcmp'.
65934         * tests/uninorm/test-u32-normcmp.c: New file.
65935         * modules/uninorm/u32-normcmp-tests: New file.
65937         Tests for module 'uninorm/u16-normcmp'.
65938         * tests/uninorm/test-u16-normcmp.c: New file.
65939         * modules/uninorm/u16-normcmp-tests: New file.
65941         Tests for module 'uninorm/u8-normcmp'.
65942         * tests/uninorm/test-u8-normcmp.c: New file.
65943         * modules/uninorm/u8-normcmp-tests: New file.
65945         New module 'uninorm/u32-normcmp'.
65946         * lib/uninorm/u32-normcmp.c: New file.
65947         * modules/uninorm/u32-normcmp: New file.
65949         New module 'uninorm/u16-normcmp'.
65950         * lib/uninorm/u16-normcmp.c: New file.
65951         * modules/uninorm/u16-normcmp: New file.
65953         New module 'uninorm/u8-normcmp'.
65954         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
65955         declarations.
65956         * lib/uninorm/u8-normcmp.c: New file.
65957         * lib/uninorm/u-normcmp.h: New file.
65958         * modules/uninorm/u8-normcmp: New file.
65960 2009-03-06  Bruno Haible  <bruno@clisp.org>
65962         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
65963         Reported by Eric Blake.
65965 2009-03-06  Eric Blake  <ebb9@byu.net>
65966             Bruno Haible  <bruno@clisp.org>
65968         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
65969         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
65970         condition.
65971         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
65972         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
65973         condition.
65974         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
65976 2009-03-06  Eric Blake  <ebb9@byu.net>
65978         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
65979         to avoid compiler warnings.
65980         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
65982 2009-03-05  Bruno Haible  <bruno@clisp.org>
65984         * tests/test-ftell.c (main): Disable test beyond end of file on
65985         FreeMiNT.
65986         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
65988 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
65990         * lib/filevercmp.c: Move hidden files up in ordering.
65991         * tests/test-filevercmp.c: Add tests for hidden files.
65993 2009-03-04  Bruno Haible  <bruno@clisp.org>
65995         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
65996         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
65997         AM_CFLAGS.
65998         Reported by Simon Josefsson.
66000 2009-03-03  Bruno Haible  <bruno@clisp.org>
66002         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
66003         Reported by Simon Josefsson.
66005         * doc/ld-version-script.texi: Update node reference.
66007 2009-03-03  Bruno Haible  <bruno@clisp.org>
66009         * modules/visibility (License): Change to 'unlimited'.
66010         Suggested by Simon Josefsson.
66012 2009-03-03  Jim Meyering  <meyering@redhat.com>
66014         unlinkdir: cannot_unlink_dir may modify process state
66015         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
66016         it's neither thread-safe nor appropriate for use in a library.
66018 2009-03-03  Eric Blake  <ebb9@byu.net>
66020         test-closein: silence test under Darwin
66021         * tests/test-closein.sh: Ignore stderr from cat, since we don't
66022         care if it dies from EPIPE or EBADF.
66024 2009-03-03  Bruno Haible  <bruno@clisp.org>
66026         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
66027         earlier.
66028         * doc/visibility.texi: Fix @node and @section.
66030 2009-03-03  Simon Josefsson  <simon@josefsson.org>
66032         * doc/gnulib.texi: Link to sections for ld version script and
66033         visibility.
66034         * doc/visibility.texi: Add @node and @section.
66035         * modules/ld-version-script: New module.
66036         * m4/ld-version-script.m4: New file.
66037         * doc/ld-version-script.texi: New file.
66039 2009-03-02  David Lutterkort  <lutter@redhat.com>
66041         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
66042         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
66044 2009-03-02  Bruno Haible  <bruno@clisp.org>
66046         * doc/visibility.texi: Mention libtool's -export-symbols option.
66048 2009-03-02  Jim Meyering  <meyering@redhat.com>
66050         announce-gen: new option: --no-print-checksums
66051         * build-aux/announce-gen (usage): Describe it.
66052         (print_checksums): Print a newline here, not in the [*] footnote.
66053         (main): Honor it.
66055 2009-03-01  Bruno Haible  <bruno@clisp.org>
66057         Use socklen_t in the native Windows replacements prototypes.
66058         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
66059         instead of 'int'.
66060         * lib/getsockopt.c (rpl_getsockopt): Likewise.
66061         * lib/setsockopt.c (rpl_setsockopt): Likewise.
66062         * modules/getsockopt (Depends-on): Add socklen.
66063         * modules/setsockopt (Depends-on): Add socklen.
66065 2009-03-01  Bruno Haible  <bruno@clisp.org>
66067         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
66068         least 4.2.
66070 2009-03-01  Eric Blake  <ebb9@byu.net>
66071             Bruno Haible  <bruno@clisp.org>
66073         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
66074         error messages.
66075         * lib/wait-process.c (wait_subprocess): Omit error message about
66076         deadly signal sent to the child of termsigp != NULL.
66078 2009-03-01  Eric Blake  <ebb9@byu.net>
66080         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
66082 2009-03-01  Bruno Haible  <bruno@clisp.org>
66084         Avoid a gcc warning.
66085         * tests/test-sched.c (b): Make global.
66086         Reported by Eric Blake.
66088 2009-01-19  Martin Lambers  <marlam@marlam.de>
66090         Provide POSIX semantics for socket timeout options on W32.
66091         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
66092         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
66093         * modules/setsockopt: Depend on sys_time module for struct timeval.
66094         * modules/getsockopt: Depend on sys_time module for struct timeval.
66096 2009-03-01  Simon Josefsson  <simon@josefsson.org>
66098         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
66099         __USE_GNU, for consistency with netdb.in.h.
66100         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
66102 2009-03-01  Bruno Haible  <bruno@clisp.org>
66104         More support for FreeMiNT.
66105         * lib/fseeko.c (rpl_fseeko): Complete last commit.
66106         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
66108 2009-03-01  Bruno Haible  <bruno@clisp.org>
66110         More support for FreeMiNT.
66111         * lib/fpurge.c (fpurge): Correct last commit.
66112         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
66114 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66116         Fix unportable awk script in vc-list-files.
66117         * build-aux/vc-list-files: In the replacement awk script, use
66118         substr with a second argument of 1, not zero.
66119         Report by Simon Josefsson.
66121 2009-02-28  Bruno Haible  <bruno@clisp.org>
66123         More support for FreeMiNT.
66124         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
66125         to FreeMiNT today.
66126         * lib/fwriting.c (fwriting): Likewise.
66127         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
66129 2009-02-28  Bruno Haible  <bruno@clisp.org>
66131         * tests/test-freadseek.c (main): Disable test beyond end of file on
66132         FreeMiNT.
66133         * tests/test-ftello.c (main): Likewise.
66134         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
66136 2009-02-28  Bruno Haible  <bruno@clisp.org>
66138         Add tentative support for FreeMiNT.
66139         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
66140         * lib/fpurge.c (fpurge): Likewise.
66141         * lib/freadable.c (freadable): Likewise.
66142         * lib/freading.c (freading): Likewise.
66143         * lib/freadptr.c (freadptr): Likewise.
66144         * lib/freadseek.c (freadptrinc): Likewise.
66145         * lib/fseeko.c (rpl_fseeko): Likewise.
66146         * lib/fseterr.c (fseterr): Likewise.
66147         * lib/fwritable.c (fwritable): Likewise.
66148         * lib/fwriting.c (fwriting): Likewise.
66149         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
66150         Hourihane.
66151         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
66153 2009-02-28  Bruno Haible  <bruno@clisp.org>
66155         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
66156         SIGCHLD.
66157         Reported by Jim Meyering.
66159 2009-02-28  Bruno Haible  <bruno@clisp.org>
66161         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
66162         Mention the results of these tests on various platforms.
66163         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
66164         order.
66165         * doc/posix-functions/printf.texi: Likewise.
66166         * doc/posix-functions/snprintf.texi: Likewise.
66167         * doc/posix-functions/sprintf.texi: Likewise.
66168         * doc/posix-functions/vfprintf.texi: Likewise.
66169         * doc/posix-functions/vprintf.texi: Likewise.
66170         * doc/posix-functions/vsnprintf.texi: Likewise.
66171         * doc/posix-functions/vsprintf.texi: Likewise.
66172         * doc/glibc-functions/obstack_printf.texi: Likewise.
66173         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
66175 2009-02-28  Bruno Haible  <bruno@clisp.org>
66177         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
66178         Reported by Loïc Minier <lool@dooz.org>.
66180 2009-02-27  Bruno Haible  <bruno@clisp.org>
66182         * gnulib-tool (func_import): Make the sed expression used to create the
66183         sed script for updating the .gitignore file POSIX compliant.
66184         Reported by Eric Blake.
66186 2009-02-27  Bruno Haible  <bruno@clisp.org>
66188         * gnulib-tool (sed): Don't alias as "sed --posix".
66189         Reported by Eric Blake.
66191 2009-02-27  Bruno Haible  <bruno@clisp.org>
66193         Avoid test link errors.
66194         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
66195         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
66196         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
66197         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
66198         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
66200 2009-02-27  Bruno Haible  <bruno@clisp.org>
66202         Avoid spurious "(cached)" in configure output.
66203         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
66204         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
66205         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
66206         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
66207         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
66208         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
66209         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
66210         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
66211         Reported by Eric Blake.
66213 2009-02-27  Eric Blake  <ebb9@byu.net>
66215         printf: fix regression in previous patch
66216         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
66218 2009-02-27  Bruno Haible  <bruno@clisp.org>
66220         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
66221         value.
66222         * lib/stdint.in.h: Likewise.
66223         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
66225 2009-02-27  Eric Blake  <ebb9@byu.net>
66227         doc: mention more functions added in cygwin 1.7.0
66228         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
66229         addition.
66230         * doc/posix-functions/open_wmemstream.texi: Likewise.
66231         * doc/posix-functions/wcsnlen.texi: Likewise.
66232         * doc/posix-functions/wcsnrtombs.texi: Likewise.
66233         * doc/posix-functions/wcstod.texi: Likewise.
66234         * doc/posix-functions/wcstof.texi: Likewise.
66235         * doc/posix-functions/wcstoimax.texi: Likewise.
66236         * doc/posix-functions/wcstok.texi: Likewise.
66237         * doc/posix-functions/wcstoumax.texi: Likewise.
66239         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
66240         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
66241         * doc/posix-functions/fprintf.texi: Update.
66242         * doc/posix-functions/printf.texi: Update.
66243         * doc/posix-functions/snprintf.texi: Update.
66244         * doc/posix-functions/sprintf.texi: Update.
66245         * doc/posix-functions/vfprintf.texi: Update.
66246         * doc/posix-functions/vprintf.texi: Update.
66247         * doc/posix-functions/vsnprintf.texi: Update.
66248         * doc/posix-functions/vsprintf.texi: Update.
66249         * doc/glibc-functions/obstack_printf.texi: Update.
66250         * doc/glibc-functions/obstack_vprintf.texi: Update.
66252 2009-02-26  Eric Blake  <ebb9@byu.net>
66254         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
66255         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
66256         compilation bug by using runtime conversion.
66257         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
66258         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
66259         * modules/ceill-tests (Files): Use nan.h.
66260         * modules/floorl-tests (Files): Likewise.
66261         * modules/frexpl-tests (Files): Likewise.
66262         * modules/isnanl-tests (Files): Likewise.
66263         * modules/ldexpl-tests (Files): Likewise.
66264         * modules/roundl-tests (Files): Likewise.
66265         * modules/truncl-tests (Files): Likewise.
66266         * tests/test-ceill.c (main): Use a working NaN.
66267         * tests/test-floorl.c (main): Likewise.
66268         * tests/test-frexpl.c (main): Likewise.
66269         * tests/test-isnan.c (test_long_double): Likewise.
66270         * tests/test-isnanl.h (main): Likewise.
66271         * tests/test-ldexpl.h (main): Likewise.
66272         * tests/test-roundl.h (main): Likewise.
66273         * tests/test-truncl.h (main): Likewise.
66274         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
66276 2009-02-26  Eric Blake  <ebb9@byu.net>
66277             Bruno Haible  <bruno@clisp.org>
66279         Work around a *printf bug with %ls on Solaris.
66280         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
66281         precision is specified, sprintf stops converting the wide string
66282         argument when the number of bytes that have been produced by this
66283         conversion equals or exceeds the precision.
66284         * doc/posix-functions/fprintf.texi: Update.
66285         * doc/posix-functions/printf.texi: Update.
66286         * doc/posix-functions/snprintf.texi: Update.
66287         * doc/posix-functions/sprintf.texi: Update.
66288         * doc/posix-functions/vfprintf.texi: Update.
66289         * doc/posix-functions/vprintf.texi: Update.
66290         * doc/posix-functions/vsnprintf.texi: Update.
66291         * doc/posix-functions/vsprintf.texi: Update.
66292         * doc/glibc-functions/obstack_printf.texi: Update.
66293         * doc/glibc-functions/obstack_vprintf.texi: Update.
66295 2009-02-26  Eric Blake  <ebb9@byu.net>
66297         stdlib: favor compiler check of random.h
66298         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
66299         to avoid an ObjC random.h installed by Swarm.
66301 2009-02-26  Bruno Haible  <bruno@clisp.org>
66303         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
66304         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
66305         Reported by Gary V. Vaughan <gary@gnu.org>.
66307 2009-02-26  Bruno Haible  <bruno@clisp.org>
66309         Fix *printf behaviour regarding the %ls directive.
66310         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
66311         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
66312         NEED_PRINTF_DIRECTIVE_LS.
66313         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
66314         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
66315         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66316         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
66317         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
66318         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
66319         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
66320         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66321         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66322         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66323         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66324         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
66325         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66326         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66327         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66328         * doc/posix-functions/fprintf.texi: Update.
66329         * doc/posix-functions/printf.texi: Update.
66330         * doc/posix-functions/snprintf.texi: Update.
66331         * doc/posix-functions/sprintf.texi: Update.
66332         * doc/posix-functions/vfprintf.texi: Update.
66333         * doc/posix-functions/vprintf.texi: Update.
66334         * doc/posix-functions/vsnprintf.texi: Update.
66335         * doc/posix-functions/vsprintf.texi: Update.
66336         * doc/glibc-functions/obstack_printf.texi: Update.
66337         * doc/glibc-functions/obstack_vprintf.texi: Update.
66338         Reported by Eric Blake.
66340 2009-02-25  Bruno Haible  <bruno@clisp.org>
66342         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
66343         with known value.
66344         Reported by Gary V. Vaughan <gary@gnu.org>.
66346 2009-02-25  Bruno Haible  <bruno@clisp.org>
66348         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
66349         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
66350         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
66351         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
66352         Reported by Gary V. Vaughan <gary@gnu.org>.
66354 2009-02-25  Bruno Haible  <bruno@clisp.org>
66356         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
66357         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
66358         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
66359         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
66360         Reported by Gary V. Vaughan <gary@gnu.org>.
66362 2009-02-25  Eric Blake  <ebb9@byu.net>
66364         tests: skip fseek/ftell tests if ungetc is broken
66365         * m4/ungetc.m4: New file.
66366         * modules/fseek-tests: Split test, so ungetc dependency is
66367         separate from rest of test.
66368         * modules/fseeko-tests: Likewise.
66369         * modules/ftell-tests: Likewise.
66370         * modules/ftello-tests: Likewise.
66371         * tests/test-fseek.c (main): Isolate ungetc dependency.
66372         * tests/test-fseeko.c (main): Likewise.
66373         * tests/test-ftell.c (main): Likewise.
66374         * tests/test-ftello.c (main): Likewise.
66375         * tests/test-fseek2.sh: New file.
66376         * tests/test-fseeko2.sh: Likewise.
66377         * tests/test-ftell2.sh: Likewise.
66378         * tests/test-ftello2.sh: Likewise.
66380 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
66382         test-getaddrinfo: fix usage of skip return code 77
66383         * tests/test-gettaddrinfo.c: Return skip code 77 only
66384         for first occurrence of skip (4x77 is not 77)
66386 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
66388         strtod: avoid C99 decl-after-statement
66389         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
66391 2009-02-24  Eric Blake  <ebb9@byu.net>
66393         strtod: detect HP-UX 11.31 bug
66394         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
66395         Reported by Gary V. Vaughan.
66397 2009-02-23  Bruno Haible  <bruno@clisp.org>
66399         Fix invalid read past end of memory block.
66400         * lib/vasnprintf.c (DCHAR_SET): Define.
66401         (local_wcslen): Define only when needed.
66402         (local_strnlen, local_wcsnlen): New functions.
66403         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
66404         directives that involve a conversion ourselves.
66405         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
66406         wcsnlen, mbrtowc, wcrtomb.
66407         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
66408         * tests/test-vasprintf-posix.c (test_function): Likewise.
66409         * tests/test-snprintf-posix.h (test_function): Likewise.
66410         * tests/test-sprintf-posix.h (test_function): Likewise.
66411         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66413 2009-02-22  Bruno Haible  <bruno@clisp.org>
66415         Implement new clarified decomposition of Hangul syllables.
66416         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
66417         of type LTV, return only a pairwise decomposition.
66418         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
66419         Likewise.
66420         * tests/uninorm/test-decomposition.c (main): Updated expected result.
66421         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
66422         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
66424 2009-02-22  Bruno Haible  <bruno@clisp.org>
66426         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
66427         zero-length results and shrink excess allocated memory.
66428         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
66429         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
66430         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
66431         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
66432         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
66433         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
66434         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
66435         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
66436         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
66437         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
66438         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
66439         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
66441 2009-02-21  Bruno Haible  <bruno@clisp.org>
66443         * doc/gnulib.texi: Include safe-alloc.texi earlier.
66444         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
66445         spaces after a period. Put a space between a macro name and its
66446         argument list. Trivial rewordings.
66447         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
66448         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
66449         (main): Return 0 explicitly.
66451 2009-02-21  Bruno Haible  <bruno@clisp.org>
66453         Tests for module 'uninorm/filter'.
66454         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
66455         * modules/uninorm/filter-tests: New file.
66457         New module 'uninorm/filter'.
66458         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
66459         uninorm_filter_flush, uninorm_filter_free): New declarations.
66460         * lib/uninorm/uninorm-filter.c: New file.
66461         * modules/uninorm/filter: New file.
66463 2009-02-21  Bruno Haible  <bruno@clisp.org>
66465         Tests for module 'uninorm/nfkc'.
66466         * tests/uninorm/test-nfkc.c: New file.
66467         * tests/uninorm/test-u8-nfkc.c: New file.
66468         * tests/uninorm/test-u16-nfkc.c: New file.
66469         * tests/uninorm/test-u32-nfkc.c: New file.
66470         * tests/uninorm/test-u32-nfkc-big.sh: New file.
66471         * tests/uninorm/test-u32-nfkc-big.c: New file.
66472         * modules/uninorm/nfkc-tests: New file.
66474         New module 'uninorm/nfkc'.
66475         * lib/uninorm/nfkc.c: New file.
66476         * modules/uninorm/nfkc: New file.
66478         Tests for module 'uninorm/nfkd'.
66479         * tests/uninorm/test-nfkd.c: New file.
66480         * tests/uninorm/test-u8-nfkd.c: New file.
66481         * tests/uninorm/test-u16-nfkd.c: New file.
66482         * tests/uninorm/test-u32-nfkd.c: New file.
66483         * tests/uninorm/test-u32-nfkd-big.sh: New file.
66484         * tests/uninorm/test-u32-nfkd-big.c: New file.
66485         * modules/uninorm/nfkd-tests: New file.
66487         New module 'uninorm/nfkd'.
66488         * lib/uninorm/nfkd.c: New file.
66489         * modules/uninorm/nfkd: New file.
66491         Tests for module 'uninorm/nfc'.
66492         * tests/uninorm/test-nfc.c: New file.
66493         * tests/uninorm/test-u8-nfc.c: New file.
66494         * tests/uninorm/test-u16-nfc.c: New file.
66495         * tests/uninorm/test-u32-nfc.c: New file.
66496         * tests/uninorm/test-u32-nfc-big.sh: New file.
66497         * tests/uninorm/test-u32-nfc-big.c: New file.
66498         * modules/uninorm/nfc-tests: New file.
66500         New module 'uninorm/nfc'.
66501         * lib/uninorm/nfc.c: New file.
66502         * modules/uninorm/nfc: New file.
66504         Tests for module 'uninorm/nfd'.
66505         * tests/uninorm/test-nfd.c: New file.
66506         * tests/uninorm/test-u8-nfd.c: New file.
66507         * tests/uninorm/test-u16-nfd.c: New file.
66508         * tests/uninorm/test-u32-nfd.c: New file.
66509         * tests/uninorm/test-u32-nfd-big.sh: New file.
66510         * tests/uninorm/test-u32-nfd-big.c: New file.
66511         * tests/uninorm/test-u32-normalize-big.h: New file.
66512         * tests/uninorm/test-u32-normalize-big.c: New file.
66513         * tests/uninorm/NormalizationTest.txt: New file, created from
66514         Unicode 5.1.0 NormalizationTest.txt.
66515         * modules/uninorm/nfd-tests: New file.
66517         New module 'uninorm/nfd'.
66518         * lib/uninorm/nfd.c: New file.
66519         * modules/uninorm/nfd: New file.
66521         New module 'uninorm/u32-normalize'.
66522         * lib/uninorm/u32-normalize.c: New file.
66523         * modules/uninorm/u32-normalize: New file.
66525         New module 'uninorm/u16-normalize'.
66526         * lib/uninorm/u16-normalize.c: New file.
66527         * modules/uninorm/u16-normalize: New file.
66529         New module 'uninorm/u8-normalize'.
66530         * lib/uninorm/u8-normalize.c: New file.
66531         * lib/uninorm/normalize-internal.h: New file.
66532         * lib/uninorm/u-normalize-internal.h: New file.
66533         * modules/uninorm/u8-normalize: New file.
66535         New module 'uninorm/decompose-internal'.
66536         * lib/uninorm/decompose-internal.c: New file.
66537         * modules/uninorm/decompose-internal: New file.
66539         Tests for module 'uninorm/composition'.
66540         * tests/uninorm/test-composition.c: New file.
66541         * modules/uninorm/composition-tests: New file.
66543         New module 'uninorm/composition'.
66544         * lib/uninorm/composition.c: New file.
66545         * lib/uninorm/composition-table.gperf: New file, generated by
66546         gen-uni-tables.
66547         * modules/uninorm/composition: New file.
66549         Tests for module 'uninorm/compat-decomposition'.
66550         * tests/uninorm/test-compat-decomposition.c: New file.
66551         * modules/uninorm/compat-decomposition-tests: New file.
66553         New module 'uninorm/compat-decomposition'.
66554         * lib/uninorm/decompose-internal.h: New file.
66555         * lib/uninorm/compat-decomposition.c: New file.
66556         * modules/uninorm/compat-decomposition: New file.
66558         Tests for module 'uninorm/canonical-decomposition'.
66559         * tests/uninorm/test-canonical-decomposition.c: New file.
66560         * modules/uninorm/canonical-decomposition-tests: New file.
66562         New module 'uninorm/canonical-decomposition'.
66563         * lib/uninorm/canonical-decomposition.c: New file.
66564         * modules/uninorm/canonical-decomposition: New file.
66566         Tests for module 'uninorm/decomposition'.
66567         * tests/uninorm/test-decomposition.c: New file.
66568         * modules/uninorm/decomposition-tests: New file.
66570         New module 'uninorm/decomposition'.
66571         * lib/uninorm/decomposition.c: New file.
66572         * modules/uninorm/decomposition: New file.
66574         New module 'uninorm/decomposition-table'.
66575         * lib/uninorm/decomposition-table.h: New file.
66576         * lib/uninorm/decomposition-table.c: New file.
66577         * lib/uninorm/decomposition-table1.h: New file, generated by
66578         gen-uni-tables.
66579         * lib/uninorm/decomposition-table2.h: New file, generated by
66580         gen-uni-tables.
66581         * modules/uninorm/decomposition-table: New file.
66583         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
66584         (UC_DECOMP_*): New enumeration items.
66585         (get_decomposition): New function.
66586         (struct decomp_table): New type.
66587         (output_decomposition, output_decomposition_tables): New functions.
66588         (unicode_composition_exclusions): New variable.
66589         (fill_composition_exclusions, debug_output_composition_tables): New
66590         functions.
66591         (main): Accept one more argument. Invoke fill_composition_exclusions.
66592         Output decomposition and composition tables.
66594         New module 'uninorm/base'.
66595         * lib/uninorm.h: New file.
66596         * lib/unictype.h: Update comment.
66597         * modules/uninorm/base: New file.
66599 2009-02-21  David Lutterkort  <lutter@redhat.com>
66601         Tests for module 'safe-alloc'.
66602         * tests/test-safe-alloc.c: New file.
66603         * modules/safe-alloc-tests: New file.
66605         New module 'safe-alloc'.
66606         * lib/safe-alloc.h: New file.
66607         * lib/safe-alloc.c: New file.
66608         * m4/safe-alloc.m4: New file.
66609         * modules/safe-alloc: New file.
66610         * doc/safe-alloc.texi: New file.
66611         * doc/gnulib.texi: Include it.
66612         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
66613         safe-alloc.
66615 2009-02-18  Bruno Haible  <bruno@clisp.org>
66617         Fix link error on non-glibc systems.
66618         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
66619         variable.
66620         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
66622 2009-02-18  Jim Meyering  <meyering@redhat.com>
66624         fts: avoid used-uninitialized error due to recent change
66625         * lib/fts.c (fts_read): Guard uses of the new member,
66626         parent->fts_n_dirs_remaining, since it's not relevant for
66627         the parent of a directory specified on the command-line.
66629 2009-02-17  James Youngman  <jay@gnu.org>
66630             Bruno Haible  <bruno@clisp.org>
66632         * m4/include_next.m4: Reformulate comment.
66634 2009-02-16  Jim Meyering  <meyering@redhat.com>
66636         fts: add #if guards so that the fts_lgpl module still builds
66637         * lib/fts.c: Guard just-added hash-table-using parts with
66638         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
66639         Reported by Simon Josefsson.
66641 2009-02-15  Bruno Haible  <bruno@clisp.org>
66643         * modules/array-mergesort-tests: New file.
66644         * tests/test-array-mergesort.c: New file.
66646         New module 'array-mergesort'.
66647         * modules/array-mergesort: New file.
66648         * lib/array-mergesort.h: New file.
66650 2009-02-15  Bruno Haible  <bruno@clisp.org>
66652         Fix 2009-02-07 commit.
66653         * lib/gen-uni-tables.c (output_predicate, output_category,
66654         output_combclass, output_bidi_category, output_decimal_digit,
66655         output_digit, output_numeric, output_mirror, output_scripts,
66656         output_ident_category, output_simple_mapping): Fix format directives.
66657         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
66659 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
66661         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
66662         fixes are available from IBM.
66664 2009-02-13  Jim Meyering  <meyering@redhat.com>
66666         fts: arrange not to stat non-directories in more cases
66667         This makes GNU find (when it doesn't need to stat each file)
66668         *much* more efficient at traversing reiserfs file systems.
66669         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
66670         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
66671         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
66672         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
66673         (leaf_optimization_applies): New function.
66674         (LCO_hash, LCO_compare): New helper functions.
66675         (link_count_optimize_ok): New function.
66676         (fts_stat): Initialize new member (if dir).
66677         (fts_read): Decrement parent's fts_n_dirs_remaining count if
66678         we've just stat'ed a directory.  Skip the stat call when possible.
66679         ---
66680         Note this AFS-related exchange:
66681         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
66682         and note find's pioctl call in find/fstype.c.
66683         But that is necessary only if you want to enable the
66684         optimization for AFS, and for now, I don't.
66686         fts: move a function definition "up" (no semantic change)
66687         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
66688         "up" to precede upcoming use of a related function.
66690 2009-02-11  Jim Meyering  <meyering@redhat.com>
66692         fts: correct internal computation of nlinks (optimization-related)
66693         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
66694         whether the current entry is a directory, so don't test it.
66696 2009-02-10  Bruno Haible  <bruno@clisp.org>
66698         Tests for module 'uniwbrk/ulc-wordbreaks'.
66699         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
66700         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
66701         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
66703         Tests for module 'uniwbrk/u32-wordbreaks'.
66704         * modules/uniwbrk/u32-wordbreaks-tests: New file.
66705         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
66707         Tests for module 'uniwbrk/u16-wordbreaks'.
66708         * modules/uniwbrk/u16-wordbreaks-tests: New file.
66709         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
66711         Tests for module 'uniwbrk/u8-wordbreaks'.
66712         * modules/uniwbrk/u8-wordbreaks-tests: New file.
66713         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
66715 2009-02-10  Bruno Haible  <bruno@clisp.org>
66717         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
66718         property.
66719         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
66720         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
66721         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
66723 2009-02-10  Simon Josefsson  <simon@josefsson.org>
66725         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
66726         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
66728 2009-02-10  Bruno Haible  <bruno@clisp.org>
66730         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
66731         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
66732         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
66733         * lib/unilbrk/u8-possible-linebreaks.c: Update.
66734         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
66735         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
66737 2009-02-09  Simon Josefsson  <simon@josefsson.org>
66739         * lib/sockets.h (gl_fd_to_handle): New function.
66741         * tests/test-sockets.c: Call gl_fd_to_handle.
66743 2009-02-09  Bruno Haible  <bruno@clisp.org>
66745         * doc/havelib.texi: Document the conventions on bi-arch systems.
66747 2009-02-08  Bruno Haible  <bruno@clisp.org>
66749         Document the AC_LIB_LINKFLAGS macro.
66750         * doc/havelib.texi: New file, mostly written on 2005-05-24.
66751         * doc/gnulib.texi: Include it.
66753 2009-02-08  Bruno Haible  <bruno@clisp.org>
66755         Fix wrong order of sections, compared to TOC.
66756         * doc/gnulib.texi: Include relocatable-maint.texi after the
66757         "Regular expressions" node, not before.
66759 2009-02-08  Bruno Haible  <bruno@clisp.org>
66761         Tests for module 'unicase/totitle'.
66762         * modules/unicase/totitle-tests: New file.
66764         Tests for module 'unicase/tolower'.
66765         * modules/unicase/tolower-tests: New file.
66767         Tests for module 'unicase/toupper'.
66768         * modules/unicase/toupper-tests: New file.
66769         * tests/unicase/test-mapping-part1.h: New file.
66770         * tests/unicase/test-mapping-part2.h: New file.
66772         New module 'unicase/totitle'.
66773         * modules/unicase/totitle: New file.
66774         * lib/unicase/totitle.c: New file.
66776         New module 'unicase/tolower'.
66777         * modules/unicase/tolower: New file.
66778         * lib/unicase/tolower.c: New file.
66780         New module 'unicase/toupper'.
66781         * modules/unicase/toupper: New file.
66782         * lib/unicase/toupper.c: New file.
66783         * lib/unicase/simple-mapping.h: New file.
66785         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
66786         (mapping_table): New structure.
66787         (output_simple_mapping): New function.
66788         (main): Invoke output_simple_mapping_test and output_simple_mapping.
66789         * modules/gen-uni-tables (Description): Update.
66790         * lib/unicase/toupper.h: New file, automatically generated by
66791         gen-uni-tables.
66792         * lib/unicase/tolower.h: New file, automatically generated by
66793         gen-uni-tables.
66794         * lib/unicase/totitle.h: New file, automatically generated by
66795         gen-uni-tables.
66796         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
66797         gen-uni-tables.
66798         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
66799         gen-uni-tables.
66800         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
66801         gen-uni-tables.
66803         New module 'unicase/base'.
66804         * modules/unicase/base: New file.
66805         * lib/unicase.h: New file.
66807 2009-02-08  Bruno Haible  <bruno@clisp.org>
66809         New module 'uniwbrk/ulc-wordbreaks'.
66810         * modules/uniwbrk/ulc-wordbreaks: New file.
66811         * lib/uniwbrk/ulc-wordbreaks.c: New file.
66813         New module 'uniwbrk/u32-wordbreaks'.
66814         * modules/uniwbrk/u32-wordbreaks: New file.
66815         * lib/uniwbrk/u32-wordbreaks.c: New file.
66817         New module 'uniwbrk/u16-wordbreaks'.
66818         * modules/uniwbrk/u16-wordbreaks: New file.
66819         * lib/uniwbrk/u16-wordbreaks.c: New file.
66821         New module 'uniwbrk/u8-wordbreaks'.
66822         * modules/uniwbrk/u8-wordbreaks: New file.
66823         * lib/uniwbrk/u8-wordbreaks.c: New file.
66824         * lib/uniwbrk/u-wordbreaks.h: New file.
66826         New module 'uniwbrk/table'.
66827         * modules/uniwbrk/table: New file.
66828         * lib/uniwbrk/wbrktable.h: New file.
66829         * lib/uniwbrk/wbrktable.c: New file.
66831         New module 'uniwbrk/wordbreak-property'.
66832         * modules/uniwbrk/wordbreak-property: New file.
66833         * lib/uniwbrk/wordbreak-property.c: New file.
66835         * lib/gen-uni-tables.c (WBP_*): New enum items.
66836         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
66837         (unicode_org_wbp): New variable.
66838         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
66839         New functions.
66840         (wbp_table): New structure.
66841         (output_wbp, output_wbrk_tables): New functions.
66842         (main): Accept additional argument. Invoke fill_org_wbp,
66843         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
66844         output_wbrk_tables.
66845         * modules/gen-uni-tables (Description): Update.
66846         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
66847         gen-uni-tables.
66849         New module 'uniwbrk/base'.
66850         * modules/uniwbrk/base: New file.
66851         * lib/uniwbrk.h: New file.
66853 2009-02-08  Bruno Haible  <bruno@clisp.org>
66855         Update to Unicode 5.1.0.
66856         * lib/gen-uni-tables.c (is_property_alphabetic): Include
66857         U+2185..U+2188.
66858         (is_property_default_ignorable_code_point): Don't include characters
66859         of category Cc or Cs and not-a-characters.
66860         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
66861         U+0D79, U+109E, U+109F, U+A60C.
66862         * lib/unictype/bidi_of.h: Regenerated.
66863         * lib/unictype/blocks.h: Regenerated.
66864         * lib/unictype/categ_C.h: Regenerated.
66865         * lib/unictype/categ_Cf.h: Regenerated.
66866         * lib/unictype/categ_Cn.h: Regenerated.
66867         * lib/unictype/categ_L.h: Regenerated.
66868         * lib/unictype/categ_Ll.h: Regenerated.
66869         * lib/unictype/categ_Lm.h: Regenerated.
66870         * lib/unictype/categ_Lo.h: Regenerated.
66871         * lib/unictype/categ_Lu.h: Regenerated.
66872         * lib/unictype/categ_M.h: Regenerated.
66873         * lib/unictype/categ_Mc.h: Regenerated.
66874         * lib/unictype/categ_Me.h: Regenerated.
66875         * lib/unictype/categ_Mn.h: Regenerated.
66876         * lib/unictype/categ_N.h: Regenerated.
66877         * lib/unictype/categ_Nd.h: Regenerated.
66878         * lib/unictype/categ_Nl.h: Regenerated.
66879         * lib/unictype/categ_No.h: Regenerated.
66880         * lib/unictype/categ_P.h: Regenerated.
66881         * lib/unictype/categ_Pd.h: Regenerated.
66882         * lib/unictype/categ_Pe.h: Regenerated.
66883         * lib/unictype/categ_Pf.h: Regenerated.
66884         * lib/unictype/categ_Pi.h: Regenerated.
66885         * lib/unictype/categ_Po.h: Regenerated.
66886         * lib/unictype/categ_Ps.h: Regenerated.
66887         * lib/unictype/categ_S.h: Regenerated.
66888         * lib/unictype/categ_Sk.h: Regenerated.
66889         * lib/unictype/categ_Sm.h: Regenerated.
66890         * lib/unictype/categ_So.h: Regenerated.
66891         * lib/unictype/categ_of.h: Regenerated.
66892         * lib/unictype/combining.h: Regenerated.
66893         * lib/unictype/ctype_alnum.h: Regenerated.
66894         * lib/unictype/ctype_alpha.h: Regenerated.
66895         * lib/unictype/ctype_graph.h: Regenerated.
66896         * lib/unictype/ctype_lower.h: Regenerated.
66897         * lib/unictype/ctype_print.h: Regenerated.
66898         * lib/unictype/ctype_punct.h: Regenerated.
66899         * lib/unictype/ctype_upper.h: Regenerated.
66900         * lib/unictype/decdigit.h: Regenerated.
66901         * lib/unictype/digit.h: Regenerated.
66902         * lib/unictype/mirror.h: Regenerated.
66903         * lib/unictype/numeric.h: Regenerated.
66904         * lib/unictype/pr_alphabetic.h: Regenerated.
66905         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
66906         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
66907         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
66908         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
66909         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
66910         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
66911         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
66912         * lib/unictype/pr_combining.h: Regenerated.
66913         * lib/unictype/pr_dash.h: Regenerated.
66914         * lib/unictype/pr_decimal_digit.h: Regenerated.
66915         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
66916         * lib/unictype/pr_deprecated.h: Regenerated.
66917         * lib/unictype/pr_diacritic.h: Regenerated.
66918         * lib/unictype/pr_extender.h: Regenerated.
66919         * lib/unictype/pr_format_control.h: Regenerated.
66920         * lib/unictype/pr_grapheme_base.h: Regenerated.
66921         * lib/unictype/pr_grapheme_extend.h: Regenerated.
66922         * lib/unictype/pr_grapheme_link.h: Regenerated.
66923         * lib/unictype/pr_id_continue.h: Regenerated.
66924         * lib/unictype/pr_id_start.h: Regenerated.
66925         * lib/unictype/pr_ideographic.h: Regenerated.
66926         * lib/unictype/pr_ignorable_control.h: Regenerated.
66927         * lib/unictype/pr_lowercase.h: Regenerated.
66928         * lib/unictype/pr_math.h: Regenerated.
66929         * lib/unictype/pr_numeric.h: Regenerated.
66930         * lib/unictype/pr_other_alphabetic.h: Regenerated.
66931         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
66932         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
66933         * lib/unictype/pr_other_id_continue.h: Regenerated.
66934         * lib/unictype/pr_other_lowercase.h: Regenerated.
66935         * lib/unictype/pr_other_math.h: Regenerated.
66936         * lib/unictype/pr_punctuation.h: Regenerated.
66937         * lib/unictype/pr_sentence_terminal.h: Regenerated.
66938         * lib/unictype/pr_soft_dotted.h: Regenerated.
66939         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
66940         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
66941         * lib/unictype/pr_unified_ideograph.h: Regenerated.
66942         * lib/unictype/pr_uppercase.h: Regenerated.
66943         * lib/unictype/pr_xid_continue.h: Regenerated.
66944         * lib/unictype/pr_xid_start.h: Regenerated.
66945         * lib/unictype/pr_zero_width.h: Regenerated.
66946         * lib/unictype/scripts.h: Regenerated.
66947         * lib/unictype/scripts_byname.gperf: Regenerated.
66948         * lib/unictype/sy_java_ident.h: Regenerated.
66949         * lib/unilbrk/lbrkprop1.h: Regenerated.
66950         * lib/unilbrk/lbrkprop2.h: Regenerated.
66951         * tests/unictype/test-categ_C.c: Regenerated.
66952         * tests/unictype/test-categ_Cf.c: Regenerated.
66953         * tests/unictype/test-categ_Cn.c: Regenerated.
66954         * tests/unictype/test-categ_L.c: Regenerated.
66955         * tests/unictype/test-categ_Ll.c: Regenerated.
66956         * tests/unictype/test-categ_Lm.c: Regenerated.
66957         * tests/unictype/test-categ_Lo.c: Regenerated.
66958         * tests/unictype/test-categ_Lu.c: Regenerated.
66959         * tests/unictype/test-categ_M.c: Regenerated.
66960         * tests/unictype/test-categ_Mc.c: Regenerated.
66961         * tests/unictype/test-categ_Me.c: Regenerated.
66962         * tests/unictype/test-categ_Mn.c: Regenerated.
66963         * tests/unictype/test-categ_N.c: Regenerated.
66964         * tests/unictype/test-categ_Nd.c: Regenerated.
66965         * tests/unictype/test-categ_Nl.c: Regenerated.
66966         * tests/unictype/test-categ_No.c: Regenerated.
66967         * tests/unictype/test-categ_P.c: Regenerated.
66968         * tests/unictype/test-categ_Pd.c: Regenerated.
66969         * tests/unictype/test-categ_Pe.c: Regenerated.
66970         * tests/unictype/test-categ_Pf.c: Regenerated.
66971         * tests/unictype/test-categ_Pi.c: Regenerated.
66972         * tests/unictype/test-categ_Po.c: Regenerated.
66973         * tests/unictype/test-categ_Ps.c: Regenerated.
66974         * tests/unictype/test-categ_S.c: Regenerated.
66975         * tests/unictype/test-categ_Sk.c: Regenerated.
66976         * tests/unictype/test-categ_Sm.c: Regenerated.
66977         * tests/unictype/test-categ_So.c: Regenerated.
66978         * tests/unictype/test-ctype_alnum.c: Regenerated.
66979         * tests/unictype/test-ctype_alpha.c: Regenerated.
66980         * tests/unictype/test-ctype_graph.c: Regenerated.
66981         * tests/unictype/test-ctype_lower.c: Regenerated.
66982         * tests/unictype/test-ctype_print.c: Regenerated.
66983         * tests/unictype/test-ctype_punct.c: Regenerated.
66984         * tests/unictype/test-ctype_upper.c: Regenerated.
66985         * tests/unictype/test-decdigit.h: Regenerated.
66986         * tests/unictype/test-digit.h: Regenerated.
66987         * tests/unictype/test-numeric.h: Regenerated.
66988         * tests/unictype/test-pr_alphabetic.c: Regenerated.
66989         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
66990         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
66991         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
66992         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
66993         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
66994         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
66995         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
66996         * tests/unictype/test-pr_combining.c: Regenerated.
66997         * tests/unictype/test-pr_dash.c: Regenerated.
66998         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
66999         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
67000         * tests/unictype/test-pr_deprecated.c: Regenerated.
67001         * tests/unictype/test-pr_diacritic.c: Regenerated.
67002         * tests/unictype/test-pr_extender.c: Regenerated.
67003         * tests/unictype/test-pr_format_control.c: Regenerated.
67004         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
67005         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
67006         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
67007         * tests/unictype/test-pr_id_continue.c: Regenerated.
67008         * tests/unictype/test-pr_id_start.c: Regenerated.
67009         * tests/unictype/test-pr_ideographic.c: Regenerated.
67010         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
67011         * tests/unictype/test-pr_lowercase.c: Regenerated.
67012         * tests/unictype/test-pr_math.c: Regenerated.
67013         * tests/unictype/test-pr_numeric.c: Regenerated.
67014         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
67015         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
67016         Regenerated.
67017         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
67018         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
67019         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
67020         * tests/unictype/test-pr_other_math.c: Regenerated.
67021         * tests/unictype/test-pr_punctuation.c: Regenerated.
67022         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
67023         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
67024         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
67025         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
67026         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
67027         * tests/unictype/test-pr_uppercase.c: Regenerated.
67028         * tests/unictype/test-pr_xid_continue.c: Regenerated.
67029         * tests/unictype/test-pr_xid_start.c: Regenerated.
67030         * tests/unictype/test-pr_zero_width.c: Regenerated.
67032         Update to Unicode 5.1.0.
67033         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
67034         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
67035         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
67036         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
67037         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
67038         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
67039         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
67040         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
67041         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
67042         (nonspacing_table_ind): Update.
67043         * tests/uniwidth/test-uc_width2.sh: Update expected result.
67045         Update to Unicode 5.1.0.
67046         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
67047         code transform.
67048         * lib/uniname/uniname.c (unicode_character_name,
67049         unicode_name_character): Add the range 0x1Fxxx to the code transform.
67050         * lib/uniname/uninames.h: Regenerated.
67051         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
67053 2009-02-07  Bruno Haible  <bruno@clisp.org>
67055         Merge gen-ctype and gen-lbrk into a single program.
67056         * lib/gen-uni-tables.c: New file, incorporating
67057         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
67058         Add directory prefixes to the names of the generated files.
67059         * lib/unictype/gen-ctype.c: Remove file.
67060         * lib/unilbrk/gen-lbrk.c: Remove file.
67061         * modules/gen-uni-tables: New file.
67062         * modules/unictype/gen-ctype: Remove file.
67063         * modules/unilbrk/gen-lbrk: Remove file.
67065 2009-02-07  Bruno Haible  <bruno@clisp.org>
67067         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
67069         New module 'unistr/u32-strcoll'.
67070         * modules/unistr/u32-strcoll: New file.
67071         * lib/unistr/u32-strcoll.c: New file.
67073         New module 'unistr/u16-strcoll'.
67074         * modules/unistr/u16-strcoll: New file.
67075         * lib/unistr/u16-strcoll.c: New file.
67077         New module 'unistr/u8-strcoll'.
67078         * modules/unistr/u8-strcoll: New file.
67079         * lib/unistr/u8-strcoll.c: New file.
67080         * lib/unistr/u-strcoll.h: New file.
67082 2009-02-07  Bruno Haible  <bruno@clisp.org>
67084         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
67085         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
67086         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
67087         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
67088         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
67089         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
67091 2009-02-07  Bruno Haible  <bruno@clisp.org>
67093         Make 64-bit clean.
67094         * lib/unictype/gen-ctype.c (output_predicate, output_category,
67095         output_combclass, output_bidi_category, output_decimal_digit,
67096         output_digit, output_numeric, output_mirror, output_scripts,
67097         output_ident_category): Use proper width specifier in format strings.
67099 2009-02-07  Bruno Haible  <bruno@clisp.org>
67101         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
67102         failure behaviour.
67104 2009-02-07  Jim Meyering  <meyering@redhat.com>
67106         regex: avoid compilation failure with upcoming gcc-4.4
67107         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
67108         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
67109         "... error: integer overflow in preprocessor expression".
67111 2009-02-05  Ben Pfaff  <blp@gnu.org>
67113         Fix link errors on Windows when close module is used.
67114         * modules/close: Add $(LIB_CLOSE) to Link section.
67115         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
67116         $(LIB_CLOSE) on Windows.
67118 2009-02-05  Jim Meyering  <meyering@redhat.com>
67120         still avoid unused-parameter warnings, but do it cleanly
67121         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
67122         (get_fs_usage): Cast to void instead.
67123         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
67124         (dev_from_mount_options, read_file_system_list): Cast to void.
67125         Prompted by Bruno Haible.
67127 2009-02-04  Jim Meyering  <meyering@redhat.com>
67129         fsusage.c: correct copyright year
67130         * lib/fsusage.c: Reflect year in which the change is pushed into
67132         avoid misc. warnings
67133         * lib/fsusage.c (UNUSED_PARAM): Define.
67134         (get_fs_usage): Mark parameter "disk" as unused.
67135         * lib/getugroups.c (getgrent): Use "void" in prototype.
67136         * lib/mountlist.c: Mark unused parameters.
67137         (read_file_system_list): Declare a local with "const".
67138         * lib/nanosleep.c (getnow): Declare static.
67139         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
67141         dirfd: set errno upon failure
67142         * lib/dirfd.c: Include <errno.h>.
67143         Set errno to ENOTSUP when returning -1.
67144         * modules/dirfd (Depends-on): Add errno.
67145         Suggested by John Kodis <kodis@comcast.net>.
67147 2009-02-01  Bruno Haible  <bruno@clisp.org>
67149         Don't assume sizeof (long) >= sizeof (void *).
67150         * lib/memcmp.c: Include stdint.h.
67151         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
67152         srcp2 to 'const byte *'.
67153         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
67154         types to uintptr_t.
67155         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
67156         * modules/memcmp (Depends-on): Add stdint.
67157         Reported by Ozkan Sezer <sezeroz@gmail.com>.
67159 2009-01-30  Eric Blake  <ebb9@byu.net>
67161         fix more require-before-expand issues
67162         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
67163         expand, AC_PROG_AWK.
67164         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
67166 2009-01-28  Eric Blake  <ebb9@byu.net>
67168         version-etc: use consistent URL formatting
67169         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
67170         Improve formatting.  Use fputs for string without %.
67172 2009-01-28  Jim Meyering  <meyering@redhat.com>
67174         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
67175         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
67176         "underquoted definition of NAME" from autoconf-2.59.
67178 2009-01-28  Bruno Haible  <bruno@clisp.org>
67180         * doc/gnulib.texi: Add "Obsolete modules" to index.
67182 2009-01-28  Jim Meyering  <meyering@redhat.com>
67184         useless-if-before-free: recognize more variants
67185         * build-aux/useless-if-before-free: Also recognize e.g.,
67186         if (NULL != p) free (p);
67188 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
67190         test-getaddrinfo: skip (don't fail) this test when there's no network
67191         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
67192         on the presumption that it means you lack network access.
67194 2009-01-26  Jim Meyering  <meyering@redhat.com>
67196         fflush: avoid warnings on modern systems
67197         * lib/fflush.c (rpl_fflush): Move declarations of locals,
67198         pos and result, into scopes where they're used.
67200 2009-01-26  Eric Blake  <ebb9@byu.net>
67202         Silence warning reintroduced by recent extensions patch.
67203         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
67204         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
67205         autoconf.
67207         Backport improved autoconf semantics of AC_DEFUN_ONCE.
67208         * m4/00gnulib.m4: New file.
67209         * gnulib-tool (func_get_filelist): Always use it.
67210         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
67211         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
67213 2009-01-25  Bruno Haible  <bruno@clisp.org>
67215         Make test-quotearg work on MacOS X and AIX.
67216         * tests/test-quotearg.sh: New file.
67217         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
67218         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
67219         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
67220         include <libintl.h>.
67221         (fake_locale): Remove variable.
67222         (gettext, dgettext, dcgettext): Remove functions.
67223         (main): Instead of setting a fake locale, set a real locale. Call
67224         textdomain and bindtextdomain.
67225         * modules/quotearg-tests (Files): Add the new files.
67226         (Depends-on): Add gettext, setenv, unsetenv.
67227         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
67228         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
67229         Augment TESTS_ENVIRONMENT.
67231 2009-01-25  Bruno Haible  <bruno@clisp.org>
67233         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
67234         fr_FR.ISO8859-1 locale on MacOS X.
67235         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
67236         ja_JP.eucJP locale on MacOS X.
67237         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
67238         zh_CN.GB18030 locale on MacOS X.
67240 2009-01-25  Bruno Haible  <bruno@clisp.org>
67242         Avoid link errors on MacOS X 10.3.
67243         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
67244         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
67246 2009-01-25  Bruno Haible  <bruno@clisp.org>
67248         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
67249         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
67250         * modules/pipe (Files): Remove m4/posix_spawn.m4.
67251         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
67252         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
67253         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
67254         posix_spawnattr_init, posix_spawnattr_setsigmask,
67255         posix_spawnattr_setflags, posix_spawnattr_destroy.
67257         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
67258         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
67259         * modules/execute (Files): Remove m4/posix_spawn.m4.
67260         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
67261         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
67262         posix_spawnattr_init, posix_spawnattr_setsigmask,
67263         posix_spawnattr_setflags, posix_spawnattr_destroy.
67265 2009-01-25  Bruno Haible  <bruno@clisp.org>
67267         * lib/glthread/threadlib.c: Include <stdlib.h>.
67269 2009-01-25  Bruno Haible  <bruno@clisp.org>
67271         * lib/glthread/threadlib.c (dummy): New declaration.
67273 2009-01-25  Bruno Haible  <bruno@clisp.org>
67275         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
67276         multibyte characters also for the GB18030 encoding. Don't crash when
67277         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
67279 2009-01-25  Bruno Haible  <bruno@clisp.org>
67281         Avoid redefining 'struct random_data' on OSF/1 5.1.
67282         * lib/stdlib.in.h: Include <random.h> if it exists.
67283         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
67284         HAVE_RANDOM_H. Include <random.h> when testing whether
67285         'struct random_data' exists.
67286         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
67288 2009-01-25  Bruno Haible  <bruno@clisp.org>
67290         Don't install charset.alias on MacOS X >= 10.3.
67291         * lib/localcharset.c (DARWIN7): New macro.
67292         (get_charset_aliases): Hardcode the result for Darwin7.
67293         * modules/localcharset (install-exec-local): Don't install
67294         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
67296 2009-01-25  Bruno Haible  <bruno@clisp.org>
67298         Don't install charset.alias on mingw and Cygwin.
67299         * modules/localcharset (install-exec-local): Don't install
67300         charset.alias on mingw and Cygwin, if the file does not yet exist.
67301         The result for these platforms is hardcoded in localcharset.c.
67303 2009-01-25  Bruno Haible  <bruno@clisp.org>
67305         Make it possible again to use AC_GNU_SOURCE together with gnulib.
67306         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
67307         before requiring AC_USE_SYSTEM_EXTENSIONS.
67309 2009-01-25  Jim Meyering  <meyering@redhat.com>
67311         c-strtod: avoid warnings
67312         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
67313         "assignment discards qualifiers from pointer target type" warnings.
67315 2009-01-24  Bruno Haible  <bruno@clisp.org>
67317         Add support for non-UTF-8 locales on MacOS X.
67318         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
67319         canonical encodings. For Darwin 7 and newer, don't map traditional
67320         encodings to UTF-8.
67321         Reported by Vincent Lefevre <vincent@vinc17.org>
67322         at <http://savannah.gnu.org/bugs/?25235>.
67324 2009-01-24  Bruno Haible  <bruno@clisp.org>
67326         * doc/gnulib.texi (Obsolete modules): New section.
67327         Reported by Mike Frysinger <vapier@gentoo.org>.
67329 2009-01-24  Bruno Haible  <bruno@clisp.org>
67331         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
67332         (%.dvi): New rule.
67334 2009-01-24  Bruno Haible  <bruno@clisp.org>
67336         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
67337         Reported by Eric Blake.
67339 2009-01-24  Bruno Haible  <bruno@clisp.org>
67341         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
67342         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
67343         Reported by Gary V. Vaughan <gary@gnu.org>.
67345 2009-01-24  Bruno Haible  <bruno@clisp.org>
67347         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
67349 2009-01-23  Bruno Haible  <bruno@clisp.org>
67351         Make c-strtod, c-strtold usable in libraries.
67352         * lib/c-strtod.c: Include string.h instead of xalloc.h.
67353         (C_STRTOD): Call strdup instead of xstrdup.
67354         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
67355         * modules/c-strtold (Depends-on): Likewise.
67356         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
67357         * NEWS: Mention the change.
67358         Reported by Michael Gold <mgold@ncf.ca>.
67360 2009-01-23  Jim Meyering  <meyering@redhat.com>
67362         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
67363         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
67364         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
67366 2009-01-23  Simon Josefsson  <simon@josefsson.org>
67368         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
67369         GNU CoreUtils.
67370         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
67371         * modules/version-etc (Description): Update.
67373 2009-01-22  Bruno Haible  <bruno@clisp.org>
67375         Cache the C locale object.
67376         * lib/c-strtod.c (c_locale_cache): New variable.
67377         (c_locale): New function.
67378         (C_STRTOD): Use it, and don't call freelocale.
67379         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
67380         Suggested by Paolo Bonzini.
67382 2009-01-21  Bruno Haible  <bruno@clisp.org>
67384         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
67385         conditions other than overflow.
67387 2009-01-21  Bruno Haible  <bruno@clisp.org>
67389         * lib/c-strtod.c: Include errno.h.
67390         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
67391         value from STRTOD_L and STRTOD.
67393 2009-01-21  Bruno Haible  <bruno@clisp.org>
67394         and Jim Meyering  <meyering@redhat.com>
67396         nanosleep: skip configure test (fail it) for apple universal builds
67397         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
67398         universal builds, assume that nanosleep does not work.
67399         * modules/nanosleep (Depends-on): Add multiarch.
67401         mktime: skip configure test (fail it) for apple universal builds
67402         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
67403         universal builds, assume that mktime does not work.
67404         * modules/mktime (Depends-on): Add multiarch.
67406 2009-01-21  Eric Blake  <ebb9@byu.net>
67408         multiarch: avoid expand-before-require warning
67409         * modules/multiarch (configure.ac): Require, rather than expand,
67410         gl_MULTIARCH.
67411         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
67412         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
67413         enforce that all clients require it.  Partial reversion of
67414         2008-12-29 patch.
67416         error: avoid expand-before-require warning
67417         * modules/errno (configure.ac): Require, rather than expand,
67418         gl_HEADER_ERRNO_H.
67419         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
67420         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
67421         enforce that all clients require it.
67423         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
67424         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
67425         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
67426         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
67428 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
67430         Revert:
67431         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
67433         regex: do not depend on obsolete modules.
67434         * modules/regex: Remove memcmp and memmove.
67436 2009-01-20  Bruno Haible  <bruno@clisp.org>
67438         Make the 'link' module link on Windows NT 4.
67439         * lib/link.c (_WIN32_WINNT): Don't define.
67440         (CreateHardLinkFuncType): New type.
67441         (CreateHardLinkFunc, initialized): New variables.
67442         (initialize): New function.
67443         (link): Invoke CreateHardLink indirectly through the function pointer.
67445 2009-01-20  Bruno Haible  <bruno@clisp.org>
67447         Fix compilation failure on mingw.
67448         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
67450 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
67452         * doc/c-strtod.texi: Mention a couple of restrictions.
67454 2009-01-20  Jim Meyering  <meyering@redhat.com>
67456         gettimeofday: move more declarations out of functions
67457         * lib/gettimeofday.c: Move extern declarations of tzset and
67458         gmtime out of containing functions.  Prompted by Bruno Haible.
67460 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
67462         regex: do not depend on obsolete modules.
67463         * modules/regex: Remove memcmp and memmove.
67465 2009-01-19  Bruno Haible  <bruno@clisp.org>
67467         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
67468         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
67469         gl_BIGENDIAN, not AC_C_BIGENDIAN.
67470         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
67471         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
67473 2009-01-19  Bruno Haible  <bruno@clisp.org>
67475         * tests/test-link.c: Include <errno.h>.
67476         (main): Exit with code 77 when a hard link cannot be created due to
67477         the file system.
67478         * tests/test-link.sh: Skip test when a hard link cannot be created due
67479         to the file system.
67480         Suggested by Eric Blake.
67482 2009-01-19  Martin Lambers  <marlam@marlam.de>
67484         * modules/link-tests: New file.
67485         * tests/test-link.sh: New file.
67486         * tests/test-link.c: New file.
67488 2009-01-19  Eric Blake  <ebb9@byu.net>
67490         doc: mention another function added in cygwin 1.7.0
67491         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
67492         Another new function in cygwin 1.7.
67494 2009-01-19  Bruno Haible  <bruno@clisp.org>
67496         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
67497         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
67498         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
67499         gl_BIGENDIAN, not AC_C_BIGENDIAN.
67500         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
67501         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
67502         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
67503         * m4/md4.m4 (gl_MD4): Likewise.
67504         * m4/md5.m4 (gl_MD5): Likewise.
67505         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
67506         * m4/sha1.m4 (gl_SHA1): Likewise.
67507         * m4/sha256.m4 (gl_SHA256): Likewise.
67508         * m4/sha512.m4 (gl_SHA512): Likewise.
67510 2009-01-19  Bruno Haible  <bruno@clisp.org>
67512         * modules/uniname/uniname-tests (Depends-on): Add progname.
67513         * tests/uniname/test-uninames.c: Include progname.h.
67514         (main): Call set_program_name.
67516         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
67517         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
67518         (main): Call set_program_name.
67520         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
67521         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
67522         (main): Call set_program_name.
67524         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
67525         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
67526         (main): Call set_program_name.
67528         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
67529         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
67530         (main): Call set_program_name.
67532         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
67533         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
67534         (main): Call set_program_name.
67536         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
67537         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
67538         (main): Call set_program_name.
67540         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
67541         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
67542         (main): Call set_program_name.
67544         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
67545         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
67546         (main): Call set_program_name.
67548 2009-01-19  Eric Blake  <ebb9@byu.net>
67550         test-unistd: test previous patch
67551         * tests/test-unistd.c: Test *_FILENO macros.
67553         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
67554         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
67555         Guarantee a definition.
67556         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
67557         * modules/unistd-safer (Depends-on): Add dependency on unistd.
67558         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
67559         * lib/dup-safer.c (STDERR_FILENO): Likewise.
67560         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
67561         Likewise.
67562         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
67563         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
67564         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
67565         Likewise.
67566         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
67567         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
67568         (STDERR_FILENO): Likewise.
67569         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
67570         (STDERR_FILENO): Likewise.
67571         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
67572         (STDERR_FILENO): Likewise.
67573         Reported by Elbert Pol.
67575 2009-01-19  Eric Blake  <ebb9@byu.net>
67577         doc: mention more functions added in cygwin 1.7.0
67578         * doc/posix-functions/abort.texi (abort): Update wording related
67579         to cygwin.
67580         * doc/posix-functions/daylight.texi (daylight): Likewise.
67581         * doc/posix-functions/optarg.texi (optarg): Likewise.
67582         * doc/posix-functions/optarg.texi (opterr): Likewise.
67583         * doc/posix-functions/optarg.texi (optind): Likewise.
67584         * doc/posix-functions/optarg.texi (optopt): Likewise.
67585         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
67586         worked in 1.5.x, and was withdrawn in 1.7.
67587         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
67588         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
67589         cygwin versions.
67590         * doc/posix-functions/perror.texi (perror): Likewise.
67591         * doc/posix-functions/printf.texi (printf): Likewise.
67592         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
67593         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
67594         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
67595         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
67596         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
67597         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
67598         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
67599         Likewise.
67600         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
67601         Likewise.
67602         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
67603         this function.
67604         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
67605         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
67606         Likewise.
67607         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
67608         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
67609         * doc/posix-functions/confstr.texi (confstr): Likewise.
67610         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
67611         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
67612         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
67613         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
67614         * doc/posix-functions/fputws.texi (fputws): Likewise.
67615         * doc/posix-functions/fwide.texi (fwide): Likewise.
67616         * doc/posix-functions/getwc.texi (getwc): Likewise.
67617         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
67618         * doc/posix-functions/putwc.texi (putwc): Likewise.
67619         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
67620         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
67621         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
67622         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
67623         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
67624         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
67625         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
67626         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
67627         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
67628         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
67629         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
67631 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
67633         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
67634         * lib/ioctl.c: Include <sys/ioctl.h>.
67636 2009-01-19  Simon Josefsson  <simon@josefsson.org>
67638         * modules/getdate-tests (Depends-on): Add progname.
67639         * tests/test-getdate.c: Use progname module, to avoid link errors
67640         on non-glibc systems.
67642 2009-01-18  Simon Josefsson  <simon@josefsson.org>
67644         * modules/filenamecat-tests (Depends-on): Add progname.
67645         * modules/fstrcmp-tests (Depends-on): Likewise.
67647         * tests/test-filenamecat.c: Use progname module, to avoid link
67648         errors on non-glibc systems.
67649         * tests/test-fstrcmp.c: Likewise.
67651 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
67653         gettimeofday: avoid warning: nested extern declaration of 'localtime'
67654         * lib/gettimeofday.c: Move extern declaration out of function.
67656 2009-01-18  Bruno Haible  <bruno@clisp.org>
67658         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
67659         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
67660         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
67662 2009-01-18  Bruno Haible  <bruno@clisp.org>
67664         * lib/strftime.c (MEMPCPY): Remove unused macro.
67665         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
67667 2009-01-18  Martin Lambers  <marlam@marlam.de>
67669         New module 'link'.
67670         * lib/unistd.in.h (link): New declaration.
67671         * lib/link.c: New file.
67672         * m4/link.m4: New file.
67673         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
67674         HAVE_LINK.
67675         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
67676         * modules/link: New file.
67677         * doc/posix-functions/link.texi: Mention the new module.
67679 2009-01-18  Bruno Haible  <bruno@clisp.org>
67681         * tests/test-avltree_list.c (main): Call set_program_name.
67682         * tests/test-avltree_oset.c (main): Likewise.
67683         * tests/test-obstack-printf.c: Include progname.h.
67684         (main): Call set_program_name.
67685         * tests/test-quotearg.c: Include progname.h.
67686         (main): Call set_program_name.
67687         * tests/test-xmemdup0.c: Include progname.h.
67688         (main): Call set_program_name.
67690 2009-01-18  Bruno Haible  <bruno@clisp.org>
67692         New module 'alphasort'.
67693         * lib/dirent.in.h (alphasort): New declaration.
67694         * lib/alphasort.c: New file, from glibc with modifications.
67695         * m4/alphasort.m4: New file.
67696         * modules/alphasort: New file.
67697         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
67698         HAVE_ALPHASORT.
67699         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
67700         HAVE_ALPHASORT.
67701         * doc/posix-functions/alphasort.texi: Mention the new module and the
67702         portability problems.
67704 2009-01-18  Bruno Haible  <bruno@clisp.org>
67706         New module 'scandir'.
67707         * lib/dirent.in.h (scandir): New declaration.
67708         * lib/scandir.c: New file, from glibc with modifications.
67709         * m4/scandir.m4: New file.
67710         * modules/scandir: New file.
67711         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
67712         HAVE_SCANDIR.
67713         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
67714         HAVE_SCANDIR.
67715         * doc/posix-functions/scandir.texi: Mention the new module and the
67716         portability problems.
67718 2009-01-17  Bruno Haible  <bruno@clisp.org>
67720         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
67721         Update documentation.
67722         (func_remove_suffix): Escape all dots in the suffix. Update
67723         documentation.
67724         (func_filter_filelist): Update documentation.
67725         Reported by Ralf Wildenhues.
67727 2009-01-17  Bruno Haible  <bruno@clisp.org>
67729         * modules/dprintf-posix-tests: New file.
67730         * tests/test-dprintf-posix.sh: New file.
67731         * tests/test-dprintf-posix.c: New file.
67733         New modules 'dprintf', 'dprintf-posix'.
67734         * lib/stdio.in.h (dprintf): New declaration.
67735         * lib/dprintf.c: New file.
67736         * m4/dprintf.m4: New file.
67737         * m4/dprintf-posix.m4: New file.
67738         * modules/dprintf: New file.
67739         * modules/dprintf-posix: New file.
67740         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
67741         HAVE_DPRINTF, REPLACE_DPRINTF.
67742         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
67743         HAVE_DPRINTF, REPLACE_DPRINTF.
67744         * doc/posix-functions/dprintf.texi: Mention the new modules.
67746 2009-01-17  Bruno Haible  <bruno@clisp.org>
67748         * modules/vdprintf-posix-tests: New file.
67749         * tests/test-vdprintf-posix.sh: New file.
67750         * tests/test-vdprintf-posix.c: New file.
67752         New modules 'vdprintf', 'vdprintf-posix'.
67753         * lib/stdio.in.h (vdprintf): New declaration.
67754         * lib/vdprintf.c: New file.
67755         * m4/vdprintf.m4: New file.
67756         * m4/vdprintf-posix.m4: New file.
67757         * modules/vdprintf: New file.
67758         * modules/vdprintf-posix: New file.
67759         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
67760         HAVE_VDPRINTF, REPLACE_VDPRINTF.
67761         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
67762         HAVE_VDPRINTF, REPLACE_VDPRINTF.
67763         * doc/posix-functions/vdprintf.texi: Mention the new modules.
67765 2009-01-17  Bruno Haible  <bruno@clisp.org>
67767         Fix replacement of fopen on mingw.
67768         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
67769         mingw.
67771 2009-01-17  Bruno Haible  <bruno@clisp.org>
67773         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
67774         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
67776 2009-01-17  Bruno Haible  <bruno@clisp.org>
67778         Avoid test-fflush2.sh failure on mingw.
67779         * tests/test-fflush2.c: Include binary-io.h.
67780         (main): Put standard input into binary mode.
67781         * modules/fflush-tests (Depends-on): Add binary-io.
67783 2009-01-17  Bruno Haible  <bruno@clisp.org>
67785         * lib/wchar.in.h: In another particular situation, include only the
67786         system's <wchar.h> file.
67787         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
67788         Reported by Albert Chin-A-Young <china@thewrittenword.com>
67789         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
67791 2009-01-17  Bruno Haible  <bruno@clisp.org>
67793         Support for stripping executables in --enable-relocatable.
67794         * build-aux/install-reloc: Expect one more argument, or an environment
67795         variable RELOC_STRIP_PROG. If set, strip the destination program and
67796         its wrapper.
67797         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
67798         RELOC_STRIP_PROG.
67799         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
67800         to set RELOCATABLE_STRIP.
67801         * NEWS: Mention the new Makefile requirement.
67803 2009-01-17  Bruno Haible  <bruno@clisp.org>
67805         * build-aux/install-reloc: Remove debugging information left over by
67806         C compiler on MacOS X.
67808 2009-01-17  Bruno Haible  <bruno@clisp.org>
67810         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
67811         * lib/progreloc.c (find_executable): Fix type of pointer passed to
67812         _NSGetExecutablePath.
67814 2009-01-16  Jim Meyering  <meyering@redhat.com>
67816         strerror: avoid warnings about discarding "const"
67817         * lib/strerror.c (rpl_strerror): Instead of returning a const
67818         string from each and every "case", use a variable, and add a single
67819         cast after the switch.
67821 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
67823         * lib/arpa_inet.in.h: Add extern "C" block for C++.
67825 2009-01-16  Bruno Haible  <bruno@clisp.org>
67827         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
67828         array initializer syntax that also works in C++ mode.
67829         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
67831 2009-01-16  Jim Meyering  <meyering@redhat.com>
67833         poll: suppress a warning
67834         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
67835         to ignore "...unsigned expression < 0 is always false" warnings.
67837 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
67839         poll: remove declarations of unused variables
67840         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
67841         sockbuf and optlen.
67843 2009-01-15  Bruno Haible  <bruno@clisp.org>
67845         Make fflush-after-ungetc POSIX compliant on BSD systems.
67846         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
67847         (clear_ungetc_buffer): Implement also for other systems.
67848         (rpl_fflush): On glibc systems, invoke
67849         clear_ungetc_buffer_preserving_position. Otherwise, invoke
67850         clear_ungetc_buffer after fetching the stream's position, not before.
67852 2009-01-15  Bruno Haible  <bruno@clisp.org>
67854         Make fflush-after-ungetc POSIX compliant on glibc systems.
67855         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
67856         after ungetc.
67857         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
67858         (rpl_fflush): On glibc systems, simply call the system's fflush
67859         function after clearing the ungetc buffer.
67860         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
67861         Instead, lseek only to the end of file, then use the system's fseeko
67862         for the rest. On glibc systems, reset the EOF indicator bit.
67864 2009-01-15  Jim Meyering  <meyering@redhat.com>
67866         openmp.m4: revert quote-adding change, for portability to older autoconf
67867         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
67868         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
67869         Simon Josefsson noticed the problem when using autoconf-2.61.
67871 2009-01-15  Bruno Haible  <bruno@clisp.org>
67873         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
67874         * tests/test-fflush2.c (ASSERT): Always fail.
67875         (main): Add two tests for fflush() after ungetc(), taking into account
67876         the Austin Group's clarification.
67877         Suggested by Eric Blake.
67879 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
67881         mktime.m4: remove K&R-style function prototypes
67882         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
67883         for the Sun C++ compiler.
67885 2009-01-14  Bruno Haible  <bruno@clisp.org>
67887         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
67888         while including <wchar.h>.
67889         * lib/wchar.in.h: In two particular situations on HP-UX, include only
67890         the system's <wchar.h> file.
67891         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
67893 2009-01-14  Bruno Haible  <bruno@clisp.org>
67895         * m4/csharp.m4: Don't mention gettext on the serial number line.
67896         * m4/csharpexec.m4: Likewise.
67897         * m4/eaccess.m4: Likewise.
67898         * m4/javaexec.m4: Likewise.
67899         * m4/sig_atomic_t.m4: Likewise.
67900         * m4/tmpdir.m4: Likewise.
67901         * m4/intldir.m4: Bump gettext version.
67902         * m4/lib-ld.m4: Likewise.
67904 2009-01-14  Bruno Haible  <bruno@clisp.org>
67906         * lib/progname.c (set_program_name): Add more comments.
67907         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
67909 2009-01-14  Simon Josefsson  <simon@josefsson.org>
67911         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
67912         were sys/stat.h does not define it.
67914 2009-01-14  Jim Meyering  <meyering@redhat.com>
67916         many *.m4 files: improve m4 quoting
67917         99% of this change was performed by running the following commands:
67918         git ls-files | grep '\.m4$' | xargs perl -pi \
67919           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
67920           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
67921           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
67922           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
67923         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
67924         The remainder were to add Copyright dates, increment serial numbers,
67925         undo some changes in comments, exclude m4/intl.m4, and add quotes
67926         around the "1" in ",1" where the unusual spacing prohibited the
67927         above regexps from doing the job.  For more details, see
67928         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
67929         * m4/acl.m4: Modified.
67930         * m4/afs.m4: Likewise.
67931         * m4/alloca.m4: Likewise.
67932         * m4/argp.m4: Likewise.
67933         * m4/argz.m4: Likewise.
67934         * m4/atexit.m4: Likewise.
67935         * m4/bison-i18n.m4: Likewise.
67936         * m4/bison.m4: Likewise.
67937         * m4/byteswap.m4: Likewise.
67938         * m4/c-stack.m4: Likewise.
67939         * m4/c-strtod.m4: Likewise.
67940         * m4/calloc.m4: Likewise.
67941         * m4/canonicalize-lgpl.m4: Likewise.
67942         * m4/chown.m4: Likewise.
67943         * m4/clock_time.m4: Likewise.
67944         * m4/codeset.m4: Likewise.
67945         * m4/copy-file.m4: Likewise.
67946         * m4/csharp.m4: Likewise.
67947         * m4/csharpcomp.m4: Likewise.
67948         * m4/csharpexec.m4: Likewise.
67949         * m4/d-ino.m4: Likewise.
67950         * m4/d-type.m4: Likewise.
67951         * m4/dirfd.m4: Likewise.
67952         * m4/double-slash-root.m4: Likewise.
67953         * m4/eaccess.m4: Likewise.
67954         * m4/eealloc.m4: Likewise.
67955         * m4/environ.m4: Likewise.
67956         * m4/errno_h.m4: Likewise.
67957         * m4/euidaccess.m4: Likewise.
67958         * m4/execute.m4: Likewise.
67959         * m4/fatal-signal.m4: Likewise.
67960         * m4/fchdir.m4: Likewise.
67961         * m4/fcntl_h.m4: Likewise.
67962         * m4/fileblocks.m4: Likewise.
67963         * m4/filenamecat.m4: Likewise.
67964         * m4/findprog.m4: Likewise.
67965         * m4/flexmember.m4: Likewise.
67966         * m4/fnmatch.m4: Likewise.
67967         * m4/fopen.m4: Likewise.
67968         * m4/fpending.m4: Likewise.
67969         * m4/fprintf-posix.m4: Likewise.
67970         * m4/free.m4: Likewise.
67971         * m4/frexp.m4: Likewise.
67972         * m4/frexpl.m4: Likewise.
67973         * m4/fsusage.m4: Likewise.
67974         * m4/ftruncate.m4: Likewise.
67975         * m4/gc-camellia.m4: Likewise.
67976         * m4/gc-random.m4: Likewise.
67977         * m4/gc.m4: Likewise.
67978         * m4/getaddrinfo.m4: Likewise.
67979         * m4/getcwd-abort-bug.m4: Likewise.
67980         * m4/getcwd-path-max.m4: Likewise.
67981         * m4/getdate.m4: Likewise.
67982         * m4/getdomainname.m4: Likewise.
67983         * m4/getgroups.m4: Likewise.
67984         * m4/gethostname.m4: Likewise.
67985         * m4/gethrxtime.m4: Likewise.
67986         * m4/getline.m4: Likewise.
67987         * m4/getloadavg.m4: Likewise.
67988         * m4/getndelim2.m4: Likewise.
67989         * m4/getpass.m4: Likewise.
67990         * m4/gettext.m4: Likewise.
67991         * m4/gettime.m4: Likewise.
67992         * m4/gettimeofday.m4: Likewise.
67993         * m4/gnulib-common.m4: Likewise.
67994         * m4/group-member.m4: Likewise.
67995         * m4/host-os.m4: Likewise.
67996         * m4/iconv.m4: Likewise.
67997         * m4/iconv_open.m4: Likewise.
67998         * m4/inet_ntop.m4: Likewise.
67999         * m4/inet_pton.m4: Likewise.
68000         * m4/inline.m4: Likewise.
68001         * m4/intldir.m4: Likewise.
68002         * m4/intlmacosx.m4: Likewise.
68003         * m4/intmax.m4: Likewise.
68004         * m4/intmax_t.m4: Likewise.
68005         * m4/inttypes.m4: Likewise.
68006         * m4/inttypes_h.m4: Likewise.
68007         * m4/inttypes-pri.m4: Likewise.
68008         * m4/isapipe.m4: Likewise.
68009         * m4/isnand.m4: Likewise.
68010         * m4/isnanf.m4: Likewise.
68011         * m4/isnanl.m4: Likewise.
68012         * m4/javacomp.m4: Likewise.
68013         * m4/javaexec.m4: Likewise.
68014         * m4/jm-winsz1.m4: Likewise.
68015         * m4/jm-winsz2.m4: Likewise.
68016         * m4/lchown.m4: Likewise.
68017         * m4/lcmessage.m4: Likewise.
68018         * m4/ldexpl.m4: Likewise.
68019         * m4/lib-ld.m4: Likewise.
68020         * m4/lib-link.m4: Likewise.
68021         * m4/libsigsegv.m4: Likewise.
68022         * m4/link-follow.m4: Likewise.
68023         * m4/localcharset.m4: Likewise.
68024         * m4/locale-fr.m4: Likewise.
68025         * m4/locale-ja.m4: Likewise.
68026         * m4/locale-tr.m4: Likewise.
68027         * m4/locale-zh.m4: Likewise.
68028         * m4/lock.m4: Likewise.
68029         * m4/longlong.m4: Likewise.
68030         * m4/ls-mntd-fs.m4: Likewise.
68031         * m4/lstat.m4: Likewise.
68032         * m4/malloc.m4: Likewise.
68033         * m4/mathl.m4: Likewise.
68034         * m4/mbrtowc.m4: Likewise.
68035         * m4/mbstate_t.m4: Likewise.
68036         * m4/mbswidth.m4: Likewise.
68037         * m4/memchr.m4: Likewise.
68038         * m4/memcmp.m4: Likewise.
68039         * m4/memcpy.m4: Likewise.
68040         * m4/memmem.m4: Likewise.
68041         * m4/memmove.m4: Likewise.
68042         * m4/mempcpy.m4: Likewise.
68043         * m4/memrchr.m4: Likewise.
68044         * m4/memset.m4: Likewise.
68045         * m4/minmax.m4: Likewise.
68046         * m4/mkdir-slash.m4: Likewise.
68047         * m4/mkdtemp.m4: Likewise.
68048         * m4/mktime.m4: Likewise.
68049         * m4/mmap-anon.m4: Likewise.
68050         * m4/mountlist.m4: Likewise.
68051         * m4/nanosleep.m4: Likewise.
68052         * m4/nls.m4: Likewise.
68053         * m4/nocrash.m4: Likewise.
68054         * m4/open.m4: Likewise.
68055         * m4/openat.m4: Likewise.
68056         * m4/openmp.m4: Likewise.
68057         * m4/pathmax.m4: Likewise.
68058         * m4/perl.m4: Likewise.
68059         * m4/physmem.m4: Likewise.
68060         * m4/pipe.m4: Likewise.
68061         * m4/po.m4: Likewise.
68062         * m4/poll.m4: Likewise.
68063         * m4/posixtm.m4: Likewise.
68064         * m4/posixver.m4: Likewise.
68065         * m4/printf-frexp.m4: Likewise.
68066         * m4/printf-frexpl.m4: Likewise.
68067         * m4/printf-posix.m4: Likewise.
68068         * m4/printf-posix-rpl.m4: Likewise.
68069         * m4/printf.m4: Likewise.
68070         * m4/progtest.m4: Likewise.
68071         * m4/putenv.m4: Likewise.
68072         * m4/readline.m4: Likewise.
68073         * m4/readlink.m4: Likewise.
68074         * m4/readutmp.m4: Likewise.
68075         * m4/realloc.m4: Likewise.
68076         * m4/regex.m4: Likewise.
68077         * m4/relocatable.m4: Likewise.
68078         * m4/relocatable-lib.m4: Likewise.
68079         * m4/rename-dest-slash.m4: Likewise.
68080         * m4/rename.m4: Likewise.
68081         * m4/rmdir-errno.m4: Likewise.
68082         * m4/rmdir.m4: Likewise.
68083         * m4/roundf.m4: Likewise.
68084         * m4/roundl.m4: Likewise.
68085         * m4/rpmatch.m4: Likewise.
68086         * m4/save-cwd.m4: Likewise.
68087         * m4/selinux-selinux-h.m4: Likewise.
68088         * m4/setenv.m4: Likewise.
68089         * m4/settime.m4: Likewise.
68090         * m4/sig2str.m4: Likewise.
68091         * m4/sig_atomic_t.m4: Likewise.
68092         * m4/signalblocking.m4: Likewise.
68093         * m4/signbit.m4: Likewise.
68094         * m4/sigpipe.m4: Likewise.
68095         * m4/sockets.m4: Likewise.
68096         * m4/sockpfaf.m4: Likewise.
68097         * m4/st_dm_mode.m4: Likewise.
68098         * m4/stat-time.m4: Likewise.
68099         * m4/stdbool.m4: Likewise.
68100         * m4/stdint.m4: Likewise.
68101         * m4/stdint_h.m4: Likewise.
68102         * m4/stpcpy.m4: Likewise.
68103         * m4/stpncpy.m4: Likewise.
68104         * m4/strcase.m4: Likewise.
68105         * m4/strchrnul.m4: Likewise.
68106         * m4/strcspn.m4: Likewise.
68107         * m4/strdup.m4: Likewise.
68108         * m4/strftime.m4: Likewise.
68109         * m4/strndup.m4: Likewise.
68110         * m4/strnlen.m4: Likewise.
68111         * m4/strpbrk.m4: Likewise.
68112         * m4/strptime.m4: Likewise.
68113         * m4/strsep.m4: Likewise.
68114         * m4/strtod.m4: Likewise.
68115         * m4/strtoimax.m4: Likewise.
68116         * m4/strtok_r.m4: Likewise.
68117         * m4/strtol.m4: Likewise.
68118         * m4/strtoll.m4: Likewise.
68119         * m4/strtoul.m4: Likewise.
68120         * m4/strtoull.m4: Likewise.
68121         * m4/strtoumax.m4: Likewise.
68122         * m4/strverscmp.m4: Likewise.
68123         * m4/threadlib.m4: Likewise.
68124         * m4/timegm.m4: Likewise.
68125         * m4/tm_gmtoff.m4: Likewise.
68126         * m4/tmpdir.m4: Likewise.
68127         * m4/tmpfile.m4: Likewise.
68128         * m4/tzset.m4: Likewise.
68129         * m4/uintmax_t.m4: Likewise.
68130         * m4/unlinkdir.m4: Likewise.
68131         * m4/unlocked-io.m4: Likewise.
68132         * m4/uptime.m4: Likewise.
68133         * m4/userspec.m4: Likewise.
68134         * m4/utimbuf.m4: Likewise.
68135         * m4/utime.m4: Likewise.
68136         * m4/utimes-null.m4: Likewise.
68137         * m4/utimes.m4: Likewise.
68138         * m4/vararrays.m4: Likewise.
68139         * m4/vasnprintf.m4: Likewise.
68140         * m4/vfprintf-posix.m4: Likewise.
68141         * m4/vprintf-posix.m4: Likewise.
68142         * m4/wait-process.m4: Likewise.
68143         * m4/wchar_t.m4: Likewise.
68144         * m4/wint_t.m4: Likewise.
68145         * m4/write-any-file.m4: Likewise.
68146         * m4/yield.m4: Likewise.
68148 2009-01-13  Bruno Haible  <bruno@clisp.org>
68150         Avoid test-copy-file.sh failures when ACL support insufficient.
68151         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
68152         TESTS_ENVIRONMENT.
68153         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
68154         Reported by Jim Meyering.
68156 2009-01-13  Bruno Haible  <bruno@clisp.org>
68158         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
68159         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
68160         * modules/unistdio/u8-printf-parse (Files): Likewise.
68161         * modules/unistdio/u32-printf-parse (Files): Likewise.
68162         * modules/unistdio/ulc-printf-parse (Files): Likewise.
68164 2009-01-13  Simon Josefsson  <simon@josefsson.org>
68166         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
68167         and m4/inttypes_h.m4 too.
68169 2009-01-12  Eric Blake  <ebb9@byu.net>
68171         tests: IRIX 6.2 cc can't compile -0.0 into .data
68172         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
68173         rather than at compile-time.
68174         * tests/test-floorl.c (minus_zero): Likewise.
68175         * tests/test-frexpl.c (minus_zero): Likewise.
68176         * tests/test-isnan.c (minus_zerol): Likewise.
68177         * tests/test-isnanl.h (minus_zero): Likewise.
68178         * tests/test-ldexpl.c (minus_zero): Likewise.
68179         * tests/test-roundl.c (minus_zero): Likewise.
68180         * tests/test-signbit.c (minus_zerol): Likewise.
68181         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
68182         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
68183         * tests/test-truncl.c (minus_zero): Likewise.
68184         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
68185         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
68186         Reported by Tom G. Christensen and Nelson H. F. Beebe.
68188 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
68190         regex: fix glibc bug 9697
68191         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
68192         handling.
68194 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
68196         regex: fix glibc bug 697
68197         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
68198         being NULL also if there are no backreferences.
68200 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
68202         regex: merge glibc changes
68203         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
68204         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
68205         re_string_skip_chars, re_string_reconstruct): Likewise.
68206         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
68208 2009-01-07  Jim Meyering  <meyering@redhat.com>
68210         poll: filter through cppi
68211         * lib/poll.c: Indent cpp directives to reflect nesting.
68213 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
68215         poll: don't return uninitialized
68216         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
68218 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
68220         avoid compile failure on AIX 6.1
68221         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
68222         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
68224 2009-01-04  Jim Meyering  <meyering@redhat.com>
68226         remove duplicate inclusion of <stdio.h>
68227         * tests/test-fprintf-posix.c: Likewise.
68228         * tests/test-printf-posix.c: Likewise.
68229         * tests/test-snprintf-posix.c: Likewise.
68230         * tests/test-sprintf-posix.c: Likewise.
68231         * tests/test-vasprintf-posix.c: Likewise.
68232         * tests/test-vfprintf-posix.c: Likewise.
68233         * tests/test-vprintf-posix.c: Likewise.
68234         * tests/test-vsnprintf-posix.c: Likewise.
68235         * tests/test-vsprintf-posix.c: Likewise.
68237 2009-01-03  Jim Meyering  <meyering@redhat.com>
68239         gnulib-tool: fix sed-based filtering
68240         * gnulib-tool (func_filter_filelist): Remove extra backslash
68241         in sed_fff_filter definition.
68243 2009-01-02  Jim Meyering  <meyering@redhat.com>
68245         strftime: avoid compilation failure on Solaris 2.6
68246         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
68247         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
68248         Don't #define mbrlen or mbsinit, since now they're guaranteed to
68249         be available.  Reported by Tom G. Christensen.  Details in
68250         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
68252 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68253             Bruno Haible  <bruno@clisp.org>
68255         Speed up gnulib-tool by doing more string processing through shell
68256         built-ins.
68257         * gnulib-tool (fast_func_append): New variable.
68258         (func_remove_prefix, func_remove_suffix): New functions.
68259         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
68260         (func_filter_filelist): New function.
68261         (func_get_dependencies): Use func_remove_suffix instead of sed.
68262         (func_get_automake_snippet): Use func_filter_filelist instead of a
68263         subshell and sed invocation.
68265 2009-01-01  Bruno Haible  <bruno@clisp.org>
68267         Fix a security bug.
68268         * gnulib-tool (func_import, import, update): Don't allow the characters
68269         '"', '$', '`', '\' in macro arguments that become part of commands that
68270         are evaluated.
68272 2009-01-01  Bruno Haible  <bruno@clisp.org>
68274         * gnulib-tool (func_reset_sigpipe): Add more comments.
68276 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68278         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
68279         func_emit_tests_Makefile_am, func_import): Abort loops early if we
68280         already know the answer.
68282 2009-01-01  Jim Meyering  <meyering@redhat.com>
68284         * lib/version-etc.c (version_etc_va): Update copyright year.
68286 2008-12-30  Bruno Haible  <bruno@clisp.org>
68288         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
68289         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
68290         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
68292 2008-12-29  Eric Blake  <ebb9@byu.net>
68294         multiarch: avoid autoconf AC_REQUIRE bug
68295         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
68296         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
68297         2.63 and older.
68298         Reported by Bruno Haible, and analyzed in
68299         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
68301 2008-12-29  Bruno Haible  <bruno@clisp.org>
68303         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
68304         files in subdirectories correctly.
68305         Reported by Ralf Wildenhues.
68307 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68309         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
68310         rather than 'join FILE -', for Solaris join.
68312 2008-12-29  Bruno Haible  <bruno@clisp.org>
68314         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
68315         quoting.
68316         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
68317         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
68318         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
68319         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
68320         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
68321         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
68322         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
68323         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
68324         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
68325         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
68326         * m4/nls.m4 (AM_NLS): Likewise.
68327         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
68328         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
68329         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
68330         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
68331         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
68332         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
68333         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
68334         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
68335         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
68336         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
68337         * m4/xsize.m4 (gl_XSIZE): Likewise.
68338         Suggested by Jim Meyering.
68340 2008-11-17  Bruce Korb  <bkorb@gnu.org>
68342         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
68343         * lib/parse-duration.c: use a switch instead of cascading if's.
68345 2008-12-29  Eric Blake  <ebb9@byu.net>
68347         wchar.h: supply WEOF on Irix 5.3
68348         * lib/wchar.in.h (wint_t): Also supply WEOF.
68349         * lib/wctype.in.h (wint_t): Likewise.
68350         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
68351         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
68352         Reported by Tom G. Christensen.
68354 2008-12-26  Bruno Haible  <bruno@clisp.org>
68356         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
68357         i486, i586, i686.
68359 2008-12-26  Bruno Haible  <bruno@clisp.org>
68361         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
68363 2008-12-26  Bruno Haible  <bruno@clisp.org>
68365         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
68366         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
68367         not __STDC_CONSTANT_MACROS.
68368         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
68370 2008-12-25  Bruno Haible  <bruno@clisp.org>
68372         Add support for universal builds to vasnprintf.
68373         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
68374         universal builds, guess no.
68375         * modules/vasnprintf-posix (Depends-on): Add multiarch.
68376         * modules/vasprintf-posix (Depends-on): Likewise.
68377         * modules/fprintf-posix (Depends-on): Likewise.
68378         * modules/vfprintf-posix (Depends-on): Likewise.
68379         * modules/snprintf-posix (Depends-on): Likewise.
68380         * modules/vsnprintf-posix (Depends-on): Likewise.
68381         * modules/sprintf-posix (Depends-on): Likewise.
68382         * modules/vsprintf-posix (Depends-on): Likewise.
68383         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
68384         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
68385         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
68386         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
68387         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
68388         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
68389         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
68391         Add support for universal builds to <inttypes.h>.
68392         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
68393         _SCNu64_PREFIX): In Apple
68394         universal builds, define directly, using _LP64.
68395         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
68396         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
68397         * modules/inttypes (Depends-on): Add multiarch.
68398         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
68400         Add support for universal builds to <stdint.h>.
68401         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
68402         universal builds, define directly, using _LP64.
68403         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
68404         Apple universal builds, don't test for the size and suffix of ptrdiff_t
68405         and size_t.
68406         * modules/stdint (Depends-on): Add multiarch.
68407         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
68409         New module 'multiarch'.
68410         * modules/multiarch: New file.
68411         * m4/multiarch.m4: New file.
68413 2008-12-25  Bruno Haible  <bruno@clisp.org>
68415         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
68417 2008-12-25  Bruno Haible  <bruno@clisp.org>
68419         * modules/btowc (License): Relicense under LGPLv2+.
68420         * modules/mbsinit (License): Likewise.
68421         * modules/mbrtowc (License): Likewise.
68422         * modules/wcrtomb (License): Likewise.
68423         * modules/streq (License): Likewise.
68424         Reported by David Lutterkort <lutter@redhat.com>.
68426 2008-12-23  Bruno Haible  <bruno@clisp.org>
68428         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
68430 2008-12-23  Bruno Haible  <bruno@clisp.org>
68432         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
68433         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
68434         GETADDRINFO_LIB, not in LIBS.
68435         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
68436         * modules/canon-host (Link): Likewise.
68437         * NEWS: Mention the change.
68438         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
68439         GETADDRINFO_LIB.
68441 2008-12-22  Bruno Haible  <bruno@clisp.org>
68443         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
68444         * doc/posix-functions/iswalpha_l.texi: Likewise.
68445         * doc/posix-functions/iswblank_l.texi: Likewise.
68446         * doc/posix-functions/iswcntrl_l.texi: Likewise.
68447         * doc/posix-functions/iswctype_l.texi: Likewise.
68448         * doc/posix-functions/iswdigit_l.texi: Likewise.
68449         * doc/posix-functions/iswgraph_l.texi: Likewise.
68450         * doc/posix-functions/iswlower_l.texi: Likewise.
68451         * doc/posix-functions/iswprint_l.texi: Likewise.
68452         * doc/posix-functions/iswpunct_l.texi: Likewise.
68453         * doc/posix-functions/iswspace_l.texi: Likewise.
68454         * doc/posix-functions/iswupper_l.texi: Likewise.
68455         * doc/posix-functions/iswxdigit_l.texi: Likewise.
68456         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
68457         * doc/posix-functions/open_wmemstream.texi: Likewise.
68458         * doc/posix-functions/swscanf.texi: Likewise.
68459         * doc/posix-functions/towctrans_l.texi: Likewise.
68460         * doc/posix-functions/towlower.texi: Likewise.
68461         * doc/posix-functions/towlower_l.texi: Likewise.
68462         * doc/posix-functions/towupper.texi: Likewise.
68463         * doc/posix-functions/towupper_l.texi: Likewise.
68464         * doc/posix-functions/vfwprintf.texi: Likewise.
68465         * doc/posix-functions/vfwscanf.texi: Likewise.
68466         * doc/posix-functions/vswscanf.texi: Likewise.
68467         * doc/posix-functions/vwprintf.texi: Likewise.
68468         * doc/posix-functions/vwscanf.texi: Likewise.
68469         * doc/posix-functions/wcpcpy.texi: Likewise.
68470         * doc/posix-functions/wcpncpy.texi: Likewise.
68471         * doc/posix-functions/wcscasecmp.texi: Likewise.
68472         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
68473         * doc/posix-functions/wcscoll_l.texi: Likewise.
68474         * doc/posix-functions/wcsdup.texi: Likewise.
68475         * doc/posix-functions/wcsncasecmp.texi: Likewise.
68476         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
68477         * doc/posix-functions/wcsnlen.texi: Likewise.
68478         * doc/posix-functions/wcsnrtombs.texi: Likewise.
68479         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
68480         * doc/posix-functions/wctrans_l.texi: Likewise.
68481         * doc/posix-functions/wctype_l.texi: Likewise.
68482         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
68483         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
68484         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
68485         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
68486         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
68487         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
68488         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
68489         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
68490         * doc/glibc-functions/wcschrnul.texi: Likewise.
68491         * doc/glibc-functions/wcsftime_l.texi: Likewise.
68492         * doc/glibc-functions/wcstod_l.texi: Likewise.
68493         * doc/glibc-functions/wcstof_l.texi: Likewise.
68494         * doc/glibc-functions/wcstol_l.texi: Likewise.
68495         * doc/glibc-functions/wcstold_l.texi: Likewise.
68496         * doc/glibc-functions/wcstoll_l.texi: Likewise.
68497         * doc/glibc-functions/wcstoq.texi: Likewise.
68498         * doc/glibc-functions/wcstoul_l.texi: Likewise.
68499         * doc/glibc-functions/wcstoull_l.texi: Likewise.
68500         * doc/glibc-functions/wcstouq.texi: Likewise.
68501         * doc/glibc-functions/wmempcpy.texi: Likewise.
68503 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
68504             Eric Blake  <ebb9@byu.net>
68505             Paolo Bonzini  <bonzini@gnu.org>
68506             Bruno Haible  <bruno@clisp.org>
68508         Make c-stack work on Haiku.
68509         * lib/c-stack.c (SA_ONSTACK): Define fallback.
68510         (c_stack_action): Use SA_ONSTACK flag.
68512 2008-12-22  Bruno Haible  <bruno@clisp.org>
68514         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
68516 2008-12-22  Bruno Haible  <bruno@clisp.org>
68518         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
68519         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
68520         being overridden.
68521         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
68522         New macros.
68523         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
68524         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
68525         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
68526         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
68528 2008-12-22  Bruno Haible  <bruno@clisp.org>
68530         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
68531         from test code.
68533 2008-12-22  Eric Blake  <ebb9@byu.net>
68535         Avoid gcc warnings on cygwin.
68536         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
68537         Avoid unused variable.
68538         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
68539         Likewise.
68541 2008-12-22  Bruno Haible  <bruno@clisp.org>
68543         Remove HAVE_MBRTOWC conditionals.
68544         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
68545         (mbscasecmp): Assume mbrtowc function.
68546         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
68547         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
68548         * lib/mbschr.c: Include mbuiter.h unconditionally.
68549         (mbschr): Assume mbrtowc function.
68550         * lib/mbscspn.c: Include mbuiter.h unconditionally.
68551         (mbscspn): Assume mbrtowc function.
68552         * lib/mbslen.c: Include mbuiter.h unconditionally.
68553         (mbslen): Assume mbrtowc function.
68554         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
68555         (mbsncasecmp): Assume mbrtowc function.
68556         * lib/mbsnlen.c: Include mbiter.h unconditionally.
68557         (mbsnlen): Assume mbrtowc function.
68558         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
68559         (mbspbrk): Assume mbrtowc function.
68560         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
68561         (mbspcasecmp): Assume mbrtowc function.
68562         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
68563         (mbsrchr): Assume mbrtowc function.
68564         * lib/mbssep.c: Include mbuiter.h unconditionally.
68565         (mbssep): Assume mbrtowc function.
68566         * lib/mbsspn.c: Include mbuiter.h unconditionally.
68567         (mbsspn): Assume mbrtowc function.
68568         * lib/mbsstr.c: Include mbuiter.h unconditionally.
68569         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
68570         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
68571         (mbstok_r): Assume mbrtowc function.
68572         * lib/propername.c: Include mbuiter.h unconditionally.
68573         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
68574         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
68575         (trim2): Assume mbrtowc function.
68576         * lib/mbswidth.c (mbsinit): Remove fallback definition.
68577         (mbsnwidth): Assume mbrtowc function.
68578         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
68579         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
68580         fallback definitions.
68581         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
68583 2008-12-22  Bruno Haible  <bruno@clisp.org>
68585         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
68587 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
68589         * modules/regex: Request emulations for the mb*/wc* functions we need.
68590         * m4/regex.m4: Don't look for those functions here.
68591         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
68593 2008-12-22  Bruno Haible  <bruno@clisp.org>
68595         * modules/fnmatch (Depends-on): Remove duplicated dependency.
68597 2008-12-21  Bruno Haible  <bruno@clisp.org>
68599         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
68600         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
68601         (Include): Remove conditionalization.
68602         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
68603         (Include): Remove conditionalization.
68604         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
68605         (Include): Remove conditionalization.
68606         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
68607         * m4/mbfile.m4 (gl_MBFILE): Likewise.
68608         * NEWS: Mention the change.
68609         Reported by Alan Hourihane <alanh@fairlite.co.uk>
68610         via Sergey Poznyakoff <gray@gnu.org.ua>.
68612 2008-12-21  Bruno Haible  <bruno@clisp.org>
68614         * MODULES.html.sh (Extended multibyte and wide character utilities
68615         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
68616         wcrtomb, wcsrtombs.
68617         (Support for systems lacking POSIX:2008): Add accept, bind, close,
68618         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
68619         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
68620         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
68622 2008-12-21  Bruno Haible  <bruno@clisp.org>
68624         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
68626 2008-12-21  Bruno Haible  <bruno@clisp.org>
68628         * modules/wcsnrtombs-tests: New file.
68629         * tests/test-wcsnrtombs1.sh: New file.
68630         * tests/test-wcsnrtombs2.sh: New file.
68631         * tests/test-wcsnrtombs3.sh: New file.
68632         * tests/test-wcsnrtombs4.sh: New file.
68633         * tests/test-wcsnrtombs.c: New file.
68635         New module 'wcsnrtombs'.
68636         * lib/wchar.in.h (wcsnrtombs): New declaration.
68637         * lib/wcsnrtombs.c: New file.
68638         * lib/wcsrtombs-state.c: New file.
68639         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
68640         (internal_state): Remove variable.
68641         * m4/wcsnrtombs.m4: New file.
68642         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
68643         compilation units.
68644         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
68645         HAVE_WCSNRTOMBS.
68646         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
68647         HAVE_WCSNRTOMBS.
68648         * modules/wcsnrtombs: New file.
68649         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
68650         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
68652 2008-12-21  Bruno Haible  <bruno@clisp.org>
68654         * modules/wcsrtombs-tests: New file.
68655         * tests/test-wcsrtombs1.sh: New file.
68656         * tests/test-wcsrtombs2.sh: New file.
68657         * tests/test-wcsrtombs3.sh: New file.
68658         * tests/test-wcsrtombs4.sh: New file.
68659         * tests/test-wcsrtombs.c: New file.
68661         New module 'wcsrtombs'.
68662         * lib/wchar.in.h (wcsrtombs): New declaration.
68663         * lib/wcsrtombs.c: New file.
68664         * m4/wcsrtombs.m4: New file.
68665         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
68666         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
68667         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
68668         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
68669         * modules/wcsrtombs: New file.
68670         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
68671         bugs.
68673 2008-12-21  Bruno Haible  <bruno@clisp.org>
68675         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
68676         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
68677         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
68678         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
68679         if not correct.
68680         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
68681         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
68682         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
68683         m4/locale-zh.m4, m4/codeset.m4.
68684         * doc/posix-functions/wcrtomb.texi: Document the bug.
68686 2008-12-21  Bruno Haible  <bruno@clisp.org>
68688         Work around a btowc() bug on IRIX 6.5.
68689         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
68690         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
68691         REPLACE_WTOBC if not.
68692         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
68693         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
68694         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
68696 2008-12-21  Bruno Haible  <bruno@clisp.org>
68698         * modules/wcrtomb-tests: New file.
68699         * tests/test-wcrtomb.sh: New file.
68700         * tests/test-wcrtomb.c: New file.
68702         New module 'wcrtomb'.
68703         * lib/wchar.in.h (wcrtomb): New declaration.
68704         * lib/wcrtomb.c: New file.
68705         * m4/wcrtomb.m4: New file.
68706         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
68707         HAVE_WCRTOMB.
68708         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
68709         HAVE_WCRTOMB.
68710         * modules/wcrtomb: New file.
68711         * doc/posix-functions/wcrtomb.texi: Mention the new module.
68713 2008-12-21  Bruno Haible  <bruno@clisp.org>
68715         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
68716         * modules/mbsrtowcs (Files): Likewise.
68717         * modules/wctob (Files): Likewise.
68718         * modules/c-strcase-tests (Files): Likewise.
68719         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
68720         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
68721         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
68722         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
68723         * modules/vasnprintf-posix-tests (Files): Likewise.
68725 2008-12-21  William Pursell  <bill.pursell@gmail.com>
68727         gitlog-to-changelog: pass all command-line arguments to git-log
68728         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
68729         it is sometimes convenient to filter the commits in various ways.
68730         gitlog-to-changelog only allows --since to specify a start date,
68731         but git-log itself supports many other filtering mechanisms.
68732         At the moment, I want to filter by branch name.  Rather than
68733         adding a --branch option to gitlog-to-changelog, it seems more
68734         flexible to simply pass all options directly to git-log and let
68735         git do the work.  Notice that this effectively makes --since a
68736         redundant option for gitlog-to-changelog, but removing it would
68737         require current usage to change since calls would then require
68738         an additional '--'.
68740 2008-12-21  Bruno Haible  <bruno@clisp.org>
68742         * modules/mbsnrtowcs-tests: New file.
68743         * tests/test-mbsnrtowcs1.sh: New file.
68744         * tests/test-mbsnrtowcs2.sh: New file.
68745         * tests/test-mbsnrtowcs3.sh: New file.
68746         * tests/test-mbsnrtowcs4.sh: New file.
68747         * tests/test-mbsnrtowcs.c: New file.
68749         New module 'mbsnrtowcs'.
68750         * lib/wchar.in.h (mbsnrtowcs): New declaration.
68751         * lib/mbsnrtowcs.c: New file.
68752         * lib/mbsrtowcs-state.c: New file.
68753         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
68754         (internal_state): Remove variable.
68755         * m4/mbsnrtowcs.m4: New file.
68756         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
68757         compilation units.
68758         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
68759         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
68760         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
68761         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
68762         * modules/mbsnrtowcs: New file.
68763         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
68764         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
68765         portability problem.
68767 2008-12-21  Bruno Haible  <bruno@clisp.org>
68769         Work around mbsrtowcs bug.
68770         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
68771         (gl_FUNC_MBSRTOWCS): Invoke it.
68772         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
68773         m4/locale-zh.m4.
68774         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
68776 2008-12-21  Bruno Haible  <bruno@clisp.org>
68778         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
68780 2008-12-21  Bruno Haible  <bruno@clisp.org>
68782         Update doc for AIX.
68783         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
68784         16-bit wchar_t type.
68785         * doc/posix-functions/btowc.texi: Likewise.
68786         * doc/posix-functions/fgetwc.texi: Likewise.
68787         * doc/posix-functions/fgetws.texi: Likewise.
68788         * doc/posix-functions/fputwc.texi: Likewise.
68789         * doc/posix-functions/fputws.texi: Likewise.
68790         * doc/posix-functions/fwide.texi: Likewise.
68791         * doc/posix-functions/fwprintf.texi: Likewise.
68792         * doc/posix-functions/fwscanf.texi: Likewise.
68793         * doc/posix-functions/getwchar.texi: Likewise.
68794         * doc/posix-functions/getwc.texi: Likewise.
68795         * doc/posix-functions/iswalnum.texi: Likewise.
68796         * doc/posix-functions/iswalpha.texi: Likewise.
68797         * doc/posix-functions/iswblank.texi: Likewise.
68798         * doc/posix-functions/iswcntrl.texi: Likewise.
68799         * doc/posix-functions/iswctype.texi: Likewise.
68800         * doc/posix-functions/iswdigit.texi: Likewise.
68801         * doc/posix-functions/iswgraph.texi: Likewise.
68802         * doc/posix-functions/iswlower.texi: Likewise.
68803         * doc/posix-functions/iswprint.texi: Likewise.
68804         * doc/posix-functions/iswpunct.texi: Likewise.
68805         * doc/posix-functions/iswspace.texi: Likewise.
68806         * doc/posix-functions/iswupper.texi: Likewise.
68807         * doc/posix-functions/iswxdigit.texi: Likewise.
68808         * doc/posix-functions/mbrtowc.texi: Likewise.
68809         * doc/posix-functions/mbsrtowcs.texi: Likewise.
68810         * doc/posix-functions/mbstowcs.texi: Likewise.
68811         * doc/posix-functions/mbtowc.texi: Likewise.
68812         * doc/posix-functions/putwchar.texi: Likewise.
68813         * doc/posix-functions/putwc.texi: Likewise.
68814         * doc/posix-functions/swprintf.texi: Likewise.
68815         * doc/posix-functions/tolower.texi: Likewise.
68816         * doc/posix-functions/toupper.texi: Likewise.
68817         * doc/posix-functions/towctrans.texi: Likewise.
68818         * doc/posix-functions/ungetwc.texi: Likewise.
68819         * doc/posix-functions/vswprintf.texi: Likewise.
68820         * doc/posix-functions/wcrtomb.texi: Likewise.
68821         * doc/posix-functions/wcscat.texi: Likewise.
68822         * doc/posix-functions/wcschr.texi: Likewise.
68823         * doc/posix-functions/wcscmp.texi: Likewise.
68824         * doc/posix-functions/wcscoll.texi: Likewise.
68825         * doc/posix-functions/wcscpy.texi: Likewise.
68826         * doc/posix-functions/wcscspn.texi: Likewise.
68827         * doc/posix-functions/wcsftime.texi: Likewise.
68828         * doc/posix-functions/wcslen.texi: Likewise.
68829         * doc/posix-functions/wcsncat.texi: Likewise.
68830         * doc/posix-functions/wcsncmp.texi: Likewise.
68831         * doc/posix-functions/wcsncpy.texi: Likewise.
68832         * doc/posix-functions/wcspbrk.texi: Likewise.
68833         * doc/posix-functions/wcsrchr.texi: Likewise.
68834         * doc/posix-functions/wcsrtombs.texi: Likewise.
68835         * doc/posix-functions/wcsspn.texi: Likewise.
68836         * doc/posix-functions/wcsstr.texi: Likewise.
68837         * doc/posix-functions/wcstod.texi: Likewise.
68838         * doc/posix-functions/wcstof.texi: Likewise.
68839         * doc/posix-functions/wcstoimax.texi: Likewise.
68840         * doc/posix-functions/wcstok.texi: Likewise.
68841         * doc/posix-functions/wcstold.texi: Likewise.
68842         * doc/posix-functions/wcstoll.texi: Likewise.
68843         * doc/posix-functions/wcstol.texi: Likewise.
68844         * doc/posix-functions/wcstombs.texi: Likewise.
68845         * doc/posix-functions/wcstoull.texi: Likewise.
68846         * doc/posix-functions/wcstoul.texi: Likewise.
68847         * doc/posix-functions/wcstoumax.texi: Likewise.
68848         * doc/posix-functions/wcswidth.texi: Likewise.
68849         * doc/posix-functions/wcsxfrm.texi: Likewise.
68850         * doc/posix-functions/wctob.texi: Likewise.
68851         * doc/posix-functions/wctomb.texi: Likewise.
68852         * doc/posix-functions/wctrans.texi: Likewise.
68853         * doc/posix-functions/wctype.texi: Likewise.
68854         * doc/posix-functions/wcwidth.texi: Likewise.
68855         * doc/posix-functions/wmemchr.texi: Likewise.
68856         * doc/posix-functions/wmemcmp.texi: Likewise.
68857         * doc/posix-functions/wmemcpy.texi: Likewise.
68858         * doc/posix-functions/wmemmove.texi: Likewise.
68859         * doc/posix-functions/wmemset.texi: Likewise.
68860         * doc/posix-functions/wprintf.texi: Likewise.
68861         * doc/posix-functions/wscanf.texi: Likewise.
68863 2008-12-21  Bruno Haible  <bruno@clisp.org>
68865         Update doc for HP-UX 11.11.
68866         * doc/posix-functions/btowc.texi: Clarify that the function is missing
68867         in HP-UX version 11.00, not in all versions of HP-UX 11.
68868         * doc/posix-functions/fwide.texi: Likewise.
68869         * doc/posix-functions/fwprintf.texi: Likewise.
68870         * doc/posix-functions/fwscanf.texi: Likewise.
68871         * doc/posix-functions/inet_ntop.texi: Likewise.
68872         * doc/posix-functions/inet_pton.texi: Likewise.
68873         * doc/posix-functions/mbrlen.texi: Likewise.
68874         * doc/posix-functions/mbrtowc.texi: Likewise.
68875         * doc/posix-functions/mbsinit.texi: Likewise.
68876         * doc/posix-functions/mbsrtowcs.texi: Likewise.
68877         * doc/posix-functions/swprintf.texi: Likewise.
68878         * doc/posix-functions/swscanf.texi: Likewise.
68879         * doc/posix-functions/towctrans.texi: Likewise.
68880         * doc/posix-functions/vfwprintf.texi: Likewise.
68881         * doc/posix-functions/vswprintf.texi: Likewise.
68882         * doc/posix-functions/vwprintf.texi: Likewise.
68883         * doc/posix-functions/wcrtomb.texi: Likewise.
68884         * doc/posix-functions/wcsrtombs.texi: Likewise.
68885         * doc/posix-functions/wcsstr.texi: Likewise.
68886         * doc/posix-functions/wctob.texi: Likewise.
68887         * doc/posix-functions/wctrans.texi: Likewise.
68888         * doc/posix-functions/wmemchr.texi: Likewise.
68889         * doc/posix-functions/wmemcmp.texi: Likewise.
68890         * doc/posix-functions/wmemcpy.texi: Likewise.
68891         * doc/posix-functions/wmemmove.texi: Likewise.
68892         * doc/posix-functions/wmemset.texi: Likewise.
68893         * doc/posix-functions/wprintf.texi: Likewise.
68894         * doc/posix-functions/wscanf.texi: Likewise.
68896 2008-12-21  Bruno Haible  <bruno@clisp.org>
68898         Work around a portability problem.
68899         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
68900         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
68902 2008-12-20  Bruno Haible  <bruno@clisp.org>
68904         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
68905         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
68906         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
68907         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
68908         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
68910         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
68911         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
68912         set.
68913         (GNULIB_defined_mbstate_t): New macro.
68914         (mbsinit): Redefine if REPLACE_MBSINIT is set.
68915         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
68916         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
68917         reuses the system's mbrtowc function but works around the bugs.
68918         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
68919         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
68920         macros.
68921         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
68922         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
68923         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
68924         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
68925         REPLACE_MBSINIT if mbsinit needs to be overridden.
68926         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
68927         REPLACE_MBSINIT, REPLACE_MBRTOWC.
68928         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
68929         REPLACE_MBSINIT, REPLACE_MBRTOWC.
68930         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
68931         m4/locale-zh.m4.
68932         (Depends): Add mbsinit.
68933         * modules/mbsinit (Depends): Add mbrtowc.
68934         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
68936 2008-12-20  Bruno Haible  <bruno@clisp.org>
68938         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
68939         so that there are no conversion errors on AIX.
68940         * tests/test-mbsrtowcs.c (main): LIkewise.
68942 2008-12-20  Bruno Haible  <bruno@clisp.org>
68944         Work around wctob bug on Solaris <= 9.
68945         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
68946         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
68947         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
68948         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
68949         * modules/wctob (Files): Add m4/locale-fr.m4.
68950         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
68952 2008-12-20  Bruno Haible  <bruno@clisp.org>
68954         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
68955         /dev/null.
68956         * tests/test-select-in.sh: Likewise.
68957         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
68959 2008-12-20  Bruno Haible  <bruno@clisp.org>
68961         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
68962         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
68963         Cygwin 1.5.x.
68965 2008-12-20  Bruno Haible  <bruno@clisp.org>
68967         Ensure mbstate_t is defined on HP-UX 11.11.
68968         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
68969         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
68970         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
68971         AC_USE_SYSTEM_EXTENSIONS.
68972         * modules/fnmatch (Depends-on): Add extensions.
68973         * modules/mbrlen (Depends-on): Likewise.
68974         * modules/mbrtowc (Depends-on): Likewise.
68975         * modules/mbsinit (Depends-on): Likewise.
68976         * modules/mbsrtowcs (Depends-on): Likewise.
68977         * modules/mbswidth (Depends-on): Likewise.
68978         * modules/quotearg (Depends-on): Likewise.
68979         * modules/strftime (Depends-on): Likewise.
68981 2008-12-20  Bruno Haible  <bruno@clisp.org>
68983         Ensure wctob is declared on IRIX 6.5.
68984         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
68985         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
68986         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
68987         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
68988         of HAVE_WCTOB.
68989         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
68990         HAVE_WCTOB.
68991         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
68993 2008-12-19  Bruno Haible  <bruno@clisp.org>
68995         * modules/mbsrtowcs-tests: New file.
68996         * tests/test-mbsrtowcs1.sh: New file.
68997         * tests/test-mbsrtowcs2.sh: New file.
68998         * tests/test-mbsrtowcs3.sh: New file.
68999         * tests/test-mbsrtowcs4.sh: New file.
69000         * tests/test-mbsrtowcs.c: New file.
69002         New module 'mbsrtowcs'.
69003         * lib/wchar.in.h (mbsrtowcs): New declaration.
69004         * lib/mbsrtowcs.c: New file.
69005         * m4/mbsrtowcs.m4: New file.
69006         * modules/mbsrtowcs: New file.
69007         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
69008         HAVE_MBSRTOWCS.
69009         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
69010         HAVE_MBSRTOWCS.
69011         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
69013 2008-12-19  Bruno Haible  <bruno@clisp.org>
69015         New module 'mbrlen'.
69016         * lib/wchar.in.h (mbrlen): New declaration.
69017         * lib/mbrlen.c: New file.
69018         * m4/mbrlen.m4: New file.
69019         * modules/mbrlen: New file.
69020         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
69021         HAVE_MBRLEN.
69022         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
69023         HAVE_MBRLEN.
69024         * doc/posix-functions/mbrlen.texi: Document the new module.
69026 2008-12-19  Bruno Haible  <bruno@clisp.org>
69028         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
69029         * modules/mbrtowc (Depends-on): Add verify.
69030         Suggested by Paul Eggert.
69032 2008-12-18  Bruno Haible  <bruno@clisp.org>
69034         * modules/mbsinit-tests: New file.
69035         * tests/test-mbsinit.sh: New file.
69036         * tests/test-mbsinit.c: New file.
69038 2008-12-18  Bruno Haible  <bruno@clisp.org>
69040         * modules/mbrtowc-tests: New file.
69041         * tests/test-mbrtowc1.sh: New file.
69042         * tests/test-mbrtowc2.sh: New file.
69043         * tests/test-mbrtowc3.sh: New file.
69044         * tests/test-mbrtowc4.sh: New file.
69045         * tests/test-mbrtowc.c: New file.
69047         New module 'mbrtowc'.
69048         * lib/wchar.in.h (mbstate_t): Override when the system does not have
69049         mbsinit and mbrtowc.
69050         (mbrtowc): New declaration.
69051         * lib/mbrtowc.c: New file.
69052         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
69053         * modules/mbrtowc: New file.
69054         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
69055         HAVE_MBRTOWC.
69056         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
69057         HAVE_MBRTOWC.
69058         * doc/posix-functions/mbrtowc.texi: Document the new module.
69060 2008-12-18  Bruno Haible  <bruno@clisp.org>
69062         New module 'wctob'.
69063         * lib/wchar.in.h (wctob): New declaration.
69064         * lib/wctob.c: New file.
69065         * m4/wctob.m4: New file.
69066         * modules/wctob: New file.
69067         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
69068         HAVE_WCTOB.
69069         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
69070         * doc/posix-functions/wctob.texi: Document the new module.
69072 2008-12-18  Bruno Haible  <bruno@clisp.org>
69074         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
69075         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
69077 2008-12-18  Simon Josefsson  <simon@josefsson.org>
69079         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
69080         G. Christensen" <tgc@jupiterrise.com>.
69082         * lib/flock.c: Need to include errno.h.  Reported by "Tom
69083         G. Christensen" <tgc@jupiterrise.com>.
69085         * lib/flock.c: Need to include string.h.  Reported by "Tom
69086         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
69087         <ebb9@byu.net>.
69089 2008-12-18  Bruno Haible  <bruno@clisp.org>
69091         * m4/locale-ja.m4: New file, from GNU gettext.
69093 2008-12-17  Bruno Haible  <bruno@clisp.org>
69095         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
69096         Suggested by Eric Blake.
69098 2008-12-17  Bruno Haible  <bruno@clisp.org>
69100         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
69102 2008-12-17  Bruno Haible  <bruno@clisp.org>
69104         * lib/mbsinit.c: Include verify.h. Verify an assumption.
69105         * modules/mbsinit (Depends-on): Add verify.
69106         Suggested by Paul Eggert.
69108 2008-12-17  Bruno Haible  <bruno@clisp.org>
69110         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
69111         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
69112         gl_FUNC_MBRTOWC.
69113         * m4/mbiter.m4 (gl_MBITER): LIkewise.
69114         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
69115         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
69116         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
69117         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
69118         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
69119         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
69120         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
69121         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
69122         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
69123         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
69124         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
69125         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
69126         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
69127         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
69128         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
69129         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
69130         * modules/trim (configure.ac): Likewise.
69132 2008-12-17  Bruno Haible  <bruno@clisp.org>
69134         * modules/btowc-tests: New file.
69135         * tests/test-btowc1.sh: New file.
69136         * tests/test-btowc2.sh: New file.
69137         * tests/test-btowc.c: New file.
69139         New module 'btowc'.
69140         * lib/wchar.in.h (btowc): New declaration.
69141         * lib/btowc.c: New file.
69142         * m4/btowc.m4: New file.
69143         * modules/btowc: New file.
69144         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
69145         HAVE_BTOWC.
69146         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
69147         * doc/posix-functions/btowc.texi: Document the new module.
69149 2008-12-17  Bruno Haible  <bruno@clisp.org>
69151         New module 'mbsinit'.
69152         * lib/wchar.in.h (mbsinit): New declaration.
69153         * lib/mbsinit.c: New file.
69154         * m4/mbsinit.m4: New file.
69155         * modules/mbsinit: New file.
69156         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
69157         HAVE_MBSINIT.
69158         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
69159         HAVE_MBSINIT.
69160         * doc/posix-functions/mbsinit.texi: Document the new module.
69162 2008-12-16  Bruno Haible  <bruno@clisp.org>
69164         * lib/unistd.in.h: Add comment.
69165         * tests/test-environ.c: Don't include <stdlib.h>.
69167 2008-12-16  Bruno Haible  <bruno@clisp.org>
69169         * lib/parse-duration.h (parse_duration): Document return value
69170         convention.
69171         * lib/parse-duration.c: Include specification header first. Add
69172         comments.
69173         (_): Remove macro.
69174         (parse_year_month_day, parse_hour_minute_second): Move side effects
69175         outside of strchr call.
69176         (parse_non_iso8601): Move side effects outside of isspace call.
69177         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
69178         call.
69180 2008-12-16  Bruno Haible  <bruno@clisp.org>
69182         * tests/test-parse-duration.sh: Produce no output when the test
69183         succeeds.
69185 2008-12-16  Bruno Haible  <bruno@clisp.org>
69187         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
69188         expressions.
69190 2008-12-15  Bruno Haible  <bruno@clisp.org>
69192         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
69193         * doc/glibc-functions/flistxattr.texi: Likewise.
69194         * doc/glibc-functions/fopencookie.texi: Likewise.
69195         * doc/glibc-functions/fremovexattr.texi: Likewise.
69196         * doc/glibc-functions/fsetxattr.texi: Likewise.
69197         * doc/glibc-functions/getxattr.texi: Likewise.
69198         * doc/glibc-functions/lgetxattr.texi: Likewise.
69199         * doc/glibc-functions/listxattr.texi: Likewise.
69200         * doc/glibc-functions/llistxattr.texi: Likewise.
69201         * doc/glibc-functions/lremovexattr.texi: Likewise.
69202         * doc/glibc-functions/lsetxattr.texi: Likewise.
69203         * doc/glibc-functions/removexattr.texi: Likewise.
69204         * doc/glibc-functions/setxattr.texi: Likewise.
69205         * doc/posix-functions/open_memstream.texi: Likewise.
69207 2008-12-15  Eric Blake  <ebb9@byu.net>
69209         Update doc for cygwin 1.7.
69210         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
69211         functions.
69212         * doc/posix-functions/fchmodat.texi: Likewise.
69213         * doc/posix-functions/fchownat.texi: Likewise.
69214         * doc/posix-functions/fdopendir.texi: Likewise.
69215         * doc/posix-functions/fmemopen.texi: Likewise.
69216         * doc/posix-functions/freeaddrinfo.texi: Likewise.
69217         * doc/posix-functions/fstatat.texi: Likewise.
69218         * doc/posix-functions/futimens.texi: Likewise.
69219         * doc/posix-functions/gai_strerror.texi: Likewise.
69220         * doc/posix-functions/getaddrinfo.texi: Likewise.
69221         * doc/posix-functions/getnameinfo.texi: Likewise.
69222         * doc/posix-functions/if_freenameindex.texi: Likewise.
69223         * doc/posix-functions/if_indextoname.texi: Likewise.
69224         * doc/posix-functions/if_nameindex.texi: Likewise.
69225         * doc/posix-functions/if_nametoindex.texi: Likewise.
69226         * doc/posix-functions/insque.texi: Likewise.
69227         * doc/posix-functions/linkat.texi: Likewise.
69228         * doc/posix-functions/llrint.texi: Likewise.
69229         * doc/posix-functions/llrintf.texi: Likewise.
69230         * doc/posix-functions/llrintl.texi: Likewise.
69231         * doc/posix-functions/lockf.texi: Likewise.
69232         * doc/posix-functions/lrintl.texi: Likewise.
69233         * doc/posix-functions/mkdirat.texi: Likewise.
69234         * doc/posix-functions/mkfifoat.texi: Likewise.
69235         * doc/posix-functions/mknodat.texi: Likewise.
69236         * doc/posix-functions/mq_close.texi: Likewise.
69237         * doc/posix-functions/mq_getattr.texi: Likewise.
69238         * doc/posix-functions/mq_notify.texi: Likewise.
69239         * doc/posix-functions/mq_open.texi: Likewise.
69240         * doc/posix-functions/mq_receive.texi: Likewise.
69241         * doc/posix-functions/mq_send.texi: Likewise.
69242         * doc/posix-functions/mq_setattr.texi: Likewise.
69243         * doc/posix-functions/mq_timedreceive.texi: Likewise.
69244         * doc/posix-functions/mq_timedsend.texi: Likewise.
69245         * doc/posix-functions/mq_unlink.texi: Likewise.
69246         * doc/posix-functions/open_memstream.texi: Likewise.
69247         * doc/posix-functions/openat.texi: Likewise.
69248         * doc/posix-functions/posix_fadvise.texi: Likewise.
69249         * doc/posix-functions/posix_fallocate.texi: Likewise.
69250         * doc/posix-functions/posix_madvise.texi: Likewise.
69251         * doc/posix-functions/posix_memalign.texi: Likewise.
69252         * doc/posix-functions/posix_openpt.texi: Likewise.
69253         * doc/posix-functions/readlinkat.texi: Likewise.
69254         * doc/posix-functions/remque.texi: Likewise.
69255         * doc/posix-functions/renameat.texi: Likewise.
69256         * doc/posix-functions/rintl.texi: Likewise.
69257         * doc/posix-functions/sem_unlink.texi: Likewise.
69258         * doc/posix-functions/shm_open.texi: Likewise.
69259         * doc/posix-functions/shm_unlink.texi: Likewise.
69260         * doc/posix-functions/signgam.texi: Likewise.
69261         * doc/posix-functions/sigset.texi: Likewise.
69262         * doc/posix-functions/stpcpy.texi: Likewise.
69263         * doc/posix-functions/stpncpy.texi: Likewise.
69264         * doc/posix-functions/strerror.texi: Likewise.
69265         * doc/posix-functions/strtod.texi: Likewise.
69266         * doc/posix-functions/symlinkat.texi: Likewise.
69267         * doc/posix-functions/unlinkat.texi: Likewise.
69268         * doc/posix-functions/utimensat.texi: Likewise.
69269         * doc/glibc-functions/bindresvport.texi: Likewise.
69270         * doc/glibc-functions/dn_expand.texi: Likewise.
69271         * doc/glibc-functions/exp10.texi: Likewise.
69272         * doc/glibc-functions/exp10f.texi: Likewise.
69273         * doc/glibc-functions/fgetxattr.texi: Likewise.
69274         * doc/glibc-functions/flistxattr.texi: Likewise.
69275         * doc/glibc-functions/fopencookie.texi: Likewise.
69276         * doc/glibc-functions/freeifaddrs.texi: Likewise.
69277         * doc/glibc-functions/fremovexattr.texi: Likewise.
69278         * doc/glibc-functions/fsetxattr.texi: Likewise.
69279         * doc/glibc-functions/getifaddrs.texi: Likewise.
69280         * doc/glibc-functions/getxattr.texi: Likewise.
69281         * doc/glibc-functions/lgetxattr.texi: Likewise.
69282         * doc/glibc-functions/listxattr.texi: Likewise.
69283         * doc/glibc-functions/llistxattr.texi: Likewise.
69284         * doc/glibc-functions/lremovexattr.texi: Likewise.
69285         * doc/glibc-functions/lsetxattr.texi: Likewise.
69286         * doc/glibc-functions/pow10.texi: Likewise.
69287         * doc/glibc-functions/pow10f.texi: Likewise.
69288         * doc/glibc-functions/rcmd_af.texi: Likewise.
69289         * doc/glibc-functions/removexattr.texi: Likewise.
69290         * doc/glibc-functions/res_init.texi: Likewise.
69291         * doc/glibc-functions/res_mkquery.texi: Likewise.
69292         * doc/glibc-functions/res_query.texi: Likewise.
69293         * doc/glibc-functions/res_querydomain.texi: Likewise.
69294         * doc/glibc-functions/res_send.texi: Likewise.
69295         * doc/glibc-functions/rresvport_af.texi: Likewise.
69296         * doc/glibc-functions/setxattr.texi: Likewise.
69297         * doc/glibc-functions/strcasestr.texi: Likewise.
69299 2008-12-15  Bruno Haible  <bruno@clisp.org>
69301         Fix compilation error on OSF/1 4.0.
69302         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
69303         <sys/time.h>, simply delegate to the system header.
69304         Reported by Daniel Richard G. <oss@teragram.com>.
69306 2008-12-15  Bruno Haible  <bruno@clisp.org>
69308         * doc/posix-functions/openat.texi: Mention the 'openat' module.
69309         * doc/posix-functions/fchmodat.texi: Likewise.
69310         * doc/posix-functions/fchownat.texi: Likewise.
69311         * doc/posix-functions/fdopendir.texi: Likewise.
69312         * doc/posix-functions/fstatat.texi: Likewise.
69313         * doc/posix-functions/mkdirat.texi: Likewise.
69314         * doc/posix-functions/unlinkat.texi: Likewise.
69316 2008-12-14  Bruno Haible  <bruno@clisp.org>
69318         Update doc for POSIX:2008.
69319         * doc/posix-functions/faccessat.texi: New file.
69320         * doc/posix-functions/fchmodat.texi: New file.
69321         * doc/posix-functions/fchownat.texi: New file.
69322         * doc/posix-functions/fdopendir.texi: New file.
69323         * doc/posix-functions/fstatat.texi: New file.
69324         * doc/posix-functions/futimens.texi: New file.
69325         * doc/posix-functions/linkat.texi: New file.
69326         * doc/posix-functions/mkdirat.texi: New file.
69327         * doc/posix-functions/mkfifoat.texi: New file.
69328         * doc/posix-functions/mknodat.texi: New file.
69329         * doc/posix-functions/open_wmemstream.texi: New file.
69330         * doc/posix-functions/openat.texi: New file.
69331         * doc/posix-functions/psiginfo.texi: New file.
69332         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
69333         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
69334         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
69335         * doc/posix-functions/readlinkat.texi: New file.
69336         * doc/posix-functions/renameat.texi: New file.
69337         * doc/posix-functions/strerror_l.texi: New file.
69338         * doc/posix-functions/symlinkat.texi: New file.
69339         * doc/posix-functions/unlinkat.texi: New file.
69340         * doc/posix-functions/utimensat.texi: New file.
69341         * doc/gnulib.texi (Function Substitutes): Add these subsections.
69343 2008-12-14  Bruno Haible  <bruno@clisp.org>
69345         Update doc for POSIX:2008.
69346         * doc/posix-functions/alphasort.texi: Renamed from
69347         doc/glibc-functions/alphasort.texi.
69348         * doc/posix-functions/dirfd.texi: Renamed from
69349         doc/glibc-functions/dirfd.texi.
69350         * doc/posix-functions/dprintf.texi: Renamed from
69351         doc/glibc-functions/dprintf.texi.
69352         * doc/posix-functions/duplocale.texi: Renamed from
69353         doc/glibc-functions/duplocale.texi.
69354         * doc/posix-functions/fexecve.texi: Renamed from
69355         doc/glibc-functions/fexecve.texi.
69356         * doc/posix-functions/fmemopen.texi: Renamed from
69357         doc/glibc-functions/fmemopen.texi.
69358         * doc/posix-functions/freelocale.texi: Renamed from
69359         doc/glibc-functions/freelocale.texi.
69360         * doc/posix-functions/getdate_err.texi: Renamed from
69361         doc/glibc-functions/getdate_err.texi.
69362         * doc/posix-functions/isalnum_l.texi: Renamed from
69363         doc/glibc-functions/isalnum_l.texi.
69364         * doc/posix-functions/isalpha_l.texi: Renamed from
69365         doc/glibc-functions/isalpha_l.texi.
69366         * doc/posix-functions/isblank_l.texi: Renamed from
69367         doc/glibc-functions/isblank_l.texi.
69368         * doc/posix-functions/iscntrl_l.texi: Renamed from
69369         doc/glibc-functions/iscntrl_l.texi.
69370         * doc/posix-functions/isdigit_l.texi: Renamed from
69371         doc/glibc-functions/isdigit_l.texi.
69372         * doc/posix-functions/isgraph_l.texi: Renamed from
69373         doc/glibc-functions/isgraph_l.texi.
69374         * doc/posix-functions/islower_l.texi: Renamed from
69375         doc/glibc-functions/islower_l.texi.
69376         * doc/posix-functions/isprint_l.texi: Renamed from
69377         doc/glibc-functions/isprint_l.texi.
69378         * doc/posix-functions/ispunct_l.texi: Renamed from
69379         doc/glibc-functions/ispunct_l.texi.
69380         * doc/posix-functions/isspace_l.texi: Renamed from
69381         doc/glibc-functions/isspace_l.texi.
69382         * doc/posix-functions/isupper_l.texi: Renamed from
69383         doc/glibc-functions/isupper_l.texi.
69384         * doc/posix-functions/iswalnum_l.texi: Renamed from
69385         doc/glibc-functions/iswalnum_l.texi.
69386         * doc/posix-functions/iswalpha_l.texi: Renamed from
69387         doc/glibc-functions/iswalpha_l.texi.
69388         * doc/posix-functions/iswblank_l.texi: Renamed from
69389         doc/glibc-functions/iswblank_l.texi.
69390         * doc/posix-functions/iswcntrl_l.texi: Renamed from
69391         doc/glibc-functions/iswcntrl_l.texi.
69392         * doc/posix-functions/iswctype_l.texi: Renamed from
69393         doc/glibc-functions/iswctype_l.texi.
69394         * doc/posix-functions/iswdigit_l.texi: Renamed from
69395         doc/glibc-functions/iswdigit_l.texi.
69396         * doc/posix-functions/iswgraph_l.texi: Renamed from
69397         doc/glibc-functions/iswgraph_l.texi.
69398         * doc/posix-functions/iswlower_l.texi: Renamed from
69399         doc/glibc-functions/iswlower_l.texi.
69400         * doc/posix-functions/iswprint_l.texi: Renamed from
69401         doc/glibc-functions/iswprint_l.texi.
69402         * doc/posix-functions/iswpunct_l.texi: Renamed from
69403         doc/glibc-functions/iswpunct_l.texi.
69404         * doc/posix-functions/iswspace_l.texi: Renamed from
69405         doc/glibc-functions/iswspace_l.texi.
69406         * doc/posix-functions/iswupper_l.texi: Renamed from
69407         doc/glibc-functions/iswupper_l.texi.
69408         * doc/posix-functions/iswxdigit_l.texi: Renamed from
69409         doc/glibc-functions/iswxdigit_l.texi.
69410         * doc/posix-functions/isxdigit_l.texi: Renamed from
69411         doc/glibc-functions/isxdigit_l.texi.
69412         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
69413         doc/glibc-functions/mbsnrtowcs.texi.
69414         * doc/posix-functions/mkdtemp.texi: Renamed from
69415         doc/glibc-functions/mkdtemp.texi.
69416         * doc/posix-functions/newlocale.texi: Renamed from
69417         doc/glibc-functions/newlocale.texi.
69418         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
69419         doc/glibc-functions/nl_langinfo_l.texi.
69420         * doc/posix-functions/open_memstream.texi: Renamed from
69421         doc/glibc-functions/open_memstream.texi.
69422         * doc/posix-functions/opterr.texi: Renamed from
69423         doc/glibc-functions/opterr.texi.
69424         * doc/posix-functions/optind.texi: Renamed from
69425         doc/glibc-functions/optind.texi.
69426         * doc/posix-functions/optopt.texi: Renamed from
69427         doc/glibc-functions/optopt.texi.
69428         * doc/posix-functions/psignal.texi: Renamed from
69429         doc/glibc-functions/psignal.texi.
69430         * doc/posix-functions/scandir.texi: Renamed from
69431         doc/glibc-functions/scandir.texi.
69432         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
69433         doc/glibc-functions/sched_get_priority_min.texi.
69434         * doc/posix-functions/signgam.texi: Renamed from
69435         doc/glibc-functions/signgam.texi.
69436         * doc/posix-functions/stpcpy.texi: Renamed from
69437         doc/glibc-functions/stpcpy.texi.
69438         * doc/posix-functions/stpncpy.texi: Renamed from
69439         doc/glibc-functions/stpncpy.texi.
69440         * doc/posix-functions/strcasecmp_l.texi: Renamed from
69441         doc/glibc-functions/strcasecmp_l.texi.
69442         * doc/posix-functions/strcoll_l.texi: Renamed from
69443         doc/glibc-functions/strcoll_l.texi.
69444         * doc/posix-functions/strfmon_l.texi: Renamed from
69445         doc/glibc-functions/strfmon_l.texi.
69446         * doc/posix-functions/strftime_l.texi: Renamed from
69447         doc/glibc-functions/strftime_l.texi.
69448         * doc/posix-functions/strncasecmp_l.texi: Renamed from
69449         doc/glibc-functions/strncasecmp_l.texi.
69450         * doc/posix-functions/strndup.texi: Renamed from
69451         doc/glibc-functions/strndup.texi.
69452         * doc/posix-functions/strnlen.texi: Renamed from
69453         doc/glibc-functions/strnlen.texi.
69454         * doc/posix-functions/strsignal.texi: Renamed from
69455         doc/glibc-functions/strsignal.texi.
69456         * doc/posix-functions/strxfrm_l.texi: Renamed from
69457         doc/glibc-functions/strxfrm_l.texi.
69458         * doc/posix-functions/timer_gettime.texi: Renamed from
69459         doc/glibc-functions/timer_gettime.texi.
69460         * doc/posix-functions/tolower_l.texi: Renamed from
69461         doc/glibc-functions/tolower_l.texi.
69462         * doc/posix-functions/toupper_l.texi: Renamed from
69463         doc/glibc-functions/toupper_l.texi.
69464         * doc/posix-functions/towctrans_l.texi: Renamed from
69465         doc/glibc-functions/towctrans_l.texi.
69466         * doc/posix-functions/towlower_l.texi: Renamed from
69467         doc/glibc-functions/towlower_l.texi.
69468         * doc/posix-functions/towupper_l.texi: Renamed from
69469         doc/glibc-functions/towupper_l.texi.
69470         * doc/posix-functions/uselocale.texi: Renamed from
69471         doc/glibc-functions/uselocale.texi.
69472         * doc/posix-functions/vdprintf.texi: Renamed from
69473         doc/glibc-functions/vdprintf.texi.
69474         * doc/posix-functions/wcpcpy.texi:
69475         Renamed from doc/glibc-functions/wcpcpy.texi.
69476         * doc/posix-functions/wcpncpy.texi: Renamed from
69477         doc/glibc-functions/wcpncpy.texi.
69478         * doc/posix-functions/wcscasecmp.texi: Renamed from
69479         doc/glibc-functions/wcscasecmp.texi.
69480         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
69481         doc/glibc-functions/wcscasecmp_l.texi.
69482         * doc/posix-functions/wcscoll_l.texi: Renamed from
69483         doc/glibc-functions/wcscoll_l.texi.
69484         * doc/posix-functions/wcsdup.texi: Renamed from
69485         doc/glibc-functions/wcsdup.texi.
69486         * doc/posix-functions/wcsncasecmp.texi: Renamed from
69487         doc/glibc-functions/wcsncasecmp.texi.
69488         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
69489         doc/glibc-functions/wcsncasecmp_l.texi.
69490         * doc/posix-functions/wcsnlen.texi: Renamed from
69491         doc/glibc-functions/wcsnlen.texi.
69492         * doc/posix-functions/wcsnrtombs.texi: Renamed from
69493         doc/glibc-functions/wcsnrtombs.texi.
69494         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
69495         doc/glibc-functions/wcsxfrm_l.texi.
69496         * doc/posix-functions/wctrans_l.texi: Renamed from
69497         doc/glibc-functions/wctrans_l.texi.
69498         * doc/posix-functions/wctype_l.texi: Renamed from
69499         doc/glibc-functions/wctype_l.texi.
69500         * doc/gnulib.texi (Function Substitutes): Add these subsections.
69501         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
69502         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
69503         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
69504         these subsections.
69505         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
69506         Remove sections.
69508 2008-12-14  Bruno Haible  <bruno@clisp.org>
69510         Update doc for POSIX:2008.
69511         * doc/posix-functions/*.texi: Update URL of POSIX specification.
69513 2008-12-14  Bruno Haible  <bruno@clisp.org>
69515         Update doc for POSIX:2008.
69516         * doc/pastposix-functions/bcmp.texi: Renamed from
69517         doc/posix-functions/bcmp.texi.
69518         * doc/pastposix-functions/bcopy.texi: Renamed from
69519         doc/posix-functions/bcopy.texi.
69520         * doc/pastposix-functions/bsd_signal.texi: Renamed from
69521         doc/posix-functions/bsd_signal.texi.
69522         * doc/pastposix-functions/bzero.texi: Renamed from
69523         doc/posix-functions/bzero.texi.
69524         * doc/pastposix-functions/ecvt.texi: Renamed from
69525         doc/posix-functions/ecvt.texi.
69526         * doc/pastposix-functions/fcvt.texi: Renamed from
69527         doc/posix-functions/fcvt.texi.
69528         * doc/pastposix-functions/ftime.texi: Renamed from
69529         doc/posix-functions/ftime.texi.
69530         * doc/pastposix-functions/gcvt.texi: Renamed from
69531         doc/posix-functions/gcvt.texi.
69532         * doc/pastposix-functions/getcontext.texi: Renamed from
69533         doc/posix-functions/getcontext.texi.
69534         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
69535         doc/posix-functions/gethostbyaddr.texi.
69536         * doc/pastposix-functions/gethostbyname.texi: Renamed from
69537         doc/posix-functions/gethostbyname.texi.
69538         * doc/pastposix-functions/getwd.texi: Renamed from
69539         doc/posix-functions/getwd.texi.
69540         * doc/pastposix-functions/h_errno.texi: Renamed from
69541         doc/posix-functions/h_errno.texi.
69542         * doc/pastposix-functions/index.texi: Renamed from
69543         doc/posix-functions/index.texi.
69544         * doc/pastposix-functions/makecontext.texi: Renamed from
69545         doc/posix-functions/makecontext.texi.
69546         * doc/pastposix-functions/mktemp.texi: Renamed from
69547         doc/posix-functions/mktemp.texi.
69548         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
69549         doc/posix-functions/pthread_attr_getstackaddr.texi.
69550         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
69551         doc/posix-functions/pthread_attr_setstackaddr.texi.
69552         * doc/pastposix-functions/rindex.texi: Renamed from
69553         doc/posix-functions/rindex.texi.
69554         * doc/pastposix-functions/scalb.texi: Renamed from
69555         doc/posix-functions/scalb.texi.
69556         * doc/pastposix-functions/setcontext.texi: Renamed from
69557         doc/posix-functions/setcontext.texi.
69558         * doc/pastposix-functions/swapcontext.texi: Renamed from
69559         doc/posix-functions/swapcontext.texi.
69560         * doc/pastposix-functions/ualarm.texi: Renamed from
69561         doc/posix-functions/ualarm.texi.
69562         * doc/pastposix-functions/usleep.texi: Renamed from
69563         doc/posix-functions/usleep.texi.
69564         * doc/pastposix-functions/vfork.texi: Renamed from
69565         doc/posix-functions/vfork.texi.
69566         * doc/pastposix-functions/wcswcs.texi: Renamed from
69567         doc/posix-functions/wcswcs.texi.
69568         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
69569         (Function Substitutes): Update.
69571 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69573         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
69574         m4/strerror.m4.
69576 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69577             Bruno Haible  <bruno@clisp.org>
69579         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
69581 2008-12-13  Bruno Haible  <bruno@clisp.org>
69583         * modules/strtoull (Depends-on): Remove unistd.
69585 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69587         * modules/strtoull (Depends-on): Add stdlib.
69589 2008-12-11  Simon Josefsson  <simon@josefsson.org>
69591         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
69593 2008-12-10  Jim Meyering  <meyering@redhat.com>
69595         gl_ASSERT: don't say assertions are disabled when they're not
69596         * m4/assert.m4 (gl_ASSERT): Do not make configure report
69597         "checking whether to enable assertions... no", when they are in
69598         fact enabled.  This is solely a bug in the output of configure.
69599         In spite of saying "no", NDEBUG was not defined in that case.
69600         Also, as noted by Eric Blake, leave assertions enabled upon
69601         --enable-assert=INVALID.
69603 2008-12-10  Bruno Haible  <bruno@clisp.org>
69605         Change MODULES.html to refer to POSIX:2008 where possible.
69606         * MODULES.html.sh (POSIX2008_URL): New variable.
69607         (posix_headers): Remove sys/timeb, ucontext.
69608         (posix2001_headers): New variable.
69609         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
69610         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
69611         index, makecontext, mktemp, pthread_attr_getstackaddr,
69612         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
69613         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
69614         (posix2001_functions): New variable.
69615         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
69616         otherwise.
69618 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69620         add missing include to parse-duration.c
69621         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
69622         * modules/parse-duration (Depends-on): Add xalloc.
69624         fix sed script reading maint.mk
69625         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
69626         (syntax-check-rules): Use it.
69628 2008-12-09  Bruno Haible  <bruno@clisp.org>
69630         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
69631         MacOS X 10.4/PowerPC.
69632         Reported by Simon Josefsson.
69634 2008-12-08  Jim Meyering  <meyering@redhat.com>
69636         work around mingw's lack of some S_IF definitions
69637         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
69638         Reported by Simon Josefsson.
69640 2008-12-08  Bruno Haible  <bruno@clisp.org>
69642         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
69643         applied to variables. Needed on MacOS X 10.4/PowerPC.
69644         Reported by Simon Josefsson.
69646 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
69647         and Eric Blake  <ebb9@byu.net>
69649         assert: honor --enable-assert
69650         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
69651         order to honor --enable-assert, rather than treating it as a
69652         synonym for --disable-assert.
69654 2008-12-08  Jim Meyering  <meyering@redhat.com>
69656         * lib/posixtm.c: Remove now-useless declaration of mktime.
69658         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
69660 2008-12-07  Bruno Haible  <bruno@clisp.org>
69662         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
69663         test_once): Mark functions as static.
69664         * tests/test-tls.c (test_tls): Likewise.
69666 2008-12-07  Bruno Haible  <bruno@clisp.org>
69668         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
69669         iconv_register_autodetect.
69671 2008-12-07  Jim Meyering  <meyering@redhat.com>
69673         posixtm.c: avoid a warning
69674         * lib/posixtm.c (posixtime): Don't initialize tm0.
69675         It's no longer needed to placate gcc4's -Wuninitialized,
69676         and the attempt to placate would elicit a new warning.
69678         unicodeio.c: mark unused parameters
69679         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
69680         (fallback_failure_callback): Likewise.
69682 2008-12-07  Bruno Haible  <bruno@clisp.org>
69684         * gnulib-tool (func_create_testdir): When building the tests
69685         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
69686         Reported by Simon Josefsson.
69688 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69690         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
69692 2008-12-06  Bruno Haible  <bruno@clisp.org>
69694         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
69695         Suggested by Eric Blake.
69697 2008-12-06  Bruno Haible  <bruno@clisp.org>
69699         Fix a c-stack test failure on MacOS X.
69700         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
69701         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
69702         handler for SIGBUS as well.
69703         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
69704         install a signal handler for SIGBUS as well.
69705         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
69707 2008-12-06  Bruno Haible  <bruno@clisp.org>
69709         Advocacy documentation.
69710         * doc/gnulib-intro.texi (Benefits): New section.
69711         * doc/gnulib.texi: Update.
69713 2008-12-06  Bruno Haible  <bruno@clisp.org>
69715         Document the 'manywarnings' module.
69716         * doc/manywarnings.texi: New file.
69717         * doc/gnulib.texi: Include it.
69719 2008-12-05  Eric Blake  <ebb9@byu.net>
69721         tests: silence some gcc warnings
69722         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
69723         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
69724         type mismatches.
69726 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69727             Bruno Haible  <bruno@clisp.org>
69729         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
69731 2008-11-29  Jim Meyering  <meyering@redhat.com>
69733         unicodeio.c: mark unused parameters
69734         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
69735         (fallback_failure_callback): Likewise.
69737         fts: fix a thinko
69738         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
69739         (set_stat_type): Return S_IF*-valued "type" directly.
69740         Prompted by James Youngman's spotting a related bug.
69741         Confirmed by further testing through find.
69743         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
69744         * lib/fts.c (D_TYPE): Define.
69745         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
69746         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
69747         (s_ifmt_shift_bits): New function.
69748         (set_stat_type): New function.
69749         (fts_build): When not calling fts_stat, call set_stat_type
69750         to propagate dirent.d_type info to fts_read caller.
69751         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
69752         fts_statp->st_mode type information may be valid.
69754 2008-11-28  Simon Josefsson  <simon@josefsson.org>
69756         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
69757         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
69758         <sds@gnu.org>.
69760 2008-11-20  Bruno Haible  <bruno@clisp.org>
69762         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
69763         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
69764         INCLUDE_NEXT.
69765         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
69766         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
69767         * modules/math (Makefile.am): Substitute
69768         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
69769         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
69771 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
69772             Bruno Haible  <bruno@clisp.org>
69774         * lib/stdint.in.h: Define all type macros so that their expansion is
69775         a single typedef'ed token. Fixes a compilation failure in Boost which
69776         does "using ::int8_t;".
69778 2008-11-18  Simon Josefsson  <simon@josefsson.org>
69780         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
69781         gl_MANYWARN_ALL_GCC.
69782         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
69783         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
69784         * modules/manywarnings: New file.
69785         * MODULES.html.sh: Mention manywarnings module.
69787 2008-11-18  Bruno Haible  <bruno@clisp.org>
69789         * doc/gnulib-tool.texi (Unit tests): New section.
69791 2008-11-18  Simon Josefsson  <simon@josefsson.org>
69793         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
69794         paths like 'lib/po/foo.po'.
69796 2008-11-17  Simon Josefsson  <simon@josefsson.org>
69798         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
69799         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
69801 2008-11-17  Simon Josefsson  <simon@josefsson.org>
69803         * m4/warnings.m4: Use CPPFLAGS to really check whether the
69804         parameter works.
69806 2008-11-17  Simon Josefsson  <simon@josefsson.org>
69808         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
69810 2008-11-17  Bruce Korb  <bkorb@gnu.org>
69812         * modules/parse-duration-tests: New file.
69813         * tests/test-parse-duration.sh: New file.
69814         * tests/test-parse-duration.c: New file.
69816         New module 'parse-duration'.
69817         * lib/parse-duration.h: New file.
69818         * lib/parse-duration.c: New file.
69819         * modules/parse-duration: New file.
69821 2008-11-17  Bruno Haible  <bruno@clisp.org>
69823         * tests/test-select-out.sh: Comment out the first pipe test.
69824         Reported by Simon Josefsson.
69826 2008-11-17  Bruno Haible  <bruno@clisp.org>
69828         * modules/getaddrinfo (Depends-on): Add servent, hostent.
69829         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
69830         gl_HOSTENT.
69832 2008-11-17  Bruno Haible  <bruno@clisp.org>
69834         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
69835         -lnetwork and -lnet. Needed for Haiku and BeOS.
69837 2008-11-16  Bruno Haible  <bruno@clisp.org>
69839         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
69841 2008-11-16  Bruno Haible  <bruno@clisp.org>
69843         Avoid test failure on Haiku.
69844         * tests/test-fsync.c: Include <errno.h>.
69845         (main): Don't require that fsync (0) fails.
69847 2008-11-15  Bruno Haible  <bruno@clisp.org>
69849         New module 'hostent'.
69850         * modules/hostent: New file.
69851         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
69853 2008-11-15  Bruno Haible  <bruno@clisp.org>
69855         New module 'servent'.
69856         * modules/servent: New file.
69857         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
69859 2008-11-15  Bruno Haible  <bruno@clisp.org>
69861         Avoid generating same test program with two different rules.
69862         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
69863         test-frexp to test-frexp-nolibm.
69864         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
69865         test-frexpl to test-frexpl-nolibm.
69867 2008-11-15  Bruno Haible  <bruno@clisp.org>
69869         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
69870         $(FREXPL_LIBM).
69872 2008-11-15  Bruno Haible  <bruno@clisp.org>
69874         * lib/netdb.in.h: Activate the definitions also when the system's
69875         <netdb.h> has 'struct addrinfo'.
69876         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
69877         EAI_OVERFLOW or AI_NUMERICSERV.
69878         * doc/posix-headers/netdb.texi: Document the problem.
69880 2008-11-15  Bruno Haible  <bruno@clisp.org>
69882         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
69884         Make the 'sched' module work on platforms where <sched.h> exists but
69885         is incomplete (such as Haiku).
69886         * lib/sched.in.h; Include the system's <sched.h> if it exists.
69887         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
69888         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
69889         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
69890         HAVE_STRUCT_SCHED_PARAM.
69891         * modules/sched (Depends-on): Add include_next.
69892         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
69893         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
69894         * doc/posix-headers/sched.texi: Document the issue.
69896 2008-11-13  Jim Meyering  <meyering@redhat.com>
69898         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
69899         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
69900         test would fail due to the difference in the Report bugs to ...
69901         line.  The expected address is empty, "<>", while the actual
69902         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
69904 2008-11-12  Bruno Haible  <bruno@clisp.org>
69906         lstat: don't compile lstat.c on systems lacking lstat
69907         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
69908         which don't have lstat; this is handled by lib/sys_stat.in.h already.
69909         Reported by Daniel P. Berrange via Jim Meyering.
69911 2008-11-12  Jim Meyering  <meyering@redhat.com>
69913         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
69915 2008-11-12  Simon Josefsson  <simon@josefsson.org>
69917         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
69918         instead.
69920 2008-11-12  Bruno Haible  <bruno@clisp.org>
69922         * lib/unicodeio.c: Include unistr.h.
69923         (utf8_wctomb): Remove function.
69924         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
69926 2008-11-12  Simon Josefsson  <simon@josefsson.org>
69928         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
69929         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
69930         <bruno@clisp.org>.
69931         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
69933 2008-11-12  Simon Josefsson  <simon@josefsson.org>
69935         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
69936         * doc/gnulib.texi: Add section for warnings.
69938 2008-11-11  Bruno Haible  <bruno@clisp.org>
69940         * lib/sockets.h: Add a comment.
69942 2008-11-11  Karl Berry  <karl@gnu.org>
69944         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
69946 2008-11-11  Eric Blake  <ebb9@byu.net>
69948         fdl.texi: avoid git symlinks
69949         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
69951 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
69953         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
69955 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
69957         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
69958         (gl_WARN_ADD): Substitute $2 if literal.
69960 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
69962         * m4/warning.m4: Remove.
69964 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
69966         * m4/warnings.m4: Almost complete rewrite. :-)
69968 2008-11-10  Simon Josefsson  <simon@josefsson.org>
69970         * modules/warnings: New module.
69971         * m4/warnings.m4: New file.
69972         * MODULES.html.sh: Mention warnings module.
69973         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
69974         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69976 2008-11-10  Eric Blake  <ebb9@byu.net>
69978         fdl.texi: make a symlink to the latest version
69979         * doc/standards.texi: Revert today's earlier change.
69980         * doc/fdl-1.2.texi: Rename from old fdl.texi...
69981         * doc/fdl.texi: ...and replace this with a symlink to the newer
69982         fdl-1.3.texi.
69984 2008-11-10  Bruno Haible  <bruno@clisp.org>
69986         * tests/test-select-fd.c (main): Accept the result file name as fourth
69987         argument.
69988         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
69989         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
69991 2008-11-10  Bruno Haible  <bruno@clisp.org>
69993         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
69994         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
69995         as autoconf-substituted macros.
69996         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
69997         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
69998         gl_NETDB_H_DEFAULTS. Set these variables.
69999         * modules/netdb (Makefile.am): Substitute these variables.
70001 2008-11-10  Eric Blake  <ebb9@byu.net>
70003         standards.texi: include correct file for FDL 1.3
70004         * doc/standards.texi (GNU Free Documentation License): Change
70005         include file to pull in FDL 1.3, not 1.2.
70007         fdl.texi: revert accidental change to license
70008         * doc/fdl.texi: This is FDL 1.2, not 1.3.
70010 2008-11-10  Bruno Haible  <bruno@clisp.org>
70012         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
70013         cross-compiling guesses also when the native compile gives no result.
70015 2008-11-10  Bruno Haible  <bruno@clisp.org>
70017         * lib/spawni.c (__spawni): Force variable into the stack.
70019 2008-11-10  Bruno Haible  <bruno@clisp.org>
70021         Add support for Haiku.
70022         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
70023         glibc and BeOS, but also on Haiku.
70024         * lib/fpurge.c (fpurge): Likewise.
70025         * lib/freadable.c (freadable): Likewise.
70026         * lib/freadahead.c (freadahead): Likewise.
70027         * lib/freading.c (freading): Likewise.
70028         * lib/freadptr.c (freadptr): Likewise.
70029         * lib/freadseek.c (freadptrinc): Likewise.
70030         * lib/fseeko.c (rpl_fseeko): Likewise.
70031         * lib/fseterr.c (fseterr): Likewise.
70032         * lib/fwritable.c (fwritable): Likewise.
70033         * lib/fwriting.c (fwriting): Likewise.
70034         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
70036 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
70038         * lib/config.charset: Treat Haiku like BeOS.
70040 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
70042         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
70043         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
70045 2008-11-08  Bruno Haible  <bruno@clisp.org>
70047         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
70048         AC_CACHE_CHECK.
70050 2008-11-08  Bruno Haible  <bruno@clisp.org>
70052         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
70054 2008-11-08  Bruno Haible  <bruno@clisp.org>
70056         * tests/test-select-fd.c: New file.
70057         * tests/test-select-in.sh: New file.
70058         * tests/test-select-out.sh: New file.
70059         * tests/test-select-stdin.c: New file.
70060         * modules/select-tests (Files): Add the new files.
70061         (Depends-on): Add gettimeofday.
70062         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
70063         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
70064         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
70066 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
70067             Bruno Haible  <bruno@clisp.org>
70069         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
70071 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
70073         * build-aux/pmccabe2html: Added support for C++ source files.
70075 2008-11-05  Ben Pfaff  <blp@gnu.org>
70077         Fix lib/close.c build on Windows.
70078         * modules/close (Files): Add lib/w32sock.h.
70080 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
70082         Accept Bison's NEWS format.
70083         * build-aux/announce-gen (print_news_deltas): Tweak
70084         $re_prefix.
70086 2008-11-04  Bruno Haible  <bruno@clisp.org>
70088         * modules/random_r (Maintainer): Add glibc.
70090 2008-11-04  Simon Josefsson  <simon@josefsson.org>
70092         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
70093         by karl@freefriends.org (Karl Berry).
70094         * doc/alloca.texi: Likewise.
70095         * doc/c-ctype.texi: Likewise.
70096         * doc/c-strcase.texi: Likewise.
70097         * doc/c-strcaseeq.texi: Likewise.
70098         * doc/c-strcasestr.texi: Likewise.
70099         * doc/c-strstr.texi: Likewise.
70100         * doc/c-strtod.texi: Likewise.
70101         * doc/c-strtold.texi: Likewise.
70102         * doc/ctime.texi: Likewise.
70103         * doc/error.texi: Likewise.
70104         * doc/fdl.texi: Likewise.
70105         * doc/gcd.texi: Likewise.
70106         * doc/getdate.texi: Likewise.
70107         * doc/gnulib-intro.texi: Likewise.
70108         * doc/gnulib-tool.texi: Likewise.
70109         * doc/gnulib.texi: Likewise.
70110         * doc/inet_ntoa.texi: Likewise.
70111         * doc/maintain.texi: Likewise.
70112         * doc/make-stds.texi: Likewise.
70113         * doc/quote.texi: Likewise.
70114         * doc/regexprops-generic.texi: Likewise.
70115         * doc/standards.texi: Likewise.
70116         * doc/verify.texi: Likewise.
70117         * doc/visibility.texi: Likewise.
70118         * doc/gnulib.texi (GNU Free Documentation License): Include
70119         fdl-1.3.texi instead of fdl.texi.
70121 2008-11-04  Simon Josefsson  <simon@josefsson.org>
70123         * doc/fdl-1.3.texi: New file, from
70124         <http://www.gnu.org/licenses/fdl-1.3.texi>.
70125         * modules/fdl-1.3: Add.
70126         * MODULES.html.sh: Add fdl-1.3.
70128 2008-11-03  Bruno Haible  <bruno@clisp.org>
70130         Make determination of absolute name of header file work with AIX xlc.
70131         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
70132         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
70133         preprocessing.
70134         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
70135         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
70137 2008-11-03  Simon Josefsson  <simon@josefsson.org>
70139         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
70140         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
70141         <ludo@gnu.org>.
70143 2008-11-02  Bruno Haible  <bruno@clisp.org>
70145         Mark 'strpbrk' obsolete.
70146         * modules/strpbrk (Status, Notice): New sections.
70147         * modules/strtok_r (Depends-on): Add strpbrk.
70149 2008-11-02  Bruno Haible  <bruno@clisp.org>
70151         Mark 'strdup' obsolete.
70152         * modules/strdup (Status, Notice): New sections.
70153         * modules/findprog (Depends-on): Add strdup.
70154         * modules/getaddrinfo (Depends-on): Likewise.
70155         * modules/localename (Depends-on): Likewise.
70156         * modules/relocatable-lib (Depends-on): Likewise.
70157         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
70158         * modules/relocatable-prog (Depends-on): Likewise.
70159         * modules/trim (Depends-on): Likewise.
70160         * modules/unictype/gen-ctype (Depends-on): Likewise.
70161         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
70163 2008-11-02  Bruno Haible  <bruno@clisp.org>
70165         Mark 'strcspn' obsolete.
70166         * modules/strcspn (Status, Notice): New sections.
70168 2008-11-02  Bruno Haible  <bruno@clisp.org>
70170         Mark 'rmdir' obsolete.
70171         * modules/rmdir (Status, Notice): New sections.
70172         * modules/clean-temp (Depends-on): Add rmdir.
70173         * modules/openat (Depends-on): Likewise.
70175 2008-11-02  Bruno Haible  <bruno@clisp.org>
70177         Mark 'raise' obsolete.
70178         * modules/raise (Status, Notice): New sections.
70179         (Include): Specify <signal.h>.
70180         * modules/stdio (Depends-on): Add raise.
70181         * modules/write (Depends-on): Likewise.
70183 2008-11-02  Bruno Haible  <bruno@clisp.org>
70185         Mark 'memset' obsolete.
70186         * modules/memset (Status, Notice): New sections.
70188 2008-11-02  Bruno Haible  <bruno@clisp.org>
70190         Mark 'memmove' obsolete.
70191         * modules/memmove (Status, Notice): New sections.
70192         * modules/argp (Depends-on): Add memmove.
70193         * modules/argz (Depends-on): Likewise.
70194         * modules/canonicalize (Depends-on): Likewise.
70195         * modules/canonicalize-lgpl (Depends-on): Likewise.
70196         * modules/fts (Depends-on): Likewise.
70197         * modules/getcwd (Depends-on): Likewise.
70198         * modules/human (Depends-on): Likewise.
70199         * modules/regex (Depends-on): Likewise.
70200         * modules/striconveh (Depends-on): Likewise.
70201         * modules/trim (Depends-on): Likewise.
70202         * modules/unistr/u8-move (Depends-on): Likewise.
70203         * modules/unistr/u16-move (Depends-on): Likewise.
70204         * modules/unistr/u32-move (Depends-on): Likewise.
70206 2008-11-02  Bruno Haible  <bruno@clisp.org>
70208         Mark 'memcpy' obsolete.
70209         * modules/memcpy (Status, Notice): New sections.
70211 2008-11-02  Bruno Haible  <bruno@clisp.org>
70213         Mark 'memcmp' obsolete.
70214         * modules/memcmp (Status, Notice): New sections.
70215         * modules/argmatch (Depends-on): Add memchr.
70216         * modules/backupfile (Depends-on): Likewise.
70217         * modules/c-strcasestr (Depends-on): Likewise.
70218         * modules/crypto/des (Depends-on): Likewise.
70219         * modules/csharpcomp (Depends-on): Likewise.
70220         * modules/fnmatch (Depends-on): Likewise.
70221         * modules/git-merge-changelog (Depends-on): Likewise.
70222         * modules/isnand (Depends-on): Likewise.
70223         * modules/isnand-nolibm (Depends-on): Likewise.
70224         * modules/isnanf (Depends-on): Likewise.
70225         * modules/isnanf-nolibm (Depends-on): Likewise.
70226         * modules/isnanl (Depends-on): Likewise.
70227         * modules/isnanl-nolibm (Depends-on): Likewise.
70228         * modules/mbchar (Depends-on): Likewise.
70229         * modules/memcoll (Depends-on): Likewise.
70230         * modules/quotearg (Depends-on): Likewise.
70231         * modules/regex (Depends-on): Likewise.
70232         * modules/relocatable-prog (Depends-on): Likewise.
70233         * modules/same (Depends-on): Likewise.
70234         * modules/signbit (Depends-on): Likewise.
70235         * modules/strcasestr-simple (Depends-on): Likewise.
70236         * modules/unictype/gen-ctype (Depends-on): Likewise.
70237         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
70238         * modules/uniname/uniname (Depends-on): Likewise.
70239         * modules/unistr/u8-cmp (Depends-on): Likewise.
70241 2008-11-02  Bruno Haible  <bruno@clisp.org>
70243         Mark 'memchr' obsolete.
70244         * modules/memchr (Status, Notice): New sections.
70245         * modules/argp (Depends-on): Add memchr.
70246         * modules/base64 (Depends-on): Likewise.
70247         * modules/c-strcasestr (Depends-on): Likewise.
70248         * modules/chdir-long (Depends-on): Likewise.
70249         * modules/fnmatch (Depends-on): Likewise.
70250         * modules/getsubopt (Depends-on): Likewise.
70251         * modules/git-merge-changelog (Depends-on): Likewise.
70252         * modules/glob (Depends-on): Likewise.
70253         * modules/strcasestr-simple (Depends-on): Likewise.
70254         * modules/strnlen (Depends-on): Likewise.
70256 2008-11-02  Bruno Haible  <bruno@clisp.org>
70258         Mark 'atexit' obsolete.
70259         * modules/atexit (Status, Notice): New sections.
70260         * modules/chdir-long (Depends-on): Add atexit.
70261         * modules/wait-process (Depends-on): Likewise.
70263 2008-11-02  Bruno Haible  <bruno@clisp.org>
70265         * gnulib-tool: New option --with-obsolete.
70266         (func_usage): Document it.
70267         (func_modules_transitive_closure): Drop obsolete dependencies if
70268         incobsolete is not true.
70269         (func_import): Read and save the incobsolete variable to the cache.
70271 2008-11-02  Bruno Haible  <bruno@clisp.org>
70273         * modules/TEMPLATE-EXTENDED: New field 'Status'.
70274         * gnulib-tool: New option --extract-status.
70275         (func_usage): Document it.
70276         (sed_extract_prog): Recognize it.
70277         (func_get_status): New function.
70279 2008-10-30  Simon Josefsson  <simon@josefsson.org>
70281         * modules/sockets (License): Change from LGPL to LGPLv2+.
70283 2008-10-28  Simon Josefsson  <simon@josefsson.org>
70285         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
70287 2008-10-28  Simon Josefsson  <simon@josefsson.org>
70289         * MODULES.html.sh (Support for systems lacking POSIX:2001):
70290         Mention times and sys_times.
70291         * modules/sys_times, modules/sys_times-tests: New modules.
70292         * modules/times, modules/times-tests: Likewise
70293         * m4/sys_times_h.m4: New file.
70294         * lib/sys_times.in.h: Likewise
70295         * lib/times.c: Likewise.
70296         * tests/test-sys_times.c: Likewise.
70297         * tests/test-times.c: Likewise.
70298         * doc/posix-headers/sys_times.texi: Update.
70299         * doc/posix-functions/times.texi: Update.
70301 2008-10-28  Jim Meyering  <meyering@redhat.com>
70303         * modules/tempname (Depends-on): Add lstat.
70305         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
70307 2008-10-28  Simon Josefsson  <simon@josefsson.org>
70309         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
70310         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
70311         using idiom used elsewhere in gnulib.
70313 2008-10-27  Jim Meyering  <meyering@redhat.com>
70315         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
70317 2008-10-27  Simon Josefsson  <simon@josefsson.org>
70319         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
70320         TESTS_ENVIRONMENT, for shell scripts that needs to call built
70321         programs.
70322         * tests/test-argp-2.sh: Use $EXEEXT when needed.
70324 2008-10-27  Simon Josefsson  <simon@josefsson.org>
70326         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
70328 2008-10-27  Bruno Haible  <bruno@clisp.org>
70330         * tests/test-lstat.c: Include <stdio.h>.
70332 2008-10-27  Simon Josefsson  <simon@josefsson.org>
70334         * modules/lstat-tests: New module.
70335         * tests/test-lstat.c: New file.
70337 2008-10-26  Jim Meyering  <meyering@redhat.com>
70339         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
70341 2008-10-26  Simon Josefsson  <simon@josefsson.org>
70342             Bruno Haible  <bruno@clisp.org>
70344         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
70345         * modules/configmake (Include): Add a note that the include must come
70346         after all system headers.
70347         * lib/javaversion.c: Include configmake.h after all other includes.
70349 2008-10-26  Bruno Haible  <bruno@clisp.org>
70351         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
70352         HAVE_STRUCT_RANDOM_DATA to 1.
70353         (gl_STDLIB_H): Simplify.
70355 2008-10-26  Simon Josefsson  <simon@josefsson.org>
70357         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
70358         substitute HAVE_STRUCT_RANDOM_DATA.
70359         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
70360         random_data.
70361         * modules/stdlib (Makefile.am): Substitute
70362         HAVE_STRUCT_RANDOM_DATA.
70364 2008-10-26  Simon Josefsson  <simon@josefsson.org>
70366         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
70367         * doc/gnulib-intro.texi (Copyright): Likewise.
70369 2008-10-26  Simon Josefsson  <simon@josefsson.org>
70371         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
70372         findings.
70374 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
70375             Bruno Haible  <bruno@clisp.org>
70377         * lib/unistd.in.h: Include <winsock2.h>.
70378         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
70379         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
70380         Provide dummy declarations.
70381         (gethostname): Override.
70382         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
70383         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
70384         gl_PREREQ_SYS_H_WINSOCK2.
70385         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
70386         * doc/posix-functions/gethostname.texi: More details.
70388 2008-10-25  Bruno Haible  <bruno@clisp.org>
70390         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
70391         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
70392         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
70394         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
70395         here ...
70396         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
70397         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
70398         gl_UNISTD_H_DEFAULTS.
70400 2008-10-25  Eric Blake  <ebb9@byu.net>
70402         signbit: avoid spurious compiler failure
70403         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
70404         declarations inside function.
70406 2008-10-24  Simon Josefsson  <simon@josefsson.org>
70407             Bruno Haible  <bruno@clisp.org>
70409         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
70410         * modules/random_r (Depends-on): Add stdint.
70412 2008-10-24  Bruno Haible  <bruno@clisp.org>
70414         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
70415         Eggert.
70416         * modules/strerror (License): Likewise.
70418 2008-10-24  Jim Meyering  <meyering@redhat.com>
70420         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
70421         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
70423 2008-10-24  Eric Blake  <ebb9@byu.net>
70425         getgroups: fix compilation when getgroups is available
70426         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
70427         but with <config.h> override of getgroups disabled.
70429 2008-10-24  Simon Josefsson  <simon@josefsson.org>
70431         * doc/gnulib.texi (Header files): Add note about C++ problems.
70432         Explained by Bruno Haible <bruno@clisp.org>.
70434 2008-10-23  Bruno Haible  <bruno@clisp.org>
70436         Define a dummy SA_NODEFER macro on Interix.
70437         * lib/signal.in.h (SA_NODEFER): Define fallback.
70438         Reported by Aleksey Cheusov <cheusov@tut.by> via
70439         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
70441 2008-10-23  Bruno Haible  <bruno@clisp.org>
70443         * modules/freadahead (License): Change to LGPLv2+.
70444         Suggested by Simon Josefsson.
70446 2008-10-23  Jim Meyering  <meyering@redhat.com>
70448         random_r: new module
70449         * modules/random_r: New file.
70450         * m4/random_r.m4: New file.
70451         * lib/random_r.c: New file, from glibc.
70452         * modules/random_r-tests: New file.
70453         * tests/test-random_r.c: New file.
70454         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
70455          Declare.
70456         (RAND_MAX): Define.
70457         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
70458         * modules/stdlib: Substitute them, too.
70459         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
70460         * doc/glibc-functions/initstate_r.texi: Mention the new module.
70461         * doc/glibc-functions/random_r.texi: Likewise.
70462         * doc/glibc-functions/setstate_r.texi: Likewise.
70463         * doc/glibc-functions/srandom_r.texi: Likewise.
70464         * config/srclist.txt: Mention it.
70466 2008-10-23  David Lutterkort  <lutter@redhat.com>
70468         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
70469         link requirement
70471 2008-10-23  Jim Meyering  <meyering@redhat.com>
70473         selinux-h: mark parameters of stub functions as intentionally unused
70474         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
70475         * lib/se-context.in.h: Likewise.
70477 2008-10-22  Simon Josefsson  <simon@josefsson.org>
70479         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
70481 2008-10-22  Simon Josefsson  <simon@josefsson.org>
70483         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
70485 2008-10-22  Eric Blake  <ebb9@byu.net>
70487         glthread/thread: avoid compiler warning
70488         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
70489         Add unreachable abort to silence compiler.
70491 2008-10-22  Eric Blake  <ebb9@byu.net>
70493         netdb: also supply struct addrinfo for cygwin 1.5.x
70494         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
70495         older cygwin.
70496         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
70497         cygwin.
70498         * doc/posix-headers/netdb.texi (netdb.h): Document this.
70500 2008-10-22  Bruno Haible  <bruno@clisp.org>
70502         * users.txt: Update entry about pspp.
70504 2008-10-21  Bruno Haible  <bruno@clisp.org>
70506         Simplification.
70507         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
70508         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
70510         Simplification.
70511         * lib/ioctl.c (ioctl): Don't undefine.
70512         * lib/socket.c (socket): Don't undefine.
70514         Remove unused module indicator macros.
70515         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
70516         GNULIB_$1 as a C macro.
70518         * doc/posix-functions/close.texi: Undo last change.
70519         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
70520         Windows platforms.
70522 2008-10-21  Bruno Haible  <bruno@clisp.org>
70524         Add gethostname() declaration to <unistd.h>.
70525         * lib/unistd.in.h (gethostname): New declaration.
70526         * lib/gethostname.c: Include <unistd.h>.
70527         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
70528         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
70529         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
70530         and HAVE_GETHOSTNAME.
70531         * modules/gethostname (Depends-on): Add unistd.
70532         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70533         (Include): Specify <unistd.h>.
70534         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
70535         HAVE_GETHOSTNAME.
70536         * tests/test-gethostname.c: Include <unistd.h> first.
70538 2008-10-21  Bruno Haible  <bruno@clisp.org>
70540         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
70541         * modules/select-tests (Depends-on): Likewise.
70542         Reported by Simon Josefsson.
70544 2008-10-21  Simon Josefsson  <simon@josefsson.org>
70546         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
70547         * lib/accept.c: New file, based on winsock.c.
70548         * lib/bind.c: New file, based on winsock.c.
70549         * lib/connect.c: New file, based on winsock.c.
70550         * lib/getpeername.c: New file, based on winsock.c.
70551         * lib/getsockname.c: New file, based on winsock.c.
70552         * lib/getsockopt.c: New file, based on winsock.c.
70553         * lib/ioctl.c: New file, based on winsock.c.
70554         * lib/listen.c: New file, based on winsock.c.
70555         * lib/recv.c: New file, based on winsock.c.
70556         * lib/recvfrom.c: New file, based on winsock.c.
70557         * lib/send.c: New file, based on winsock.c.
70558         * lib/sendto.c: New file, based on winsock.c.
70559         * lib/setsockopt.c: New file, based on winsock.c.
70560         * lib/shutdown.c: New file, based on winsock.c.
70561         * lib/socket.c: New file, based on winsock.c.
70562         * lib/w32sock.h: New file, based on winsock.c.
70563         * lib/winsock.c: Remove file.
70564         * modules/accept: Likewise.
70565         * modules/bind: Likewise.
70566         * modules/connect: Likewise.
70567         * modules/getpeername: Likewise.
70568         * modules/getsockname: Likewise.
70569         * modules/getsockopt: Likewise.
70570         * modules/ioctl: Likewise.
70571         * modules/listen: Likewise.
70572         * modules/recv: Likewise.
70573         * modules/recvfrom: Likewise.
70574         * modules/send: Likewise.
70575         * modules/sendto: Likewise.
70576         * modules/setsockopt: Likewise.
70577         * modules/shutdown: Likewise.
70578         * modules/socket: Use socket.c instead of winsock.c.
70579         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
70580         * doc/posix-functions/accept.texi: Doc fix.
70581         * doc/posix-functions/bind.texi: Doc fix.
70582         * doc/posix-functions/close.texi: Doc fix.
70583         * doc/posix-functions/connect.texi: Doc fix.
70584         * doc/posix-functions/getpeername.texi: Doc fix.
70585         * doc/posix-functions/getsockname.texi: Doc fix.
70586         * doc/posix-functions/getsockopt.texi: Doc fix.
70587         * doc/posix-functions/ioctl.texi: Doc fix.
70588         * doc/posix-functions/listen.texi: Doc fix.
70589         * doc/posix-functions/recv.texi: Doc fix.
70590         * doc/posix-functions/recvfrom.texi: Doc fix.
70591         * doc/posix-functions/send.texi: Doc fix.
70592         * doc/posix-functions/sendto.texi: Doc fix.
70593         * doc/posix-functions/setsockopt.texi: Doc fix.
70594         * doc/posix-functions/shutdown.texi: Doc fix.
70595         * doc/posix-functions/socket.texi: Doc fix.
70597 2008-10-20  Bruno Haible  <bruno@clisp.org>
70599         Take into account the role of SIGABRT_COMPAT on Windows 2008.
70600         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
70601         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
70602         as an alias for SIGABRT.
70603         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
70604         (sigaction): Map it to SIGABRT.
70605         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
70607 2008-10-20  Bruno Haible  <bruno@clisp.org>
70609         * lib/fts.c: Don't include lstat.h.
70610         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
70612         Move the lstat() declaration to <sys/stat.h>.
70613         * lib/lstat.h: Remove file.
70614         * lib/sys_stat.in.h: Add special invocation convention.
70615         (lstat): New declaration.
70616         * lib/lstat.c (orig_lstat): New function.
70617         (rpl_lstat): Use orig_lstat instead of lstat.
70618         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
70619         AC_C_INLINE. Set REPLACE_LSTAT.
70620         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
70621         and REPLACE_LSTAT.
70622         * modules/lstat (Files): Remove lib/lstat.h.
70623         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
70624         (Include): Specify <sys/stat.h> instead of lstat.h.
70625         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
70626         REPLACE_LSTAT.
70627         * NEWS: Mention the change.
70629 2008-10-20  Bruno Haible  <bruno@clisp.org>
70631         * modules/posix_spawn-tests: New file.
70632         * tests/test-posix_spawn3.c: New file.
70634 2008-10-20  Bruno Haible  <bruno@clisp.org>
70636         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
70637         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
70638         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
70639         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
70640         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
70642 2008-10-20  Bruno Haible  <bruno@clisp.org>
70644         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
70645         of posix_spawn on AIX 5.3.
70647 2008-10-20  Bruno Haible  <bruno@clisp.org>
70649         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
70651 2008-10-20  Bruno Haible  <bruno@clisp.org>
70653         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
70654         of AC_LANG_PROGRAM.
70656 2008-10-20  Simon Josefsson  <simon@josefsson.org>
70658         * lib/netdb.in.h: Don't define GNU specific constants until they
70659         are supported or needed.  Reported by Bruno Haible
70660         <bruno@clisp.org>.
70662 2008-10-20  Simon Josefsson  <simon@josefsson.org>
70664         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
70666 2008-10-20  Simon Josefsson  <simon@josefsson.org>
70668         * lib/getaddrinfo.h: Remove file.
70669         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
70670         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
70671         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
70672         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
70673         * modules/netdb: Substitute GNULIB_GETADDRINFO.
70674         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
70675         * tests/test-getaddrinfo.c: Likewise.
70676         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
70677         * NEWS: Mention change.
70679 2008-10-19  Bruno Haible  <bruno@clisp.org>
70681         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
70683 2008-10-19  Bruno Haible  <bruno@clisp.org>
70685         * lib/wait-process.c: Include simply <sys/wait.h>.
70686         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
70687         WIFSTOPPED): Remove fallback definitions.
70688         * modules/wait-process (Depends-on): Add sys_wait.
70690         New module 'sys_wait'.
70691         * modules/sys_wait: New file.
70692         * lib/sys_wait.in.h: New file, partially copied from
70693         lib/wait-process.c.
70694         * m4/sys_wait_h.m4: New file.
70695         * doc/posix-headers/sys_wait.texi: Mention the new module.
70697 2008-10-19  Bruno Haible  <bruno@clisp.org>
70699         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
70701 2008-10-19  Bruno Haible  <bruno@clisp.org>
70703         Assume that waitpid() fills an 'int' status, not a 'union wait'.
70704         * lib/wait-process.c (WAIT_T): Remove type.
70705         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
70706         (wait_subprocess): Update.
70708 2008-10-19  Bruno Haible  <bruno@clisp.org>
70710         New module 'atoll'.
70711         * modules/atoll: New file.
70712         * lib/stdlib.in.h (atoll): New declaration.
70713         * lib/atoll.c: New file, from glibc with modifications.
70714         * m4/atoll.m4: New file.
70715         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
70716         HAVE_ATOLL.
70717         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
70718         * doc/posix-functions/atoll.texi: Mention the new module.
70720 2008-10-19  Bruno Haible  <bruno@clisp.org>
70722         Add strtoull() declaration to <stdlib.h>.
70723         * lib/stdlib.in.h (strtoull): New declaration.
70724         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
70725         Set HAVE_STRTOULL.
70726         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
70727         HAVE_STRTOULL.
70728         * modules/strtoull (Depends-on): Add stdlib.
70729         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
70730         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
70731         HAVE_STRTOULL.
70733 2008-10-19  Bruno Haible  <bruno@clisp.org>
70735         Add strtoll() declaration to <stdlib.h>.
70736         * lib/stdlib.in.h (strtoll): New declaration.
70737         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
70738         Set HAVE_STRTOLL.
70739         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
70740         HAVE_STRTOLL.
70741         * modules/strtoll (Depends-on): Add stdlib.
70742         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
70743         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
70745 2008-10-19  Bruno Haible  <bruno@clisp.org>
70747         * modules/bcopy (Depends-on): Add strings.
70748         (Include): Specify <strings.h>.
70750 2008-10-19  Bruno Haible  <bruno@clisp.org>
70752         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
70754 2008-10-19  Bruno Haible  <bruno@clisp.org>
70756         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
70757         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
70758         mingw.
70760 2008-10-19  Bruno Haible  <bruno@clisp.org>
70762         * lib/atanl.c: Don't include isnanl.h.
70763         * lib/cosl.c: Likewise.
70764         * lib/ldexpl.c: Likewise.
70765         * lib/logl.c: Likewise.
70766         * lib/sinl.c: Likewise.
70767         * lib/sqrtl.c: Likewise.
70768         * lib/tanl.c: Likewise.
70770         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
70771         * lib/isnanf.h: Remove file.
70772         * lib/isnand.h: Remove file.
70773         * lib/isnanl.h: Remove file.
70774         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
70775         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
70776         macros.
70777         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
70778         HAVE_ISNANF, don't define it as a C macro.
70779         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
70780         HAVE_ISNAND, don't define it as a C macro.
70781         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
70782         HAVE_ISNANL, don't define it as a C macro.
70783         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
70784         HAVE_ISNAN[FDL].
70785         * modules/isnanf (Files): Remove lib/isnanf.h.
70786         (Depends-on): Add math.
70787         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
70788         (Include): Specify <math.h> instead of isnanf.h.
70789         * modules/isnand (Files): Remove lib/isnand.h.
70790         (Depends-on): Add math.
70791         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
70792         (Include): Specify <math.h> instead of isnand.h.
70793         * modules/isnanl (Files): Remove lib/isnanl.h.
70794         (Depends-on): Add math.
70795         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
70796         (Include): Specify <math.h> instead of isnanl.h.
70797         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
70798         HAVE_ISNAN[FDL].
70799         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
70800         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
70801         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
70802         * NEWS: Mention the change.
70804 2008-10-18  Bruno Haible  <bruno@clisp.org>
70806         Add getusershell(), setusershell(), endusershell() declarations to
70807         <unistd.h>.
70808         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
70809         declarations.
70810         * lib/getusershell.c: Include unistd.h.
70811         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
70812         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
70813         HAVE_GETUSERSHELL.
70814         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
70815         and HAVE_GETUSERSHELL.
70816         * modules/getusershell (Depends-on): Add unistd, extensions.
70817         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70818         (Include): Specify <unistd.h>.
70819         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
70820         HAVE_GETUSERSHELL.
70822 2008-10-18  Bruno Haible  <bruno@clisp.org>
70824         Add a getloadavg() declaration to <stdlib.h>.
70825         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
70826         getloadavg declaration.
70827         (getloadavg): New declaration.
70828         * lib/getloadavg.c: Include <stdlib.h> first.
70829         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
70830         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
70831         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
70832         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
70833         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
70834         * modules/getloadavg (Depends-on): Add stdlib, extensions.
70835         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
70836         (Include): Specify <stdlib.h>.
70837         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
70838         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
70840 2008-10-18  Bruno Haible  <bruno@clisp.org>
70842         * lib/dirchownmod.c: Don't include lchmod.h.
70844         Move the lchmod() declaration to <sys/stat.h>.
70845         * lib/lchmod.h: Remove file.
70846         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
70847         (lchmod): New declaration, moved here from lib/lchown.h.
70848         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
70849         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
70850         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
70851         and HAVE_LCHMOD.
70852         * modules/lchmod (Files): Remove lib/lchmod.h.
70853         (Depends-on): Add sys_stat, extensions.
70854         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
70855         (Include): Specify <sys/stat.h> instead of lchmod.h.
70856         * modules/sys_stat (Depends-on): Add link-warning.
70857         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
70858         definition of GL_LINK_WARNING.
70859         * NEWS: Mention the change.
70861 2008-10-18  Bruno Haible  <bruno@clisp.org>
70863         * lib/fchdir.c: Don't include dirfd.h.
70864         * lib/fts.c: Likewise.
70865         * lib/getcwd.c: Likewise.
70866         * lib/glob.c: Likewise.
70868         Move the dirfd() declaration to <dirent.h>.
70869         * lib/dirfd.h: Remove file.
70870         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
70871         (dirfd): New declaration.
70872         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
70873         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
70874         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
70875         HAVE_DECL_DIRFD.
70876         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
70877         HAVE_DECL_DIRFD.
70878         * modules/dirfd (Files): Remove lib/dirfd.h.
70879         (Depends-on): Add dirent, extensions.
70880         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
70881         (Include): Specify <dirent.h> instead of dirfd.h.
70882         * modules/dirent (Depends-on): Add link-warning.
70883         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
70884         definition of GL_LINK_WARNING.
70885         * NEWS: Mention the change.
70887 2008-10-18  Bruno Haible  <bruno@clisp.org>
70889         Move the euidaccess() declaration to <unistd.h>.
70890         * lib/euidaccess.h: Remove file.
70891         * lib/unistd.in.h (euidaccess): New declaration.
70892         * lib/euidaccess.c: Don't include euidaccess.h.
70893         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
70894         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
70895         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
70896         and HAVE_EUIDACCESS.
70897         * modules/euidaccess (Files): Remove lib/euidaccess.h.
70898         (Depends-on): Add unistd.
70899         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70900         (Include): Specify <unistd.h> instead of euidaccess.h.
70901         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
70902         HAVE_EUIDACCESS.
70903         * NEWS: Mention the change.
70905 2008-10-18  Bruno Haible  <bruno@clisp.org>
70907         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
70909         Move the getdomainname() declaration to <unistd.h>.
70910         * lib/getdomainname.h: Remove file.
70911         * lib/unistd.in.h (getdomainname): New declaration.
70912         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
70913         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
70914         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
70915         HAVE_GETDOMAINNAME.
70916         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
70917         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
70918         * modules/getdomainname (Files): Remove lib/getdomainname.h.
70919         (Depends-on): Add unistd, extensions.
70920         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70921         (Includes): Specify <unistd.h> instead of getdomainname.h.
70922         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
70923         HAVE_GETDOMAINNAME.
70924         * NEWS: Mention the change.
70926 2008-10-18  Bruno Haible  <bruno@clisp.org>
70928         * modules/dirent: New file.
70929         * m4/dirent_h.m4: New file.
70930         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
70931         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
70932         * modules/fchdir (Files): Remove lib/dirent.in.h.
70933         (Depends-on): Add dirent.
70934         (Makefile.am): Move rules to modules/dirent.
70935         * doc/posix-headers/dirent.texi: Mention the new module.
70937 2008-10-18  Bruno Haible  <bruno@clisp.org>
70939         Avoid -Wunused-parameter warnings in public gnulib header files.
70940         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
70941         macro.
70942         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
70944 2008-10-18  Bruno Haible  <bruno@clisp.org>
70946         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
70947         * doc/glibc-functions/error.texi: Mention the module 'error'.
70948         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
70949         * doc/glibc-functions/getdomainname.texi: Mention the module
70950         'getdomainname'.
70951         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
70952         * doc/glibc-functions/getpagesize.texi: Mention the module
70953         'getpagesize'.
70954         * doc/glibc-functions/getusershell.texi: Mention the module
70955         'getusershell'.
70956         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
70957         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
70958         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
70959         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
70960         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
70961         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
70962         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
70963         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
70964         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
70965         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
70966         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
70967         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
70968         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
70969         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
70971 2008-10-17  Bruno Haible  <bruno@clisp.org>
70973         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
70974         HP-UX and IRIX, use -0.0L.
70975         * tests/test-ceill.c (minus_zero): Likewise.
70976         * tests/test-floorl.c (minus_zero): Likewise.
70977         * tests/test-frexpl.c (minus_zero): Likewise.
70978         * tests/test-isnan.c (minus_zerol): Likewise.
70979         * tests/test-isnanl.h (minus_zero): Likewise.
70980         * tests/test-ldexpl.c (minus_zero): Likewise.
70981         * tests/test-roundl.c (minus_zero): Likewise.
70982         * tests/test-signbit.c (minus_zerol): Likewise.
70983         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
70984         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
70985         * tests/test-truncl.c (minus_zero): Likewise.
70986         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
70987         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
70988         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
70989         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
70991 2008-10-17  Bruno Haible  <bruno@clisp.org>
70993         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
70994         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
70995         that it gets activated only for gcc >= 3.0.
70996         * lib/dirent.in.h: Likewise.
70997         * lib/errno.in.h: Likewise.
70998         * lib/fcntl.in.h: Likewise.
70999         * lib/float.in.h: Likewise.
71000         * lib/iconv.in.h: Likewise.
71001         * lib/inttypes.in.h: Likewise.
71002         * lib/locale.in.h: Likewise.
71003         * lib/math.in.h: Likewise.
71004         * lib/netdb.in.h: Likewise.
71005         * lib/netinet_in.in.h: Likewise.
71006         * lib/search.in.h: Likewise.
71007         * lib/signal.in.h: Likewise.
71008         * lib/spawn.in.h: Likewise.
71009         * lib/stdarg.in.h: Likewise.
71010         * lib/stdint.in.h: Likewise.
71011         * lib/stdio.in.h: Likewise.
71012         * lib/stdlib.in.h: Likewise.
71013         * lib/string.in.h: Likewise.
71014         * lib/strings.in.h: Likewise.
71015         * lib/sys_file.in.h: Likewise.
71016         * lib/sys_ioctl.in.h: Likewise.
71017         * lib/sys_select.in.h: Likewise.
71018         * lib/sys_socket.in.h: Likewise.
71019         * lib/sys_stat.in.h: Likewise.
71020         * lib/sys_time.in.h: Likewise.
71021         * lib/sysexits.in.h: Likewise.
71022         * lib/time.in.h: Likewise.
71023         * lib/unistd.in.h: Likewise.
71024         * lib/wchar.in.h: Likewise.
71025         * lib/wctype.in.h: Likewise.
71026         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71028 2008-10-17  Jim Meyering  <meyering@redhat.com>
71030         ignore-value: don't depend on inline module
71031         * modules/ignore-value (Depends-on): Remove 'inline'.
71032         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
71033         Suggestion from Bruno Haible.
71035 2008-10-17  Bruno Haible  <bruno@clisp.org>
71037         New implementation of condition variables for Win32.
71038         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
71039         (gl_linked_waitqueue_t): New type.
71040         (gl_cond_t): Use it.
71041         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
71042         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
71043         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
71044         (glthread_cond_init_func, glthread_cond_wait_func,
71045         glthread_cond_timedwait_func, glthread_cond_signal_func,
71046         glthread_cond_broadcast_func, glthread_cond_destroy_func):
71047         Reimplemented on the basis of gl_linked_waitqueue_t.
71048         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
71049         gl_waitqueue_t.
71050         (gl_rwlock_t): Update.
71051         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
71053 2008-10-17  Simon Josefsson  <simon@josefsson.org>
71055         * modules/recvfrom (Depends-on): Add dependency on getpeername.
71056         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
71058 2008-10-17  Jim Meyering  <meyering@redhat.com>
71060         ignore-value: new module
71061         * modules/ignore-value: New file.
71062         * lib/ignore-value.h: New file.
71063         * MODULES.html.sh (Compiler warning management): New section,
71064         just for this module.  More to come.
71066 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
71068         open-safer.c: avoid 'signed and unsigned in conditional...' warning
71069         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
71070         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
71072 2008-10-16  Jim Meyering  <meyering@redhat.com>
71074         openat-die.c: avoid 'no previous prototype' warning
71075         * lib/openat-die.c: Include "openat.h".
71076         Reported by Reuben Thomas <rrt@sc3d.org>.
71078 2008-10-16  Simon Josefsson  <simon@josefsson.org>
71080         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
71081         * lib/netdb.in.h: Fix typo.
71082         Reported by Bruno Haible  <bruno@clisp.org>
71084         * lib/netdb.in.h: Include sys/socket.h for platforms without
71085         netdb.h, to get structures like hostent on MinGW.
71086         * modules/netdb (Depends-on): Add sys_socket.
71088 2008-10-15  Simon Josefsson  <simon@josefsson.org>
71090         * modules/netdb, modules/netdb-tests: New file.
71091         * m4/netdb_h.m4: New file.
71092         * lib/netdb.in.h: Add, currently just an empty file pending
71093         definitions.
71094         * tests/test-netdb.c: New file.
71095         * doc/posix-headers/netdb.texi: Mention that we replace it if
71096         needed.
71097         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71098         netdb.
71100 2008-10-15  Simon Josefsson  <simon@josefsson.org>
71102         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
71103         with code.
71105 2008-10-13  Bruno Haible  <bruno@clisp.org>
71107         * lib/glthread/cond.c (glthread_cond_wait_func,
71108         glthread_cond_timedwait_func): Add a comment.
71110 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71112         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
71113         * tests/test-select.c: Likewise,
71115 2008-10-13  Bruno Haible  <bruno@clisp.org>
71117         * lib/glthread/cond.c (glthread_cond_wait_func,
71118         glthread_cond_timedwait_func): Fix variable name.
71119         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
71121 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
71123         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
71124         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
71125         struct sockaddr.sa_len.
71126         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
71128 2008-10-13  Simon Josefsson  <simon@josefsson.org>
71130         * build-aux/pmccabe2html: Add css and css_url parameters.
71132 2008-10-12  Bruno Haible  <bruno@clisp.org>
71134         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
71135         calling aclx_get.
71136         Reported by Rainer Tammer <tammer@tammer.net>.
71138 2008-10-12  Bruno Haible  <bruno@clisp.org>
71140         Use msvcrt aware primitives for creation/termination of Win32 threads.
71141         * lib/glthread/thread.c: Include <process.h>.
71142         (glthread_create_func): Use _beginthreadex instead of CreateThread.
71143         (wrapper_func): Update signature.
71144         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
71146 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71147             Bruno Haible  <bruno@clisp.org>
71149         Provide a Win32 implementation of the 'cond' module.
71150         * lib/glthread/cond.h [USE_WIN32]: New implementation.
71151         * lib/glthread/cond.c (glthread_cond_init_func,
71152         glthread_cond_wait_func, glthread_cond_timedwait_func,
71153         glthread_cond_signal_func, glthread_cond_broadcast_func,
71154         glthread_cond_destroy_func) [USE_WIN32]: New functions.
71155         * modules/cond (Dependencies): Add gettimeofday.
71157 2008-10-11  Bruno Haible  <bruno@clisp.org>
71159         Make sleep work on older versions of mingw.
71160         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
71161         only whether it exists.
71162         * doc/posix-functions/sleep.texi: Mention the problem with older
71163         versions of mingw.
71165 2008-10-11  Bruno Haible  <bruno@clisp.org>
71167         New module 'shutdown'.
71168         * modules/shutdown: New file.
71169         * lib/sys_socket.in.h (shutdown): New declaration.
71170         * lib/winsock.c (shutdown): New function.
71171         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
71172         GNULIB_SHUTDOWN.
71173         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
71174         * doc/posix-functions/shutdown.texi: Document the new module.
71176 2008-10-11  Jim Meyering  <meyering@redhat.com>
71178         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
71180 2008-10-11  Bruno Haible  <bruno@clisp.org>
71182         New module 'fclose'.
71183         * modules/fclose: New file.
71184         * lib/stdio.in.h (fclose): New declaration.
71185         * lib/fclose.c: New file.
71186         * m4/fclose.m4: New file.
71187         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
71188         REPLACE_FCLOSE.
71189         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
71190         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
71191         REPLACE_FCLOSE.
71192         * modules/close (Depends-on): fclose.
71193         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
71195 2008-10-11  Bruno Haible  <bruno@clisp.org>
71197         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
71198         set errno and don't call _close.
71200 2008-10-10  Bruno Haible  <bruno@clisp.org>
71202         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
71203         ACL, not afterwards. Fixes test failure on Cygwin.
71205 2008-10-09  Ben Pfaff  <blp@gnu.org>
71207         * build-aux/announce-gen: Fix gnulib version related part of usage
71208         message.  Die with a useful error message if no tarballs are
71209         found.
71211 2008-10-10  Jim Meyering  <meyering@redhat.com>
71213         bootstrap: use git's --depth=N option only if it's supported
71214         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
71215         recognize the --depth option.  Reported by Pádraig Brady.
71217 2008-10-09  Bruno Haible  <bruno@clisp.org>
71219         New module 'ioctl'.
71220         * modules/ioctl: New file.
71221         * lib/sys_socket.in.h (ioctl): Remove declaration.
71222         * lib/winsock.c: Include <sys/ioctl.h>.
71223         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
71224         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
71225         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
71226         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
71227         * doc/posix-functions/ioctl.texi: Mention the new module.
71229 2008-10-09  Bruno Haible  <bruno@clisp.org>
71231         New module 'sys_ioctl'.
71232         * lib/sys_ioctl.in.h: New file.
71233         * m4/sys_ioctl_h.m4: New file.
71234         * modules/sys_ioctl: New file.
71235         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
71237 2008-10-09  Bruno Haible  <bruno@clisp.org>
71239         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
71240         * lib/winsock.c: Include <stdarg.h>.
71241         (rpl_ioctl): Change to second argument 'int' and then varargs.
71243 2008-10-09  Bruno Haible  <bruno@clisp.org>
71245         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
71246         when the sys_socket module is present and the system has <winsock2.h>.
71248 2008-10-09  Bruno Haible  <bruno@clisp.org>
71250         * doc/posix-functions/close.texi: Mention module 'close' instead of
71251         module 'sys_socket'.
71253 2008-10-09  Bruno Haible  <bruno@clisp.org>
71255         * doc/glibc-headers/sys_ioctl.texi: New file.
71256         * doc/gnulib.texi: Include it.
71258 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
71259             Bruno Haible  <bruno@clisp.org>
71261         Combine the two replacements of 'close'.
71262         * lib/sys_socket.in.h (close): Define to a reminder to include
71263         <unistd.h>.
71264         (_gl_close_fd_maybe_socket): New declaration.
71265         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
71266         * lib/winsock.c (close): Remove undefinition.
71267         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
71268         needed for the gnulib module 'close'.
71269         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
71270         define to an error symbol or to a warning, if suitable.
71271         * lib/close.c: Include <sys/socket.h>.
71272         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
71273         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
71274         UNISTD_H_HAVE_WINSOCK2_H.
71275         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
71276         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
71277         UNISTD_H_HAVE_WINSOCK2_H.
71278         * modules/sys_socket (Files): Add m4/unistd_h.m4.
71279         (configure.ac): Set a module indicator.
71280         (Makefile.am): Substitute GNULIB_CLOSE.
71281         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
71282         * modules/poll-tests (Depends-on): Add close.
71283         * modules/select-tests (Depends-on): Likewise.
71285 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
71286             Bruno Haible  <bruno@clisp.org>
71288         New module 'close'.
71289         * modules/close: New file.
71290         * lib/unistd.in.h (close): Move declaration out of the
71291         FCHDIR_REPLACEMENT scope.
71292         (_gl_unregister_fd): New declaration.
71293         * lib/close.c: New file.
71294         * lib/fchdir.c (rpl_close): Remove function.
71295         * m4/close.m4: New file.
71296         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
71297         close.
71298         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
71299         REPLACE_CLOSE.
71300         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
71301         REPLACE_CLOSE.
71302         * modules/fchdir (Depends-on): Add close.
71304 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
71305             Bruno Haible  <bruno@clisp.org>
71307         * lib/fcntl.in.h (open): Simplify conditionals.
71308         (_gl_register_fd): New declaration.
71309         * lib/fchdir.c (rpl_open): Remove function.
71310         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
71311         also.
71312         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
71313         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
71314         open.
71316 2008-10-09  Jim Meyering  <meyering@redhat.com>
71318         GNUmakefile: use the more name-space-friendly "_version"
71319         * top/GNUmakefile (_dummy): Update.
71320         (_version): Rename from "version".
71322 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
71323             Bruno Haible  <bruno@clisp.org>
71325         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
71326         rpl_close.
71327         (_gl_register_fd): New function, extracted from rpl_open.
71328         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
71329         (rpl_open, rpl_opendir): Use _gl_register_fd.
71331 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
71333         Fix organization of 'open' replacement.
71334         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
71335         (gl_FUNC_OPEN): Use it.
71336         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
71338 2008-10-08  Bruno Haible  <bruno@clisp.org>
71340         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
71342 2008-10-08  Simon Josefsson  <simon@josefsson.org>
71344         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
71345         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
71346         listen).
71348 2008-10-08  Eric Blake  <ebb9@byu.net>
71350         GNUmakefile: add 'make version' target
71351         * top/GNUmakefile (_curr-ver): Split version update rules...
71352         (version): ...into a target.
71354 2008-10-07  Bruno Haible  <bruno@clisp.org>
71356         Use a more portable replacement expression for -0.0L.
71357         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
71358         instead of -0.0L. Fix m4 quotation.
71360         * tests/test-signbit.c: Include <float.h>.
71361         (minus_zero): New variable.
71362         (test_signbitl): Use minus_zero instead of -zero.
71363         * modules/signbit-tests (Depends-on): Add float.
71365         * tests/test-ceill.c: Include <float.h>.
71366         (zero): Remove variable.
71367         (minus_zero): New variable.
71368         (main): Use minus_zero instead of -zero.
71369         * modules/ceill-tests (Depends-on): Add float.
71371         * tests/test-floorl.c: Include <float.h>.
71372         (zero): Remove variable.
71373         (minus_zero): New variable.
71374         (main): Use minus_zero instead of -zero.
71375         * modules/floorl-tests (Depends-on): Add float.
71377         * tests/test-roundl.c: Include <float.h>.
71378         (zero): Remove variable.
71379         (minus_zero): New variable.
71380         (main): Use minus_zero instead of -zero.
71381         * modules/roundl-tests (Depends-on): Add float.
71383         * tests/test-truncl.c: Include <float.h>.
71384         (zero): Remove variable.
71385         (minus_zero): New variable.
71386         (main): Use minus_zero instead of -zero.
71387         * modules/truncl-tests (Depends-on): Add float.
71389         * tests/test-frexpl.c (zero): Remove variable.
71390         (minus_zero): New variable.
71391         (main): Use minus_zero instead of -zero.
71392         * modules/frexpl-tests (Depends-on): Add float.
71394         * tests/test-isnan.c (zerol): Remove variable.
71395         (minus_zerol): New variable.
71396         (test_long_double): Use minus_zerol instead of -zerol.
71397         * modules/isnan-tests (Depends-on): Add float.
71399         * tests/test-isnanl.h (zero): Remove variable.
71400         (minus_zero): New variable.
71401         (main): Use minus_zero instead of -zero.
71402         * modules/isnanl-nolibm-tests (Depends-on): Add float.
71403         * modules/isnanl-tests (Depends-on): Add float.
71405         * tests/test-ldexpl.c (zero): Remove variable.
71406         (minus_zero): New variable.
71407         (main): Use minus_zero instead of -zero.
71408         * modules/ldexpl-tests (Depends-on): Add float.
71410         * tests/test-snprintf-posix.h (zerol): Remove variable.
71411         (minus_zerol): New variable.
71412         (test_function): Use minus_zerol instead of -zerol.
71413         * modules/snprintf-posix-tests (Depends-on): Add float.
71414         * modules/vsnprintf-posix-tests (Depends-on): Add float.
71416         * tests/test-sprintf-posix.h (zerol): Remove variable.
71417         (minus_zerol): New variable.
71418         (test_function): Use minus_zerol instead of -zerol.
71419         * modules/sprintf-posix-tests (Depends-on): Add float.
71420         * modules/vsprintf-posix-tests (Depends-on): Add float.
71422         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
71423         (minus_zerol): New variable.
71424         (test_function): Use minus_zerol instead of -zerol.
71425         * modules/vasnprintf-posix-tests (Depends-on): Add float.
71427         * tests/test-vasprintf-posix.c (zerol): Remove variable.
71428         (minus_zerol): New variable.
71429         (test_function): Use minus_zerol instead of -zerol.
71430         * modules/vasprintf-posix-tests (Depends-on): Add float.
71432 2008-10-07  Simon Josefsson  <simon@josefsson.org>
71434         * MODULES.html.sh (Support for building documentation): Mention
71435         pmccabe2html.  Sort entries.
71437         Add pmccabe2html module, from gnupdf.
71438         * build-aux/pmccabe.css: New file.
71439         * build-aux/pmccabe2html: New file.
71440         * m4/pmccabe2html.m4: New file.
71441         * modules/pmccabe2html: New file.
71443 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
71445         flock: new module
71446         * MODULES.html.sh: Add to list of modules.
71447         * lib/flock.c: flock implementation for Windows and Unix systems
71448         which have fcntl.
71449         * doc/glibc-functions/flock.texi: Update documentation.
71450         * lib/sys_file.in.h: <sys/file.h> header file.
71451         * m4/flock.m4: M4 macros.
71452         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
71453         * modules/flock: flock module.
71454         * modules/flock-tests: flock tests module.
71455         * modules/sys_file: sys/file.h module.
71456         * tests/test-flock.c: test suite for flock.
71458 2008-10-06  Jim Meyering  <meyering@redhat.com>
71460         bootstrap: check for LT_INIT more portably still ;-)
71461         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
71462         Spotted by Bruno Haible.
71464 2008-10-06  Eric Blake  <ebb9@byu.net>
71466         test-signbit: avoid tripping Irix cc bug on -0.0L
71467         * tests/test-signbit.c (minus_zerol): Delete, and replace with
71468         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
71469         entire testsuite consistent and avoids an Irix 6.2 bug.
71471 2008-10-05  Bruno Haible  <bruno@clisp.org>
71472             Jim Meyering  <jim@meyering.net>
71474         Add an option for ignoring EPIPE during close_stdout.
71475         * lib/closeout.h: Include <stdbool.h>.
71476         (close_stdout_set_ignore_EPIPE): New declaration.
71477         * lib/closeout.c: Include <stdbool.h>.
71478         (ignore_EPIPE): New variable.
71479         (close_stdout_set_ignore_EPIPE): New function.
71480         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
71481         * lib/close-stream.c (close_stream): Mention the possible EPIPE
71482         failure.
71483         * modules/closeout (Depends-on): Add stdbool.
71485 2008-10-05  Bruno Haible  <bruno@clisp.org>
71487         * modules/accept: New file.
71488         * modules/bind: New file.
71489         * modules/connect: New file.
71490         * modules/getpeername: New file.
71491         * modules/getsockname: New file.
71492         * modules/getsockopt: New file.
71493         * modules/listen: New file.
71494         * modules/recv: New file.
71495         * modules/recvfrom: New file.
71496         * modules/send: New file.
71497         * modules/sendto: New file.
71498         * modules/setsockopt: New file.
71499         * modules/socket: New file.
71500         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
71501         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
71502         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
71503         the particular module is requested. Add a link warning when the
71504         particular module is not requested.
71505         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
71506         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
71507         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
71508         the particular module is requested.
71509         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
71510         gl_SYS_SOCKET_H_DEFAULTS): New macros.
71511         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
71512         * modules/sys_socket (Depends-on): Add link-warning.
71513         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
71514         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
71515         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
71516         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
71517         GL_LINK_WARNING.
71518         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
71519         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
71520         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
71521         * doc/posix-functions/getpeername.texi: Mention the new module
71522         'getpeername'.
71523         * doc/posix-functions/getsockname.texi: Mention the new module
71524         'getsockname'.
71525         * doc/posix-functions/getsockopt.texi: Mention the new module
71526         'getsockopt'.
71527         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
71528         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
71529         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
71530         * doc/posix-functions/send.texi: Mention the new module 'send'.
71531         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
71532         * doc/posix-functions/setsockopt.texi: Mention the new module
71533         'setsockopt'.
71534         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
71535         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
71536         listen, connect, accept.
71537         * modules/select-tests (Depends-on): Likewise.
71539 2008-10-05  Bruno Haible  <bruno@clisp.org>
71541         * lib/winsock.c (strerror): Remove unused #undef.
71542         (rpl_close): Remove unused local variable.
71544         * modules/sys_socket (Depends-on); Add errno.
71546 2008-10-05  Bruno Haible  <bruno@clisp.org>
71548         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
71549         (select): Add a link warning when the 'select' module is not used.
71550         * modules/sys_select (Depends-on): Add link-warning.
71551         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
71552         Suggested by Paolo Bonzini.
71554 2008-10-05  Jim Meyering  <meyering@redhat.com>
71556         bootstrap: check for LT_INIT more portably
71557         * build-aux/bootstrap: Avoid using grep -E, since it's not
71558         portable enough.  Suggestion from Bruno Haible.
71560 2008-10-05  Bruno Haible  <bruno@clisp.org>
71562         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
71563         as being fixed by gnulib.
71565 2008-10-05  Bruno Haible  <bruno@clisp.org>
71567         * modules/select-tests: New file, mostly copied from
71568         modules/sys_select-tests.
71569         * tests/test-select.c: New file, mostly copied from
71570         tests/test-sys_select.c.
71571         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
71572         * modules/sys_select-tests (Depends-on): Remove all dependencies.
71573         (Makefile.am): Remove test_sys_select_LDADD.
71575         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
71576         to an undefined symbol, for an error message.
71577         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
71578         (gl_SYS_SELECT_H_DEFAULTS): New macro.
71579         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
71580         winsock-select.c here.
71581         * modules/sys_select (Files): Remove lib/winsock-select.c.
71582         (Depends-on): Remove alloca.
71583         (Makefile.am): Substitute GNULIB_SELECT.
71584         * modules/select: New file.
71585         * doc/posix-functions/select.texi: Update.
71587 2008-10-05  Bruno Haible  <bruno@clisp.org>
71589         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
71590         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
71591         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
71592         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
71593         getdtablesize.
71594         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
71595         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
71597 2008-10-05  Bruno Haible  <bruno@clisp.org>
71599         * modules/getdtablesize-tests: New file.
71600         * tests/test-getdtablesize.c: New file.
71602         New module 'getdtablesize'.
71603         * lib/unistd.in.h (getdtablesize): New declaration.
71604         * lib/getdtablesize.c: New file.
71605         * m4/getdtablesize.m4: New file.
71606         * modules/getdtablesize: New file.
71607         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
71608         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
71609         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
71610         HAVE_GETDTABLESIZE.
71611         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
71613 2008-10-05  Bruno Haible  <bruno@clisp.org>
71615         * modules/sched (Makefile.am): Fix typo.
71616         Reported by Simon Josefsson.
71618 2008-10-05  Jim Meyering  <meyering@redhat.com>
71620         bootstrap: check for LT_INIT, too
71621         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
71622         are deprecated.  Suggestion from Ralf Wildenhues.
71624 2008-10-05  Bruno Haible  <bruno@clisp.org>
71626         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
71627         overriding them by ours.
71628         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
71630 2008-10-05  Jim Meyering  <meyering@redhat.com>
71632         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
71633         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
71634         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
71636 2008-10-04  Bruno Haible  <bruno@clisp.org>
71638         * modules/dup2 (License): Change to LGPLv2+.
71639         * modules/sleep (License): Likewise.
71640         * modules/perror (License): Likewise.
71641         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
71642         Blake.
71643         * modules/signal (License): Likewise.
71644         * modules/sigprocmask (License): Likewise.
71645         * modules/raise (License): Change to LGPLv2+, with approval by Jim
71646         Meyering.
71648 2008-10-04  Bruno Haible  <bruno@clisp.org>
71650         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
71651         Reported by Rainer Tammer <tammer@tammer.net>.
71653 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
71654             Bruno Haible  <bruno@clisp.org>
71656         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
71657         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
71658         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
71660 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
71662         filevercmp: new module
71663         * lib/filevercmp.h: New function filevercmp comparing version strings.
71664         * lib/filevercmp.c: Implementation of filevercmp function.
71665         * modules/filevercmp: Module metadata.
71666         * tests/test-filevercmp.c: Unit test for new module.
71667         * modules/filevercmp-tests: Unit test metadata.
71668         * MODULES.html.sh: Add filevercmp module.
71670 2008-10-03  Bruno Haible  <bruno@clisp.org>
71672         * lib/c-ctype.h: Add comment.
71673         Reported by Jim Meyering.
71675 2008-10-02  Bruno Haible  <bruno@clisp.org>
71677         * modules/posix_spawn-internal (Depends-on): Add 'open'.
71679 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
71681         * build-aux/bootstrap: Allow renaming bootstrap, and change the
71682         name of bootstrap.conf accordingly.
71684 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
71686         * build-aux/bootstrap: Install git-merge-changelog configuration
71687         items into .gitconfig if needed.
71689 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
71691         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
71692         git repository, and initialize/update it accordingly.
71694 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
71696         * modules/fsync-tests: New file.
71697         * tests/test-fsync.c: New file.
71699         New module 'fsync'.
71700         * lib/fsync.c: New file.
71701         * m4/fsync.m4: New file.
71702         * modules/fsync: New file.
71703         * lib/unistd.in.h (fsync): New declaration.
71704         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
71705         GNULIB_FSYNC and HAVE_FSYNC.
71706         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
71707         * MODULES.html.sh (posix_functions): Add fsync.
71708         * doc/posix-functions/fsync.texi: Mention the new module.
71710 2008-10-02  Jim Meyering  <meyering@redhat.com>
71712         fts.c: sync with similar code from coreutils' remove.c
71713         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
71714         Guard also with "#if defined __linux__", since for now at least,
71715         this code is Linux-kernel-specific.
71717 2008-10-02  Jim Meyering  <meyering@redhat.com>
71719         fts: bug fixes
71720         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
71721         Include <sys/vfs.h>, not <sys/statfs.h>.
71723         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
71724         Include <sys/vfs.h>, not <sys/statfs.h>.
71726 2008-10-01  Bruno Haible  <bruno@clisp.org>
71728         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
71729         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
71730         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
71731         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
71732         * doc/posix-functions/posix_spawnp.texi: Likewise.
71733         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
71734         whether posix_spawn actually works.
71735         * m4/pipe.m4 (gl_PIPE): Likewise.
71736         * modules/execute (Files): Add m4/posix_spawn.m4.
71737         * modules/pipe (Files): Add m4/posix_spawn.m4.
71738         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
71740 2008-10-01  Jim Meyering  <meyering@redhat.com>
71742         remove trailing spaces
71743         * NEWS: Likewise.
71744         * lib/poll.c (poll): Likewise.
71745         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
71746         * lib/winsock.c (rpl_close): Likewise.
71747         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
71748         * modules/yield: Likewise.
71749         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
71750         * tests/test-sys_select.c (connect_to_socket): Likewise.
71752         fts.c: adjust a new interface to be more generally useful
71753         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
71754         (fts_build): Adjust caller.
71756 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71758         * modules/cond-tests: New file.
71759         * tests/test-cond.c: New file.
71761 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71762             Bruno Haible  <bruno@clisp.org>
71764         * modules/cond (Dependencies): Add errno, time.
71765         * lib/glthread/cond.h: Include <time.h>.
71766         (gl_cond_define, gl_cond_define_initialized): Use the same definition
71767         across platforms.
71769 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71770             Bruno Haible  <bruno@clisp.org>
71772         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
71774 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71775             Bruno Haible  <bruno@clisp.org>
71777         * modules/tls-tests (Depends-on): Add thread, yield.
71778         (configure.ac): Remove all checks.
71779         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
71780         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
71781         gl_thread_self): Remove definitions. Include glthread/thread.h and
71782         glthread/yield.h instead.
71783         (test_tls): Pass an additional NULL argument to gl_thread_join.
71785 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71786             Bruno Haible  <bruno@clisp.org>
71788         * modules/lock-tests (Depends-on): Add thread, yield.
71789         (configure.ac): Remove all checks.
71790         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
71791         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
71792         gl_thread_self): Remove definitions. Include glthread/thread.h and
71793         glthread/yield.h instead.
71794         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
71795         additional NULL argument to gl_thread_join.
71797 2008-09-30  Bruno Haible  <bruno@clisp.org>
71799         Fix the Win32 implementation of the 'thread' module.
71800         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
71801         pointer type.
71802         (gl_thread_self): Invoke gl_thread_self_func.
71803         (gl_thread_self_func): New declaration.
71804         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
71805         (do_init_self_key, init_self_key): New functions.
71806         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
71807         Remove some fields.
71808         (running_threads, running_lock): Remove variables.
71809         (get_current_thread_handle): New function.
71810         (gl_thread_self_func, wrapper_func, glthread_create_func,
71811         glthread_join_func, gl_thread_exit_func): Largely rewritten and
71812         simplified.
71814 2008-09-30  Bruno Haible  <bruno@clisp.org>
71816         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
71817         files.
71819 2008-09-30  Jim Meyering  <meyering@redhat.com>
71821         fts.m4: correct the test for statfs.f_type
71822         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
71823         when checking for statfs.f_type.
71825 2008-09-15  Simon Josefsson  <simon@josefsson.org>
71827         tests: avoid some compiler warnings
71828         * tests/test-memchr.c (main): Pass NULL indirectly.
71829         * tests/test-getdate.c (main): Remove unused variable 'ret'.
71831 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
71833         getdate.y: disallow countable dayshifts like "4 yesterday ago"
71834         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
71835         exactly specified dayshifts.
71836         (dayshift): New rule.
71837         (rel): Add dayshift.
71838         (relative_time_table) [tomorrow, yesterday, today, now]:
71839         Use tDAY_SHIFT in place of tDAY_UNIT.
71840         * tests/test-getdate.c: Add tests for now-disallowed countable
71841         dayshifts, e.g., "4 yesterday ago".
71843 2008-09-29  Bruno Haible  <bruno@clisp.org>
71845         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
71846         * tests/test-posix_spawn1.in.sh: Renamed from
71847         tests/test-posix_spawn.in.sh.
71848         * tests/test-posix_spawn2.c: New file.
71849         * tests/test-posix_spawn2.in.sh: New file.
71850         * modules/posix_spawnp-tests (Files): Update.
71851         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
71853 2008-09-29  Bruno Haible  <bruno@clisp.org>
71855         Propagate effects of putenv/setenv/unsetenv to child processes.
71856         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
71857         * lib/pipe.c (create_pipe): Likewise.
71859 2008-09-29  Bruno Haible  <bruno@clisp.org>
71861         Enable use of shell scripts as executables in mingw.
71862         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
71863         run the program as a shell script.
71864         * lib/pipe.c (create_pipe): Likewise.
71865         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
71866         resulting array.
71868 2008-09-29  Eric Blake  <ebb9@byu.net>
71870         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
71872 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
71874         * doc/posix-functions/accept.texi: Update mingw problems.
71875         * doc/posix-functions/bind.texi: Update mingw problems.
71876         * doc/posix-functions/close.texi: Update mingw problems.
71877         * doc/posix-functions/connect.texi: Update mingw problems.
71878         * doc/posix-functions/getpeername.texi: Update mingw problems.
71879         * doc/posix-functions/getsockname.texi: Update mingw problems.
71880         * doc/posix-functions/getsockopt.texi: Update mingw problems.
71881         * doc/posix-functions/ioctl.texi: Update mingw problems.
71882         * doc/posix-functions/listen.texi: Update mingw problems.
71883         * doc/posix-functions/recv.texi: Update mingw problems.
71884         * doc/posix-functions/recvfrom.texi: Update mingw problems.
71885         * doc/posix-functions/select.texi: Update mingw problems.
71886         * doc/posix-functions/send.texi: Update mingw problems.
71887         * doc/posix-functions/sendto.texi: Update mingw problems.
71888         * doc/posix-functions/setsockopt.texi: Update mingw problems.
71889         * doc/posix-functions/socket.texi: Update mingw problems.
71891 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
71892             Bruno Haible  <bruno@clisp.org>
71894         * lib/sys_select.in.h: Include sys/time.h.
71895         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
71896         * modules/sys_select: Depend on sys_time.
71897         * tests/test-sys_select.c: Test that sys/select.h defines struct
71898         timeval fully.
71900 2008-09-29  Bruno Haible  <bruno@clisp.org>
71902         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
71903         * lib/sys_select.in.h: Likewise.
71905 2008-09-29  Bruno Haible  <bruno@clisp.org>
71907         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
71909 2008-09-29  Bruno Haible  <bruno@clisp.org>
71911         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
71912         Set LIBSOCKET instead of augmenting LIBS.
71913         * modules/sockets (Link): New section.
71914         * modules/sockets-tests (test_sockets_LDADD): New variable.
71915         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
71916         * modules/poll-tests (test_poll_LDADD): New variable.
71917         * NEWS: Document the change.
71919 2008-09-29  Bruno Haible  <bruno@clisp.org>
71921         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
71922         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
71923         ARPA_INET_H directly.
71924         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
71926 2008-09-28  Bruno Haible  <bruno@clisp.org>
71928         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
71929         from gl_HEADER_SYS_SOCKET.
71930         (gl_HEADER_SYS_SOCKET): Invoke it.
71931         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
71933 2008-09-28  Bruno Haible  <bruno@clisp.org>
71935         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
71936         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
71937         Needed on OSF/1 4.0.
71939 2008-09-28  Bruno Haible  <bruno@clisp.org>
71941         Override open more carefully.
71942         * lib/open.c (orig_open): New function.
71943         (rpl_open): Use orig_open instead of open.
71944         * lib/fcntl.in.h: Add special invocation convention.
71945         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
71946         (gl_FUNC_OPEN): Invoke it.
71948         Override freopen more carefully.
71949         * lib/freopen.c (orig_freopen): New function.
71950         (rpl_freopen): Use orig_freopen instead of freopen.
71951         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
71952         (gl_FUNC_FREOPEN): Invoke it.
71954         Override fopen more carefully.
71955         * lib/fopen.c (orig_fopen): New function.
71956         (rpl_fopen): Use orig_fopen instead of fopen.
71957         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
71958         (gl_FUNC_FOPEN): Invoke it.
71959         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
71961 2008-09-28  Bruno Haible  <bruno@clisp.org>
71963         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
71964         SIGPIPE.
71966 2008-09-28  Bruno Haible  <bruno@clisp.org>
71968         * tests/test-sigaction.c (handler, main): Disable the check whether
71969         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
71970         glibc systems with LinuxThreads.
71972 2008-09-28  Bruno Haible  <bruno@clisp.org>
71974         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
71976         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
71977         with AIX xlc.
71978         * lib/fcntl.in.h (open): Likewise.
71979         Reported by Rainer Tammer <tammer@tammer.net>.
71981 2008-09-28  Bruno Haible  <bruno@clisp.org>
71983         * modules/posix_spawnp-tests: New file.
71984         * tests/test-posix_spawn.c: New file.
71985         * tests/test-posix_spawn.in.sh: New file.
71987         New module 'posix_spawnp'.
71988         * modules/posix_spawnp: New file.
71989         * lib/spawnp.c: New file, from GNU libc with modifications.
71990         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
71992         New module 'posix_spawn'.
71993         * modules/posix_spawn: New file.
71994         * lib/spawn.c: New file, from GNU libc with modifications.
71995         * doc/posix-functions/posix_spawn.texi: Mention the new module.
71997         New module 'posix_spawnattr_destroy'.
71998         * modules/posix_spawnattr_destroy: New file.
71999         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
72000         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
72001         module.
72003         New module 'posix_spawnattr_setsigmask'.
72004         * modules/posix_spawnattr_setsigmask: New file.
72005         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
72006         modifications.
72007         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
72008         new module.
72010         New module 'posix_spawnattr_getsigmask'.
72011         * modules/posix_spawnattr_getsigmask: New file.
72012         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
72013         modifications.
72014         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
72015         new module.
72017         New module 'posix_spawnattr_setsigdefault'.
72018         * modules/posix_spawnattr_setsigdefault: New file.
72019         * lib/spawnattr_setdefault.c: New file, from GNU libc with
72020         modifications.
72021         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
72022         new module.
72024         New module 'posix_spawnattr_getsigdefault'.
72025         * modules/posix_spawnattr_getsigdefault: New file.
72026         * lib/spawnattr_getdefault.c: New file, from GNU libc with
72027         modifications.
72028         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
72029         new module.
72031         New module 'posix_spawnattr_setschedpolicy'.
72032         * modules/posix_spawnattr_setschedpolicy: New file.
72033         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
72034         modifications.
72035         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
72036         new module.
72038         New module 'posix_spawnattr_getschedpolicy'.
72039         * modules/posix_spawnattr_getschedpolicy: New file.
72040         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
72041         modifications.
72042         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
72043         new module.
72045         New module 'posix_spawnattr_setschedparam'.
72046         * modules/posix_spawnattr_setschedparam: New file.
72047         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
72048         modifications.
72049         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
72050         new module.
72052         New module 'posix_spawnattr_getschedparam'.
72053         * modules/posix_spawnattr_getschedparam: New file.
72054         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
72055         modifications.
72056         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
72057         new module.
72059         New module 'posix_spawnattr_setpgroup'.
72060         * modules/posix_spawnattr_setpgroup: New file.
72061         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
72062         modifications.
72063         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
72064         module.
72066         New module 'posix_spawnattr_getpgroup'.
72067         * modules/posix_spawnattr_getpgroup: New file.
72068         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
72069         modifications.
72070         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
72071         module.
72073         New module 'posix_spawnattr_setflags'.
72074         * modules/posix_spawnattr_setflags: New file.
72075         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
72076         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
72077         module.
72079         New module 'posix_spawnattr_getflags'.
72080         * modules/posix_spawnattr_getflags: New file.
72081         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
72082         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
72083         module.
72085         New module 'posix_spawnattr_init'.
72086         * modules/posix_spawnattr_init: New file.
72087         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
72088         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
72089         module.
72091         New module 'posix_spawn_file_actions_destroy'.
72092         * modules/posix_spawn_file_actions_destroy: New file.
72093         * lib/spawn_faction_destroy.c: New file, from GNU libc with
72094         modifications.
72095         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
72096         the new module.
72098         New module 'posix_spawn_file_actions_addopen'.
72099         * modules/posix_spawn_file_actions_addopen: New file.
72100         * lib/spawn_faction_addopen.c: New file, from GNU libc with
72101         modifications.
72102         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
72103         the new module.
72105         New module 'posix_spawn_file_actions_adddup2'.
72106         * modules/posix_spawn_file_actions_adddup2: New file.
72107         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
72108         modifications.
72109         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
72110         the new module.
72112         New module 'posix_spawn_file_actions_addclose'.
72113         * modules/posix_spawn_file_actions_addclose: New file.
72114         * lib/spawn_faction_addclose.c: New file, from GNU libc with
72115         modifications.
72116         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
72117         the new module.
72119         New module 'posix_spawn_file_actions_init'.
72120         * modules/posix_spawn_file_actions_init: New file.
72121         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
72122         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
72123         new module.
72125         New module 'posix_spawn-internal'.
72126         * modules/posix_spawn-internal: New file.
72127         * lib/spawn_int.h: New file, from GNU libc with modifications.
72128         * lib/spawni.c: New file, from GNU libc with modifications.
72129         * m4/posix_spawn.m4: New file.
72131         New module 'spawn'.
72132         * modules/spawn: New file.
72133         * lib/spawn.in.h: New file, from GNU libc with modifications.
72134         * m4/spawn_h.m4: New file.
72135         * doc/posix-headers/spawn.texi: Mention the new module.
72137 2008-09-28  Bruno Haible  <bruno@clisp.org>
72139         * modules/sched-tests: New file.
72140         * tests/test-sched.c: New file.
72142         New module 'sched'.
72143         * modules/sched: New file.
72144         * lib/sched.in.h: New file.
72145         * m4/sched_h.m4: New file.
72146         * doc/posix-headers/sched.texi: Mention the new module.
72148 2008-09-27  Eric Blake  <ebb9@byu.net>
72150         Fix previous patch, and tweak references to $0.
72151         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
72152         (func_version, func_gnulib_dir): Don't call this program
72153         gnulib-tool.
72154         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
72155         with using $0 in function.
72156         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
72157         (func_fatal_error): Reuse the name the user invoked us with.
72159 2008-09-27  Bruno Haible  <bruno@clisp.org>
72161         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
72162         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
72163         (gl_ICONV_H): Not here.
72164         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
72165         instead of assigning ICONV_H directly.
72167         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
72168         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
72169         WCHAR_H directly.
72171 2008-09-27  Bruno Haible  <bruno@clisp.org>
72173         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
72174         * modules/arpa_inet (Depends-on): Add link-warning.
72175         (Makefile.am): Insert the definition of GL_LINK-WARNING.
72176         * modules/unistd (Makefile.am): Likewise.
72178 2008-09-26  Bruno Haible  <bruno@clisp.org>
72180         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
72181         variables.
72182         (func_version): Essentially copied from gnulib-tool.
72183         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
72184         func_readlink): Copied from gnulib-tool.
72186 2008-09-26  Bruno Haible  <bruno@clisp.org>
72188         * gnulib-tool (func_version): Change directory to $gnulib_dir before
72189         invoking git-version-gen.
72191 2008-09-26  Bruno Haible  <bruno@clisp.org>
72193         * posix-modules: Update to directory names changed on 2008-01-19.
72194         Remove commas in output before splitting into words. No more need to
72195         avoid 'ftruncate' since 2007-02-19.
72197 2008-09-26  Bruno Haible  <bruno@clisp.org>
72199         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
72201 2008-09-26  Bruno Haible  <bruno@clisp.org>
72203         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
72204         * modules/fwriteerror (Depends-on): Add errno.
72206 2008-09-26  Bruno Haible  <bruno@clisp.org>
72208         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
72209         * tests/test-vc-list-files-cvs.sh: Likewise.
72211 2008-09-26  Bruno Haible  <bruno@clisp.org>
72213         * doc/posix-headers/sys_resource.texi: Reorder items.
72215 2008-09-26  Jim Meyering  <meyering@redhat.com>
72217         fts: tweak inode comparison function
72218         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
72219         inode numbers, as documented.
72221         fts: sort dirent entries on inode number before traversing
72222         This avoids a quadratic, seek-related performance penalty when
72223         operating on a directory containing many entries (measurable at 10k;
72224         3.5 hours at 2 million entries with a cold cache) on certain types
72225         of file systems, including ext3 and ext4, but not tmpfs.
72226         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
72227         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
72228         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
72229         (fs_handles_readdir_ordered_dirents_efficiently): New function.
72230         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
72231         (fts_build): Set the stat.st_ino member from D_INO.
72232         If it is likely to be useful, sort dirent entries on inode number.
72234         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
72235         and the struct statfs.f_type member.
72236         * modules/fts (Depends-on): Add d-ino.
72238 2008-09-26  Bruno Haible  <bruno@clisp.org>
72240         * modules/sigpipe-die (Depends-on): Add sigpipe.
72242         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
72243         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
72244         and GNULIB_STDIO_H_SIGPIPE are set.
72245         * lib/stdio-write.c: New file.
72246         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
72247         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
72248         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
72249         REPLACE_STDIO_WRITE_FUNCS.
72250         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
72251         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
72252         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
72253         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
72254         * modules/stdio (Files): Add lib/stdio-write.c.
72255         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
72256         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
72257         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
72258         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
72259         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
72260         REPLACE_FPRINTF_POSIX.
72261         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
72262         REPLACE_PRINTF_POSIX.
72263         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
72264         REPLACE_VFPRINTF_POSIX.
72265         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
72266         REPLACE_VPRINTF_POSIX.
72267         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
72268         SIGPIPE issue.
72269         * doc/posix-functions/fputc.texi: Likewise.
72270         * doc/posix-functions/fputs.texi: Likewise.
72271         * doc/posix-functions/fwrite.texi: Likewise.
72272         * doc/posix-functions/printf.texi: Likewise.
72273         * doc/posix-functions/putc.texi: Likewise.
72274         * doc/posix-functions/putchar.texi: Likewise.
72275         * doc/posix-functions/puts.texi: Likewise.
72276         * doc/posix-functions/vfprintf.texi: Likewise.
72277         * doc/posix-functions/vprintf.texi: Likewise.
72279         * modules/safe-write (Depends-on): Add write.
72281         * modules/sigpipe-tests: New file.
72282         * tests/test-sigpipe.c: New file.
72283         * tests/test-sigpipe.sh: New file.
72285         * modules/write: New file.
72286         * lib/unistd.in.h: Include <sys/types.h>.
72287         (write): New declaration.
72288         * lib/write.c: New file.
72289         * m4/write.m4: New file.
72290         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
72291         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
72292         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
72293         GNULIB_WRITE, REPLACE_WRITE.
72294         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
72295         and the SIGPIPE issue.
72297         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
72298         (raise): New declaration.
72299         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
72300         (ext_signal): New function.
72301         (rpl_raise): New function.
72302         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
72303         GNULIB_SIGNAL_H_SIGPIPE.
72304         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
72305         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
72307         * modules/sigpipe: New file.
72308         * m4/sigpipe.m4: New file.
72310 2008-09-25  Derek Price  <derek@ximbiot.com>
72311             Bruno Haible  <bruno@clisp.org>
72313         * gnulib-tool (func_import): Report all license incompatibilities, not
72314         just the first one.
72316 2008-09-25  Bruno Haible  <bruno@clisp.org>
72318         * gnulib-tool (func_import): When computing the edits, consider not
72319         only the Makefile.ams that exist but also those that will be generated.
72321 2008-09-25  Simon Josefsson  <simon@josefsson.org>
72323         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
72324         fixes gnulib-tool --test warning about duplicate dependency.
72326 2008-09-25  Bruno Haible  <bruno@clisp.org>
72328         * gnulib-tool: Don't ask the user to perform edits in the generated
72329         Makefile.ams.
72330         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
72331         apply to the Makefile.am being generated.
72332         (func_emit_tests_Makefile_am): Execute edits that apply to the
72333         Makefile.am being generated.
72334         (func_import): Setup list of Makefile.am edits before emitting the
72335         Makefile.ams, not at the end.
72336         (func_create_testdir): Update.
72337         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
72339 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72341         * gnulib-tool (func_import): Store the --tests-base option in the
72342         comment in gnulib-cache.m4.
72344 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
72346         * NEWS: Document increased portability that sys_select now provides.
72348         * lib/sys_select.in.h: Install select wrapper.
72349         * lib/sys_socket.in.h: Use more descriptive name when there is no
72350         select wrapper.
72351         * lib/winsock-select.c: New.
72352         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
72353         Require gl_HEADER_SYS_SOCKET.
72354         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
72355         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
72356         * tests/test-sys_select.c: Add functional tests.
72358 2008-09-24  Eric Blake  <ebb9@byu.net>
72360         open, fopen: close fd leak in last patch
72361         * lib/open.c (rpl_open): Close fd before returning error.
72362         * lib/fopen.c (rpl_fopen): Close fd before returning error.
72363         * doc/posix-functions/open.texi (open): Document that Irix also
72364         has the bug.
72365         * doc/posix-functions/fopen.texi (fopen): Likewise.
72366         Reported by Paolo Bonzini.
72368 2008-09-24  Bruno Haible  <bruno@clisp.org>
72370         Ensure that a filename ending in a slash cannot be used to access a
72371         non-directory.
72372         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
72373         to check whether it's really a directory.
72374         * lib/fopen.c: Include fcntl.h, unistd.h.
72375         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
72376         and fdopen().
72377         * modules/fopen (Depends-on): Add unistd.
72378         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
72379         * tests/test-fopen.c (main): Likewise.
72380         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
72381         * doc/posix-functions/fopen.texi: Likewise.
72382         Reported by Eric Blake.
72384 2008-09-23  Eric Blake  <ebb9@byu.net>
72386         c-stack: avoid compiler optimizations when provoking overflow
72387         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
72388         recursion harder to optimize, to ensure a stack overflow occurs.
72389         * tests/test-c-stack.c (recurse): Likewise.
72390         Borrowed from libsigsegv.
72392         c-stack: work around Irix sigaltstack bug
72393         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
72394         whether sigaltstack uses wrong end of stack_t (copied in part from
72395         libsigsegv).
72396         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
72397         Irix bug, without requiring an over-allocation.
72398         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
72399         bug.
72401         fopen: document mingw bug on directories
72402         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
72403         not allowing a stream visiting a directory, even though reading
72404         from such a stream is not portable.
72406 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
72408         * lib/poll.c: Rewrite.
72409         * modules/poll: Depend on alloca.
72411 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
72413         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
72414         instead define prototypes for a full set of wrappers.  Ensure
72415         that Cygwin does not use the compatibility code, which is only
72416         for MinGW.
72417         * lib/winsock.c: New.
72418         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
72419         * modules/sys_socket: Add lib/winsock.c.
72421         * modules/poll-tests: Add errno and perror.
72422         * tests/test-poll.c: Use ioctl, not ioctlsocket.
72424 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
72426         * tests/test-poll.c: Downgrade minimum needed Winsock version.
72428 2008-09-23  Bruno Haible  <bruno@clisp.org>
72430         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
72431         * doc/glibc-functions/*: Likewise.
72433 2008-09-23  Simon Josefsson  <simon@josefsson.org>
72435         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
72436         success.
72438 2008-09-22  Eric Blake  <ebb9@byu.net>
72439             Bruno Haible  <bruno@clisp.org>
72441         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
72442         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
72443         supply %A but mishandle pseudo-NaN.
72444         Reported by Simon Josefsson.
72446 2008-09-21  Bruno Haible  <bruno@clisp.org>
72448         * tests/test-lock.c (main): Tweak skip message.
72449         * tests/test-tls.c (main): Likewise.
72451 2008-09-21  Bruno Haible  <bruno@clisp.org>
72453         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
72454         whether 'struct sigaction' has sa_sigaction here...
72455         (gl_PREREQ_SIG_HANDLER_H): ... not here.
72456         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
72458 2008-09-21  Bruno Haible  <bruno@clisp.org>
72460         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
72461         section.
72462         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
72463         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
72464         the new section.
72465         (Support for obsolete systems lacking POSIX:2001): New section.
72466         (String handling <string.h>): Move strdup to the new section.
72467         Suggested by Simon Josefsson and Paolo Bonzini.
72469 2008-09-21  Bruno Haible  <bruno@clisp.org>
72471         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
72472         exponents in %e and %g results on 'long double'. Needed for mingw's
72473         improved *printf functions.
72474         * tests/test-vasprintf-posix.c (test_function): Likewise.
72475         * tests/test-snprintf-posix.h (test_function): Likewise.
72476         * tests/test-sprintf-posix.h (test_function): Likewise.
72477         Reported by Eric Blake.
72479 2008-09-21  Bruno Haible  <bruno@clisp.org>
72481         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
72482         * tests/test-sprintf-posix.h (test_function): Likewise.
72484 2008-09-21  Bruno Haible  <bruno@clisp.org>
72486         * modules/getpass (Depends-on): Add strdup-posix.
72488         New module 'strdup-posix'.
72489         * modules/strdup-posix: New file.
72490         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
72491         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
72492         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
72493         REPLACE_STRDUP.
72494         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
72495         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
72496         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72497         strdup-posix.
72499         * modules/strdup (Depends-on): Remove malloc-posix.
72501 2008-09-20  Bruno Haible  <bruno@clisp.org>
72503         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
72504         Wildenhues.
72506 2008-09-20  Bruno Haible  <bruno@clisp.org>
72508         Ensure that wint_t gets defined on IRIX 5.3.
72509         * lib/wchar.in.h (wint_t): Define if not defined by the system.
72510         * lib/wctype.in.h (wint_t): Likewise.
72511         (__wctype_wint_t): Remove type.
72512         (isw*): Use wint_t instead of __wctype_wint_t.
72513         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
72514         * modules/wchar (Files): Add m4/wint_t.m4.
72515         (Makefile.am): Substitute HAVE_WINT_T.
72516         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
72517         * tests/test-wctype.c: Check that wint_t is defined.
72518         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
72519         * doc/posix-headers/wctype.texi: Likewise.
72520         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
72522 2008-09-18  Bruno Haible  <bruno@clisp.org>
72524         * gnulib-tool (func_exit): Update comment.
72526 2008-09-18  Simon Josefsson  <simon@josefsson.org>
72528         * modules/getaddrinfo (Depends-on): Remove strdup, this module
72529         assumes strdup exists and does not depend on strdup to return
72530         ENOMEM on out of memory conditions.
72532 2008-09-18  Bruno Haible  <bruno@clisp.org>
72534         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
72535         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
72536         digits for the exponent.
72538 2008-09-18  Jim Meyering  <meyering@redhat.com>
72539             Bruno Haible  <bruno@clisp.org>
72541         * lib/vasnprintf.c (decimal_point_char): Define also if
72542         NEED_PRINTF_INFINITE_LONG_DOUBLE.
72544 2008-09-16  Bruno Haible  <bruno@clisp.org>
72545         and Eric Blake  <ebb9@byu.net>
72547         vasnprintf: support Irix 5.3
72548         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
72549         that mishandle long double infinity.
72550         Reported by Tom G. Christensen.
72552 2008-09-16  Bruno Haible  <bruno@clisp.org>
72554         * doc/glibc-functions/scandir.texi: Mention the function is missing on
72555         Solaris 9.
72556         * doc/glibc-functions/alphasort.texi: Likewise.
72557         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
72559 2008-09-16  Jim Meyering  <meyering@redhat.com>
72561         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
72562         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
72563         a umask modification leak out of a subshell.  Otherwise, the
72564         opensolaris /bin/sh would be accepted and thus cause unwarranted
72565         failures in the coreutils test suite.
72567 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
72569         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
72570         to succeed.
72572 2008-09-16  Jim Meyering  <meyering@redhat.com>
72574         avoid spurious test failure when library is built without ACL support
72575         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
72576         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
72577         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
72578         * tests/test-copy-acl.sh: Likewise.
72580 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72582         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
72583         based on character occurrence counts.
72585 2008-09-15  Eric Blake  <ebb9@byu.net>
72587         tests: avoid some compiler warnings
72588         * tests/test-memchr.c (main): Pass NULL indirectly.
72589         * tests/test-closein.c (main): Avoid unused variable.
72591 2008-09-15  Bruno Haible  <bruno@clisp.org>
72593         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
72594         are missing on OpenBSD 4.0 individually.
72595         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
72597 2008-09-15  Bruno Haible  <bruno@clisp.org>
72599         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
72600         * doc/posix-functions/strerror.texi: Mention also Cygwin.
72601         * doc/posix-functions/perror.texi: Likewise.
72602         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
72603         is missing.
72604         Reported by Eric Blake.
72606         * lib/errno.in.h: Use replacement values >= 2000.
72607         Reported by Eric Blake.
72609 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72611         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
72612         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
72613         limit.
72614         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
72615         compareseq was aborted.
72617 2008-09-14  Bruno Haible  <bruno@clisp.org>
72619         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
72620         yvec_edit_count.
72621         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
72622         (fstrcmp_bounded): Simplify result computation accordingly.
72624 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72626         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
72627         (fstrcmp): Define in terms of fstrcmp_bounded.
72628         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
72629         lower_bound argument.
72630         Return quickly if the result is certainly < lower_bound.
72631         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
72633 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72635         * lib/diffseq.h (EARLY_ABORT): New macro.
72636         (compareseq): Change return type to bool. Return true when EARLY_ABORT
72637         evaluates to true.
72639 2008-09-14  Bruno Haible  <bruno@clisp.org>
72641         * modules/perror-tests: New file.
72642         * tests/test-perror.sh: New file.
72643         * tests/test-perror.c: New file.
72645         New module 'perror'.
72646         * lib/stdio.in.h (perror): New declaration.
72647         * lib/perror.c: New file.
72648         * m4/perror.m4: New file.
72649         * modules/perror: New file.
72650         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
72651         * doc/posix-functions/perror.texi: Mention the perror module.
72652         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
72653         REPLACE_PERROR.
72654         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
72655         REPLACE_PERROR.
72657 2008-09-14  Bruno Haible  <bruno@clisp.org>
72659         * modules/stdio (Makefile.am): Reorder to match the order in
72660         lib/stdio.in.h.
72661         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
72663 2008-09-13  Bruno Haible  <bruno@clisp.org>
72665         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
72667 2008-09-13  Bruno Haible  <bruno@clisp.org>
72669         Extend strerror to cover the added errno values.
72670         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
72671         (rpl_strerror): Provide error messages for the added errno values and
72672         for the WSA* values.
72673         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
72674         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
72675         strerror.
72676         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
72677         * modules/strerror (Depends-on): Add errno.
72678         * doc/posix-functions/strerror.texi: Document the change.
72679         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
72680         and EOVERFLOW.
72682 2008-09-13  Bruno Haible  <bruno@clisp.org>
72684         * modules/EOVERFLOW: Remove file.
72685         * m4/eoverflow.m4: Remove file.
72686         * modules/EOVERFLOW-tests: Remove file.
72687         * tests/test-EOVERFLOW.c: Remove file.
72688         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
72689         * modules/ftell (Depends-on): Likewise.
72690         * modules/getdelim (Depends-on): Likewise.
72691         * modules/getugroups (Depends-on): Likewise.
72692         * modules/poll (Depends-on): Likewise.
72693         * modules/snprintf (Depends-on): Likewise.
72694         * modules/sprintf-posix (Depends-on): Likewise.
72695         * modules/vasnprintf (Depends-on): Likewise.
72696         * modules/vasprintf (Depends-on): Likewise.
72697         * modules/vfprintf-posix (Depends-on): Likewise.
72698         * modules/vsnprintf (Depends-on): Likewise.
72699         * modules/vsprintf-posix (Depends-on): Likewise.
72700         * modules/xvasprintf (Depends-on): Likewise.
72701         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
72702         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
72703         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
72704         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
72705         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
72706         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
72707         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
72708         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
72709         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
72710         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
72711         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
72712         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
72713         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
72714         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
72715         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
72716         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
72717         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
72718         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
72719         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
72720         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
72721         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
72722         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
72723         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
72724         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
72725         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
72726         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
72727         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
72728         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
72729         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
72730         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
72731         * MODULES.html.sh: Remove EOVERFLOW.
72732         * NEWS: Mention the change.
72734 2008-09-13  Bruno Haible  <bruno@clisp.org>
72736         * modules/errno-tests: New file.
72737         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
72739         * lib/errno.in.h: New file.
72740         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
72741         * modules/errno: New file.
72742         * doc/posix-headers/errno.texi: Update documentation.
72743         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
72745 2008-09-13  Bruno Haible  <bruno@clisp.org>
72747         * tests/test-poll.c: Use #if for native Windows, rather than testing
72748         __MSVCRT__.
72750 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72751             Bruno Haible  <bruno@clisp.org>
72753         * lib/glob.c: Don't include <pwd.h> on native Windows.
72754         (WINDOWS32): New macro.
72755         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
72757 2008-09-13  Bruno Haible  <bruno@clisp.org>
72759         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
72760         (ETIMEDOUT): Remove macro.
72761         (glthread_cond_timedwait_multithreaded): New declaration.
72762         (glthread_cond_timedwait): Use it.
72763         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
72764         (glthread_cond_timedwait_multithreaded): New function.
72766 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
72768         * modules/poll-tests: Do not check for io.h.
72769         * tests/test-poll.c: Check for __MSVCRT__ instead.
72771 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
72773         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
72774         * modules/poll-tests: Add inet_pton, stdbool, sockets.
72775         * tests/test-poll.c: Use them.  Use _pipe on Windows.
72777 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
72779         * modules/poll-tests: New.
72780         * tests/test-poll.c: New.
72782 2008-09-12  Eric Blake  <ebb9@byu.net>
72784         frexp: test for NetBSD failure on -0.0
72785         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
72786         not all, bugs from NetBSD 3.0 have been fixed.
72787         * doc/posix-functions/frexp.texi (frexp): Document bug.
72788         Reported by Thomas Klausner.
72790         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
72791         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
72792         literal -0.0.
72793         Reported by Jonathan C. Patschke <jp@centtech.com>.
72795 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72797         * lib/glthread/cond.h: Use dummy implementation also if
72798         USE_WIN32_THREADS.
72800 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72802         * modules/fnmatch-posix (License): Change to LGPLv2+.
72803         * modules/fnmatch-gnu (License): Likewise.
72805 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72807         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
72809 2008-09-11  Jim Meyering  <meyering@redhat.com>
72811         * users.txt: Add gtk-vnc.
72813 2008-09-08  Simon Josefsson  <simon@josefsson.org>
72815         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
72816         rotate amounts.
72818         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
72819         required for 16-bit and 8-bit rotates.
72820         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
72821         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
72822         UINT8_MAX instead of hard-coded constants.
72823         Suggested by Paul Eggert.
72825 2008-09-07  Bruno Haible  <bruno@clisp.org>
72827         * tests/test-striconveh.c (main): Check behaviour when converting from
72828         UTF-7.
72830         Make striconveh work better with stateful encodings.
72831         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
72832         that iconv does not increment the inptr when returning -1/EINVAL.
72834 2008-09-07  Bruno Haible  <bruno@clisp.org>
72836         * build-aux/config.rpath: Update according to libtool-2.2.6.
72837         * build-aux/config.libpath: Likewise.
72839 2008-09-06  Bruno Haible  <bruno@clisp.org>
72841         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
72842         * lib/freadptr.c (freadptr): Likewise.
72843         * lib/freadseek.c (freadptrinc): Likewise.
72844         Reported by Simon Josefsson.
72846 2008-09-06  Bruno Haible  <bruno@clisp.org>
72848         * modules/freadptr (License): Change to LGPLv2+.
72849         * modules/freadseek (License): Likewise.
72850         Suggested by Eric Blake.
72852         * modules/memchr2 (License): Change to LGPLv2+.
72853         Approved by Eric Blake.
72855 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72856             Bruno Haible  <bruno@clisp.org>
72858         Make gnulib-tool work with native 'sed' on AIX.
72859         * gnulib-tool (sed_noop): New variable.
72860         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
72861         func_add_or_update, func_create_testdir): Use it to initialize sed
72862         script variables.
72863         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
72865 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
72866             Bruno Haible  <bruno@clisp.org>
72868         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
72869         also works after #include directives.
72871 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
72873         getdate.y: reject an out-of-range timezone value
72874         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
72875         the range [-24...+24].  When specified with only one or two digits,
72876         * tests/test-getdate.c: Tests for the fix.
72877         * doc/getdate.texi: Document this change.
72879 2008-09-03  Bruno Haible  <bruno@clisp.org>
72881         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
72883 2008-09-02  Simon Josefsson  <simon@josefsson.org>
72885         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
72886         <bruce.korb@gmail.com> with ideas from Ben Pfaff
72887         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
72888         Blake <ebb9@byu.net>.
72890         * tests/test-bitrotate.c: Add more test vectors.
72892 2008-09-02  Eric Blake  <ebb9@byu.net>
72894         vasnprintf-posix: handle large precision via %.*d
72895         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
72896         when handling it ourselves.
72897         * tests/test-vasnprintf-posix.c (test_function): Add test.
72898         * tests/test-snprintf-posix.h (test_function): Likewise.
72899         * tests/test-sprintf-posix.h (test_function): Likewise.
72900         * tests/test-vasprintf-posix.c (test_function): Likewise.
72901         Reported by Alain Guibert.
72903 2008-09-01  Eric Blake  <ebb9@byu.net>
72905         c-stack: make configure-time check more robust
72906         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
72907         successful sigaction call.
72908         Reported by Tom G. Christensen.
72910 2008-09-01  Bruno Haible  <bruno@clisp.org>
72912         New module 'findprog-lgpl'.
72913         * modules/findprog-lgpl: New file.
72914         * lib/findprog-lgpl.c: New file.
72915         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
72916         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
72917         to decide whether to use strdup or xstrdup, concatenated_filename or
72918         xconcatenated_filename.
72920 2008-09-01  Bruno Haible  <bruno@clisp.org>
72922         Split module 'concat-filename' into 'concat-filename' (LGPL) and
72923         'xconcat-filename' (GPL).
72924         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
72925         (License): Change to LGPLv2+.
72926         * modules/xconcat-filename: New file.
72927         * lib/concat-filename.h (concatenated_filename): Change specification.
72928         (xconcatenated_filename): New declaration.
72929         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
72930         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
72931         memory situations.
72932         * lib/xconcat-filename.c: New file.
72933         * NEWS: Mention the change.
72934         * lib/findprog.c: Include concat-filename.h, not filename.h.
72935         (find_in_path): Use xconcatenated_filename instead of
72936         concatenated_filename.
72937         * lib/javacomp.c: Include concat-filename.h, not filename.h.
72938         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
72939         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
72940         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
72941         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
72942         instead of concatenated_filename.
72943         * lib/javaexec.c: Include concat-filename.h, not filename.h.
72944         (execute_java_class): Use xconcatenated_filename instead of
72945         concatenated_filename.
72946         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
72947         * modules/javacomp (Depends-on): Likewise.
72948         * modules/javaexec (Depends-on): Likewise.
72950 2008-09-01  Bruno Haible  <bruno@clisp.org>
72952         Split module 'filename' into 'filename' and 'concat-filename'.
72953         * modules/filename: Keep only lib/filename.h.
72954         (License): Change to LGPLv2+.
72955         * modules/concat-filename: New file, extracted from modules/filename.
72956         * lib/filename.h (concatenated_filename): Remove declaration.
72957         * lib/concat-filename.h: New file, extracted from lib/filename.h.
72958         * lib/concat-filename.c: Include concat-filename.h.
72959         * NEWS: Mention the change.
72961 2008-09-01  Simon Josefsson  <simon@josefsson.org>
72963         * lib/bitrotate.h (rotl8, rotr8): Add.
72965         * modules/bitrotate (configure.ac): Need
72966         AC_REQUIRE([AC_C_INLINE]).
72967         (Description): Mention stdint.h.  Reported by Bruno Haible
72968         <bruno@clisp.org>.
72970         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
72971         Paolo Bonzini <bonzini@gnu.org>.
72973 2008-08-31  Bruno Haible  <bruno@clisp.org>
72975         Assume Solaris specific bi-arch conventions on Solaris systems.
72976         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
72977         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
72978         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
72979         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
72980         like acl_libdirstem.
72981         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
72982         acl_libdirstem.
72983         * NEWS: Mention the change.
72984         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
72986 2008-08-31  Jim Meyering  <meyering@redhat.com>
72988         * lib/strftime.h: Add comments describing the two added arguments.
72990         remove duplicate #include directives
72991         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
72992         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
72994 2008-08-31  Bruno Haible  <bruno@clisp.org>
72996         New module 'sigpipe-die'.
72997         * modules/sigpipe-die: New file.
72998         * lib/sigpipe-die.h: New file.
72999         * lib/sigpipe-die.c: New file.
73000         * MODULES.html.sh (Signal handling): Add sigpipe-die.
73002 2008-08-31  Bruno Haible  <bruno@clisp.org>
73004         Don't override previously installed signal handlers.
73005         * lib/fatal-signal.c (saved_sigactions): New variable.
73006         (uninstall_handlers): Reset the signal to the saved handler, not
73007         to SIG_DFL (except when ignored).
73008         (install_handlers): Save the previous handlers.
73010 2008-08-30  Bruno Haible  <bruno@clisp.org>
73012         * gnulib-tool (func_reset_sigpipe): New function.
73013         (func_get_automake_snippet, func_modules_transitive_closure,
73014         func_import): Invoke it before a join command that reads from stdin,
73015         to avoid "echo: write error: Broken pipe" error messages on stderr.
73016         Reported by Sam Steingold <sds@gnu.org>.
73018 2008-08-30  Bruno Haible  <bruno@clisp.org>
73020         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
73021         Code copied from m4/open.m4.
73022         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
73023         access and the filename ends in a slash. Code copied from lib/open.c.
73024         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
73025         * tests/test-fopen.c (main): Check against bug with trailing slash.
73027 2008-08-29  Bruno Haible  <bruno@clisp.org>
73029         Avoid some "gcc -pedantic" warnings.
73030         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
73031         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
73032         * lib/dirent.in.h: Likewise.
73033         * lib/fcntl.in.h: Likewise.
73034         * lib/float.in.h: Likewise.
73035         * lib/iconv.in.h: Likewise.
73036         * lib/inttypes.in.h: Likewise.
73037         * lib/locale.in.h: Likewise.
73038         * lib/math.in.h: Likewise.
73039         * lib/netinet_in.in.h: Likewise.
73040         * lib/search.in.h: Likewise.
73041         * lib/signal.in.h: Likewise.
73042         * lib/stdarg.in.h: Likewise.
73043         * lib/stdint.in.h: Likewise.
73044         * lib/stdio.in.h: Likewise.
73045         * lib/stdlib.in.h: Likewise.
73046         * lib/string.in.h: Likewise.
73047         * lib/strings.in.h: Likewise.
73048         * lib/sys_select.in.h: Likewise.
73049         * lib/sys_socket.in.h: Likewise.
73050         * lib/sys_stat.in.h: Likewise.
73051         * lib/sys_time.in.h: Likewise.
73052         * lib/sysexits.in.h: Likewise.
73053         * lib/time.in.h: Likewise.
73054         * lib/unistd.in.h: Likewise.
73055         * lib/wchar.in.h: Likewise.
73056         * lib/wctype.in.h: Likewise.
73057         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
73058         * modules/fchdir (Makefile.am): Likewise.
73059         * modules/fcntl (Makefile.am): Likewise.
73060         * modules/float (Makefile.am): Likewise.
73061         * modules/iconv_open (Makefile.am): Likewise.
73062         * modules/inttypes (Makefile.am): Likewise.
73063         * modules/locale (Makefile.am): Likewise.
73064         * modules/math (Makefile.am): Likewise.
73065         * modules/netinet_in (Makefile.am): Likewise.
73066         * modules/search (Makefile.am): Likewise.
73067         * modules/signal (Makefile.am): Likewise.
73068         * modules/stdarg (Makefile.am): Likewise.
73069         * modules/stdint (Makefile.am): Likewise.
73070         * modules/stdio (Makefile.am): Likewise.
73071         * modules/stdlib (Makefile.am): Likewise.
73072         * modules/string (Makefile.am): Likewise.
73073         * modules/strings (Makefile.am): Likewise.
73074         * modules/sys_select (Makefile.am): Likewise.
73075         * modules/sys_socket (Makefile.am): Likewise.
73076         * modules/sys_stat (Makefile.am): Likewise.
73077         * modules/sys_time (Makefile.am): Likewise.
73078         * modules/sysexits (Makefile.am): Likewise.
73079         * modules/time (Makefile.am): Likewise.
73080         * modules/unistd (Makefile.am): Likewise.
73081         * modules/wchar (Makefile.am): Likewise.
73082         * modules/wctype (Makefile.am): Likewise.
73083         Reported by Reuben Thomas <rrt@sc3d.org>.
73085 2008-08-29  Bruno Haible  <bruno@clisp.org>
73087         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
73088         any more.
73090 2008-08-29  Simon Josefsson  <simon@josefsson.org>
73092         * MODULES.html.sh (Misc): Add bitrotate.
73094         * modules/bitrotate: New file.
73096         * lib/bitrotate.h: New file.
73098         * modules/bitrotate-tests: New file.
73100         * tests/test-bitrotate.c: New file.
73102         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
73103         on the bitrotate module.
73105         * lib/arctwo.c: Use new bitrotate module.
73107 2008-08-29  Jim Meyering  <meyering@redhat.com>
73109         bootstrap: merge changes from coreutils
73110         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
73111         of copied files.  Remove a kludge, now that this is fixed.
73112         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
73113         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
73114         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
73116 2008-08-29  Bruno Haible  <bruno@clisp.org>
73118         * MODULES.html.sh: Remove --cvs-urls option.
73120 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
73122         maint.mk: adjust to file name change
73123         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
73125 2008-08-28  Jim Meyering  <meyering@redhat.com>
73127         * modules/getndelim2 (License): Relicense to LGPLv2+.
73128         Approved by Richard Stallman for the version of 1995, and by
73129         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
73131 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
73133         * lib/getdelim.c (flockfile, funlockfile): Make all of them
73134         dummy if one is not available.  Do not touch them if
73135         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
73136         (getc_maybe_unlocked): New.
73137         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
73139 2008-08-26  Eric Blake  <ebb9@byu.net>
73141         doc/INSTALL: resync from autoconf
73142         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
73143         (INSTALL_PRELUDE): Delete; this is done more efficiently by
73144         moving...
73145         * install.texi [!autoconf]: ...here.  Resync from autoconf.
73146         * INSTALL: Regenerate.
73147         * INSTALL.ISO: New file.
73148         * INSTALL.UTF-8: Likewise.
73150 2008-08-26  Jim Meyering  <meyering@redhat.com>
73152         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
73153         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
73154         these definitions conditional, so that they may be overridden, too.
73156 2008-08-26  Bruno Haible  <bruno@clisp.org>
73158         Generate INSTALL file variants with prettier quotes.
73159         * doc/Makefile (INSTALL_PRELUDE): New macro.
73160         (INSTALL): Use it.
73161         (INSTALL.ISO, INSTALL.UTF-8): New rules.
73163 2008-08-26  Bruno Haible  <bruno@clisp.org>
73165         Run makeinfo in an English locale.
73166         * doc/Makefile (MAKEINFO): New variable.
73168 2008-08-26  Bruno Haible  <bruno@clisp.org>
73170         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
73171         Suggested by Eric Blake.
73173 2008-08-25  Bruno Haible  <bruno@clisp.org>
73175         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
73177 2008-08-25  Eric Blake  <ebb9@byu.net>
73179         c-stack: test that stack overflow can be caught
73180         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
73181         that platform allows handling stack overflow; at least OS/2 EMX
73182         has sigaltstack, but crashes before transferring control to
73183         handler on stack overflow.
73184         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
73185         check for HAVE_STACK_OVERFLOW_HANDLING.
73186         Reported by Elbert Pol.
73188 2008-08-25  Bruno Haible  <bruno@clisp.org>
73190         * doc/posix-functions/strftime.texi: Fix description of strftime
73191         module.
73193 2008-08-24  Bruno Haible  <bruno@clisp.org>
73195         * tests/uniwidth/test-uc_width2.c: New file.
73196         * tests/uniwidth/test-uc_width2.sh: New file.
73197         * modules/uniwidth/width-tests (Files): Add the new files.
73198         (TESTS): Add uniwidth/test-uc_width2.sh.
73199         (TESTS_ENVIRONMENT): New variable.
73200         (check_PROGRAMS): Add test-uc_width2.
73201         (test_uc_width2_SOURCES): New variable.
73203         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
73204         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
73205         not 0x00AB.
73206         Reported by Alexander V. Lukyanov <lav@netis.ru>.
73208 2008-08-22  Eric Blake  <ebb9@byu.net>
73210         test-lock, test-tls: mention why a test is skipped
73211         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
73212         skipped.
73213         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
73215         count-one-bits: relax license
73216         * modules/count-one-bits (License): Relicense to LGPLv2+.
73217         Suggested by Ludovic Courtès, approved by Ben Pfaff.
73219 2008-08-22  Andreas Schwab  <schwab@suse.de>
73221         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
73222         Remove spurious space in assignment.
73224 2008-08-21  Simon Josefsson  <simon@josefsson.org>
73226         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
73227         Paul Eggert <eggert@CS.UCLA.EDU>.
73229 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
73231         * modules/gettext: Add m4/threadlib.m4.
73233 2008-08-19  Eric Blake  <ebb9@byu.net>
73235         test-c-stack: fix compilation failure on FreeBSD 5.0
73236         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
73237         headers before <sys/resource.h>.
73238         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
73239         the bug.
73240         Reported by Nelson H. F. Beebe.
73242         strverscmp: migrate from "strverscmp.h" to <string.h>
73243         * modules/string (Makefile.am): Add new hooks.
73244         * modules/strverscmp (Files): Remove strverscmp.h.
73245         (Depends-on): Add string.
73246         (configure.ac): Add indicator.
73247         (Include): Mention new header.
73248         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
73249         defaults.
73250         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
73251         results.
73252         * lib/strverscmp.h: Delete.
73253         * lib/string.in.h (strverscmp): Provide declaration, when needed.
73254         * tests/test-strverscmp.c (includes): Adjust client.
73255         * lib/check-version.c (includes): Likewise.
73256         * NEWS: Document the change.
73258         strverscmp: add unit test
73259         * modules/strverscmp-tests: New file.
73260         * tests/test-strverscmp.c: Likewise.
73262 2008-08-19  Simon Josefsson  <simon@josefsson.org>
73264         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
73265         regarding Windows crypto stuff, from Mono.
73267 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
73269         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
73270         if present, for intel RND.  Return error on failures.
73272 2008-08-18  Ben Pfaff  <blp@gnu.org>
73274         gitlog-to-changelog: give better diagnostic for failed pipe-open
73275         * build-aux/gitlog-to-changelog: Improve error message: suggest
73276         that the version of Git may be too old.
73278 2008-08-18  Simon Josefsson  <simon@josefsson.org>
73280         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
73281         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
73283 2008-08-18  Bruno Haible  <bruno@clisp.org>
73285         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
73286         pthread_in_use().
73288 2008-08-18  Bruno Haible  <bruno@clisp.org>
73290         * lib/glthread/threadlib.c: Include <pthread.h>.
73292 2008-08-18  Bruno Haible  <bruno@clisp.org>
73294         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
73295         glthread_recursive_lock_* macros.
73296         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
73297         Fix syntax error.
73299 2008-08-18  Bruno Haible  <bruno@clisp.org>
73301         * lib/glthread/thread.c: Avoid forcing a context switch right after
73302         thread creation.
73304 2008-08-17  Bruno Haible  <bruno@clisp.org>
73306         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
73307         * lib/glthread/thread.h: Provide Win32 specific implementation.
73308         * modules/thread (Files): Add lib/glthread/thread.c.
73309         (Depends-on): Add lock.
73310         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
73312 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73314         New module 'yield'.
73315         * modules/yield: New file.
73316         * lib/glthread/yield.h: New file.
73317         * m4/yield.m4: New file.
73318         * MODULES.html.sh (Multithreading): Add yield.
73320 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73322         New module 'thread'.
73323         * modules/thread: New file.
73324         * lib/glthread/thread.h: New file.
73325         * m4/thread.m4: New file.
73326         * MODULES.html.sh (Multithreading): Add thread.
73328 2008-08-17  Bruno Haible  <bruno@clisp.org>
73330         * lib/glthread/lock.h: Include <stdlib.h> always.
73331         * lib/glthread/tls.h: Likewise.
73332         * lib/glthread/cond.h: Likewise.
73334 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73336         New module 'cond'.
73337         * modules/cond: New file.
73338         * lib/glthread/cond.h: New file.
73339         * lib/glthread/cond.c: New file.
73340         * m4/cond.m4: New file.
73341         * MODULES.html.sh (Multithreading): Add cond.
73343 2008-08-16  Eric Blake  <ebb9@byu.net>
73345         c-stack: fix regression on Irix 5.3 from 2008-06-21
73346         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
73347         sa_sigaction...
73348         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
73349         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
73350         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
73351         * modules/signal (Makefile.am): Use the value.
73352         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
73353         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
73354         * doc/posix-headers/signal.texi (signal.h): Document this
73355         portability issue.
73356         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
73357         Reported by Tom G. Christensen.
73359 2008-08-17  Bruno Haible  <bruno@clisp.org>
73361         New module 'threadlib'.
73362         * modules/threadlib: New file.
73363         * lib/glthread/threadlib.c: New file, extracted from
73364         lib/glthread/lock.c.
73365         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
73366         functions.
73367         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
73368         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
73369         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
73370         macros.
73371         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
73372         (gl_DISABLE_THREADS): Remove macro.
73373         * modules/lock (Files): Remove build-aux/config.rpath.
73374         (Depends-on): Remove havelib. Add threadlib.
73375         (configure.ac-early): Remove section.
73376         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
73377         * modules/tls (Depends-on): Remove lock. Add threadlib.
73378         (Link): New section, copied from threadlib.
73379         * MODULES.html.sh (Multithreading): Add threadlib.
73381 2008-08-14  Bruno Haible  <bruno@clisp.org>
73383         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
73384         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
73385         glthread_rwlock_unlock, glthread_rwlock_destroy,
73386         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
73387         glthread_recursive_lock_destroy): Define as macros always.
73388         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
73389         glthread_lock_lock.
73390         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
73391         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
73392         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
73393         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
73394         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
73395         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
73396         (glthread_recursive_lock_lock_func): Renamed from
73397         glthread_recursive_lock_lock.
73398         (glthread_recursive_lock_unlock_func): Renamed from
73399         glthread_recursive_lock_unlock.
73400         (glthread_recursive_lock_destroy_func): Renamed from
73401         glthread_recursive_lock_destroy.
73403 2008-08-14  Bruno Haible  <bruno@clisp.org>
73405         * lib/glthread/lock.h: Renamed from lib/lock.h.
73406         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
73407         * lib/glthread/tls.h: Renamed from lib/tls.h.
73408         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
73409         * lib/fstrcmp.c: Update includes.
73410         * lib/strsignal.c: Update includes.
73411         * modules/lock (Files, Makefile.am): Update.
73412         (Include): Change to "glthread/lock.h".
73413         * modules/tls (Files, Makefile.am): Update.
73414         (Include): Change to "glthread/tls.h".
73415         * tests/test-lock.c: Update includes.
73416         * tests/test-tls.c: Update includes.
73417         * NEWS: Mention the renamed header files.
73419 2008-08-11  Jim Meyering  <meyering@redhat.com>
73421         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
73423 2008-08-11  Eric Blake  <ebb9@byu.net>
73425         test-c-stack: avoid C99-ism
73426         * tests/test-c-stack.c (main): Fix whitespace, move declaration
73427         before statement.
73428         Reported by Alain Guibert.
73430 2008-08-10  Jim Meyering  <meyering@redhat.com>
73432         ensure that return value of uinttostr et al are not ignored
73433         * lib/inttostr.h (__GNUC_PREREQ): Define.
73434         (__attribute_warn_unused_result__): Define.
73435         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
73437 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
73439         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
73440         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
73442 2008-08-07  Jim Meyering  <meyering@redhat.com>
73444         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
73446         * modules/mkstemp (License): Relicense under LGPLv2+.
73447         * modules/tempname (License): Likewise.
73449 2008-08-06  Bruno Haible  <bruno@clisp.org>
73451         * lib/poll.c (poll): Further micro-optimization.
73453 2008-08-06  Jim Meyering  <meyering@redhat.com>
73455         inet_pton.c: use locale-independent tolower
73456         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
73457         (inet_pton6): Use c_tolower rather than tolower.
73458         * modules/inet_pton (Depends-on): Add c-ctype.
73460 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
73462         * lib/poll.c (poll): Avoid division when timeout is 0, cache
73463         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
73465 2008-08-06  Jim Meyering  <meyering@redhat.com>
73467         * modules/inet_pton (License): Relicense under LGPLv2+.
73469 2008-08-03  Bruno Haible  <bruno@clisp.org>
73471         Additional non-aborting API for lock and tls.
73472         * lib/lock.h: Include <errno.h>.
73473         (glthread_lock_init): New macro/function.
73474         (gl_lock_init): Define as wrapper around glthread_lock_init.
73475         (glthread_lock_lock): New macro/function.
73476         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
73477         (glthread_lock_unlock): New macro/function.
73478         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
73479         (glthread_lock_destroy): New macro/function.
73480         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
73481         (glthread_rwlock_init): New macro/function.
73482         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
73483         (glthread_rwlock_rdlock): New macro/function.
73484         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
73485         (glthread_rwlock_wrlock): New macro/function.
73486         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
73487         (glthread_rwlock_unlock): New macro/function.
73488         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
73489         (glthread_rwlock_destroy): New macro/function.
73490         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
73491         (glthread_recursive_lock_init): New macro/function.
73492         (gl_recursive_lock_init): Define as wrapper around
73493         glthread_recursive_lock_init.
73494         (glthread_recursive_lock_lock): New macro/function.
73495         (gl_recursive_lock_lock): Define as wrapper around
73496         glthread_recursive_lock_lock.
73497         (glthread_recursive_lock_unlock): New macro/function.
73498         (gl_recursive_lock_unlock): Define as wrapper around
73499         glthread_recursive_lock_unlock.
73500         (glthread_recursive_lock_destroy): New macro/function.
73501         (gl_recursive_lock_destroy): Define as wrapper around
73502         glthread_recursive_lock_destroy.
73503         (glthread_once): New macro/function.
73504         (gl_once): Define as wrapper around glthread_once.
73505         Update function declarations.
73506         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
73507         glthread_rwlock_init. Return error code.
73508         (glthread_rwlock_rdlock_multithreaded): Renamed from
73509         glthread_rwlock_rdlock. Return error code.
73510         (glthread_rwlock_wrlock_multithreaded): Renamed from
73511         glthread_rwlock_wrlock. Return error code.
73512         (glthread_rwlock_unlock_multithreaded): Renamed from
73513         glthread_rwlock_unlock. Return error code.
73514         (glthread_rwlock_destroy_multithreaded): Renamed from
73515         glthread_rwlock_destroy. Return error code.
73516         (glthread_recursive_lock_init_multithreaded): Renamed from
73517         glthread_recursive_lock_init. Return error code.
73518         (glthread_recursive_lock_lock_multithreaded): Renamed from
73519         glthread_recursive_lock_lock. Return error code.
73520         (glthread_recursive_lock_unlock_multithreaded): Renamed from
73521         glthread_recursive_lock_unlock. Return error code.
73522         (glthread_recursive_lock_destroy_multithreaded): Renamed from
73523         glthread_recursive_lock_destroy. Return error code.
73524         (glthread_once_call): Make static.
73525         (glthread_once_multithreaded): Renamed from glthread_once.
73526         * lib/tls.h: Include <errno.h>.
73527         (glthread_tls_key_init): New macro/function.
73528         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
73529         (glthread_tls_set): New macro/function.
73530         (gl_tls_set): Define as wrapper around glthread_tls_set.
73531         (glthread_tls_key_destroy): New macro/function.
73532         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
73533         Update function declarations.
73534         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
73535         glthread_tls_get.
73536         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
73538 2008-08-04  Eric Blake  <ebb9@byu.net>
73540         gnumakefile: use space, not TAB, outside of targets
73541         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
73543 2008-08-02  Jim Meyering  <meyering@redhat.com>
73545         getdate.y: avoid locale-dependent date parsing failure
73546         In Turkish locales, getdate would fail to recognize keywords
73547         containing a lowercase "i".  The solution is not to rely on
73548         locale-sensitive case-conversion.
73549         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
73550         (lookup_word): Use c_toupper in place of toupper.
73551         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
73552         Reported by Vefa Bicakci <bicave@superonline.com> in
73553         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
73554         * modules/getdate (Depends-on): Add c-ctype.
73556 2008-08-02  Bruno Haible  <bruno@clisp.org>
73558         * gnulib-tool (func_import): When updating or creating a .gitignore
73559         file, prepend each added line with a slash, and ignore leading slashes
73560         from the existing lines.
73561         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
73563 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73565         Portability fix for GNU make 3.79.1.
73566         * top/GNUmakefile: Avoid 'else COND', which older GNU make
73567         versions do not understand.
73569 2008-08-01  Bruno Haible  <bruno@clisp.org>
73571         Work around bug of HP-UX 10.20 cc with -0.0 literal.
73572         * tests/test-isnanf.h (zero): New variable.
73573         (main): Avoid literal -0.0f.
73574         * tests/test-isnand.h (zero): New variable.
73575         (main): Avoid literal -0.0.
73576         * tests/test-isnanl.h (zero): New variable.
73577         (main): Avoid literal -0.0L.
73578         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
73579         (test_float, test_double, test_long_double): Avoid literals -0.0f,
73580         -0.0, -0.0L.
73581         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
73582         (test_signbitd): Avoid literal -0.0.
73583         (test_signbitl): Avoid literal -0.0L.
73584         * tests/test-ceilf1.c (zero): New variable.
73585         (main): Avoid literal -0.0f.
73586         * tests/test-ceill.c (zero): New variable.
73587         (main): Avoid literal -0.0L.
73588         * tests/test-floorf1.c (zero): New variable.
73589         (main): Avoid literal -0.0f.
73590         * tests/test-floorl.c (zero): New variable.
73591         (main): Avoid literal -0.0L.
73592         * tests/test-roundf1.c (zero): New variable.
73593         (main): Avoid literal -0.0f.
73594         * tests/test-round1.c (zero): New variable.
73595         (main): Avoid literal -0.0.
73596         * tests/test-roundl.c (zero): New variable.
73597         (main): Avoid literal -0.0L.
73598         * tests/test-truncf1.c (zero): New variable.
73599         (main): Avoid literal -0.0f.
73600         * tests/test-trunc1.c (zero): New variable.
73601         (main): Avoid literal -0.0.
73602         * tests/test-truncl.c (zero): New variable.
73603         (main): Avoid literal -0.0L.
73604         * tests/test-frexp.c (zero): New variable.
73605         (main): Avoid literal -0.0.
73606         * tests/test-frexpl.c (zero): New variable.
73607         (main): Avoid literal -0.0L.
73608         * tests/test-ldexpl.c (zero): New variable.
73609         (main): Avoid literal -0.0L.
73610         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
73611         (zerod, zerol): New variables.
73612         (test_function): Avoid literals -0.0, -0.0L.
73613         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
73614         (zerod, zerol): New variables.
73615         (test_function): Avoid literals -0.0, -0.0L.
73616         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
73617         (zerod, zerol): New variables.
73618         (test_function): Avoid literals -0.0, -0.0L.
73619         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
73620         (zerod, zerol): New variables.
73621         (test_function): Avoid literals -0.0, -0.0L.
73622         * tests/test-strtod.c (zero): New variable.
73623         (main): Avoid literal -0.0.
73624         Reported by Jonathan C. Patschke <jp@centtech.com>.
73626 2008-07-31  Jim Meyering  <meyering@redhat.com>
73628         sha256.h: correct definition of SHA224_DIGEST_SIZE
73629         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
73630         Reported by Paulie Pena IV <paulie4@gmail.com>.
73631         Define as 224 / 8, rather than as a literal.
73632         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
73633         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
73634         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
73636 2008-07-31  Bruno Haible  <bruno@clisp.org>
73638         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
73639         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
73640         Reported by Jonathan Patschke <jp@centtech.com>.
73642 2008-07-31  Bruno Haible  <bruno@clisp.org>
73644         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
73645         Reported by Paolo Bonzini <bonzini@gnu.org>.
73647 2008-07-30  Eric Blake  <ebb9@byu.net>
73649         test-strtod: allow compilation without -lm
73650         * tests/test-strtod.c (main): Avoid link dependence on fabs.
73651         Reported by Dennis Clarke <blastwave@gmail.com>.
73653 2008-07-28  Jim Meyering  <meyering@redhat.com>
73655         bootstrap: work also when there are no .po files in po/
73656         * build-aux/bootstrap (update_po_files): Complete the change
73657         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
73659 2008-07-27  Jim Meyering  <meyering@redhat.com>
73661         * users.txt: Add zile.
73663 2008-07-26  Ben Pfaff  <blp@gnu.org>
73665         Add missing dependencies on new m4/exponent[fdl].m4 files.
73666         * modules/isnanf-nolibm: Add m4/exponentf.m4.
73667         * modules/isnand-nolibm: Add m4/exponentd.m4.
73668         * modules/isnanl-nolibm: Add m4/exponentl.m4.
73669         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
73670         m4/isnan[fdl].m4, because the macros actually used moved.
73671         Reported by Jim Meyering.
73673 2008-07-14  Ben Pfaff  <blp@gnu.org>
73675         Add isinf module.
73676         * lib/isinf.c: New file.
73677         * lib/math.in.h: Define isinf macro if we have decided to replace
73678         it.
73679         * m4/isinf.m4: New file.
73680         * m4/math_h.m4: Initialize and substitute variables for isinf
73681         module.
73682         * modules/isinf: New file.
73683         * modules/isinf-tests: New file.
73684         * modules/math: Add substitutions for new module.
73685         * tests/test-isinf.c: New file.
73686         * doc/posix-functions/isinf.texi: Mention new module.
73687         * MODULES.html.sh: Mention new module.
73689 2008-07-14  Ben Pfaff  <blp@gnu.org>
73691         Factor out some macros for use by additional modules.
73692         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
73693         exponentf.m4.
73694         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
73695         exponentd.m4.
73696         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
73697         file exponentl.m4.
73698         * m4/exponentf.m4: New file.
73699         * m4/exponentd.m4: New file.
73700         * m4/exponentl.m4: New file.
73701         * modules/isnanf: Use new file m4/exponentf.m4.
73702         * modules/isnand: Use new file m4/exponentd.m4.
73703         * modules/isnanl: Use new file m4/exponentl.m4.
73705 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
73707         mktime.c: normalize tp->tm_isdst value to -1/0/1.
73708         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
73709         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
73710         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
73712         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
73713         readlink on platforms without PATH_MAX.
73715 2008-07-21  Eric Blake  <ebb9@byu.net>
73717         Warn, not fail, on stale version.
73718         * top/GNUmakefile (_curr-ver): Tone down previous patch.
73720         Don't allow installation with stale devel version number.
73721         * top/GNUmakefile (_is-install-target): New macro.
73722         (_curr-ver): Forbid installation with stale version number.
73724 2008-07-20  Bruno Haible  <bruno@clisp.org>
73726         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
73727         TESTS_ENVIRONMENT.
73728         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
73730 2008-07-20  Bruno Haible  <bruno@clisp.org>
73732         * lib/c-stack.h (c_stack_action): Add documentation.
73733         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
73735 2008-07-20  Bruno Haible  <bruno@clisp.org>
73737         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
73738         * modules/readlink (License): Likewise.
73740 2008-07-17  Eric Blake  <ebb9@byu.net>
73742         * modules/c-stack (Link): Fix typo.
73744         Make c-stack use libsigsegv, when available.
73745         * modules/c-stack (Depends-on): Add libsigsegv.
73746         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
73747         needed.
73748         * lib/c-stack.c (SIGSTKSZ): Define fallback.
73749         (segv_handler, overflow_handler, c_stack_action)
73750         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
73751         implementation when libsigsegv is available, but only when using
73752         the library is necessary.
73753         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
73754         comment, explaining why XSI check fails on Linux.
73755         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
73756         * tests/test-c-stack2.sh: Tweak skip message.
73757         * NEWS: Document new link-time requirements.
73759 2008-07-16  Eric Blake  <ebb9@byu.net>
73761         c-stack: Expose false positives when not using libsigsegv.
73762         * modules/c-stack-tests (Files): Expand test.
73763         * tests/test-c-stack.c (main): Add means to conditionally trigger
73764         non-overflow SIGSEGV.
73765         * tests/test-c-stack2.sh: New file.
73767 2008-07-14  Bruno Haible  <bruno@clisp.org>
73769         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
73770         Reported by Eric Blake.
73772 2008-07-14  Sam Steingold  <sds@gnu.org>
73773             Bruno Haible  <bruno@clisp.org>
73775         New module libsigsegv.
73776         * modules/libsigsegv: New file.
73777         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
73778         modifications.
73779         * MODULES.html.sh (Signal handling): New section.
73781 2008-07-14  Bruno Haible  <bruno@clisp.org>
73783         * modules/unictype/ctype-* (Description): Add the word "function".
73784         Improves the resulting doc in MODULES.html.
73786 2008-07-12  Ben Pfaff  <blp@gnu.org>
73788         Add longlong module.
73789         * modules/longlong: New file.
73791 2008-07-12  Bruno Haible  <bruno@clisp.org>
73793         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
73794         to empty.
73796 2008-07-10  Ben Pfaff  <blp@gnu.org>
73798         Add isnan module.
73799         * doc/posix-functions/isnan.texi: Mention new module.
73800         * lib/math.in.h: Define isnan macro if we have decided to replace
73801         it.
73802         * m4/isnan.m4: New file.
73803         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
73804         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
73805         also.
73806         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
73807         redundancy.
73808         * m4/math_h.m4: Initialize and substitute variables for isnan
73809         module.
73810         * modules/isnan: New file.
73811         * modules/isnan-tests: New file.
73812         * modules/math: Add substitutions for new module.
73813         * tests/test-isnan.c: New file.
73814         * MODULES.html.sh: Mention new module.
73816 2008-07-10  Ben Pfaff  <blp@gnu.org>
73818         Add isnanf module.
73819         * lib/isnanf.m4: New file.
73820         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
73821         (gl_HAVE_ISNANF_IN_LIBM): New macro.
73822         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
73823         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
73824         * modules/isnanf: New file.
73825         * modules/isnanf-tests: New file.
73826         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
73827         files.
73828         * tests/test-isnanf-nolibm.c: factored most of its contents into
73829         new file tests/test-isnanf.h.
73830         * tests/test-isnanf.h: New file.
73831         * tests/test-isnanf.c: New file.
73832         * MODULES.html.sh: Mention new module.
73833         * doc/glibc-functions/isnanf.texi: Mention new module.
73835 2008-07-10  Ben Pfaff  <blp@gnu.org>
73837         Add isnand module.
73838         * lib/isnand.h: New file.
73839         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
73840         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
73841         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
73842         functionality also.
73843         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
73844         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
73845         (gl_HAVE_ISNAND_IN_LIBM): New macro.
73846         * modules/isnand: New file.
73847         * modules/isnand-tests: New file.
73848         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
73849         files.
73850         * tests/test-isnand-nolibm.c: factored most of its contents into
73851         new file tests/test-isnand.h.
73852         * tests/test-isnand.h: New file.
73853         * tests/test-isnand.c: New file.
73854         * MODULES.html.sh: Mention new module.
73856 2008-07-10  Ben Pfaff  <blp@gnu.org>
73858         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
73859         * lib/isnand.h: Rename lib/isnand-nolibm.h.
73860         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
73861         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
73862         * modules/isnanf-nolibm: Update references to renamed files.
73863         * modules/isnand-nolibm: Likewise.
73864         * modules/isnanf-nolibm-tests: Likewise.
73865         * modules/isnand-nolibm-tests: Likewise.
73866         * lib/frexp.c: Likewise.
73867         * lib/isfinite.c: Likewise.
73868         * lib/signbitd.c: Likewise.
73869         * lib/signbitf.c: Likewise.
73870         * lib/vasnprintf.c: Likewise.
73871         * tests/test-ceilf1.c: Likewise.
73872         * tests/test-ceilf2.c: Likewise.
73873         * tests/test-floorf1.c: Likewise.
73874         * tests/test-floorf2.c: Likewise.
73875         * tests/test-frexp.c: Likewise.
73876         * tests/test-round1.c: Likewise.
73877         * tests/test-round2.c: Likewise.
73878         * tests/test-roundf1.c: Likewise.
73879         * tests/test-strtod.c: Likewise.
73880         * tests/test-trunc1.c: Likewise.
73881         * tests/test-trunc2.c: Likewise.
73882         * tests/test-truncf1.c: Likewise.
73883         * tests/test-truncf2.c: Likewise.
73884         * NEWS: Mention the renamed header files.
73886 2008-07-11  Jim Meyering  <meyering@redhat.com>
73888         vc-list-files: make the last-resort awk code more portable
73889         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
73890         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
73891         does not support it.
73893 2008-07-10  Eric Blake  <ebb9@byu.net>
73895         Work with tar's bootstrap.
73896         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
73897         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
73898         an m4 comment.
73900 2008-07-09  Jim Meyering  <meyering@redhat.com>
73902         posix-shell.m4: fix typo that made this test malfunction
73903         * m4/posix-shell.m4: Remove capitalization in variable name.
73905 2008-07-08  Bruno Haible  <bruno@clisp.org>
73907         * m4/onceonly.m4: Update comments.
73908         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73910 2008-07-04  Jim Meyering  <meyering@redhat.com>
73912         * users.txt: Add vc-dwim.
73913         (bison, coreutils): Use the gitweb URL.
73915 2008-07-03  Jim Meyering  <meyering@redhat.com>
73917         * users.txt: Add libffcall.  From Sam Steingold.
73919 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
73921         getdate.y: do not ignore TZ with relative day, month or year offset
73922         * lib/getdate.y (get_date): Move the tz-handling block to follow the
73923         relative-date-handling, since otherwise, the latter would clobber the
73924         sole output (an updated Start value) of the tz-handling block.
73925         * tests/test-getdate.c: Tests for the fix
73927 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73929         Recognize 'foo_LIBRARIES += libgnu.a'.
73930         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
73931         makefile snippet has already specified an installation location,
73932         also using '+='.
73934 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
73936         getdate.y: factor out common actions
73937         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
73938         Use them in place of open-coded actions.
73940 2008-07-01  Simon Josefsson  <simon@josefsson.org>
73942         Add self-test for getdate module.
73943         * modules/getdate-tests: New file.
73944         * tests/test-getdate.c: New file.
73946 2008-06-29  Bruno Haible  <bruno@clisp.org>
73948         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
73949         .gitignore.
73950         Reported by Sylvain Beucler <beuc@beuc.net>.
73952 2008-06-29  Bruno Haible  <bruno@clisp.org>
73954         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
73955         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
73957 2008-06-29  Bruno Haible  <bruno@clisp.org>
73959         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
73960         EXTRA_DIST.
73961         Reported by Sylvain Beucler <beuc@beuc.net>.
73963 2008-06-26  Jim Meyering  <meyering@redhat.com>
73965         make several modules depend on the "open" module
73966         This provides slightly increased consistency when opening-for-write
73967         the name of a non-directory spelled with a trailing slash.
73968         * modules/chdir-safer: Likewise.
73969         * modules/chown: Likewise.
73970         * modules/clean-temp: Likewise.
73971         * modules/copy-file: Likewise.
73972         * modules/fchdir: Likewise.
73973         * modules/fcntl-safer: Likewise.
73974         * modules/pipe: Likewise.
73975         * modules/utime: Likewise.
73976         Prompted by Eric Blake and Bruno Haible.
73978 2008-06-24  Andreas Schwab  <schwab@suse.de>
73980         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
73981         literals can be used as initializers for global variables.
73983 2008-06-23  Eric Blake  <ebb9@byu.net>
73985         Make gnulib-cache.m4 easier to diff.
73986         * gnulib-tool (func_import): Allow newlines when reading cached
73987         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
73989 2008-06-23  Bruno Haible  <bruno@clisp.org>
73991         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
73992         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
73993         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
73994         m4/signalblocking.m4.
73995         (gl_PREREQ_SIGACTION): Don't invoke it.
73996         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
73997         gl_PREREQ_SIG_HANDLER_H.
73998         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
73999         Don't check for sigaction here.
74001 2008-06-23  Bruno Haible  <bruno@clisp.org>
74003         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
74004         (install_handlers): Don't set the SA_RESETHAND flag.
74006 2008-06-23  Bruno Haible  <bruno@clisp.org>
74008         * m4/sigaction.m4: Comment fixes.
74009         * lib/signal.in.h: Likewise.
74011 2008-06-23  Eric Blake  <ebb9@byu.net>
74013         Fix typo.
74014         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
74016         Avoid SA_ namespace.
74017         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
74018         Reported by Ralf Wildenhues.
74020         Avoid test failure due to SA_RESTORER.
74021         * tests/test-sigaction.c (SA_MASK): New macro.
74022         (main): Avoid failing due to extension flags being set.
74023         Reported by Jim Meyering.
74025         Revert use of sig-handler.h in sigprocmask.c.
74026         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
74027         it requires the existence of struct sigaction.
74028         * lib/sigprocmask.c (handler_t): Restore typedef.
74029         (rpl_signal, old_handlers): Use local type.
74031 2008-06-22  Bruno Haible  <bruno@clisp.org>
74033         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
74034         conditionally.
74035         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
74037 2008-06-22  Bruno Haible  <bruno@clisp.org>
74039         * doc/posix-functions/siginterrupt.texi: Move note.
74041         * lib/signal.in.h (SA_RESTART): New macro.
74042         * lib/sigaction.c: Update comment.
74044         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
74046         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
74047         (gl_PREREQ_SIGPROCMASK): Invoke it.
74048         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
74050         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
74052         * lib/sigprocmask.c: Update a comment.
74054 2008-06-21  Eric Blake  <ebb9@byu.net>
74056         Use sigaction module rather than signal().
74057         * modules/c-stack (Depends-on): Add sigaction.
74058         * modules/fatal-signal (Depends-on): Likewise.
74059         * modules/nanosleep (Depends-on): Likewise.
74060         * modules/sigprocmask (Files): Add sig-handler.h.
74061         * modules/sigaction (Files): Likewise.
74062         * lib/sig-handler.h (get_handler): New file, suggested by Paul
74063         Eggert.
74064         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
74065         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
74066         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
74067         (init_fatal_signals): Likewise.
74068         * lib/nanosleep.c (rpl_nanosleep): Likewise.
74069         (siginterrupt): Delete fallback.
74070         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
74071         instead.
74072         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
74073         siginterrupt.
74075         New module sigaction, for mingw.
74076         * modules/sigaction: New module...
74077         * modules/sigaction-tests: ...and its test.
74078         * m4/sigaction.m4: New file.
74079         * lib/sigaction.c: Likewise.
74080         * tests/test-sigaction.c: Likewise.
74081         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
74082         * modules/signal (Makefile.am): Likewise.
74083         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
74084         needed.
74085         * doc/posix-headers/signal.texi (signal.h): Mention provided
74086         types.
74087         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
74088         that sigaction is preferable.
74089         * doc/posix-functions/sigaction.texi (sigaction): Mention new
74090         module.
74091         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74092         sigaction.
74094         Improve robustness of sigprocmask by overriding signal.
74095         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
74096         is in use.
74097         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
74098         (SIGKILL, SIGSTOP): Provide fallbacks.
74099         (rpl_signal): Implement.
74100         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
74101         signal can be called inside handlers.
74103         Fix nanosleep module on mingw.
74104         * modules/nanosleep (Depends-on): Add sys_select.
74105         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
74107         Fix licensing of sigprocmask.
74108         * modules/raise (License): Relicense as LGPL.
74110 2008-06-21  Bruno Haible  <bruno@clisp.org>
74112         * lib/propername.c (proper_name_utf8): Don't use the transliterated
74113         result if it contains question marks.
74114         Reported by Michael Geng <linux@michaelgeng.de>.
74116 2008-06-19  Bruno Haible  <bruno@clisp.org>
74118         Fix CVS-ism.
74119         * doc/gnulib.texi: Include updated-stamp.texi.
74120         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
74121         (updated-stamp.texi): New rule.
74122         (gnulib.info): Depend on it.
74123         * doc/.gitignore: Add updated-stamp.texi.
74124         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
74126 2008-06-19  Bruno Haible  <bruno@clisp.org>
74128         * doc/Makefile (gnulib.info): Update and simplify dependencies.
74129         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
74131 2008-06-19  Eric Blake  <ebb9@byu.net>
74133         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
74134         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
74135         Reported by Stepan Kasal.
74137 2008-06-18  Bruno Haible  <bruno@clisp.org>
74139         * lib/fatal-signal.c (init_fatal_signals): Add comment.
74140         Reported by Eric Blake.
74142 2008-06-18  Eric Blake  <ebb9@byu.net>
74144         Work around cygwin 1.5.25 strsignal bug.
74145         * tests/test-strsignal.c: Allow for const char *.
74146         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
74148 2008-06-18  Simon Josefsson  <simon@josefsson.org>
74150         * users.txt: Update URL to article and add author/date
74151         information.
74153 2008-06-17  Bruno Haible  <bruno@clisp.org>
74155         New macro gl_DISABLE_THREADS.
74156         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
74157         if the user did not pass --enable-threads or --disable-threads option.
74158         (gl_DISABLE_THREADS): New macro.
74159         Reported by Eric Blake <ebb9@byu.net>.
74161 2008-06-17  Bruno Haible  <bruno@clisp.org>
74163         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
74164         when the macro ignores it.
74165         Based on a patch by Eric Blake <ebb9@byu.net>.
74167 2008-06-17  Bruno Haible  <bruno@clisp.org>
74169         * modules/tls (License): Change to LGPLv2+.
74170         Reported by Eric Blake.
74172 2008-06-17  Eric Blake  <ebb9@byu.net>
74174         Simplify c-stack prerequisites.
74175         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
74176         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
74177         no longer requires <ucontext.h> to exist.  Optimize setrlimit
74178         check.
74179         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
74180         <sys/resource.h>.
74182         Move c-stack test into testsuite.
74183         * modules/c-stack-tests: New file.
74184         * lib/c-stack.c [DEBUG]: Move test program...
74185         * tests/test-c-stack.c: ...into this new file.  Skip rather than
74186         fail test if sigaltstack is lacking.
74187         * tests/test-c-stack.sh: New driver file.
74189 2008-06-16  Eric Blake  <ebb9@byu.net>
74191         Use raise module consistently.
74192         * modules/fatal-signal (Depends-on): Add raise.
74193         * modules/sigprocmask (Depends-on): Likewise.
74194         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
74195         * lib/sigprocmask.c (sigprocmask): Likewise.
74196         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
74197         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
74199         Fix compliance bug in sigpending.
74200         * lib/sigprocmask.c (sigpending): Return pending array via
74201         parameter, not return value.
74203 2008-06-14  Eric Blake  <ebb9@byu.net>
74205         Improve obstack-printf test code.
74206         * tests/test-obstack-printf.c (test_function): Fix comment, and
74207         simplify usage of obstack_* in macros.  Add a test for coverage.
74208         Reported by Bruno Haible.
74210 2008-06-14  Bruno Haible  <bruno@clisp.org>
74212         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
74213         array size as a constant, not as a const variable.
74214         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
74215         AC_USE_SYSTEM_EXTENSIONS.
74216         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
74217         Test whether the obstack_printf function actually exists.
74218         * modules/obstack-printf (Depends-on): Add extensions.
74219         (Include): Remove obstack.h.
74220         * modules/obstack-printf-posix (Depends-on): Add extensions.
74221         (Include): Remove obstack.h.
74223 2008-06-13  Eric Blake  <ebb9@byu.net>
74225         Add obstack-printf and obstack-printf-posix modules.
74226         * modules/obstack-printf: New file.
74227         * modules/obstack-printf-posix: Likewise.
74228         * MODULES.html.sh (Misc): Mention them.
74229         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
74230         Likewise.
74231         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
74232         Likewise.
74233         * modules/stdio (Makefile.am): Accomodate new modules.
74234         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
74235         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
74236         Declare.
74237         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
74238         functions.
74239         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
74240         (gl_REPLACE_OBSTACK_PRINTF): New macros
74241         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
74242         * tests/test-obstack-printf.c: New file.
74243         * modules/obstack-printf-tests: Likewise.
74244         * modules/obstack-printf-posix-tests: Likewise.
74246 2008-06-11  Bruno Haible  <bruno@clisp.org>
74248         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
74249         * lib/open.c: Include errno.h.
74250         (open): Fail when attempting to write to a file that has a trailing
74251         slash.
74252         * tests/test-open.c (main): Test against trailing slash bug.
74253         * doc/posix-functions/open.texi: Mention the trailing slash bug.
74255 2008-06-10  Bruno Haible  <bruno@clisp.org>
74257         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
74258         for $? to work inside the trap command, with various /bin/sh-s.
74259         * tests/test-vc-list-files-cvs.sh: Likewise.
74261 2008-06-10  Bruno Haible  <bruno@clisp.org>
74263         * lib/acl-internal.h: Don't include gettext.h here.
74264         * lib/set-mode-acl.c: Include gettext.h here.
74265         * lib/copy-acl.c: Likewise.
74267 2008-06-10  Bruno Haible  <bruno@clisp.org>
74269         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
74270         * lib/wait-process.c (wait_subprocess): Likewise.
74271         * lib/execute.h (execute): Add termsigp argument.
74272         * lib/execute.c (execute): Likewise.
74273         * lib/csharpcomp.c (compile_csharp_using_pnet,
74274         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
74275         * lib/csharpexec.c (execute_csharp_using_pnet,
74276         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
74277         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
74278         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
74279         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
74280         is_jikes_present): Update.
74281         * lib/javaexec.c (execute_java_class): Update.
74282         * lib/javaversion.c (execute_and_read_line): Update.
74283         * NEWS: Document the changes.
74284         Reported by Eric Blake.
74286 2008-06-10  Eric Blake  <ebb9@byu.net>
74288         Add missing include.
74289         * tests/test-strstr.c (includes): Add <signal.h>.
74290         * tests/test-strcasestr.c (includes): Likewise.
74291         * tests/test-memmem.c (includes): Likewise.
74293 2008-06-10  Bruno Haible  <bruno@clisp.org>
74295         * lib/wait-process.c (wait_subprocess): Add an assertion.
74297 2008-06-10  Bruno Haible  <bruno@clisp.org>
74299         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
74301 2008-06-10  Bruno Haible  <bruno@clisp.org>
74303         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
74304         using alarm().
74305         * tests/test-strcasestr.c (main): Likewise.
74306         * tests/test-strstr.c (main): Likewise.
74308 2008-06-09  Bruno Haible  <bruno@clisp.org>
74310         Work around the Solaris 10 ACE ACLs ABI change.
74311         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
74312         declare if ACL_NO_TRIVIAL is present.
74313         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
74314         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
74315         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
74316         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
74317         define if ACL_NO_TRIVIAL is present.
74318         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
74319         and use the current ABI.
74320         (file_has_acl): Use same #if condition as elsewhere.
74321         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
74322         in use, and use the current ABI.
74323         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
74324         Reported by Jim Meyering.
74326 2008-06-09  Eric Blake  <ebb9@byu.net>
74328         Work around environments that (stupidly) ignore SIGALRM.
74329         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
74330         before using alarm().
74331         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
74332         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
74333         Reported by Ian Beckwith <ianb@erislabs.net>.
74335         Produce autobuild blurb earlier in log.
74336         * modules/autobuild (configure.ac-early): Move AB_INIT here.
74338 2008-06-09  Jim Meyering  <meyering@redhat.com>
74339         and Ondřej Vašík  <ovasik@redhat.com>
74341         utimens.c: correct kernel bug work-around
74342         Ondřej Vašík found that the invalid return value of 280 indicates
74343         failure, not success, and the kernel bug we're trying to work
74344         around affects not just the utimensat call, but also the fallback
74345         futimens call.
74346         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
74347         not success.
74348         [HAVE_FUTIMENS]: Use the same work-around, here.
74350 2008-06-09  Jim Meyering  <meyering@redhat.com>
74352         add more guards around definition of ACE_-related code
74353         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
74354         ALLOW and ACE_OWNER are also defined.
74356 2008-06-08  Bruno Haible  <bruno@clisp.org>
74358         * lib/acl-internal.h: Add me as co-author.
74359         * lib/file-has-acl.c: Likewise.
74360         * lib/set-mode-acl.c: Likewise.
74361         * lib/copy-acl.c: Likewise.
74363 2008-06-08  Bruno Haible  <bruno@clisp.org>
74365         Add support for AIX ACLs.
74366         * lib/acl-internal.h (acl_nontrivial): New declaration.
74367         * lib/file-has-acl.c (acl_nontrivial): New function.
74368         (file_has_acl): Add implementation using AIX 4 ACL API.
74369         * lib/set-mode-acl.c (qset_acl): Likewise.
74370         * lib/copy-acl.c (qcopy_acl): Likewise.
74372 2008-06-08  Bruno Haible  <bruno@clisp.org>
74374         Add support for HP-UX ACLs.
74375         * lib/acl-internal.h (acl_nontrivial): New declaration.
74376         * lib/file-has-acl.c (acl_nontrivial): New function.
74377         (file_has_acl): Add implementation using HP-UX 11 ACL API.
74378         * lib/set-mode-acl.c (qset_acl): Likewise.
74379         * lib/copy-acl.c (qcopy_acl): Likewise.
74381 2008-06-08  Bruno Haible  <bruno@clisp.org>
74383         Add support for Cygwin ACLs.
74384         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
74385         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
74386         the chmod_or_fchmod call.
74387         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
74389 2008-06-08  Bruno Haible  <bruno@clisp.org>
74391         Fix bug with setuid modes in Solaris 10+ code.
74392         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
74393         succeeded, when the mode contains some special bits.
74395 2008-06-08  Bruno Haible  <bruno@clisp.org>
74397         Add support for Solaris 7..10 ACLs.
74398         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
74399         declarations.
74400         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
74401         functions.
74402         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
74403         * lib/set-mode-acl.c (qset_acl): Likewise.
74404         * lib/copy-acl.c (qcopy_acl): Likewise.
74406 2008-06-08  Bruno Haible  <bruno@clisp.org>
74408         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
74409         declaration.
74410         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
74411         (acl_access_nontrivial): Remove MacOS X case.
74412         (file_has_acl): Use acl_extended_nontrivial.
74413         * lib/copy-acl.c (qcopy_acl): Likewise.
74415 2008-06-08  Bruno Haible  <bruno@clisp.org>
74417         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
74419 2008-06-08  Jim Meyering  <meyering@redhat.com>
74421         * modules/acl (Maintainer): Add Bruno Haible.
74423 2008-06-07  Bruno Haible  <bruno@clisp.org>
74425         Improve support for Tru64 ACLs.
74426         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
74427         ACL on OSF/1.
74429 2008-06-07  Bruno Haible  <bruno@clisp.org>
74431         Add support for MacOS X ACLs.
74432         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
74433         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
74434         * lib/set-mode-acl.c (qset_acl): Likewise.
74435         * lib/copy-acl.c (qcopy_acl): Likewise.
74437 2008-06-07  Bruno Haible  <bruno@clisp.org>
74439         Fix memory leak introduced on 2008-05-22.
74440         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
74441         use.
74443 2008-06-07  Bruno Haible  <bruno@clisp.org>
74445         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
74446         to construct an empty ACL.
74448 2008-06-07  Bruno Haible  <bruno@clisp.org>
74450         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
74451         precisely.
74452         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
74454 2008-06-07  Bruno Haible  <bruno@clisp.org>
74456         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
74457         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
74459 2008-06-07  Bruno Haible  <bruno@clisp.org>
74461         * doc/posix-functions/_setjmp.texi: Explain the use of this function
74462         regardless of POSIX.
74463         * doc/posix-functions/_longjmp.texi: Likewise.
74464         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
74465         SystemV platform in this case.
74467 2008-06-06  Eric Blake  <ebb9@byu.net>
74469         Document abort() bugs.
74470         * doc/posix-functions/abort.texi (abort): Mention anomalies.
74472         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
74473         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
74474         sigsetjmp.
74475         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
74476         siglongjmp, but only as a macro.
74477         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
74478         is obsolete.
74479         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
74481         Tweak documentation to cover cygwin argz bugs.
74482         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
74483         argz bug fix; no code change needed since no cygwin releases
74484         occurred between the last fix and the bug being tested.
74485         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
74486         module and recently fixed cygwin bugs.
74487         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
74488         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
74489         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
74490         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
74491         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
74492         Likewise.
74493         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
74494         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
74495         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
74496         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
74497         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
74498         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
74499         Likewise.
74501         Avoid gcc warning on cygwin.
74502         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
74503         !ACL_NO_TRIVIAL]: Avoid unused variable.
74505 2008-06-05  Eric Blake  <ebb9@byu.net>
74507         Be tolerant of UNKNOWN version in gnulib-tool test dir.
74508         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
74509         git-version-gen fails to come up with a version.
74510         Reported by Simon Josefsson.
74512 2008-06-05  Jim Meyering  <meyering@redhat.com>
74513             Paul Eggert  <eggert@cs.ucla.edu>
74515         utimens.c: work around a probable Linux kernel bug
74516         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
74517         appears to be a kernel bug that causes utimensat to return 280
74518         instead of 0, indicating success.
74520 2008-06-04  Bruno Haible  <bruno@clisp.org>
74522         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
74523         2008-06-01 commit.
74525 2008-06-04  Bruno Haible  <bruno@clisp.org>
74527         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
74528         * lib/file-has-acl.c (acl_access_nontrivial): New function.
74529         (file_has_acl): Use it. Save errno afterwards.
74530         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
74532 2008-06-03  Bruno Haible  <bruno@clisp.org>
74534         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
74535         draft code. Simplify #ifs.
74536         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
74537         Put Solaris code after POSIX-draft code. Fix comments regarding
74538         Solaris 10, HP-UX. Mention Cygwin.
74539         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
74541 2008-06-03  Eric Blake  <ebb9@byu.net>
74543         Provide fallback for older kernels.
74544         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
74545         Provide runtime fallback if kernel lacks support.
74546         Reported by Mike Frysinger.
74548 2008-06-02  Bruno Haible  <bruno@clisp.org>
74550         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
74551         it exists.
74553 2008-06-02  Bruno Haible  <bruno@clisp.org>
74555         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
74556         * lib/copy-acl.c (qcopy_acl): Update comment.
74558 2008-06-02  Bruno Haible  <bruno@clisp.org>
74560         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
74561         like ACL APIs.
74563 2008-06-02  Bruno Haible  <bruno@clisp.org>
74565         * tests/test-file-has-acl.sh: Use different code for Cygwin.
74566         * tests/test-set-mode-acl.sh: Likewise.
74567         * tests/test-copy-acl.sh: Likewise.
74568         * tests/test-copy-file.sh: Likewise.
74570 2008-06-02  Bruno Haible  <bruno@clisp.org>
74572         * tests/test-file-has-acl.sh: Remove unused code.
74574 2008-06-01  Bruno Haible  <bruno@clisp.org>
74576         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
74577         (copy_acl): Just a wrapper around qcopy_acl that emits the error
74578         messages.
74579         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
74581 2008-06-01  Bruno Haible  <bruno@clisp.org>
74583         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
74584         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
74585         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
74586         APIs.
74587         * modules/acl-tests (configure.ac): Remove tests now contained in
74588         m4/acl.m4.
74590 2008-06-02  Jim Meyering  <meyering@redhat.com>
74592         announce-gen: use a better key-server host name
74593         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
74594         it may be more consistently reliable.  Suggested by Werner Koch
74595         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
74597 2008-06-01  Bruno Haible  <bruno@clisp.org>
74599         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
74600         Reported by Voroskoi Andras <voroskoi@gmail.com>.
74602 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
74604         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
74606 2008-06-01  Bruno Haible  <bruno@clisp.org>
74608         New ACL tests.
74609         * tests/test-file-has-acl.sh: New file.
74610         * tests/test-file-has-acl.c: New file.
74611         * tests/test-set-mode-acl.sh: New file.
74612         * tests/test-set-mode-acl.c: New file.
74613         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
74614         * tests/test-copy-acl.c: New file.
74615         * modules/acl-tests: New file, based on modules/copy-file-tests.
74616         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
74617         (Depends-on): Add acl-tests.
74618         (configure.ac): Remove checks.
74619         (Makefile.am): Don't create test-sameacls program here any more.
74621 2008-06-01  Bruno Haible  <bruno@clisp.org>
74623         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
74624         * tests/test-sameacls.c: Include progname.h.
74625         (main): Invoke set_program_name. Portability fixes for MacOS X,
74626         Solaris, HP-UX.
74628 2008-06-01  Bruno Haible  <bruno@clisp.org>
74630         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
74631         function.
74632         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
74634 2008-06-01  Bruno Haible  <bruno@clisp.org>
74636         * modules/rpmatch (Depends-on): Add strdup.
74638 2008-06-01  Bruno Haible  <bruno@clisp.org>
74640         * lib/pipe.c: Include unistd-safer.h.
74641         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
74642         * modules/pipe (Depends-on): Add unistd-safer.
74644 2008-05-30  Simon Josefsson  <simon@josefsson.org>
74646         * modules/autobuild (configure.ac): Call AB_INIT.
74648 2008-05-30  Simon Josefsson  <simon@josefsson.org>
74650         * tests/test-getaddrinfo.c: Don't print debug messages by default.
74651         Suggested by Bruno Haible <bruno@clisp.org>.
74653 2008-05-30  Simon Josefsson  <simon@josefsson.org>
74655         * tests/test-base64.c: Cast size_t to unsigned long when invoking
74656         printf.  Use %lu instead of %d.  Reported by Bruno Haible
74657         <bruno@clisp.org>.
74659 2008-05-29  Eric Blake  <ebb9@byu.net>
74661         Prefer new POSIX 200x interfaces over futimesat.
74662         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
74663         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
74664         when available.
74665         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
74667 2008-05-28  Bruno Haible  <bruno@clisp.org>
74669         * modules/stpcpy (License): Change to LGPLv2+.
74670         Requested by David Lutterkort <dlutter@redhat.com>.
74672 2008-05-27  Bruno Haible  <bruno@clisp.org>
74674         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
74675         current mingw.
74676         Reported by Jose E. Marchesi <jemarch@gnu.org>.
74678 2008-05-27  Bruno Haible  <bruno@clisp.org>
74680         * modules/iconv_open (Link): New section, from module 'iconv'.
74681         * modules/striconv (Link): Likewise.
74682         * modules/striconveh (Link): Likewise.
74683         * modules/xstriconv (Link): Likewise.
74684         * modules/unicodeio (Link): Likewise.
74685         * modules/propername (Link): Likewise.
74686         Reported by Jim Meyering.
74688 2008-05-26  Jim Meyering  <meyering@redhat.com>
74690         sha256: do not artificially restrict buffer length to be < 2^32
74691         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
74692         uint32_t to size_t.
74693         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
74694         to match.
74696         avoid unaligned access errors, e.g., on sparc
74697         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
74698         direct access through a possibly-unaligned uint64* pointer.
74699         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
74700         direct access through a possibly-unaligned uint32* pointer.
74701         Prompted by this patch from Tom "spot" Callaway:
74702         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
74704         sha512.c: fix typo in comment
74705         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
74707 2008-05-25  Bruno Haible  <bruno@clisp.org>
74709         * lib/set-mode-acl.c: Renamed from lib/acl.c.
74710         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
74711         (Makefile.am): Update lib_SOURCES.
74713 2008-05-25  Bruno Haible  <bruno@clisp.org>
74715         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
74717 2008-05-25  Jim Meyering  <meyering@redhat.com>
74719         useless-if-before-free: freed expr may have white-space differences
74720         * build-aux/useless-if-before-free: Recognize cases in which the
74721         freed expression differs from the tested one in embedded white
74722         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
74723         $1 was used, so we can't make any regexp shy.  Improved tests now
74724         detect this.
74726         useless-if-before-free: accept white space in the expression.
74727         * build-aux/useless-if-before-free: For now, any white space
74728         in the expression must be identical in the free argument.
74730         useless-if-before-free: efficiency tweak
74731         * build-aux/useless-if-before-free: Make the expression-matching
74732         regexp "shy".
74733         Make the *outer* regexp shy, not the expr-matching one.
74735         update code-in-comment to accept cast of free arg
74736         * build-aux/useless-if-before-free: Update regexp.
74738 2008-05-25  Bruno Haible  <bruno@clisp.org>
74740         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
74741         * modules/copy-file-tests (Files, Makefile.am): Update.
74742         * tests/test-copy-file.c (func_test_copy): Update.
74744 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
74746         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
74748 2008-05-23  Bruno Haible  <bruno@clisp.org>
74750         Improve support for ACLs on OSF/1.
74751         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
74752         Remove fallback for unknown flavors of ACLs.
74754 2008-05-22  Bruno Haible  <bruno@clisp.org>
74756         Add support for ACLs on OSF/1.
74757         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
74758         replacements.
74759         (acl_free_text): New macro fallback.
74760         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
74761         acl_free.
74762         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
74763         acl_free_text function. Require AC_C_INLINE.
74765 2008-05-22  Bruno Haible  <bruno@clisp.org>
74767         Make copy_acl work on MacOS X 10.5.
74768         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
74769         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
74770         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
74771         If MODE_INSIDE_ACL, don't assume that every system has the same text
74772         representation for ACLs as FreeBSD.
74773         * lib/copy-acl.c (copy_acl): Add support for platforms with
74774         !MODE_INSIDE_ACL.
74775         * lib/file-has-acl.c (file_has_acl): Likewise.
74776         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
74777         FreeBSD, MacOS X, or IRIX, respectively.
74779 2008-05-22  Bruno Haible  <bruno@clisp.org>
74781         * lib/acl.h: Don't include <sys/acl.h>.
74782         (GETACLCNT): Move fallback to lib/acl-internal.h.
74783         * lib/acl-internal.h: Include <sys/acl.h> here.
74784         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
74786 2008-05-22  Bruno Haible  <bruno@clisp.org>
74788         Split off copy_acl function to separate file.
74789         * lib/copy-acl.c: New file, extracted from lib/acl.c.
74790         * lib/acl.c (copy_acl): Moved function to separate file.
74791         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
74792         * modules/acl (Files): Add lib/copy-acl.c.
74793         (Makefiles.am): Augment lib_SOURCES.
74795 2008-05-22  Bruno Haible  <bruno@clisp.org>
74797         * modules/copy-file-tests: New file.
74798         * tests/test-copy-file.sh: New file.
74799         * tests/test-copy-file.c: New file.
74800         * tests/test-copy-file-sameacls.c: New file.
74802 2008-05-22  Eric Blake  <ebb9@byu.net>
74804         Avoid gcc warning.
74805         * tests/test-memcmp.c (main): Pass NULL indirectly.
74807 2008-05-21  Bruno Haible  <bruno@clisp.org>
74809         Add reference doc about ACLs.
74810         * doc/acl-resources.txt: New file.
74811         * doc/acl-cygwin.txt: New file.
74813 2008-05-21  Bruno Haible  <bruno@clisp.org>
74815         Avoid one more warning from gcc.
74816         * lib/vasnprintf.c (IF_LINT): Update comments.
74817         (VASNPRINTF): Use it also for the 'prefix' array initializer.
74819 2008-05-21  Jim Meyering  <meyering@redhat.com>
74821         avoid a warning from gcc
74822         * lib/vasnprintf.c (IF_LINT): Define.
74823         (scale10_round_decimal_long_double):
74824         Use it to avoid a "may be used uninitialized" warning.
74825         (scale10_round_decimal_double): Likewise.
74827 2008-05-21  Simon Josefsson  <simon@josefsson.org>
74829         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
74830         declared.
74832 2008-05-20  Bruno Haible  <bruno@clisp.org>
74834         * tests/test-memcmp.c (main): Test also the sign of the result. Test
74835         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
74837 2008-05-20  Simon Josefsson  <simon@josefsson.org>
74839         * modules/memcmp-tests: New file.
74840         * tests/test-memcmp.c: New file.
74842 2008-05-19  Bruno Haible  <bruno@clisp.org>
74844         * modules/propername (Notice, configure.ac): Put quoted "..." into
74845         --keyword option.
74846         * lib/propername.h: Update comments accordingly.
74847         Reported by Eric Blake.
74849 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
74851         * modules/getpass-gnu (Depends-on): Add fseeko.
74853 2008-05-19  Simon Josefsson  <simon@josefsson.org>
74855         * modules/base64-tests: New file.
74857 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
74859         * lib/base64.c (base64_decode_ctx): If a decode context structure
74860         was passed in use it to ignore newlines.  If a context structure
74861         was _not_ passed in, continue to treat newlines as garbage (this
74862         is the historical behavior).  Formerly base64_decode.
74863         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
74864         takes a decode context structure.
74865         * lib/base64.h (base64_decode): Macro for four-argument calls.
74866         (base64_decode_alloc): Likewise.
74867         * lib/base64.c (base64_decode_ctx): If a decode context structure
74868         was passed in use it to ignore newlines.  If a context structure
74869         was _not_ passed in, continue to treat newlines as garbage (this
74870         is the historical behavior).  Formerly base64_decode.
74871         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
74872         takes a decode context structure.
74873         * lib/base64.h (base64_decode): Macro for four-argument calls.
74874         (base64_decode_alloc): Likewise.
74876 2008-05-19  Jim Meyering  <meyering@redhat.com>
74878         avoid a warning from gcc
74879         * lib/trim.c (IF_LINT): Define.
74880         (trim2): Use it to avoid a "may be used uninitialized" warning.
74882         Fix doc typo.
74883         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
74885 2008-05-19  Bruno Haible  <bruno@clisp.org>
74887         * doc/glibc-functions/getpass.texi: Document limits of other
74888         implementations.
74890 2008-05-19  Simon Josefsson  <simon@josefsson.org>
74891             Bruno Haible <bruno@clisp.org>
74893         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
74895 2008-05-18  Bruno Haible  <bruno@clisp.org>
74897         * modules/propername: New file, from GNU gettext.
74898         * lib/propername.h: New file, from GNU gettext.
74899         * lib/propername.c: New file, from GNU gettext.
74900         * MODULES.html.sh (Internationalization functions): Add propername.
74902 2008-05-16  Jim Meyering  <meyering@redhat.com>
74903             Bruno Haible  <bruno@clisp.org>
74905         Avoid some warnings from "gcc -Wshadow".
74906         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
74908 2008-05-15  Eric Blake  <ebb9@byu.net>
74910         Extend previous patch to cygwin 1.7.0.
74911         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
74912         fast implementation in cygwin >= 1.7.0.
74913         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
74914         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
74916 2008-05-15  Bruno Haible  <bruno@clisp.org>
74918         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
74919         implementation in glibc >= 2.9.
74920         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
74921         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
74923 2008-05-15  Bruno Haible  <bruno@clisp.org>
74925         * MODULES.html.sh (Internationalization functions): Remove linebreak.
74926         (Unicode string functions): Add unilbrk/*.
74927         Reported by Karl Berry.
74929 2008-05-15  Eric Blake  <ebb9@byu.net>
74931         Fix violation of <stdbool.h> replacement in regex.
74932         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
74933         * lib/regexec.c (re_search_internal): Likewise.
74934         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
74936 2008-05-15  Jim Meyering  <meyering@redhat.com>
74938         avoid distracting test output when git or cvs is not found
74939         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
74940         * tests/test-vc-list-files-git.sh: Likewise.
74942 2008-05-15  Eric Blake  <ebb9@byu.net>
74944         Glibc finally accepted the memmem speedup code, bugzilla #5514.
74945         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
74946         glibc version.
74947         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
74948         * doc/posix-functions/strstr.texi (strstr): Likewise.
74949         * lib/str-two-way.h (MAX): Sychronize with glibc.
74951 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
74953         * lib/regcomp.c (optimize_utf8): Add a note on why we test
74954         opr.ctx_type.
74955         (calc_first): Initialize constraint field.
74956         (duplicate_node_closure): Use it instead of special casing ANCHORS.
74957         Fix grammar.
74958         (duplicate_node): Merge constraint field for all node types.
74959         (calc_eclosure_iter): Look at constraint field for all node types.
74960         * lib/regex_internal.c (create_cd_newstate): Don't look at
74961         opr.ctx_type.
74963 2008-05-14  Bruno Haible  <bruno@clisp.org>
74965         Help GCC to do better code generation.
74966         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
74967         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
74968         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
74969         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
74970         Declare with attribute 'malloc' if supported.
74972 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
74974         use "echo STR|wc -c" rather than unportable "expr length STR"
74975         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
74976         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
74978 2008-05-14  Jim Meyering  <meyering@redhat.com>
74980         use dd ibs=$n count=1 ... rather than less-portable head -c$n
74981         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
74982         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
74983         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
74984         via Collin Lasse.
74986 2008-05-14  Eric Blake  <ebb9@byu.net>
74988         Avoid quadratic growth in gl_LIBSOURCES.
74989         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
74990         Suggested by Bruno Haible.
74992         Test xmemdup0.
74993         * modules/xmemdup0-tests: New file.
74994         * tests/test-xmemdup0.c: Likewise.
74996 2008-05-13  Eric Blake  <ebb9@byu.net>
74998         Split xmemdup0 into its own module.
74999         * modules/xmemdup0: New file.
75000         * lib/xmemdup0.h: Likewise.
75001         * lib/xmemdup0.c: Likewise.
75002         * MODULES.html.sh (Memory management functions): Add xmemdup0.
75003         * lib/xalloc.h (xmemdup0): Remove.
75004         * lib/xmalloc.c (xmemdup0): Likewise.
75006 2008-05-13  Eric Blake  <ebb9@byu.net>
75007             Bruno Haible  <bruno@clisp.org>
75009         Reduce number of forks required during autoconf.
75010         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
75011         and gl_LIBSOURCES_DIR.
75012         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
75013         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
75014         m4_syscmd per file.
75015         <m4_foreach_w>: Move...
75016         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
75018 2008-05-13  Eric Blake  <ebb9@byu.net>
75020         * gnulib-tool: Fix various comment typos.
75022 2008-05-12  Bruno Haible  <bruno@clisp.org>
75024         Tailor the linebreaking algorithm.
75025         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
75027 2008-05-12  Bruno Haible  <bruno@clisp.org>
75029         Update to Unicode 5.0.0.
75030         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
75031         LBP_JV, LBP_JT. Redistribute values.
75032         (unilbrk_table): Change size.
75033         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
75034         Unicode TR#14 rev. 22.
75035         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
75036         LBP_JV, LBP_JT. Redistribute values.
75037         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
75038         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
75039         Update.
75040         * lib/unilbrk/lbrkprop1.h: Regenerated.
75041         * lib/unilbrk/lbrkprop2.h: Regenerated.
75042         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
75043         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
75044         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
75045         Likewise.
75046         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
75047         Likewise.
75048         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
75049         result.
75050         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
75051         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
75052         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
75053         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
75054         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
75055         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
75057 2008-05-11  Bruno Haible  <bruno@clisp.org>
75059         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
75061 2008-05-11  Bruno Haible  <bruno@clisp.org>
75063         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
75064         * modules/unilbrk/gen-lbrk: New file.
75066 2008-05-11  Bruno Haible  <bruno@clisp.org>
75068         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
75069         * m4/sha512.m4 (gl_SHA512): Likewise.
75071 2008-05-11  Jim Meyering  <meyering@redhat.com>
75073         New modules: crypto/sha256, crypto/sha512 (from coreutils)
75074         * modules/crypto/sha256: New file.
75075         * modules/crypto/sha512: Likewise.
75076         * lib/sha256.c: Likewise.
75077         * lib/sha256.h: Likewise.
75078         * lib/sha512.c: Likewise.
75079         * lib/sha512.h: Likewise.
75080         * lib/u64.h: Likewise.
75081         * m4/sha256.m4: Likewise.
75082         * m4/sha512.m4: Likewise.
75083         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
75085 2008-05-10  Bruno Haible  <bruno@clisp.org>
75087         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
75088         (Input/Output <stdio.h>): Add xprintf.
75089         (Signal handling <signal.h>): Add strsignal.
75090         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
75091         (Core language properties): Add func.
75092         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
75093         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
75094         strings.
75095         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
75096         (Input/output): New section.
75097         (File system functions): Add openat-die, stat-macros.
75098         (Networking functions): Add sockets.
75099         (Unicode string functions): Add unictype/*.
75100         (Support for building libraries and executables): Add gperf.
75101         (Support for building documentation): Add agpl-3.0.
75102         (Misc): Add nocrash.
75104 2008-05-10  Bruno Haible  <bruno@clisp.org>
75106         * modules/unictype/gen-ctype: New file.
75108 2008-05-10  Jim Meyering  <meyering@redhat.com>
75110         Make chdir-safer.c more efficient on a system with no symlinks.
75111         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
75112         also if ELOOP is zero.  Suggested by Bruno Haible.
75114         Make chdir-safer.c slightly safer.
75115         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
75116         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
75118         Avoid compile failure on systems without ELOOP (like mingw).
75119         * lib/chdir-safer.c (ELOOP): Define if not already defined.
75120         Reported by Bruno Haible.
75122 2008-05-10  Bruno Haible  <bruno@clisp.org>
75124         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
75125         (is_utf8_encoding): Use a case-insensitive comparison.
75126         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
75127         streq.
75129 2008-05-10  Bruno Haible  <bruno@clisp.org>
75131         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
75132         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
75133         * lib/unilbrk/ulc-common.h (iconv_string_length,
75134         iconv_string_keeping_offsets): Remove declarations.
75135         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
75136         Don't include <iconv.h>, streq.h, xsize.h.
75137         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
75138         conversion.
75139         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
75140         <iconv.h>, streq.h, xsize.h.
75141         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
75142         conversion.
75143         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
75144         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
75145         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
75146         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
75148 2008-05-10  Bruno Haible  <bruno@clisp.org>
75150         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
75151         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
75153         * modules/unilbrk/u32-width-linebreaks-tests: New file.
75154         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
75156         * modules/unilbrk/u16-width-linebreaks-tests: New file.
75157         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
75159         * modules/unilbrk/u8-width-linebreaks-tests: New file.
75160         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
75162         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
75163         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
75165         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
75166         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
75168         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
75169         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
75171         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
75172         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
75174 2008-05-10  Bruno Haible  <bruno@clisp.org>
75176         Split up 'linebreak' module.
75177         * lib/unilbrk.h: New file, based on lib/linebreak.h.
75178         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
75179         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
75180         modifications.
75181         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
75182         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
75183         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
75184         lib/linebreak.c.
75185         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
75186         lib/linebreak.c.
75187         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
75188         lib/linebreak.c.
75189         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
75190         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
75191         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
75192         lib/linebreak.c.
75193         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
75194         lib/linebreak.c.
75195         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
75196         lib/linebreak.c.
75197         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
75198         lib/linebreak.c.
75199         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
75200         lib/linebreak.c.
75201         * modules/unilbrk/base: New file.
75202         * modules/unilbrk/tables: New file.
75203         * modules/unilbrk/u8-possible-linebreaks: New file.
75204         * modules/unilbrk/u16-possible-linebreaks: New file.
75205         * modules/unilbrk/u32-possible-linebreaks: New file.
75206         * modules/unilbrk/ulc-common: New file.
75207         * modules/unilbrk/ulc-possible-linebreaks: New file.
75208         * modules/unilbrk/u8-width-linebreaks: New file.
75209         * modules/unilbrk/u16-width-linebreaks: New file.
75210         * modules/unilbrk/u32-width-linebreaks: New file.
75211         * modules/unilbrk/ulc-width-linebreaks: New file.
75212         * lib/linebreak.h: Remove file.
75213         * lib/linebreak.c: Remove file.
75214         * m4/linebreak.m4: Remove file.
75215         * modules/linebreak: Remove file.
75216         * NEWS: Mention the changes.
75218 2008-05-09  Eric Blake  <ebb9@byu.net>
75220         Add xmemdup0.
75221         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
75222         implementation.
75223         * lib/xmalloc.c (xmemdup0): New C implementation.
75225 2008-05-08  Bruno Haible  <bruno@clisp.org>
75227         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
75229 2008-05-07  Eric Blake  <ebb9@byu.net>
75231         Support cross-compilation of <wctype.h>.
75232         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
75233         AC_CACHE_CHECK.
75235 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
75237         * build-aux/vc-list-files: Add support for bzr.
75239 2008-05-03  Jim Meyering  <meyering@redhat.com>
75241         avoid failed assertion with tight malloc
75242         * tests/test-getndelim2.c: Correct an off-by-one assertion.
75244 2008-05-03  Simon Josefsson  <simon@josefsson.org>
75246         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
75247         are needed from arpa/inet.h.
75248         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
75249         Reported by Bruno Haible.
75251 2008-05-02  Jim Meyering  <meyering@redhat.com>
75253         avoid compilation error on FreeBSD 6
75254         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
75256 2008-05-01  Jim Meyering  <meyering@redhat.com>
75258         useless-if-before-free: correct --help's exit status description
75259         * build-aux/useless-if-before-free (usage): Like grep, exit 0
75260         for one or more matches, etc.  Reported by Bruno Haible.
75262         vc-list-files: make the stand-alone gnulib test work
75263         * modules/vc-list-files-tests (configure.ac):
75264         Define and AC_SUBST abs_aux_dir.
75265         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
75266         $(abs_top_srcdir) to each script and having each of them
75267         duplicate the work of setting PATH, set PATH here, using
75268         the new variable, abs_aux_dir instead.
75269         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
75270         * tests/test-vc-list-files-git.sh: Likewise.
75271         Reported by Bruno Haible.
75273 2008-05-01  Bruno Haible  <bruno@clisp.org>
75275         * lib/getndelim2.c (getndelim2): Fix newsize computation during
75276         reallocation. Rename 'done' to 'found_delimiter'.
75278 2008-05-01  Jim Meyering  <meyering@redhat.com>
75280         vc-list-files: accommodate /bin/sh like the one from Solaris 10
75281         * build-aux/vc-list-files: Use `...`, not $(...).
75283 2008-04-30  Jim Meyering  <meyering@redhat.com>
75285         add tests for vc-list-files
75286         * modules/vc-list-files-tests: New module.
75287         * tests/test-vc-list-files-cvs.sh: New file.
75288         * tests/test-vc-list-files-git.sh: New file.
75290         avoid a warning from gcc
75291         * lib/getndelim2.c (IF_LINT): Define.
75292         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
75294         vc-list-files: work properly with build-aux/cvsu, too
75295         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
75296         to all cvs-based clauses.
75298         vc-list-files: work properly in the CVS+awk case, too
75299         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
75301         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
75302         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
75303         take more than one file argument, so .  Add quotes, just in case $dir
75304         ever contains a shell meta-character.  Prompted by Soren Hansen in
75305         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
75307 2008-04-29  Eric Blake  <ebb9@byu.net>
75309         Optimize getndelim2 to use block operations when possible.
75310         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
75311         freadseek, and memchr2.
75312         * lib/getndelim2.c (getndelim2): Use them for block reads.
75314 2008-04-29  Bruno Haible  <bruno@clisp.org>
75316         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
75317         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
75318         * modules/inet_ntop (Depends-on): Add extensions.
75319         * modules/inet_pton (Depends-on): Likewise.
75320         Reported by Simon Josefsson.
75322 2008-04-29  Jim Meyering  <meyering@redhat.com>
75324         When the is more than one match in a block, match all of them.
75325         * build-aux/useless-if-before-free: Iterate through each block
75326         until there are no more matches.
75328         Fix broken useless-if-before-free script.
75329         * build-aux/useless-if-before-free: Fix typo: missing "?" after
75330         the expression to match cast of argument to free-like function.
75332 2008-04-29  Eric Blake  <ebb9@byu.net>
75334         Use new header.
75335         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
75337 2008-04-29  Jim Meyering  <meyering@redhat.com>
75339         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
75340         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
75341         by gnulib to exist and to declare e.g., inet_ntop.
75342         Don't include "inet_ntop.h", now removed.
75344         * m4/arpa_inet_h.m4: Remove trailing blanks.
75346 2008-04-29  Eric Blake  <ebb9@byu.net>
75348         Silence valgrind on safe reads beyond potential array bounds.
75349         * lib/rawmemchr.valgrind: New file.
75350         * lib/strchrnul.valgrind: Likewise.
75351         * modules/rawmemchr (Files): Distribute new file.
75352         * modules/strchrnul (Files): Likewise.
75353         Suggested by Bruno Haible.
75355 2008-04-29  Bruno Haible  <bruno@clisp.org>
75357         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
75358         (inet_ntop, inet_pton): Change portability warning's wording.
75359         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
75360         Invoke gl_CHECK_NEXT_HEADERS.
75361         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
75362         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
75363         set ARPA_INET_H.
75364         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
75365         * modules/arpa_inet (Description): No longer only for systems that
75366         lack it.
75367         (Depends-on): Add include_next.
75368         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
75369         HAVE_ARPA_INET_H.
75371 2008-04-29  Jim Meyering  <meyering@redhat.com>
75373         * modules/mkdir (License): Re-license as LGPLv2+.
75375 2008-04-29  Bruno Haible  <bruno@clisp.org>
75377         * modules/rawmemchr (Maintainer): Set to Eric.
75378         * modules/strchrnul (Maintainer): Likewise.
75380 2008-04-29  Simon Josefsson  <simon@josefsson.org>
75382         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
75383         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
75385         * modules/arpa_inet (arpa/inet.h): Use them.
75387 2008-04-28  Eric Blake  <ebb9@byu.net>
75389         Test getndelim2.
75390         * modules/getndelim2-tests: New file.
75391         * tests/test-getndelim2.c: Likewise.
75392         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
75393         stream.
75394         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
75396         * MODULES.html.sh: Document new module.
75398 2008-04-20  Bruno Haible  <bruno@clisp.org>
75400         * lib/c-stack.c (die): Use raise.
75401         * modules/c-stack (Depends-on): Add raise.
75403 2008-04-28  Bruno Haible  <bruno@clisp.org>
75405         Expect rpmatch to be declared.
75406         * lib/yesno.c (rpmatch): Remove declaration.
75408         Declare rpmatch.
75409         * lib/stdlib.in.h (rpmatch): New declaration.
75410         * lib/rpmatch.c: Include <stdlib.h> first.
75411         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
75412         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
75413         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
75414         HAVE_RPMATCH.
75415         * modules/rpmatch (Depends-on): Add stdlib, extensions.
75416         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
75417         (Include): Set to <stdlib.h>.
75418         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
75419         HAVE_RPMATCH.
75420         * NEWS: Document the change.
75422 2008-04-28  Bruno Haible  <bruno@clisp.org>
75424         Change rpmatch to use nl_langinfo when appropriate.
75425         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
75426         (N_): New macro.
75427         (localized_pattern): New function/macro.
75428         (try): Remove match, nomatch arguments. Copy the pattern into safe
75429         memory before caching it.
75430         (rpmatch): Use localized_pattern. Add translator comments.
75431         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
75432         Suggested by Eric Blake.
75433         * modules/rpmatch (Depends-on): Add stdbool.
75435 2008-04-28  Eric Blake  <ebb9@byu.net>
75437         Add rawmemchr module, matching glibc.
75438         * modules/string (Makefile.am): New indicator.
75439         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
75440         * lib/string.in.h (rawmemchr): Declare when appropriate.
75441         * modules/rawmemchr: New file.
75442         * m4/rawmemchr.m4: Likewise.
75443         * lib/rawmemchr.c: Likewise.
75444         * modules/rawmemchr-tests: Likewise.
75445         * tests/test-rawmemchr.c: Likewise.
75446         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
75447         module.
75448         * modules/strchrnul (Depends-on): Add rawmemchr.
75449         * lib/strchrnul.c (strchrnul): Optimize a corner case.
75451         Whitespace cleanup.
75452         * tests/test-strchrnul.c: Reindent.
75453         * lib/strchrnul.c: Likewise.
75455         Optimize and test strchrnul.
75456         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
75457         * modules/strchrnul-tests: New file.
75458         * tests/test-strchrnul.c: Likewise.
75460         Remove intprops dependency.
75461         * modules/memchr (Depends-on): Remove intprops.
75462         * modules/memrchr (Depends-on): Likewise.
75463         * modules/memchr2 (Depends-on): Likewise.
75464         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
75465         * lib/memrchr.c (__memrchr): Likewise.
75466         * lib/memrchr2.c (memchr2): Likewise.
75467         Reported by Simon Josefsson.
75469 2008-04-28  Simon Josefsson  <simon@josefsson.org>
75471         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
75472         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75474 2008-04-28  Simon Josefsson  <simon@josefsson.org>
75476         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
75478         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
75480         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
75482         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
75483         declarations.
75484         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
75486         * m4/inet_pton.m4: Don't check for header files.
75488         * m4/inet_ntop.m4: Don't check for header files.
75490 2008-04-28  Simon Josefsson  <simon@josefsson.org>
75492         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
75493         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
75494         trigger for cygwin).
75495         Reported by Bruno Haible  <bruno@clisp.org>.
75497 2008-04-28  Bruno Haible  <bruno@clisp.org>
75499         * doc/posix-functions/strdup.texi: Mention mingw problem.
75501 2008-04-27  Bruno Haible  <bruno@clisp.org>
75503         * modules/stat-time-tests (Depends-on): Add sleep.
75504         * tests/test-stat-time.c (force_unlink): New function.
75505         (cleanup): Use it.
75506         (test_mtime): Remove the ctime related tests.
75507         (test_ctime): New function, containing the ctime related tests.
75508         (main): Call test_ctime, except on native Windows platforms.
75510 2008-04-27  Bruno Haible  <bruno@clisp.org>
75512         * lib/rpmatch.c (rpmatch): Add some comments.
75513         Reported by James Youngman <jay@gnu.org>.
75515 2008-04-27  Bruno Haible  <bruno@clisp.org>
75517         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
75518         quiet NaNs.
75520 2008-04-27  Bruno Haible  <bruno@clisp.org>
75522         Make test-yesno.sh work on mingw.
75523         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
75524         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
75525         (main): Set stdin to binary mode.
75526         * modules/yesno-tests (Depends-on): Add binary-io.
75528 2008-04-27  Bruno Haible  <bruno@clisp.org>
75530         Fix 'isfinite' on x86, x86_64, ia64 platforms.
75531         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
75532         argument that lie outside the IEEE 854 domain.
75533         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
75534         (gl_ISFINITE): Use it.
75535         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
75537 2008-04-27  Bruno Haible  <bruno@clisp.org>
75539         Allow local renaming in config.h.
75540         * lib/memrchr.c (memrchr): Don't undefine outside libc.
75542 2008-04-27  Bruno Haible  <bruno@clisp.org>
75544         * lib/memchr.c (__memchr): Change type of 'i'.
75545         * lib/memchr2.c (memchr2): Likewise.
75547 2008-04-26  Eric Blake  <ebb9@byu.net>
75548         and Bruno Haible  <bruno@clisp.org>
75550         Optimize and test memrchr.
75551         * modules/memrchr (Depends-on): Add intprops.
75552         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
75553         * modules/memrchr-tests: New file.
75554         * tests/test-memrchr.c: New file.
75556 2008-04-26  Bruno Haible  <bruno@clisp.org>
75558         Add tentative support for DragonFly BSD.
75559         * lib/stdio-impl.h: Add macros for DragonFly BSD.
75560         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
75561         fp.
75562         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
75563         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
75564         * lib/fpurge.c (fpurge): Likewise.
75565         * lib/freadable.c (freaadable): Likewise.
75566         * lib/freadahead.c (freadahead): Likewise.
75567         * lib/freading.c (freading): Likewise.
75568         * lib/freadptr.c (freadptr): Likewise.
75569         * lib/freadseek.c (freadptrinc): Likewise.
75570         * lib/fseeko.c (fseeko): Likewise.
75571         * lib/fseterr.c (fseterr): Likewise.
75572         * lib/fwritable.c (fwritable): Likewise.
75573         * lib/fwriting.c (fwriting): Likewise.
75575 2008-04-26  Bruno Haible  <bruno@clisp.org>
75577         * lib/stdio-impl.h: New file.
75578         * lib/fbufmode.c: Include stdio-impl.h.
75579         (fbufmode): Use fp_, remove redundant #defines.
75580         * lib/fflush.c: Include stdio-impl.h.
75581         (clear_ungetc_buffer): Remove redundant #defines.
75582         * lib/fpurge.c: Include stdio-impl.h.
75583         (fpurge): Remove redundant #defines.
75584         * lib/freadable.c: Include stdio-impl.h.
75585         (freadable): Remove redundant #defines.
75586         * lib/freadahead.c: Include stdio-impl.h.
75587         (freadahead): Remove redundant #defines.
75588         * lib/freading.c: Include stdio-impl.h.
75589         (freading): Remove redundant #defines.
75590         * lib/freadptr.c: Include stdio-impl.h.
75591         (freadptr): Remove redundant #defines.
75592         * lib/freadseek.c: Include stdio-impl.h.
75593         (freadptrinc): Remove redundant #defines.
75594         * lib/fseeko.c: Include stdio-impl.h.
75595         (rpl_fseeko): Remove redundant #defines.
75596         * lib/fseterr.c: Include stdio-impl.h.
75597         (fseterr): Remove redundant #defines.
75598         * lib/fwritable.c: Include stdio-impl.h.
75599         (fwritable: Remove redundant #defines.
75600         * lib/fwriting.c: Include stdio-impl.h.
75601         (fwriting): Remove redundant #defines.
75602         * modules/fbufmode (Files): Add lib/stdio-impl.h.
75603         * modules/fflush (Files): Likewise.
75604         * modules/fpurge (Files): Likewise.
75605         * modules/freadable (Files): Likewise.
75606         * modules/freadahead (Files): Likewise.
75607         * modules/freading (Files): Likewise.
75608         * modules/freadptr (Files): Likewise.
75609         * modules/freadseek (Files): Likewise.
75610         * modules/fseeko (Files): Likewise.
75611         * modules/fseterr (Files): Likewise.
75612         * modules/fwritable (Files): Likewise.
75613         * modules/fwriting (Files): Likewise.
75615 2008-04-26  Bruno Haible  <bruno@clisp.org>
75617         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
75618         restore_seek_optimization, update_fpos_cache): New functions, extracted
75619         from rpl_fflush.
75620         (rpl_fflush): Use them.
75621         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
75622         (gl_REPLACE_FFLUSH): Use it.
75624 2008-04-26  Bruno Haible  <bruno@clisp.org>
75626         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
75627         on Solaris.
75628         * tests/test-xstrtoimax.sh: Likewise.
75629         * tests/test-xstrtoumax.sh: Likewise.
75630         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75632 2008-04-26  Bruno Haible  <bruno@clisp.org>
75634         * modules/memchr-tests: New file.
75635         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
75637 2008-04-26  Eric Blake  <ebb9@byu.net>
75638             Bruno Haible  <bruno@clisp.org>
75640         * lib/memchr.c: Include intprops.h.
75641         (__memchr): Optimize parallel detection of matching bytes. Rename local
75642         variables. Add explanatory comments.
75644 2008-04-26  Bruno Haible  <bruno@clisp.org>
75646         Fix module 'memchr', broken since 2000-10-28.
75647         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
75649 2008-04-26  Bruno Haible  <bruno@clisp.org>
75651         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
75652         comments.
75654 2008-04-25  Eric Blake  <ebb9@byu.net>
75656         Use native fstatat on cygwin 1.7.0.
75657         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
75658         first.
75660 2008-04-23  Eric Blake  <ebb9@byu.net>
75662         Improve memchr2 performance.
75663         * lib/memchr2.c (memchr2): Further optimize parallel detection of
75664         NUL bytes.
75665         * modules/memchr2 (Depends-on): Use intprops.h.
75667 2008-04-23  Simon Josefsson  <simon@josefsson.org>
75669         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
75670         an inline function instead of a CPP macro.  Patch by Ben Pfaff
75671         <blp@cs.stanford.edu>.
75673 2008-04-23  Simon Josefsson  <simon@josefsson.org>
75675         * lib/arpa_inet.in.h: New file.
75677         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
75678         (Makefile.am): Sed in substitute header file.
75680         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
75681         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
75683         * modules/inet_ntop (configure.ac): Use
75684         gl_ARPA_INET_MODULE_INDICATOR.
75686         * modules/inet_pton (configure.ac): Use
75687         gl_ARPA_INET_MODULE_INDICATOR.
75689 2008-04-22  Jim Meyering  <meyering@redhat.com>
75691         * modules/verify (License): Re-license as LGPLv2+.
75693 2008-04-22  Simon Josefsson  <simon@josefsson.org>
75695         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
75696         parameter to void* as per POSIX standard (MinGW uses char*).
75698 2008-04-21  Bruno Haible  <bruno@clisp.org>
75700         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
75701         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
75702         Define to replacements if REPLACE_ISWCNTRL is 1.
75703         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
75704         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
75705         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
75706         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
75707         what it fixes.
75708         * doc/posix-functions/iswalpha.texi: Likewise.
75709         * doc/posix-functions/iswblank.texi: Likewise.
75710         * doc/posix-functions/iswcntrl.texi: Likewise.
75711         * doc/posix-functions/iswdigit.texi: Likewise.
75712         * doc/posix-functions/iswgraph.texi: Likewise.
75713         * doc/posix-functions/iswlower.texi: Likewise.
75714         * doc/posix-functions/iswprint.texi: Likewise.
75715         * doc/posix-functions/iswpunct.texi: Likewise.
75716         * doc/posix-functions/iswspace.texi: Likewise.
75717         * doc/posix-functions/iswupper.texi: Likewise.
75718         * doc/posix-functions/iswxdigit.texi: Likewise.
75719         Reported by Alain Guibert.
75721 2008-04-21  Bruno Haible  <bruno@clisp.org>
75723         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
75724         Patch by Alain Guibert.
75726 2008-04-21  Bruno Haible  <bruno@clisp.org>
75728         Fix test failures on mingw.
75729         * tests/test-xstrtol.c (print_no_progname): New function.
75730         (main): Install it in error_print_progname hook.
75731         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
75732         * tests/test-xstrtoimax.sh: Likewise.
75733         * tests/test-xstrtoumax.sh: Likewise.
75735 2008-04-21  Bruno Haible  <bruno@clisp.org>
75737         Fix test failure on mingw.
75738         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
75740 2008-04-21  Bruno Haible  <bruno@clisp.org>
75742         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
75743         Actually assign a value.
75745 2008-04-20  Bruno Haible  <bruno@clisp.org>
75747         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
75748         take 2.
75749         * lib/canonicalize.c (canonicalize_file_name): Elide if the
75750         'canonicalize-lgpl' module is also used.
75751         * lib/canonicalize-lgpl.c: Undo last change.
75752         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
75754 2008-04-20  Bruno Haible  <bruno@clisp.org>
75756         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
75757         config.h. Provide _mkdir based fallback for mingw.
75758         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
75759         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
75760         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
75761         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
75762         rather than defining mkdir in config.h.
75763         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
75764         (gl_SYS_STAT_H_DEFAULTS): New macro.
75765         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
75766         HAVE_IO_H any more.
75767         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
75768         HAVE_DECL_MKDIR and HAVE_IO_H.
75770 2008-04-20  Bruno Haible  <bruno@clisp.org>
75772         * lib/isapipe.c: Port to native Windows platforms.
75774 2008-04-20  Bruno Haible  <bruno@clisp.org>
75776         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
75778 2008-04-21  Eric Blake  <ebb9@byu.net>
75780         Work around preprocessors that don't handle UINTMAX_MAX.
75781         * lib/memchr2.c (memchr2): Avoid embedded #if.
75782         Reported by Alain Guibert, fix suggested by Bruno Haible.
75784 2008-04-21  Simon Josefsson  <simon@josefsson.org>
75786         * doc/posix-functions/strftime.texi (strftime): Explain better
75787         Windows incompatibility.  Suggested by Micah Cowan
75788         <micah@cowan.name>.
75790 2008-04-20  Bruno Haible  <bruno@clisp.org>
75792         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
75793         unistr/u8-mblen.
75795 2008-04-20  Bruno Haible  <bruno@clisp.org>
75797         Fix test failure on platforms with non-GNU iconv.
75798         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
75799         (U_TO_U8): Use it, rather than u16_to_u8.
75800         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
75801         units at the end of the input string.
75802         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
75804 2008-04-20  Bruno Haible  <bruno@clisp.org>
75806         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
75807         when the resulting length is 0.
75808         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
75810 2008-04-20  Bruno Haible  <bruno@clisp.org>
75812         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
75813         works.
75814         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
75816 2008-04-20  Bruno Haible  <bruno@clisp.org>
75818         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
75819         * modules/tsearch-tests (configure.ac): Test for initstate function.
75821 2008-04-20  Bruno Haible  <bruno@clisp.org>
75823         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
75824         for nlink_t if missing.
75825         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
75827 2008-04-19  Bruno Haible  <bruno@clisp.org>
75829         Work around snprintf bug on Linux libc5.
75830         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
75831         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
75832         gl_SNPRINTF_SIZE1.
75833         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
75834         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
75835         that test failed.
75836         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
75837         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
75838         * modules/snprintf (Files): Add m4/printf.m4.
75839         * modules/vsnprintf (Files): Likewise.
75840         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
75841         * doc/posix-functions/vsnprintf.texi: Likewise.
75843 2008-04-19  Bruno Haible  <bruno@clisp.org>
75845         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
75846         from 0.0058 to less than 10^-7.
75848 2008-04-19  Bruno Haible  <bruno@clisp.org>
75850         Fix rounding when a precision is given.
75851         * lib/vasnprintf.c (is_borderline): New function.
75852         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
75853         9...9x.
75854         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
75855         %e, %g.
75856         * tests/test-vasprintf-posix.c (test_function): Likewise.
75857         * tests/test-snprintf-posix.h (test_function): Likewise.
75858         * tests/test-sprintf-posix.h (test_function): Likewise.
75859         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
75860         * tests/test-printf-posix.h (test_function): Likewise.
75861         * tests/test-printf-posix.output: Update.
75862         Reported by John Darrington <john@darrington.wattle.id.au> via
75863         Ben Pfaff <blp@cs.stanford.edu>.
75865 2008-04-18  Simon Josefsson  <simon@josefsson.org>
75867         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
75868         Suggested by Bruno Haible <bruno@clisp.org>.
75870 2008-04-17  Bruno Haible  <bruno@clisp.org>
75872         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
75873         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
75874         implementation.
75875         Patch by Bruce Merry <bmerry@gmail.com>.
75877 2008-04-17  Simon Josefsson  <simon@josefsson.org>
75879         * doc/posix-functions/strftime.texi (strftime): Mention that %e
75880         doesn't work under Windows.
75882 2008-04-16  Bruno Haible  <bruno@clisp.org>
75884         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
75885         New macros.
75886         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
75887         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
75888         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
75889         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
75890         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
75891         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
75892         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
75893         macros.
75894         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
75895         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
75896         Northern Sotho, Uighur.
75898 2008-04-16  Bruno Haible  <bruno@clisp.org>
75900         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
75901         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
75902         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
75903         Reported by Daniel Bergström <daniel@octocode.com>.
75905 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
75906             Bruno Haible  <bruno@clisp.org>
75908         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
75909         function.
75910         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
75911         New functions, mostly extracted from gl_locale_name_default.
75912         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
75914 2008-04-16  Eric Blake  <ebb9@byu.net>
75916         Adjust strtod detection to catch glibc 2.7 bug.
75917         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
75918         Reported by John Gatewood Ham.
75920 2008-04-16  Bruno Haible  <bruno@clisp.org>
75922         Add tentative support for Linux libc5.
75923         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
75924         * lib/fpurge.c (fpurge): Likewise.
75925         * lib/freadable.c (freadable): Likewise.
75926         * lib/freadahead.c (freadahead): Likewise.
75927         * lib/freading.c (freading): Likewise.
75928         * lib/freadptr.c (freadptr): Likewise.
75929         * lib/freadseek.c (freadptrinc): Likewise.
75930         * lib/fseeko.c (rpl_fseeko): Likewise.
75931         * lib/fseterr.c (fseterr): Likewise.
75932         * lib/fwritable.c (fwritable): Likewise.
75933         * lib/fwriting.c (fwriting): Likewise.
75934         Reported by Alain Guibert <alguibert+bts@free.fr>.
75936 2008-04-15  Bruno Haible  <bruno@clisp.org>
75938         * modules/mathl (configure.ac): Define module indicator.
75940 2008-04-15  Bruno Haible  <bruno@clisp.org>
75942         * lib/logl.c (logl): Remove unused variables.
75944 2008-04-15  Bruno Haible  <bruno@clisp.org>
75946         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
75947         fails.
75949 2008-04-15  Bruno Haible  <bruno@clisp.org>
75951         * lib/trim.c (trim2): Fix argument of isspace() macro.
75953 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
75955         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
75956         to 0.
75957         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
75959 2008-04-14  Bruno Haible  <bruno@clisp.org>
75961         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
75962         AC_LANG_PROGRAM argument.
75963         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
75964         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
75965         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
75966         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
75967         * m4/math_h.m4 (gl_MATH_H): Likewise.
75968         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
75969         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
75970         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
75971         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
75972         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
75973         * m4/regex.m4 (gl_REGEX): Likewise.
75974         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
75975         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
75976         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
75977         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
75978         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
75979         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
75980         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
75981         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
75983 2008-04-14  Jim Meyering  <meyering@redhat.com>
75985         test-strtod: fix typos: s/abs/fabs/
75986         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
75988 2008-04-13  Bruno Haible  <bruno@clisp.org>
75990         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
75991         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
75992         module is also used and while not building the reloc-wrapper.
75994 2008-04-13  Bruno Haible  <bruno@clisp.org>
75996         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
75998 2008-04-13  Bruno Haible  <bruno@clisp.org>
76000         Fix AIX compilation failure introduced on 2008-04-02.
76001         * tests/test-frexp.c (exp): Undefine before redefining.
76002         * tests/test-frexpl.c (exp): Likewise.
76004 2008-04-13  Bruno Haible  <bruno@clisp.org>
76006         Work around a HP-UX stdio bug.
76007         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
76008         * tests/test-ftello.c (main): Likewise.
76009         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
76010         * doc/posix-functions/ftello.texi: Likewise.
76012 2008-04-13  Bruno Haible  <bruno@clisp.org>
76014         Make test-signbit pass on HP-UX/hppa.
76015         * tests/test-signbit.c (minus_zerol): New variable.
76016         (test_signbitl): Use it.
76018 2008-04-13  Bruno Haible  <bruno@clisp.org>
76020         Make truncl work on OSF/1 4.0.
76021         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
76022         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
76023         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
76024         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
76025         HAVE_DECL_TRUNCL.
76026         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
76027         HAVE_DECL_TRUNCL.
76028         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
76030 2008-04-13  Bruno Haible  <bruno@clisp.org>
76032         * lib/unictype.h: Remove trailing comma from enumeration definitions.
76034 2008-04-13  Bruno Haible  <bruno@clisp.org>
76036         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
76037         expression, so as to avoid HP-UX 11 cc compiler bug.
76039 2008-04-13  Bruno Haible  <bruno@clisp.org>
76041         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
76043 2008-04-13  Bruno Haible  <bruno@clisp.org>
76045         * lib/git-merge-changelog.c: Remove empty declaration outside of
76046         functions.
76048 2008-04-13  Bruno Haible  <bruno@clisp.org>
76050         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
76052 2008-04-13  Bruno Haible  <bruno@clisp.org>
76054         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
76055         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
76056         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
76057         also if it exists but lacks definitions of the SHUT_* macros.
76058         * modules/sys_socket (Description): Update.
76059         Reported by Elbert Pol <e.pol@chello.nl>.
76061 2008-04-13  Bruno Haible  <bruno@clisp.org>
76063         * lib/localcharset.c (OS2): Don't redefine if already defined.
76064         Reported by Elbert Pol <e.pol@chello.nl>.
76066 2008-04-13  Bruno Haible  <bruno@clisp.org>
76068         * lib/binary-io.h [__EMX__]: Include <io.h>.
76069         Reported by Elbert Pol <e.pol@chello.nl>.
76071 2008-04-12  Bruno Haible  <bruno@clisp.org>
76073         * lib/fpucw.h: Enable the definitions also for x86_64.
76074         Needed for NetBSD/x86_64.
76075         Reported by Thomas Klausner <tk@giga.or.at>.
76077 2008-04-12  Bruno Haible  <bruno@clisp.org>
76079         * tests/test-strtod.c: Include isnand.h.
76080         (main): Use isnand instead of isnan.
76081         Reported by Jim Meyering.
76083 2008-04-12  Bruno Haible  <bruno@clisp.org>
76085         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
76086         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
76088 2008-04-12  Jim Meyering  <meyering@redhat.com>
76090         * m4/math_h.m4 (gl_MATH_H): Fix typos.
76092 2008-04-12  Bruno Haible  <bruno@clisp.org>
76094         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
76095         Reported by Elbert Pol <e.pol@chello.nl>.
76097 2008-04-12  Eric Blake  <ebb9@byu.net>
76099         Work around Solaris 10 math.h bug.
76100         * m4/math_h.m4 (gl_MATH_H): Check for bug.
76101         (gl_MATH_H_DEFAULTS): Set up default.
76102         * modules/math (Makefile.am): Replace new indicators.
76103         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
76104         * tests/test-math.c (main): Test this.
76105         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
76106         * doc/posix-headers/math.texi (math.h): Mention bug.
76107         Reported by Nelson H. F. Beebe and Jim Meyering.
76109 2008-04-11  Bruno Haible  <bruno@clisp.org>
76111         Adapt to future versions of Apple GCC.
76112         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
76113         Reported by Peter O'Gorman <peter@pogma.com>.
76115 2008-04-11  Bruno Haible  <bruno@clisp.org>
76117         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
76119 2008-04-11  Bruno Haible  <bruno@clisp.org>
76121         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
76123         * modules/getaddrinfo-tests (Makefile.am): Define
76124         test_getaddrinfo_LDADD.
76126 2008-04-11  Bruno Haible  <bruno@clisp.org>
76128         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
76129         (init): Fix syntax error.
76130         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
76131         is declared.
76133 2008-04-11  Bruno Haible  <bruno@clisp.org>
76135         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
76136         * modules/glob (Depends-on): Add stdbool.
76138 2008-04-11  Bruno Haible  <bruno@clisp.org>
76140         * lib/trim.c: Include <string.h>.
76142 2008-04-11  Eric Blake  <ebb9@byu.net>
76144         Avoid compile failure on OS/2.
76145         * lib/regex_internal.h (internal_function): Disable optimization
76146         on OS/2 (__EMX__), where it caused compiler error.
76147         Reported by Elbert Pol.
76149 2008-04-11  Bruno Haible  <bruno@clisp.org>
76151         Flush the standard error stream before aborting. Needed on mingw.
76152         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
76153         * tests/test-array_list.c (ASSERT): Likewise.
76154         * tests/test-array_oset.c (ASSERT): Likewise.
76155         * tests/test-avltree_list.c (ASSERT): Likewise.
76156         * tests/test-avltree_oset.c (ASSERT): Likewise.
76157         * tests/test-avltreehash_list.c (ASSERT): Likewise.
76158         * tests/test-binary-io.c (ASSERT): Likewise.
76159         * tests/test-byteswap.c (ASSERT): Likewise.
76160         * tests/test-c-ctype.c (ASSERT): Likewise.
76161         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
76162         * tests/test-c-strcasestr.c (ASSERT): Likewise.
76163         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
76164         * tests/test-c-strstr.c (ASSERT): Likewise.
76165         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
76166         * tests/test-canonicalize.c (ASSERT): Likewise.
76167         * tests/test-carray_list.c (ASSERT): Likewise.
76168         * tests/test-ceilf1.c (ASSERT): Likewise.
76169         * tests/test-ceilf2.c (ASSERT): Likewise.
76170         * tests/test-ceill.c (ASSERT): Likewise.
76171         * tests/test-count-one-bits.c (ASSERT): Likewise.
76172         * tests/test-fbufmode.c (ASSERT): Likewise.
76173         * tests/test-fflush2.c (ASSERT): Likewise.
76174         * tests/test-floorf1.c (ASSERT): Likewise.
76175         * tests/test-floorf2.c (ASSERT): Likewise.
76176         * tests/test-floorl.c (ASSERT): Likewise.
76177         * tests/test-fopen.c (ASSERT): Likewise.
76178         * tests/test-fpending.c (ASSERT): Likewise.
76179         * tests/test-fprintf-posix.c (ASSERT): Likewise.
76180         * tests/test-fpurge.c (ASSERT): Likewise.
76181         * tests/test-freadable.c (ASSERT): Likewise.
76182         * tests/test-freadahead.c (ASSERT): Likewise.
76183         * tests/test-freading.c (ASSERT): Likewise.
76184         * tests/test-freadptr.c (ASSERT): Likewise.
76185         * tests/test-freadptr2.c (ASSERT): Likewise.
76186         * tests/test-freadseek.c (ASSERT): Likewise.
76187         * tests/test-freopen.c (ASSERT): Likewise.
76188         * tests/test-frexp.c (ASSERT): Likewise.
76189         * tests/test-frexpl.c (ASSERT): Likewise.
76190         * tests/test-fseek.c (ASSERT): Likewise.
76191         * tests/test-fseeko.c (ASSERT): Likewise.
76192         * tests/test-fstrcmp.c (ASSERT): Likewise.
76193         * tests/test-ftell.c (ASSERT): Likewise.
76194         * tests/test-ftello.c (ASSERT): Likewise.
76195         * tests/test-func.c (ASSERT): Likewise.
76196         * tests/test-fwritable.c (ASSERT): Likewise.
76197         * tests/test-fwriting.c (ASSERT): Likewise.
76198         * tests/test-getdelim.c (ASSERT): Likewise.
76199         * tests/test-getline.c (ASSERT): Likewise.
76200         * tests/test-i-ring.c (ASSERT): Likewise.
76201         * tests/test-iconv-utf.c (ASSERT): Likewise.
76202         * tests/test-iconv.c (ASSERT): Likewise.
76203         * tests/test-isfinite.c (ASSERT): Likewise.
76204         * tests/test-isnand.c (ASSERT): Likewise.
76205         * tests/test-isnanf.c (ASSERT): Likewise.
76206         * tests/test-isnanl.h (ASSERT): Likewise.
76207         * tests/test-ldexpl.c (ASSERT): Likewise.
76208         * tests/test-linked_list.c (ASSERT): Likewise.
76209         * tests/test-linkedhash_list.c (ASSERT): Likewise.
76210         * tests/test-localename.c (ASSERT): Likewise.
76211         * tests/test-lseek.c (ASSERT): Likewise.
76212         * tests/test-mbscasecmp.c (ASSERT): Likewise.
76213         * tests/test-mbscasestr1.c (ASSERT): Likewise.
76214         * tests/test-mbscasestr2.c (ASSERT): Likewise.
76215         * tests/test-mbscasestr3.c (ASSERT): Likewise.
76216         * tests/test-mbscasestr4.c (ASSERT): Likewise.
76217         * tests/test-mbschr.c (ASSERT): Likewise.
76218         * tests/test-mbscspn.c (ASSERT): Likewise.
76219         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
76220         * tests/test-mbspbrk.c (ASSERT): Likewise.
76221         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
76222         * tests/test-mbsrchr.c (ASSERT): Likewise.
76223         * tests/test-mbsspn.c (ASSERT): Likewise.
76224         * tests/test-mbsstr1.c (ASSERT): Likewise.
76225         * tests/test-mbsstr2.c (ASSERT): Likewise.
76226         * tests/test-mbsstr3.c (ASSERT): Likewise.
76227         * tests/test-memchr2.c (ASSERT): Likewise.
76228         * tests/test-memmem.c (ASSERT): Likewise.
76229         * tests/test-open.c (ASSERT): Likewise.
76230         * tests/test-printf-frexp.c (ASSERT): Likewise.
76231         * tests/test-printf-frexpl.c (ASSERT): Likewise.
76232         * tests/test-printf-posix.c (ASSERT): Likewise.
76233         * tests/test-quotearg.c (ASSERT): Likewise.
76234         * tests/test-rbtree_list.c (ASSERT): Likewise.
76235         * tests/test-rbtree_oset.c (ASSERT): Likewise.
76236         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
76237         * tests/test-round1.c (ASSERT): Likewise.
76238         * tests/test-roundf1.c (ASSERT): Likewise.
76239         * tests/test-roundl.c (ASSERT): Likewise.
76240         * tests/test-signbit.c (ASSERT): Likewise.
76241         * tests/test-sleep.c (ASSERT): Likewise.
76242         * tests/test-snprintf-posix.c (ASSERT): Likewise.
76243         * tests/test-snprintf.c (ASSERT): Likewise.
76244         * tests/test-sprintf-posix.c (ASSERT): Likewise.
76245         * tests/test-stat-time.c (ASSERT): Likewise.
76246         * tests/test-strcasestr.c (ASSERT): Likewise.
76247         * tests/test-strerror.c (ASSERT): Likewise.
76248         * tests/test-striconv.c (ASSERT): Likewise.
76249         * tests/test-striconveh.c (ASSERT): Likewise.
76250         * tests/test-striconveha.c (ASSERT): Likewise.
76251         * tests/test-strsignal.c (ASSERT): Likewise.
76252         * tests/test-strstr.c (ASSERT): Likewise.
76253         * tests/test-strtod.c (ASSERT): Likewise.
76254         * tests/test-trunc1.c (ASSERT): Likewise.
76255         * tests/test-trunc2.c (ASSERT): Likewise.
76256         * tests/test-truncf1.c (ASSERT): Likewise.
76257         * tests/test-truncf2.c (ASSERT): Likewise.
76258         * tests/test-truncl.c (ASSERT): Likewise.
76259         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
76260         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
76261         * tests/test-vasnprintf.c (ASSERT): Likewise.
76262         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
76263         * tests/test-vasprintf.c (ASSERT): Likewise.
76264         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
76265         * tests/test-vprintf-posix.c (ASSERT): Likewise.
76266         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
76267         * tests/test-vsnprintf.c (ASSERT): Likewise.
76268         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
76269         * tests/test-wcwidth.c (ASSERT): Likewise.
76270         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
76271         * tests/test-xprintf-posix.c (ASSERT): Likewise.
76272         * tests/test-xvasprintf.c (ASSERT): Likewise.
76273         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
76274         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
76275         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
76276         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
76277         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
76278         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
76279         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
76280         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
76281         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
76282         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
76283         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
76284         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
76285         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
76286         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
76287         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
76288         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
76289         * tests/unictype/test-block_list.c (ASSERT): Likewise.
76290         * tests/unictype/test-block_of.c (ASSERT): Likewise.
76291         * tests/unictype/test-block_test.c (ASSERT): Likewise.
76292         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
76293         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
76294         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
76295         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
76296         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
76297         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
76298         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
76299         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
76300         * tests/unictype/test-combining.c (ASSERT): Likewise.
76301         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
76302         * tests/unictype/test-digit.c (ASSERT): Likewise.
76303         * tests/unictype/test-mirror.c (ASSERT): Likewise.
76304         * tests/unictype/test-numeric.c (ASSERT): Likewise.
76305         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
76306         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
76307         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
76308         * tests/unictype/test-scripts.c (ASSERT): Likewise.
76309         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
76310         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
76311         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
76312         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
76313         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
76314         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
76315         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
76316         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
76317         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
76318         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
76319         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
76320         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
76321         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
76322         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
76323         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
76324         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
76325         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
76326         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
76327         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
76328         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
76329         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
76330         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
76331         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
76332         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
76333         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
76334         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
76335         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
76336         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
76337         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
76338         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
76339         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
76340         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
76341         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
76342         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
76343         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
76344         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
76345         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
76346         Reported by Eric Blake.
76348 2008-04-11  Bruno Haible  <bruno@clisp.org>
76350         * lib/wchar.in.h: Tweak comment.
76352 2008-04-11  Bruno Haible  <bruno@clisp.org>
76354         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
76355         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
76356         gl_COMMON.
76357         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
76359 2008-04-11  Bruno Haible  <bruno@clisp.org>
76361         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
76363 2008-04-11  Simon Josefsson  <simon@josefsson.org>
76365         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
76366         of attempting to use non-existing /dev/*random.  Based on patch
76367         from Adam Strzelecki <ono@java.pl> in
76368         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
76370 2008-04-08  Bruno Haible  <bruno@clisp.org>
76372         Add tentative support for emx+gcc.
76373         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
76374         * lib/fpurge.c (fpurge): Likewise.
76375         * lib/freadable.c (freadable): Likewise.
76376         * lib/freadahead.c (freadahead): Likewise.
76377         * lib/freading.c (freading): Likewise.
76378         * lib/freadptr.c (freadptr): Likewise.
76379         * lib/freadseek.c (freadptrinc): Likewise.
76380         * lib/fseeko.c (rpl_fseeko): Likewise.
76381         * lib/fseterr.c (fseterr): Likewise.
76382         * lib/fwritable.c (fwritable): Likewise.
76383         * lib/fwriting.c (fwriting): Likewise.
76384         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
76386 2008-04-09  Eric Blake  <ebb9@byu.net>
76388         Avoid some autoconf warnings.
76389         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
76390         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
76391         * m4/afs.m4 (gl_AFS): Likewise.
76392         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
76393         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
76394         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
76395         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
76396         (gl_INTEGER_TYPE_SUFFIX): Likewise.
76397         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
76398         (AC_CHECK_DECLS_ONCE): Likewise.
76399         Rename file...
76400         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
76401         gnulib-tool requires autoconf 2.59 or better.
76402         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
76404 2008-04-08  Eric Blake  <ebb9@byu.net>
76406         Use 'git describe --match' if present (added in git 1.5.5).
76407         * build-aux/git-version-gen: Limit result to tags that match 'v*'
76408         if possible.
76410 2008-04-08  Bruno Haible  <bruno@clisp.org>
76412         Add tentative support for OpenServer.
76413         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
76414         _ptr, _cnt.
76415         * lib/fpurge.c (fpurge): Likewise.
76416         * lib/freadable.c (freadable): Likewise.
76417         * lib/freadahead.c (freadahead): Likewise.
76418         * lib/freading.c (freading): Likewise.
76419         * lib/freadptr.c (freadptr): Likewise.
76420         * lib/freadseek.c (freadptrinc): Likewise.
76421         * lib/fseeko.c (rpl_fseeko): Likewise.
76422         * lib/fseterr.c (fseterr): Likewise.
76423         * lib/fwritable.c (fwritable): Likewise.
76424         * lib/fwriting.c (fwriting): Likewise.
76425         Reported by Roger Cornelius <rac@tenzing.org> and
76426         Brian K. White <brian@aljex.com>.
76428 2008-04-06  Jim Meyering  <meyering@redhat.com>
76430         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
76432 2008-04-06  Bruno Haible  <bruno@clisp.org>
76434         Avoid possible error with non-ASCII bytes in UTF-8 locales.
76435         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
76436         * tests/test-printf-posix.sh: Likewise.
76437         * tests/test-vfprintf-posix.sh: Likewise.
76438         * tests/test-vprintf-posix.sh: Likewise.
76439         * tests/test-xprintf-posix.sh: Likewise.
76441 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76443         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
76444         hide error from 'ls', needed on OS/2.
76445         Report by Elbert Pol <elbert.pol@gmail.com>.
76447 2008-04-04  Eric Blake  <ebb9@byu.net>
76449         Make test-fseeko.c failures meaningful.
76450         * tests/test-fseeko.c: Print line number on failure.
76451         * tests/test-fseek.c: Likewise.
76452         Reported by Nelson H. F. Beebe.
76454         Improve strtod bug detection check.
76455         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
76456         required for Solaris 10.
76457         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
76459 2008-04-04  Bruno Haible  <bruno@clisp.org>
76461         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
76462         by m4/setenv.m4.
76464 2008-04-03  Eric Blake  <ebb9@byu.net>
76466         Ensure sane .version contents.
76467         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
76468         version string.
76469         * build-aux/git-version-gen: Improve documentation.
76471         Make GNU make output nicer.
76472         * top/GNUmakefile [!_have-Makefile]: Add dependency on
76473         MAKECMDGOALS to enforce message for all command line targets.  Set
76474         srcdir for use in maint.mk.
76476         Another maintainer tweak.
76477         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
76478         a target that regenerates version.
76480 2008-04-03  Jim Meyering  <meyering@redhat.com>
76482         vc-list-files: don't cause coreutils "make po-check" failure
76483         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
76485 2008-04-03  Eric Blake  <ebb9@byu.net>
76487         Allow VPATH usage of vc-list-files.
76488         * build-aux/vc-list-files (scriptversion): Add timestamp.
76489         (options): Add --help, --version, -C.
76490         (CVS): Support installed cvsu.
76492 2008-04-02  Bruno Haible  <bruno@clisp.org>
76494         Avoid some "statement with no effect" warnings from gcc.
76495         * tests/test-wctype.c (main): Explicitly ignore unused values.
76496         Reported by Jim Meyering.
76498 2008-04-02  Jim Meyering  <meyering@redhat.com>
76500         Avoid some warnings from "gcc -Wshadow".
76501         * tests/test-frexp.c (exp): Define to a different identifier.
76502         * tests/test-frexpl.c (exp): Likewise.
76504 2008-04-03  Jim Meyering  <meyering@redhat.com>
76506         bootstrap: remove dangling *.[ch] symlinks from lib
76507         * build-aux/bootstrap [dangling symlink removal]: Move find's
76508         -depth option to precede all others, to avoid a warning.
76509         Remove *.[ch] files too, and from "$source_base" (usually lib/).
76511 2008-04-02  Bruno Haible  <bruno@clisp.org>
76513         Avoid some warnings from "gcc -Wshadow".
76514         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
76515         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
76516         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
76517         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
76518         Reported by Jim Meyering.
76520 2008-04-01  Bruno Haible  <bruno@clisp.org>
76522         Fix test to work on IRIX 6.5 with cc.
76523         * tests/test-math.c (numeric_equal): New function.
76524         (main): Use it.
76526 2008-04-01  Bruno Haible  <bruno@clisp.org>
76528         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
76530 2008-04-01  Bruno Haible  <bruno@clisp.org>
76532         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
76533         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
76534         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
76535         (Depends-on): Remove math.
76537         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
76538         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
76539         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
76540         (Depends-on): Remove math.
76542         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
76543         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
76544         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
76545         (Depends-on): Remove math.
76546         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
76547         (Depends-on): Remove math.
76549         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
76550         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
76551         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
76552         (Depends-on): Remove math.
76553         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
76554         (Depends-on): Remove math.
76556         * tests/test-round1.c: Include nan.h.
76557         (main): Use NaNd instead of NAN.
76558         * modules/round-tests (Files): Add tests/nan.h.
76560         * tests/test-trunc1.c: Include nan.h.
76561         (main): Use NaNd instead of NAN.
76562         * modules/trunc-tests (Files): Add tests/nan.h.
76564         * tests/test-roundf1.c: Include nan.h.
76565         (main): Use NaNf instead of NAN.
76566         * modules/roundf-tests (Files): Add tests/nan.h.
76568         * tests/test-truncf1.c: Include nan.h.
76569         (main): Use NaNf instead of NAN.
76570         * modules/truncf-tests (Files): Add tests/nan.h.
76572         * tests/test-ceilf1.c: Include nan.h.
76573         (main): Use NaNf instead of NAN.
76574         * modules/ceilf-tests (Files): Add tests/nan.h.
76576         * tests/test-floorf1.c: Include nan.h.
76577         (main): Use NaNf instead of NAN.
76578         * modules/floorf-tests (Files): Add tests/nan.h.
76580         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
76581         (main): Use NaNf instead of NAN.
76582         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
76584         * tests/test-isnand.c: Include nan.h instead of <math.h>.
76585         (main): Use NaNd instead of NAN.
76586         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
76588         * tests/test-frexp.c: Include nan.h.
76589         (main): Use NaNd instead of NAN.
76590         * modules/frexp-tests (Files): Add tests/nan.h.
76592         * lib/isnan.c: Don't include <math.h>.
76593         (FUNC): Don't use NAN macro.
76594         * modules/isnand-nolibm (Depends-on): Remove math.
76595         * modules/isnanf-nolibm (Depends-on): Remove math.
76596         * modules/isnanl (Depends-on): Remove math.
76597         * modules/isnanl-nolibm (Depends-on): Remove math.
76599         * tests/nan.h: New file.
76601 2008-04-01  Eric Blake  <ebb9@byu.net>
76603         Fix typos.
76604         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
76605         values to be the right type.
76607         For now, cater to gnulib strtod inaccuracies.
76608         * tests/test-strtod.c (main): Allow 1-ulp error on expected
76609         fractional results.  While not as nice from a QoI perspective, it
76610         is a quicker patch than correctly implementing decimal to binary
76611         rounding.
76613 2008-03-31  Eric Blake  <ebb9@byu.net>
76615         Guarantee a definition of NAN.
76616         * lib/math.in.h (NAN): Define if missing.
76617         * tests/test-math.c (main): Test it.
76618         * doc/posix-headers/math.texi (math.h): Document this.
76619         * lib/isnan.c (rpl_isnand): Use it.
76620         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
76621         * tests/test-floorf1.c (NaN): Likewise.
76622         * tests/test-frexp.c (NaN): Likewise.
76623         * tests/test-isnand.c (NaN): Likewise.
76624         * tests/test-isnanf.c (NaN): Likewise.
76625         * tests/test-round1.c (NaN): Likewise.
76626         * tests/test-roundf1.c (NaN): Likewise.
76627         * tests/test-snprintf-posix.h (NaN): Likewise.
76628         * tests/test-sprintf-posix.h (NaN): Likewise.
76629         * tests/test-trunc1.c (NaN): Likewise.
76630         * tests/test-truncf1.c (NaN): Likewise.
76631         * tests/test-vasnprintf-posix.c (NaN): Likewise.
76632         * tests/test-vasprintf-posix.c (NaN): Likewise.
76633         * modules/isnand-nolibm (Depends-on): Add math.
76634         * modules/isnanf-nolibm (Depends-on): Likewise.
76635         * modules/isnanl (Depends-on): Likewise.
76636         * modules/isnanl-nolibm (Depends-on): Likewise.
76637         * modules/snprintf-posix-tests (Depends-on): Likewise.
76638         * modules/sprintf-posix-tests (Depends-on): Likewise.
76639         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
76640         * modules/vsprintf-posix-tests (Depends-on): Likewise.
76641         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
76642         * modules/vasprintf-posix-tests (Depends-on): Likewise.
76644 2008-03-31  Bruno Haible  <bruno@clisp.org>
76646         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
76647         * doc/posix-functions/strtod.texi: Likewise.
76649 2008-03-31  Bruno Haible  <bruno@clisp.org>
76651         * tests/test-strtod.c (main): Don't use C99 syntax.
76653 2008-03-31  Bruno Haible  <bruno@clisp.org>
76655         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
76656         Reported by Eric Blake.
76658 2008-03-31  Jim Meyering  <meyering@redhat.com>
76660         Don't compare actual signbit return values.
76661         * tests/test-strtod.c (main): Rather, compare only their
76662         zero/non-zero nature.
76664 2008-03-31  Eric Blake  <ebb9@byu.net>
76666         More strtod documentation.
76667         * doc/posix-functions/strtod.texi (strtod): Interpret more test
76668         failures as distinct bugs.
76670 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
76672         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
76673         Problem reported by Erik Benada in
76674         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
76676 2008-03-30  Bruno Haible  <bruno@clisp.org>
76678         * tests/test-strtod.c: Add comments about which assertion fails on which
76679         platform.
76680         * doc/posix-functions/strtod.texi: Add info about many more platforms.
76682 2008-03-30  Eric Blake  <ebb9@byu.net>
76684         Test signbit behavior on zeros.
76685         * tests/test-signbit.c (test_signbitf): Add tests for zero.
76686         (test_signbitd, test_signbitl): Likewise.
76688         More strtod touchups.
76689         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
76690         sign of negative underflow, for now.  Use .5, not .1.
76691         * doc/posix-functions/strtod.texi (strtod): Mention these
76692         limitations.
76693         Reported by Jim Meyering.
76695 2008-03-30  Bruno Haible  <bruno@clisp.org>
76697         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
76698         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
76700 2008-03-30  Bruno Haible  <bruno@clisp.org>
76702         Avoid failure when attempting to return empty iconv results on some
76703         platforms.
76704         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
76705         allocation, don't report ENOMEM when the resulting string is empty.
76707 2008-03-30  Bruno Haible  <bruno@clisp.org>
76709         Fix buffer overrun.
76710         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
76711         Don't consider the width for tmp_length. Check count against tmp_length
76712         before doing the padding. Ensure enough allocation during padding.
76714 2008-03-30  Eric Blake  <ebb9@byu.net>
76716         strtod touchups.
76717         * lib/strtod.c (strtod): Avoid compiler warnings.
76718         Reported by Jim Meyering.
76720 2008-03-30  Bruno Haible  <bruno@clisp.org>
76722         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
76723         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
76724         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
76725         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
76726         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
76727         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
76728         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
76729         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
76731         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
76732         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
76733         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
76734         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
76735         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
76736         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
76737         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
76738         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
76740         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
76741         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
76742         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
76743         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
76744         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
76745         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
76746         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
76747         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
76749         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
76750         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
76752         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
76753         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
76755         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
76756         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
76758         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
76759         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
76760         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
76762         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
76763         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
76764         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
76766         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
76767         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
76768         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
76770         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
76771         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
76772         * modules/vasprintf (Depends-on): Add EOVERFLOW.
76774         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
76775         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
76776         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
76777         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
76778         (Depends-on): Add EOVERFLOW.
76779         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
76780         (Depends-on): Add EOVERFLOW.
76781         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
76782         (Depends-on): Add EOVERFLOW.
76783         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
76784         (Depends-on): Add EOVERFLOW.
76785         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
76786         (Depends-on): Add EOVERFLOW.
76787         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
76788         (Depends-on): Add EOVERFLOW.
76789         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
76790         (Depends-on): Add EOVERFLOW.
76791         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
76792         (Depends-on): Add EOVERFLOW.
76794         * lib/sprintf.c (EOVERFLOW): Remove fallback.
76795         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
76796         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
76798         * lib/snprintf.c (EOVERFLOW): Remove fallback.
76799         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
76800         * modules/snprintf (Depends-on): Add EOVERFLOW.
76802         * lib/poll.c (EOVERFLOW): Remove fallback.
76803         * modules/poll (Depends-on): Add EOVERFLOW.
76805         * lib/getugroups.c (EOVERFLOW): Remove fallback.
76806         * modules/getugroups (Depends-on): Add EOVERFLOW.
76808         * lib/getdelim.c (EOVERFLOW): Remove fallback.
76809         * modules/getdelim (Depends-on): Add EOVERFLOW.
76811         * lib/ftell.c (EOVERFLOW): Remove fallback.
76812         * modules/ftell (Depends-on): Add EOVERFLOW.
76814         * lib/fprintf.c (EOVERFLOW): Remove fallback.
76815         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
76816         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
76818         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
76820         * modules/EOVERFLOW-tests: New file.
76821         * tests/test-EOVERFLOW.c: New file.
76823         * modules/EOVERFLOW: New file.
76824         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
76826 2008-03-30  Bruno Haible  <bruno@clisp.org>
76828         Fix bug introduced on 2007-06-10.
76829         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
76830         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
76832 2008-03-30  Bruno Haible  <bruno@clisp.org>
76834         Improve freadseek's efficiency after ungetc.
76835         * lib/freadseek.c: Include freadahead.h.
76836         (freadptrinc): New function, extracted from freadseek.
76837         (freadseek): Use it in a loop. Use freadahead to determine the number
76838         of loop iterations.
76839         * modules/freadseek (Depends-on): Add freadahead.
76840         (configure.ac): Require AC_C_INLINE.
76842 2008-03-30  Bruno Haible  <bruno@clisp.org>
76844         * lib/freadseek.c (freadseek): Don't ignore the return value of
76845         freadptr.
76847 2008-03-29  Eric Blake  <ebb9@byu.net>
76849         Add hex float support.
76850         * modules/strtod (Depends-on): Add c-ctype.
76851         (Link): Mention POW_LIB.
76852         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
76853         whitespace between 'e' and exponent.
76854         * tests/test-strtod.c (main): Enable hex float tests.
76855         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
76856         now provides.
76858         Document various strtod bugs, with some fixes.
76859         * doc/posix-functions/strtod.texi (strtod): Document bugs with
76860         "-0x", "inf", "nan", and hex constants.
76861         * doc/posix-functions/atof.texi (atof): Likewise.
76862         * modules/stdlib (Makefile.am): Support strtod.
76863         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
76864         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
76865         detect additional strtod bugs.
76866         * lib/stdlib.in.h (rpl_strtod): Add declarations.
76867         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
76868         bool where appropriate.  Parse 'inf' and 'nan'.
76869         * tests/test-strtod.c: New file.
76870         * modules/strtod (Depends-on): Add stdbool, stdlib.
76871         (configure.ac): Turn on module indicator.
76872         * modules/strtod-tests: New module.
76874 2008-03-29  Eric Blake  <ebb9@byu.net>
76876         Fix ftell on mingw.
76877         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
76878         * modules/ftell-tests (Depends-on): Add binary-io.
76879         * modules/ftello-tests (Depends-on): Likewise.
76880         * tests/test-ftell.c (main): Enhance test to cover behavior after
76881         ungetc.  Enforce binary mode.
76882         * tests/test-ftello.c (main): Likewise.
76884         Pass test-freadseek on cygwin.
76885         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
76886         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
76887         ungetc buffer.
76889         * tests/test-fflush2.c (main): Fix typo.
76891 2008-03-29  Bruno Haible  <bruno@clisp.org>
76893         * tests/test-fflush2.c (main): Temporarily disable the contents of
76894         this test.
76895         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
76896         Reported by Eric Blake.
76898 2008-03-28  Simon Josefsson  <simon@josefsson.org>
76900         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
76901         (GC_SHA224_DIGEST_SIZE): Add.
76903         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
76904         (gc_hash_digest_length): Likewise.
76905         (gc_hash_buffer): Likewise.
76907 2008-03-25  Bruno Haible  <bruno@clisp.org>
76909         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
76910         detail which gettext release to use.
76911         Reported by Simon Josefsson.
76913 2008-03-26  Jim Meyering  <meyering@redhat.com>
76915         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
76916         * modules/gnumakefile (clean-GNUmakefile): Also, use
76917         test ... && ... || : syntax rather than if-then ... fi.
76919         gnumakefile: Don't double-quote-expand $(VPATH) value.
76920         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
76922 2008-03-24  Eric Blake  <ebb9@byu.net>
76924         Alter GNUmakefile to install into top directory.
76925         * modules/maintainer-makefile: Split, and add dependency...
76926         * modules/gnumakefile: to this new module.
76927         * build-aux/GNUmakefile: Move...
76928         * top/GNUmakefile: ...here.
76929         * build-aux/maint.mk: Move...
76930         * top/maint.mk: ...here.
76931         * MODULES.html.sh (Support for maintaining...): Document new
76932         module.
76934 2008-03-23  Bruno Haible  <bruno@clisp.org>
76936         * gnulib-tool: New options --vc-files, --no-vc-files.
76937         (func_usage): Document them.
76938         (vc_files): New variable.
76939         (func_import): Consider vc_files.
76940         (func_create_testdir): Set vc_files to empty.
76941         Suggested by Jim Meyering and Karl Berry.
76943 2008-03-23  Bruno Haible  <bruno@clisp.org>
76945         Fix regex compilation error on HP-UX 11.
76946         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
76947         * modules/regex (Files): Add m4/mbstate_t.m4.
76948         Reported by Ton Voon <ton.voon@altinity.com>.
76950 2008-03-23  Bruno Haible  <bruno@clisp.org>
76952         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
76954 2008-03-23  Eric Blake  <ebb9@byu.net>
76955             Bruno Haible  <bruno@clisp.org>
76957         Install files from top/ in the destination directory.
76958         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
76959         augmentation also for the files from top/.
76960         (func_import, func_create_testdir): Rewrite file names:
76961         top/filename -> filename.
76963 2008-03-23  Bruno Haible  <bruno@clisp.org>
76965         Tweak "gnulib --version" output.
76966         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
76968 2008-03-23  Bruno Haible  <bruno@clisp.org>
76970         Tweak "gnulib --version" output.
76971         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
76972         rather than contents of ChangeLog, when possible.
76974 2008-03-21  Eric Blake  <ebb9@byu.net>
76976         More --version tweaks.
76977         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
76978         date of last ChangeLog entry.
76980 2008-03-21  Jim Meyering  <meyering@redhat.com>
76982         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
76984 2008-03-20  Eric Blake  <ebb9@byu.net>
76986         VPATH fix.
76987         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
76989 2008-03-20  Simon Josefsson  <simon@josefsson.org>
76991         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
76992         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
76994 2008-03-20  Eric Blake  <ebb9@byu.net>
76996         Sync GNUmakefile with coreutils.
76997         * build-aux/GNUmakefile (have-Makefile): Rename...
76998         (_have-Makefile): ...to this, for namespace consideration.
76999         (GNUmakefile.cfg): Include, if present.
77000         (_autoreconf): Define a default.
77001         (_is-dist-target): New rule for rebuilds to pick up intra-release
77002         version.
77003         (maint-cfg.mk): Rename...
77004         (cfg.mk): ...to this.
77006 2008-03-18  Jim Meyering  <meyering@redhat.com>
77008         New script and module: mktempd
77009         * MODULES.html.sh (maint+release support): Add mktempd.
77010         * build-aux/mktempd: New file.
77011         * modules/mktempd: New file.
77013 2008-03-15  Jim Meyering  <meyering@redhat.com>
77015         Undo last change.
77016         * lib/sha1.c, lib/md5.c: 63 != ~63.
77017         Reported by Andreas Schwab.
77019         sha1.c, md5.c: Hoist a redundant expression.
77020         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
77021         "ctx->buflen" only once, before calling *_process_block.
77022         * lib/md5.c (md5_process_bytes): Likewise.
77024 2008-03-14  Eric Blake  <ebb9@byu.net>
77026         Bump copyright year in files generated by gnulib-tool.
77027         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
77028         gnulib-tool, rather than hard-coding it.
77030         Fix 'gnulib-tool --version' output to work with git.
77031         * gnulib-tool (func_gnulib_dir): New function, extracted from...
77032         (startup): ...here.
77033         (func_version): Use it to invoke git-version-gen, rather than
77034         relying on CVS keyword expansion.  Modernize wording.
77035         (cvsdatestamp, last_checkin_date, version): Kill unused
77036         variables.
77038 2008-03-12  Jim Meyering  <meyering@redhat.com>
77040         Recognize optional cast of the argument to free.
77041         * build-aux/useless-if-before-free: Update regexps.
77043         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
77045 2008-03-11  Bruno Haible  <bruno@clisp.org>
77047         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
77048         by a single package.
77049         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
77050         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
77051         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
77052         Reported by Sam Steingold <sds@gnu.org>.
77054 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
77056         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
77057         repositories.
77059 2008-03-11  Bruno Haible  <bruno@clisp.org>
77061         Avoid conflicts between local macro definitions.
77062         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
77063         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
77065 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
77066             Bruno Haible  <bruno@clisp.org>
77068         Make va_copy work with some version of xlc on AIX 5.1.
77069         * lib/stdarg.in.h: New file.
77070         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
77071         On AIX, use a <stdarg.h> file substitute.
77072         * modules/stdarg (Files): Add lib/stdarg.in.h.
77073         (Depends-on): Add include_next.
77074         (Makefile.am): Build a stdarg.h substitute if requested.
77075         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
77077 2008-03-10  Bruno Haible  <bruno@clisp.org>
77079         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
77080         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
77081         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
77083 2008-03-10  Bruno Haible  <bruno@clisp.org>
77085         * modules/stdlib (Depends-on): Add include_next, remove
77086         absolute-header.
77088 2008-03-09  Bruno Haible  <bruno@clisp.org>
77090         * lib/freadahead.h (freadahead): Document more precisely.
77091         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
77092         the sum of both buffer sizes.
77093         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
77094         * NEWS: Document the change.
77096 2008-03-09  Bruno Haible  <bruno@clisp.org>
77098         Extend freadptr to return also the buffer size.
77099         * lib/freadptr.h (freadptr): Add sizep argument.
77100         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
77101         (freadptr): Add sizep argument. Determine buffer size like freadahead
77102         does.
77103         * tests/test-freadptr.c: Don't include freadahead.h.
77104         (main): Adapt for new calling convention of freadptr.
77105         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
77106         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
77107         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
77108         tests/test-freadptr2.sh.
77109         (Depends): Remove freadahead.
77110         (TESTS): Add test-freadptr2.sh.
77111         (check_PROGRAMS): Add test-freadptr2.
77113 2008-03-09  Bruno Haible  <bruno@clisp.org>
77115         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
77116         Report and solution by Simon Josefsson.
77118 2008-03-06  Bruno Haible  <bruno@clisp.org>
77120         Make fflush after ungetc work on BSD platforms.
77121         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
77122         * tests/test-fflush2.c: New file.
77123         * tests/test-fflush2.sh: New file.
77124         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
77125         tests/test-fflush2.c.
77126         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
77127         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
77129 2008-03-06  Eric Blake  <ebb9@byu.net>
77131         Likewise for ftello.
77132         * modules/ftello (Dependencies): Add extensions.
77133         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
77135 2008-03-06  Bruno Haible  <bruno@clisp.org>
77137         * modules/fseeko (Dependencies): Add extensions.
77138         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
77139         Needed on glibc systems.
77141 2008-03-06  Bruno Haible  <bruno@clisp.org>
77143         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
77144         email address.
77145         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
77147 2008-03-06  Bruno Haible  <bruno@clisp.org>
77149         * users.txt: Add libgnupdf.
77151 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
77153         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
77154         (Header File Substitutes, Function Substitutes,
77155         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
77156         (Build robot for gnulib): Fix typo.
77158 2008-03-06  Bruno Haible  <bruno@clisp.org>
77160         * doc/gnulib-tool.texi (VCS Issues): Small updates.
77161         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
77163 2008-03-06  Bruno Haible  <bruno@clisp.org>
77165         * doc/func.texi: New file, extracted from doc/gnulib.texi.
77166         * doc/gnulib.texi: Include it.
77168 2008-03-06  Simon Josefsson  <simon@josefsson.org>
77170         * modules/func (License): Change license to unlimited; there was
77171         no LGPL parts in the module anyway.
77173 2008-03-06  Simon Josefsson  <simon@josefsson.org>
77175         * modules/__func__: Renamed to modules/func.
77176         * modules/__func__-tests: Renamed to modules/func-tests.
77177         * tests/test-__func__.c: Renamed to tests/test-func.c.
77178         * m4/__func__.m4: Renamed to m4/func.m4.
77179         * doc/gnulib.texi (__func__): Section renamed to func.
77180         Suggested by Eric Blake <ebb9@byu.net>.
77182 2008-03-06  Simon Josefsson  <simon@josefsson.org>
77184         * doc/gnulib.texi (__func__): Use C99 terminology when talking
77185         about __func__.  Make example self-contained.  Suggested by Eric
77186         Blake <ebb9@byu.net>.
77188         * tests/test-__func__.c (main): Avoid extraneous () around __func.
77189         Suggested by Eric Blake <ebb9@byu.net>.
77191 2008-03-06  Simon Josefsson  <simon@josefsson.org>
77193         * modules/__func__: New file.
77194         * modules/__func__-tests: New file.
77195         * tests/test-__func__.c: New file.
77196         * m4/__func__.m4: New file.
77197         * doc/gnulib.texi (__func__): Document __func__ module.
77199 2008-03-05  Simon Josefsson  <simon@josefsson.org>
77201         * modules/byteswap (License): Re-license as LGPLv2+.
77203 2008-03-05  Simon Josefsson  <simon@josefsson.org>
77205         * doc/Makefile: Add pdf target.
77207 2008-03-05  Simon Josefsson  <simon@josefsson.org>
77209         * modules/inline (License): Use 'unlimited', since there are only
77210         *.m4 files in this module.
77212 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
77213             Bruno Haible  <bruno@clisp.org>
77215         Add support for HP C 7.1 on OpenVMS 8.3.
77216         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
77218 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
77220         Update VMS specifics.
77221         * lib/getopt.c [VMS]: Remove include of unixlib.h.
77223 2008-03-02  Jim Meyering  <meyering@redhat.com>
77225         Remove the last dependency on the "free" module.
77226         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
77227         Reported by Bob Proulx.
77229         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
77231         Remove useless "if" tests before free.  Deprecate "free" module.
77232         * doc/posix-functions/free.texi: Mention that this
77233         module is no longer useful.
77234         * modules/free (Notice): Say this module is obsolete.
77235         * modules/readutmp (Depends-on): Remove free.
77236         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
77237         * lib/putenv.c (putenv): Likewise.
77238         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
77239         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
77240         * tests/test-c-strcasestr.c (main): Likewise.
77241         * tests/test-c-strstr.c (main): Likewise.
77242         * tests/test-mbscasestr1.c (main): Likewise.
77243         * tests/test-mbscasestr2.c (main): Likewise.
77244         * tests/test-mbsstr1.c (main): Likewise.
77245         * tests/test-mbsstr2.c (main): Likewise.
77246         * tests/test-memmem.c (main): Likewise.
77247         * tests/test-strcasestr.c (main): Likewise.
77248         * tests/test-striconv.c (main): Likewise.
77249         * tests/test-striconveh.c (main): Likewise.
77250         * tests/test-striconveha.c (main): Likewise.
77251         * tests/test-strstr.c (main): Likewise.
77253         * build-aux/git-version-gen: Adjust a comment and the Usage string.
77255         bootstrap: sync from coreutils again
77256         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
77258 2008-03-01  Jim Meyering  <meyering@redhat.com>
77260         bootstrap: sync from coreutils
77261         * build-aux/bootstrap (update_po_files): Copy a .po file into place
77262         also when the target doesn't exist.
77264 2008-03-01  Eric Blake  <ebb9@byu.net>
77266         Fix bugs in last patch.
77267         * lib/memchr2.c (memchr2): Fix typo.
77268         * tests/test-memchr2.c: Test previous bug, and don't use GNU
77269         extension.
77270         Reported by Bruce Korb.
77272         New module 'memchr2'.
77273         * modules/memchr2: New file.
77274         * modules/memchr2-tests: Likewise.
77275         * lib/memchr2.h: Likewise.
77276         * lib/memchr2.c: Likewise, based on memchr.c.
77277         * tests/test-memchr2.c: New test.
77278         * MODULES.html.sh (String handling): Add memchr2.
77280 2008-02-29  Bruno Haible  <bruno@clisp.org>
77282         * modules/freadseek-tests: New file.
77283         * tests/test-freadseek.sh: New file.
77284         * tests/test-freadseek.c: New file.
77286         New module 'freadseek'.
77287         * modules/freadseek: New file.
77288         * lib/freadseek.h: New file.
77289         * lib/freadseek.c: New file.
77290         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
77292 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
77294         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
77295         wydawca.
77297         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
77298         program_invocation_name and program_invocation_short_name are
77299         present.
77301 2008-02-28  Bruno Haible  <bruno@clisp.org>
77303         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
77304         * tests/test-freadptr.sh: Also test non-seekable stdin.
77306 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
77308         * build-aux/bootstrap (source_base, m4_base)
77309         (doc_base, tests_base): New variables.
77310         (gnulib_tool_options): Do not hardcode base directories, use
77311         the above variables instead.
77313 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
77315         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
77317 2008-02-28  Bruno Haible  <bruno@clisp.org>
77319         * modules/freadptr-tests: New file.
77320         * tests/test-freadptr.sh: New file.
77321         * tests/test-freadptr.c: New file.
77323         New module 'freadptr'.
77324         * modules/freadptr: New file.
77325         * lib/freadptr.h: New file.
77326         * lib/freadptr.c: New file.
77327         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
77329 2008-02-26  Karl Berry  <karl@freefriends.org>
77331         Sync from Libtool:
77332         * libltdl/argz.c (argz_add, argz_count): New functions.
77333         * libltdl/argz.in.h: Declare them.
77334         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
77336 2008-02-22  Bruno Haible  <bruno@clisp.org>
77338         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
77339         is a pointer type.  Needed for HP-UX 10.
77340         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
77341         * doc/posix-functions/gmtime_r.texi: Likewise.
77342         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
77344 2008-02-24  Bruno Haible  <bruno@clisp.org>
77346         * modules/environ-tests: New file.
77347         * tests/test-environ.c: New file.
77349         New module 'environ'.
77350         * modules/environ: New file.
77351         * lib/unistd.in.h (environ): New declaration.
77352         * m4/environ.m4: New file.
77353         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
77354         after use.
77355         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
77356         HAVE_DECL_ENVIRON.
77357         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
77358         HAVE_DECL_ENVIRON.
77359         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
77360         wrong claim that 'environ' is missing on some systems.
77361         * modules/execute (Depends-on): Add environ.
77362         * lib/execute.c (environ): Remove fallback declaration.
77363         * modules/pipe (Depends-on): Add environ.
77364         * lib/pipe.c (environ): Remove fallback declaration.
77365         * modules/setenv (Depends-on): Add environ.
77366         * lib/setenv.c (environ): Remove fallback declaration.
77367         * modules/unsetenv (Depends-on): Add environ.
77368         * lib/unsetenv.c (environ): Remove fallback declaration.
77369         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
77370         m4/environ.m4.
77371         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
77372         (gl_PREREQ_UNSETENV): Likewise.
77374 2008-02-24  Bruno Haible  <bruno@clisp.org>
77376         * doc/posix-functions/environ.texi: Document the MacOS X problem.
77378 2008-02-20  Bob Proulx  <bob@proulx.com>
77380         Enable use of older two part flavor 'git describe'.
77381         * build-aux/git-version-gen: If using the older two part flavor of
77382         git version then recreate the third part now present in the
77383         newer three part flavor of git describe.
77385 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
77387         * lib/fts.c (fts_build): Typo correction to comment.
77389 2008-02-17  Bruno Haible  <bruno@clisp.org>
77391         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
77392         generating no-op conflicts.
77394 2008-02-17  Bruno Haible  <bruno@clisp.org>
77396         Speed up by 10%.
77397         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
77398         result_entries, rather than an index-based loop.
77400 2008-02-17  Bruno Haible  <bruno@clisp.org>
77402         Speed up by 25%.
77403         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
77404         'hashcode_cached'.
77405         (entry_create): New function.
77406         (entry_hashcode): Use the cached hashcode if possible.
77407         (read_changelog_file, try_split_merged_entry): Use entry_create.
77409 2008-02-17  Bruno Haible  <bruno@clisp.org>
77411         Speed up from O(n^2) to O(n) for long ChangeLog files.
77412         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
77413         (read_changelog_file): Change implementation of entries_reversed list
77414         to rbtreehash.
77415         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
77417 2008-02-17  Bruno Haible  <bruno@clisp.org>
77419         New option --split-merged-entry.
77420         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
77421         (find_paragraph_end, try_split_merged_entry): New functions.
77422         (long_options): Add option --split-merged-entry.
77423         (usage): Document option --split-merged-entry.
77424         (main): Implement option --split-merged-entry.
77425         Reported by Eric Blake.
77427 2008-02-17  Bruno Haible  <bruno@clisp.org>
77429         * lib/git-merge-changelog.c: Include c-strstr.h.
77430         (main): Support the "git pull --rebase" situation.
77431         * modules/git-merge-changelog (Depends-on): Add c-strstr.
77432         Reported by Eric Blake.
77434 2008-02-16  Eric Blake  <ebb9@byu.net>
77436         Avoid doubling \ in common case of "c-maybe" quoting style.
77437         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
77438         eliding outer quotes.
77439         * lib/quotearg.h: Document this.
77440         * tests/test-quotearg.c (result_strings, inputs, results_g)
77441         (flag_results, locale_results): Test it by adding a new string to
77442         each test group.
77443         (compare_strings): Test new string.
77445 2008-02-13  Eric Blake  <ebb9@byu.net>
77447         Avoid trigraph quoting in default output.
77448         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
77449         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
77450         unless explicitly requested.
77451         * tests/test-quotearg.c (flag_results, main): Add additional tests.
77453 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
77455         Don't rely on signed integer overflowing to negative value.
77456         * lib/getugroups.c (getugroups): Include <limits.h>.
77457         Instead, compare against INT_MAX, and increment only if the test passes.
77459 2008-02-13  Jim Meyering  <meyering@redhat.com>
77460         and Eric Blake  <ebb9@byu.net>
77462         Avoid shadowing warning and compile errors on Linux.
77463         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
77464         forwarding macros on Linux.
77465         (dcgettext): Define a stub, for Linux.
77466         (results_g, main): Avoid warnings.
77468 2008-02-12  Eric Blake  <ebb9@byu.net>
77470         Silence warning in last patch.
77471         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
77473         Quotearg part 4: add tests, fix c-maybe colon quoting.
77474         * lib/quotearg.h: Improve documentation.
77475         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
77476         escapes when adding outer quotes.  When quoting trigraphs, use
77477         valid C notation.  When quoting NUL, omit extra characters if next
77478         character is not digit.  Alter prototype.
77479         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
77480         callers.
77481         * modules/quotearg-tests: New module.
77482         * tests/test-quotearg.c: New test.
77484 2008-02-07  Eric Blake  <ebb9@byu.net>
77486         Quotearg part 3: add flag to control outer quote elision.
77487         * lib/quotearg.h (c_maybe_quoting_style): New style.
77488         (enum quoting_flags): Better documentation of flags.
77489         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
77490         c-maybe style.
77491         (quotearg_buffer_restyled): Handle new flag to elide outer
77492         quotes.
77494         Quotearg part 2: add flag that can control NUL elision.
77495         * lib/quotearg.h (set_quoting_flags): New prototype.
77496         * lib/quotearg.c (struct quoting_options): Add flag field.
77497         (set_quoting_flags): New function.
77498         (quotearg_buffer_restyled): Add flags parameter.
77499         (quotearg_alloc_mem): Set the flag if length cannot be returned.
77500         (quotearg_n_options): Set the flag, since length cannot be
77501         returned.
77502         (quoting_options_from_style): Default flags correctly.
77504         Quotearg part 1: more wrappers, restore quotearg_char state.
77505         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
77506         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
77507         (quotearg_colon_mem): New wrappers.
77508         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
77509         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
77510         functions.
77511         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
77512         (quotearg_colon_mem): New functions.
77514 2008-02-11  Bruno Haible  <bruno@clisp.org>
77516         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
77517         library in the current directory: it does not work with parallel make.
77518         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77520 2008-02-11  Bruno Haible  <bruno@clisp.org>
77522         * .gitattributes: New file.
77524 2008-02-11  Jim Meyering  <meyering@redhat.com>
77526         useless-if-before-free: Fix reversed exit values.
77527         * build-aux/useless-if-before-free: Use correct values
77528         for EXIT_MATCH and EXIT_NO_MATCH.
77530         * build-aux/useless-if-before-free: Close stdout carefully.
77532 2008-02-10  Bruno Haible  <bruno@clisp.org>
77534         New module 'git-merge-changelog'.
77535         * modules/git-merge-changelog: New file.
77536         * lib/git-merge-changelog.c: New file.
77538 2008-02-10  Jim Meyering  <meyering@redhat.com>
77540         useless-if-before-free: New option: --list (-l).
77542         useless-if-before-free: Don't exit immediately upon open failure.
77543         * build-aux/useless-if-before-free: Exit 2 for errors.
77544         Upon failure to open a file, don't exit immediately.
77545         Rather, just warn and continue with any remaining files.
77547 2008-02-10  Bruno Haible  <bruno@clisp.org>
77549         New abstract list operation 'node_set_value'.
77550         * lib/gl_list.h (gl_list_node_set_value): New function.
77551         (struct gl_list_implementation): New field node_set_value.
77552         * lib/gl_list.c (gl_list_node_set_value): New function.
77553         * lib/gl_array_list.c (gl_array_node_set_value): New function.
77554         (gl_array_list_implementation): Update.
77555         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
77556         (gl_carray_list_implementation): Update.
77557         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
77558         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
77559         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
77560         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
77561         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
77562         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
77563         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
77564         Update.
77565         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
77566         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
77567         (gl_sublist_list_implementation): Update.
77569 2008-02-10  Bruno Haible  <bruno@clisp.org>
77571         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
77572         Needed when ELEMENT is #defined to 'some_type *'.
77574 2008-02-10  Jim Meyering  <meyering@redhat.com>
77576         New script and module: useless-if-before-free
77577         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
77578         * build-aux/useless-if-before-free: New file.
77579         * modules/useless-if-before-free: New file.
77581         * build-aux/gitlog-to-changelog: Use committer date, not author date.
77583         xstrtol_error: Fix typo.
77584         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
77585         s/exit_failure/exit_status/.
77587 2008-02-09  Jim Meyering  <meyering@redhat.com>
77589         New script and module: gitlog-to-changelog
77590         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
77591         * modules/gitlog-to-changelog: New file.
77592         * build-aux/gitlog-to-changelog: New file.
77594 2008-02-08  Jim Meyering  <meyering@redhat.com>
77596         Avoid two "parameter unused" warnings.
77597         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
77598         Mark "st" as used.
77600         Use "git COMMAND", not "git-COMMAND".
77601         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
77602         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
77603         * build-aux/git-version-gen: Use "git status", not "git-status".
77605 2008-02-07  Bruno Haible  <bruno@clisp.org>
77607         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
77608         Avoids a crash on Windows Vista.
77609         Reported by Adam Strzelecki <ono@java.pl> via
77610         Simon Josefsson <simon@josefsson.org>.
77612 2008-02-06  Bruno Haible  <bruno@clisp.org>
77614         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
77615         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
77616         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
77617         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
77618         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
77619         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
77620         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
77621         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
77622         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
77623         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
77624         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
77625         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
77626         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
77627         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
77628         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
77629         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
77630         left-adjust flag.
77631         * tests/test-snprintf-posix.h (test_function): Likewise.
77632         * tests/test-sprintf-posix.h (test_function): Likewise.
77633         * tests/test-vasprintf-posix.c (test_function): Likewise.
77634         * doc/posix-functions/fprintf.texi: Update.
77635         * doc/posix-functions/printf.texi: Update.
77636         * doc/posix-functions/snprintf.texi: Update.
77637         * doc/posix-functions/sprintf.texi: Update.
77638         * doc/posix-functions/vfprintf.texi: Update.
77639         * doc/posix-functions/vprintf.texi: Update.
77640         * doc/posix-functions/vsnprintf.texi: Update.
77641         * doc/posix-functions/vsprintf.texi: Update.
77642         Reported by Peter Fales <psfales@alcatel-lucent.com>.
77644 2008-02-06  Bruno Haible  <bruno@clisp.org>
77646         Fix bug introduced on 2008-01-26.
77647         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
77649 2008-02-06  Bruno Haible  <bruno@clisp.org>
77651         Fix bug introduced on 2007-06-10.
77652         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
77653         !NEED_PRINTF_FLAG_ZERO.
77655 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
77657         getloadavg: use libperfstat on AIX5
77658         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
77660 2008-02-03  Bruno Haible  <bruno@clisp.org>
77662         * lib/diffseq.h: Add comments about required #includes.
77663         Reported by Michael Biggs <gnulib@doubleplum.net>.
77665 2008-02-01  Bruno Haible  <bruno@clisp.org>
77667         * users.txt: Add gnuit.
77669 2008-01-31  Bruno Haible  <bruno@clisp.org>
77671         * lib/md4.c (set_uint32): Mark as inline.
77672         * lib/md5.c (set_uint32): Likewise.
77673         * lib/sha1.c (set_uint32): Likewise.
77674         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
77675         * m4/md5.m4 (gl_MD5): Likewise.
77676         * m4/sha1.m4 (gl_SHA1): Likewise.
77678 2008-01-31  Jim Meyering  <meyering@redhat.com>
77680         Use "sizeof VAR", rather than a literal "4".
77681         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
77682         * lib/md4.c (md4_read_ctx): Likewise.
77683         * lib/sha1.c (sha1_read_ctx): Likewise.
77685 2008-01-31  Simon Josefsson  <simon@josefsson.org>
77687         * tests/test-sha1.c: New file, based on test-md5.c.
77689         * modules/crypto/sha1-tests: New file.
77691 2008-01-31  Simon Josefsson  <simon@josefsson.org>
77693         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
77695 2008-01-31  Jim Meyering  <meyering@redhat.com>
77697         Prefer "sizeof v" over the equivalent "4".
77698         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
77699         * lib/md5.c (set_uint32): Likewise.
77700         * lib/sha1.c (set_uint32): Likewise.
77702 2008-01-31  Simon Josefsson  <simon@josefsson.org>
77704         * lib/sha1.c (set_uint32): Mark function as static.
77706 2008-01-31  Simon Josefsson  <simon@josefsson.org>
77708         md2: clarify comments to say that alignment is not required.
77709         * lib/md2.h: Remove warning about alignment in comment.
77710         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
77711         never been required.
77713 2008-01-31  Simon Josefsson  <simon@josefsson.org>
77715         md4: adapt alignment constraint fix from sha1.
77716         * lib/md4.c (set_uint32): New function, from sha1.c
77717         (md4_read_ctx): Use it.
77718         (md4_finish_ctx): Doc fix.
77719         * lib/md4.h: Doc fix.
77721 2008-01-31  Simon Josefsson  <simon@josefsson.org>
77723         md5: adapt alignment constraint fix from sha1.
77724         * lib/md5.c (set_uint32): New function, from sha1.c
77725         (md5_read_ctx): Use it.
77726         (md5_finish_ctx): Doc fix.
77727         * lib/md5.h: Doc fix.
77729 2008-01-30  Peter Palfrader  <weasel@debian.org>
77731         sha1: remove the result buffer alignment constraint
77732         * lib/sha1.c (set_uint32): New function.
77733         (sha1_read_ctx): Rewrite to remove the result buffer alignment
77734         constraint.
77735         (sha1_finish_ctx): Remove comment warning about alignment constraint.
77736         * lib/sha1.h: Likewise.
77738 2008-01-30  Andreas Schwab  <schwab@suse.de>
77739             Bruno Haible  <bruno@clisp.org>
77741         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
77742         correct definition of LDBL_MIN_EXP.
77744 2008-01-30  Karl Berry  <karl@gnu.org>
77746         * config/srclist-update: try to preserve x bit on updates.
77747         * config/srclistvars.sh: update for karl.
77749 2008-01-29  Jim Meyering  <meyering@redhat.com>
77751         vasnprintf.c: Avoid warning about unused label
77752         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
77753         "overflow" label definition and associated code with the
77754         same cpp condition that guards the sole use of that label.
77756 2008-01-26  Bruno Haible  <bruno@clisp.org>
77758         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
77759         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
77760         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
77761         * lib/isnanl-nolibm.h (isnanl): Likewise.
77762         Reported by Paul Eggert <eggert@cs.ucla.edu>.
77764 2008-01-26  Bruno Haible  <bruno@clisp.org>
77766         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
77767         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
77769 2008-01-26  Bruno Haible  <bruno@clisp.org>
77771         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
77772         GCC >= 4.0 built-in.
77773         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
77775 2008-01-26  Bruno Haible  <bruno@clisp.org>
77777         Rename isnan, applicable to 'double' only, to isnand.
77778         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
77779         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
77780         (configure.ac): Update.
77781         (Include): Replace "isnan.h" with "isnand.h".
77782         * m4/isnand.m4: Renamed from m4/isnan.m4.
77783         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
77784         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
77785         instead of isnan.c.
77786         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
77787         instead of HAVE_ISNAN_IN_LIBC.
77788         (isnand): Renamed from isnan.
77789         * lib/isnand.c: New file.
77790         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
77791         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
77792         (Makefile.am): Update.
77793         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
77794         Include isnand.h instead of isnan.h.
77795         (main): Test isnand instead of isnan.
77796         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
77797         isnan-nolibm.
77798         * modules/frexp (Depends-on): Likewise.
77799         * modules/frexp-tests (Depends-on): Likewise.
77800         * modules/frexp-nolibm (Depends-on): Likewise.
77801         * modules/frexp-nolibm-tests (Depends-on): Likewise.
77802         * modules/isfinite (Depends-on): Likewise.
77803         * modules/round-tests (Depends-on): Likewise.
77804         * modules/signbit (Depends-on): Likewise.
77805         * modules/signbit-tests (Depends-on): Likewise.
77806         * modules/snprintf-posix (Depends-on): Likewise.
77807         * modules/sprintf-posix (Depends-on): Likewise.
77808         * modules/trunc-tests (Depends-on): Likewise.
77809         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
77810         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
77811         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
77812         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
77813         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
77814         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
77815         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
77816         * modules/vasnprintf-posix (Depends-on): Likewise.
77817         * modules/vasprintf-posix (Depends-on): Likewise.
77818         * modules/vfprintf-posix (Depends-on): Likewise.
77819         * modules/vsnprintf-posix (Depends-on): Likewise.
77820         * modules/vsprintf-posix (Depends-on): Likewise.
77821         * lib/frexp.c: Include isnand.h instead of isnan.h.
77822         (ISNAN): Set to isnand instead of isnan.
77823         * lib/isfinite.c: Include isnand.h instead of isnan.h.
77824         (gl_isfinited): Use isnand instead of isnan.
77825         * lib/signbitd.c: Include isnand.h instead of isnan.h.
77826         (gl_signbitd): Use isnand instead of isnan.
77827         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
77828         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
77829         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
77830         (main): Use isnand instead of isnan.
77831         * tests/test-round1.c: Include isnand.h.
77832         (main): Use isnand instead of isnan.
77833         * tests/test-round2.c: Include isnand.h instead of isnan.h.
77834         (ISNAN): Set to isnand instead of isnan.
77835         * tests/test-trunc1.c: Include isnand.h.
77836         (main): Use isnand instead of isnan.
77837         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
77838         (equal): Use isnand instead of isnan.
77839         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
77840         isnand-nolibm.
77841         * NEWS: Mention the change.
77843 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
77844             Bruno Haible  <bruno@clisp.org>
77846         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
77847         the GCC builtins for signbits are present and set
77848         REPLACE_SIGNBIT_USING_GCC if so.
77849         * lib/math.in.h (signbit): Define using GCC builtins if
77850         REPLACE_SIGNBIT_USING_GCC is set.
77851         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
77852         REPLACE_SIGNBIT_USING_GCC.
77853         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
77855 2008-01-25  Jim Meyering  <meyering@redhat.com>
77857         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
77858         * lib/poll.c: Include <config.h>, not "config.h".
77859         * tests/test-getaddrinfo.c: Likewise.
77861 2008-01-25  Simon Josefsson  <simon@josefsson.org>
77863         * modules/sockets-tests: New file.
77865 2008-01-24  Simon Josefsson  <simon@josefsson.org>
77867         * modules/sockets: New module, can be used to call WSA_Startup and
77868         WSA_Cleanup when needed.
77870         * lib/sockets.h, lib/sockets.c: New files.
77872         * m4/sockets.m4: New file.
77874         * tests/test-sockets.c: New file.
77876 2008-01-19  Bruno Haible  <bruno@clisp.org>
77878         * doc/posix-headers: Renamed from doc/headers.
77879         * doc/posix-functions: Renamed from doc/functions.
77880         * doc/gnulib.texi: Update.
77882 2008-01-19  Bruno Haible  <bruno@clisp.org>
77884         * doc/glibc-functions/strcasestr.texi: Include contents of
77885         doc/functions/strcasestr.texi, fixing the list of platforms.
77886         * doc/functions/strcasestr.texi: Remove file.
77888 2008-01-19  Bruno Haible  <bruno@clisp.org>
77890         * doc/glibc-functions/memmem.texi: Include contents of
77891         doc/functions/memmem.texi.
77892         * doc/functions/memmem.texi: Remove file.
77894 2008-01-18  Bruno Haible  <bruno@clisp.org>
77896         * doc/glibc-functions/*.texi: New files.
77897         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
77898         to use the new files.
77900 2008-01-17  Bruno Haible  <bruno@clisp.org>
77902         * tests/test-gethostname.c (main): Fix printf statement.
77904 2008-01-17  Simon Josefsson  <simon@josefsson.org>
77906         * modules/gethostname-tests: New file.
77908         * tests/test-gethostname.c: New file.
77910 2008-01-17  Simon Josefsson  <simon@josefsson.org>
77912         * lib/gethostname.c: Include string.h unconditionally, strncpy is
77913         used by the UNAME case.  Reported by Bruno Haible
77914         <bruno@clisp.org>.
77916 2008-01-17  Eric Blake  <ebb9@byu.net>
77918         Convert c-strcasestr to be more efficient.
77919         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
77920         (Depends-on): Add c-strcase, remove malloca, strnlen.
77921         * tests/test-c-strcasestr.c (main): Enhance test.
77922         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
77924 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
77926         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
77927         Use it in creating po/Makevars.
77929 2008-01-15  Simon Josefsson  <simon@josefsson.org>
77931         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
77932         Applications that requires it should initialize libgcrypt
77933         manually.
77935 2008-01-16  Simon Josefsson  <simon@josefsson.org>
77937         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
77939 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
77941         Fix problem with getdate on mingw32 reported by Simon Josefsson
77942         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
77943         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
77944         tzname", when deciding whether to declare tzname.
77945         * lib/strftime.c (tzname): Likewise.
77947 2008-01-15  Bruno Haible  <bruno@clisp.org>
77949         Work around a MacOS X 10.5 bug in frexpl().
77950         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
77951         * doc/functions/frexpl.texi: Document the bug.
77952         Reported by Elias Pipping <pipping@gentoo.org>.
77954 2008-01-14  Eric Blake  <ebb9@byu.net>
77956         Touch up previous patch.
77957         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
77958         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
77960         Convert strcasestr module to use Two-Way algorithm.
77961         * modules/strcasestr-simple: New module, based on the old
77962         strcasestr, but with Two-Way rather than KMP.
77963         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
77964         * lib/string.in.h (rpl_strcasestr): Declare.
77965         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
77966         performance.
77967         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
77968         * modules/string (Makefile.am): Support strcasestr.
77969         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
77970         * modules/strcasestr-tests (Depends-on): Check for alarm.
77971         * tests/test-strcasestr.c: Augment test.
77972         * lib/str-two-way.h: Clean up stray macro.
77973         * NEWS: Document new module.
77974         * MODULES.html.sh (string handling): Likewise.
77975         * doc/functions/strcasestr.texi: New file.
77976         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
77977         here, since it is not a POSIX function.
77979 2008-01-14  Colin Watson  <cjwatson@debian.org>
77980             Bruno Haible  <bruno@clisp.org>
77982         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
77983         works fine; if not, set REPLACE_STRSIGNAL.
77984         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
77985         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
77986         REPLACE_STRSIGNAL.
77987         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
77988         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
77989         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
77991 2008-01-14  Bruno Haible  <bruno@clisp.org>
77993         * modules/strsignal (Include): Change to <string.h>.
77995 2008-01-14  Colin Watson  <cjwatson@debian.org>
77997         * modules/argp (Notice): Add a notice recommending to change
77998         XGETTEXT_OPTIONS.
77999         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
78001 2008-01-13  Colin Watson  <cjwatson@debian.org>
78003         * modules/strsignal-tests: New file.
78004         * tests/test-strsignal.c: New file.
78006         * lib/strsignal.c: New file, from glibc with modifications.
78007         * lib/siglist.h: New file, from glibc with modifications.
78008         * lib/string.in.h (strsignal): New declaration.
78009         * m4/strsignal.m4: New file.
78010         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
78011         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
78012         * modules/strsignal: New file.
78013         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
78014         HAVE_DECL_STRSIGNAL.
78016 2008-01-13  Bruno Haible  <bruno@clisp.org>
78018         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
78019         locale encoding is not ASCII. Needed for OpenBSD 4.0.
78020         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
78021         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
78023 2008-01-13  Bruno Haible  <bruno@clisp.org>
78025         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
78026         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
78027         * lib/argp.h (__attribute__): Likewise.
78028         * lib/c-stack.c (__attribute__): Likewise.
78029         * lib/error.h (__attribute__): Likewise.
78030         * lib/fts.c (__attribute__): Likewise.
78031         * lib/openat.h (__attribute__): Likewise.
78032         * lib/stdio.in.h (__attribute__): Likewise.
78033         * lib/string.in.h (__attribute__): Likewise.
78034         * lib/utimens.c (__attribute__): Likewise.
78035         * lib/vasnprintf.h (__attribute__): Likewise.
78036         * lib/xalloc.h (__attribute__): Likewise.
78037         * lib/xprintf.h (__attribute__): Likewise.
78038         * lib/xstrtol.h (__attribute__): Likewise.
78039         * lib/xvasprintf.h (__attribute__): Likewise.
78041 2008-01-12  Bruno Haible  <bruno@clisp.org>
78043         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
78044         * doc/glibc-headers/a.out.texi: New file.
78045         * doc/glibc-headers/aliases.texi: New file.
78046         * doc/glibc-headers/alloca.texi: New file.
78047         * doc/glibc-headers/ar.texi: New file.
78048         * doc/glibc-headers/argp.texi: New file.
78049         * doc/glibc-headers/argz.texi: New file.
78050         * doc/glibc-headers/byteswap.texi: New file.
78051         * doc/glibc-headers/crypt.texi: New file.
78052         * doc/glibc-headers/endian.texi: New file.
78053         * doc/glibc-headers/envz.texi: New file.
78054         * doc/glibc-headers/err.texi: New file.
78055         * doc/glibc-headers/error.texi: New file.
78056         * doc/glibc-headers/execinfo.texi: New file.
78057         * doc/glibc-headers/fpu_control.texi: New file.
78058         * doc/glibc-headers/fstab.texi: New file.
78059         * doc/glibc-headers/fts.texi: New file.
78060         * doc/glibc-headers/getopt.texi: New file.
78061         * doc/glibc-headers/ieee754.texi: New file.
78062         * doc/glibc-headers/ifaddrs.texi: New file.
78063         * doc/glibc-headers/libintl.texi: New file.
78064         * doc/glibc-headers/mcheck.texi: New file.
78065         * doc/glibc-headers/mntent.texi: New file.
78066         * doc/glibc-headers/obstack.texi: New file.
78067         * doc/glibc-headers/paths.texi: New file.
78068         * doc/glibc-headers/printf.texi: New file.
78069         * doc/glibc-headers/pty.texi: New file.
78070         * doc/glibc-headers/resolv.texi: New file.
78071         * doc/glibc-headers/shadow.texi: New file.
78072         * doc/glibc-headers/sysexits.texi: New file.
78073         * doc/glibc-headers/ttyent.texi: New file.
78075 2008-01-12  Jim Meyering  <meyering@redhat.com>
78077         announce-gen: emit Gnulib's git-based version string.
78078         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
78079         New option --gnulib-version=V, where V is expected to be
78080         the output of running git describe in the gnulib directory.
78081         (get_tool_versions): Request feedback on xdelta.  I suspect it's
78082         not useful, and plan to stop publishing an xdelta file with each
78083         coreutils release.
78085         * build-aux/announce-gen: Also check for lzma-compressed files.
78087 2008-01-11  Bruno Haible  <bruno@clisp.org>
78089         * tests/test-memmem.c (main): Increase maximum allowed time.
78090         * tests/test-strstr.c (main): Likewise.
78092 2008-01-11  Bruno Haible  <bruno@clisp.org>
78094         * doc/functions/memmem.texi: Add more precisions about platforms.
78095         * doc/functions/strstr.texi: Likewise.
78097 2008-01-10  Eric Blake  <ebb9@byu.net>
78099         * m4/strstr.m4: Delete cruft from copy-n-paste.
78100         Reported by Bruno Haible.
78102 2008-01-10  Bruno Haible  <bruno@clisp.org>
78104         Make c-strstr rely on strstr.
78105         * lib/c-strstr.c: Don't include str-kmp.h.
78106         (c_strstr): Define in terms of strstr.
78107         * modules/c-strstr (Files): Remove lib/str-kmp.h.
78108         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
78110 2008-01-10  Bruno Haible  <bruno@clisp.org>
78112         * doc/gnulib.texi (String Functions in C Locale): New section.
78113         * doc/c-ctype.texi: New file.
78114         * doc/c-strcase.texi: New file.
78115         * doc/c-strcaseeq.texi: New file.
78116         * doc/c-strcasestr.texi: New file.
78117         * doc/c-strstr.texi: New file.
78118         * doc/c-strtod.texi: New file.
78119         * doc/c-strtold.texi: New file.
78121 2008-01-10  Eric Blake  <ebb9@byu.net>
78123         * lib/relocatable.h: Fix a comment.
78125 2008-01-10  Eric Blake  <ebb9@byu.net>
78127         Share two-way algorithm.
78128         * lib/str-two-way.h: New file, merged from...
78129         * lib/memmem.c: ...here...
78130         * lib/strstr.c: ...and here.
78131         * modules/memmem (Files): Use it.
78132         * modules/strstr (Files): Likewise.
78134         Avoid quadratic strstr implementations.
78135         * lib/strstr.c: New file.
78136         * m4/strstr.m4: Likewise.
78137         * modules/strstr: Likewise.
78138         * modules/strstr-tests: Likewise.
78139         * tests/test-strstr.c: Likewise.
78140         * lib/string.in.h (rpl_strstr): Declare.
78141         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
78142         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
78143         * modules/string (Makefile.am): Likewise.
78144         * MODULES.html.sh (string handling): Mention new module.
78145         * doc/functions/strstr.texi (strstr): Document the bug.
78147 2008-01-10  Bruno Haible  <bruno@clisp.org>
78149         * lib/relocatable.h (relocate): State whether result is freshly
78150         allocated or not.
78151         * lib/relocatable.c (relocate): Return a freshly allocated string
78152         instead of a pointer to a privately held string.
78153         Reported by Sylvain Beucler <beuc@gnu.org>.
78155 2008-01-10  Colin Watson  <cjwatson@debian.org>
78157         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
78158         s/S_ISNLK/S_ISLNK/.
78160 2008-01-09  Bruno Haible  <bruno@clisp.org>
78162         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
78163         and other files.
78164         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
78165         if it's only a guess.
78166         * modules/memmem: Simplify by depending on memmem-simple.
78168 2008-01-09  Bruno Haible  <bruno@clisp.org>
78170         Work around OpenBSD 4.0 tdelete() bug.
78171         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
78172         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
78173         macros and don't redefine the enum values.
78174         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
78175         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
78176         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
78178 2008-01-09  Bruno Haible  <bruno@clisp.org>
78180         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
78181         (main): Don't perform the tests if setlocale did not install a UTF-8
78182         locale. Needed on OpenBSD 4.0.
78183         * modules/wcwidth-tests (Depends-on): Add localcharset.
78185 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78187         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
78188         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
78189         * NEWS: announce this.
78190         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
78192 2008-01-09  Simon Josefsson  <simon@josefsson.org>
78193         and Eric Blake  <ebb9@byu.net>
78195         Add memmem-simple module.
78196         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
78197         (gl_FUNC_MEMMEM): Separate performance from presence checks.
78198         * modules/memmem-simple: New file.
78199         * modules/memmem (Description): Tweak.
78200         * MODULES.html.sh (string handling): Mention new module.
78201         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
78202         addressed by memmem-simple.
78203         * NEWS: Document the difference.
78205 2008-01-09  Eric Blake  <ebb9@byu.net>
78207         Give gcc some memmem optimization hints.
78208         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
78209         (strcasestr): Declare as pure.
78210         * modules/memmem (Maintainer): Claim my implementation.
78212 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78214         Support AIX 6.1 and higher.
78215         * build-aux/config.libpath: Likewise.
78216         * build-aux/config.rpath: Likewise.
78218 2008-01-08  Jim Meyering  <meyering@redhat.com>
78219             Bruno Haible  <bruno@clisp.org>
78221         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
78222         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
78223         Reported by Peter Fales in
78224         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
78226 2008-01-08  Bruno Haible  <bruno@clisp.org>
78228         * modules/unictype/category-of (Depends-on): Add
78229         unictype/category-none.
78230         * modules/unictype/category-and-tests (Depends-on): Add
78231         unictype/category-{L,N,Lu,Nd}.
78232         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
78233         * modules/unictype/category-or-tests (Depends-on): Add
78234         unictype/category-{L,N}.
78235         * modules/unictype/category-name-tests (Depends-on): Add
78236         unictype/category-{Z,Nl}.
78237         Reported by Simon Josefsson.
78239 2008-01-08  Bruno Haible  <bruno@clisp.org>
78241         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
78242         convention better.
78243         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
78244         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
78245         Reported by Peter Miller <millerp@canb.auug.org.au>.
78247 2008-01-08  Eric Blake  <ebb9@byu.net>
78249         Rewrite memmem to guarantee linear complexity without malloc.
78250         * lib/memmem.c (memmem): Use Two-Way rather than
78251         Knuth-Morris-Pratt, to allow O(1) space usage.
78252         (critical_factorization, two_way_short_needle)
78253         (two_way_long_needle): New functions.
78254         (knuth_morris_pratt): Delete.
78255         * modules/memmem (Depends-on): No longer need malloca or stdbool.
78256         Add stdint.
78257         * tests/test-memmem.c (main): Add tests for periodic needle and
78258         sublinear performance.
78259         * doc/functions/memmem.texi (memmem): Document other deficiencies
78260         in cygwin and older glibc.
78262 2008-01-08  Bruno Haible  <bruno@clisp.org>
78264         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
78265         augmentation.
78267 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
78269         Add a configure time option: --disable-acl.
78270         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
78271         AC_ARG_ENABLE(acl).
78273 2008-01-06  Simon Josefsson  <simon@josefsson.org>
78275         * tests/test-localename.c: Don't include obsolete "setenv.h".
78277         * modules/localename-tests (Depends-on): Need unsetenv.
78279 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78281         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
78283 2008-01-06  Colin Watson  <cjwatson@debian.org>
78285         * users.txt: Add man-db.
78287 2008-01-07  Bruno Haible  <bruno@clisp.org>
78289         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
78290         previous section name.
78292 2008-01-07  Bruno Haible  <bruno@clisp.org>
78294         * lib/progname.c (set_program_name): Don't strip off a leading
78295         "lt-" prefix outside a .libs directory.
78296         Suggested by Paul Eggert.
78298 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
78299             Bruno Haible  <bruno@clisp.org>
78301         Improve memory cleanup in 'relocatable' module.
78302         * lib/relocatable.h (compute_curr_prefix): Change return type to
78303         'char *'.
78304         * lib/relocatable.c (compute_curr_prefix): Change return type to
78305         'char *'. Free curr_installdir after use.
78306         (relocate): Free curr_prefix_better after use.
78307         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
78309 2008-01-01  Bruno Haible  <bruno@clisp.org>
78311         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
78312         failure on older glibc systems.
78313         Reported by Peter Fales <psfales@alcatel-lucent.com>.
78315 2008-01-05  Eric Blake  <ebb9@byu.net>
78317         Avoid quadratic system memmem.
78318         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
78319         Reported by Ralf Wildenhues.
78321         Fix memmem test for mingw.
78322         * modules/memmem-tests (configure.ac): Check for alarm.
78323         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
78324         it.
78325         * doc/functions/memmem.texi: New file.
78326         * doc/gnulib.texi (Function Substitutes): Add memmem.
78327         Reported by Bruno Haible.
78329 2008-01-04  Bruno Haible  <bruno@clisp.org>
78331         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
78332         Require gl_HEADER_STRINGS_H_DEFAULTS, not
78333         gl_HEADER_STRING_H_DEFAULTS.
78335 2008-01-04  Eric Blake  <ebb9@byu.net>
78337         Shorten duration of memmem test.
78338         * tests/test-memmem.c (main): Use alarm to declare failure if test
78339         is taking too long.
78340         Reported by Ralf Wildenhues.
78342 2007-12-21  Simon Josefsson  <simon@josefsson.org>
78344         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
78345         string, needed by strerror.
78347 2008-01-03  Colin Watson  <cjwatson@debian.org>
78348             Bruno Haible  <bruno@clisp.org>
78350         * doc/gnulib-tool.texi (Localization): New section.
78352 2008-01-02  Bruno Haible  <bruno@clisp.org>
78354         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
78355         variables to 'unsigned char *' type.
78356         Reported by Paul Eggert.
78358 2008-01-02  Jim Meyering  <jim@meyering.net>
78360         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
78362 2007-12-31  Jim Meyering  <jim@meyering.net>
78364         Avoid use of private FTS type name.
78365         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
78367 2007-12-30  Karl Berry  <karl@gnu.org>
78369         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
78370         work around defect in Texinfo and/or the standalone Info browser.
78372 2007-12-30  Bruno Haible  <bruno@clisp.org>
78374         Unify 5 copies of the KMP code.
78375         * lib/str-kmp.h: New file.
78376         * lib/c-strcasestr.c: Include str-kmp.h.
78377         (knuth_morris_pratt): Remove function.
78378         (c_strcasestr): Update.
78379         * lib/c-strstr.c: Include str-kmp.h.
78380         (knuth_morris_pratt): Remove function.
78381         (c_strcasestr): Update.
78382         * lib/mbscasestr.c: Include str-kmp.h.
78383         (knuth_morris_pratt_unibyte): Remove function.
78384         * lib/mbsstr.c: Include str-kmp.h.
78385         (knuth_morris_pratt_unibyte): Remove function.
78386         * lib/strcasestr.c: Include str-kmp.h.
78387         (knuth_morris_pratt): Remove function.
78388         (strcasestr): Update.
78389         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
78390         * modules/c-strstr (Files): Likewise.
78391         * modules/mbscasestr (Files): Likewise.
78392         * modules/mbsstr (Files): Likewise.
78393         * modules/strcasestr (Files): Likewise.
78394         Suggested by Paul Eggert.
78396 2007-12-30  Bruno Haible  <bruno@clisp.org>
78398         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
78399         defined.
78401 2007-12-30  Bruno Haible  <bruno@clisp.org>
78403         * lib/xmalloca.h: Include xalloc.h.
78404         (xnmalloca): New macro.
78406 2007-12-30  Bruno Haible  <bruno@clisp.org>
78408         * lib/malloca.h (nmalloca): New macro.
78409         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
78410         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
78411         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
78412         knuth_morris_pratt_multibyte): Likewise.
78413         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
78414         knuth_morris_pratt_multibyte): Likewise.
78415         * lib/memmem.c (knuth_morris_pratt): Likewise.
78416         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
78418 2007-12-25  Bruno Haible  <bruno@clisp.org>
78420         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
78421         * lib/glob.c: Don't include openat.h.
78422         (link_exists2_p): Add back the code that deals with the
78423         !GLOB_ALTDIRFUNC case.
78424         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
78425         let it do the filename concatenation.
78426         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
78427         * modules/glob (Depends-on): Remove openat.
78429 2007-12-31  Bruno Haible  <bruno@clisp.org>
78431         * modules/dirfd (License): Change to LGPLv2+.
78432         Approved by Jim Meyering.
78434 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
78436         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
78437         when multiplying M by sizeof (size_t).
78439 2007-12-10  Martin Lambers  <marlam@marlam.de>
78441         Override getpagesize on mingw.
78442         * lib/getpagesize.c: New file.
78443         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
78444         * modules/getpagesize (Files): Add lib/getpagesize.c.
78445         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
78446         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
78447         REPLACE_GETPAGESIZE.
78448         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
78450 2007-12-25  Bruno Haible  <bruno@clisp.org>
78452         * modules/localcharset (Notice): New field.
78453         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
78454         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
78456 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
78457             Bruno Haible  <bruno@clisp.org>
78459         Avoid using the syntax symbol() in formatted documentation.
78460         * MODULES.html.sh (func_module): When replacing symbol() with a
78461         hyperlink, remove the parentheses. Show an error if some remain.
78462         Recognize and render the '...' syntax.
78463         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
78464         Rework. Add paragraph about GCC's inlining.
78465         * doc/alloca.texi: Likewise.
78466         * doc/error.texi: Remove parentheses from symbol reference.
78467         * doc/gnulib-intro.texi: Likewise.
78468         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
78469         * modules/fnmatch (Description): Reword to say "the ... function".
78470         * modules/full-read (Description): Likewise.
78471         * modules/full-write (Description): Likewise.
78472         * modules/safe-read (Description): Likewise.
78473         * modules/safe-write (Description): Likewise.
78474         * modules/strchrnul (Description): Likewise.
78475         * modules/trim (Description): Likewise.
78476         * modules/error (Description): Remove parentheses from symbol
78477         references.
78478         * modules/verror (Description): Likewise.
78479         Reported by Karl Berry.
78481 2007-12-25  Bruno Haible  <bruno@clisp.org>
78483         Fixup after 2007-10-16 commit.
78484         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
78486 2007-12-24  Bruno Haible  <bruno@clisp.org>
78488         Make --enable-relocatable work with DESTDIR.
78489         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
78490         to compute installdir from destprog.
78491         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
78492         also set the RELOC_DESTDIR variable.
78493         Reported by Левашев Иван <octagram@bluebottle.com>.
78495 2007-12-24  Bruno Haible  <bruno@clisp.org>
78497         Fix link error due to xalloc_die().
78498         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
78499         of xreadlink.
78500         * lib/relocwrapper.c: Update comments.
78501         * build-aux/install-reloc: Remove xreadlink.c from file list.
78502         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
78503         xreadlink.c.
78504         Reported by Левашев Иван <octagram@bluebottle.com>.
78506 2007-12-24  Bruno Haible  <bruno@clisp.org>
78508         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
78509         * lib/setenv.h: Remove file.
78510         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
78511         lib/setenv.h.
78512         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
78513         (Depends-on): Add stdlib.
78514         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
78515         gl_FUNC_UNSETENV.
78516         (Include): Replace setenv.h with <stdlib.h>.
78517         * modules/unsetenv: New file.
78518         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
78519         * lib/unsetenv.c: Include <stdlib.h> first.
78520         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
78521         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
78522         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
78523         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
78524         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
78525         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
78526         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
78527         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
78528         * doc/functions/unsetenv.texi: Update.
78529         * modules/xsetenv (Depends-on): Add unsetenv.
78530         * modules/getdate (Depends-on): Likewise.
78531         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
78532         * lib/xsetenv.c: Don't include setenv.h.
78533         * lib/getdate.y: Likewise.
78534         * lib/relocwrapper.c: Likewise.
78535         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
78536         (Depends-on): Add stdlib.
78537         * NEWS: Mention the changes.
78538         Reported by Левашев Иван <octagram@bluebottle.com>.
78540 2007-12-23  Bruno Haible  <bruno@clisp.org>
78542         * lib/memmem.c (memmem): Use lowercase variable names. Tab
78543         indentation.
78545 2007-12-23  Bruno Haible  <bruno@clisp.org>
78547         * lib/c-strcasestr.c: Add more comments.
78548         * lib/c-strstr.c: Likewise.
78549         * lib/mbscasestr.c: Likewise.
78550         * lib/mbsstr.c: Likewise.
78551         * lib/strcasestr.c: Likewise.
78552         * lib/memmem.c: Likewise.
78554 2007-12-23  Bruno Haible  <bruno@clisp.org>
78556         * tests/test-memmem.c: Include <string.h> first.
78558 2007-12-22  Bruno Haible  <bruno@clisp.org>
78560         * gnulib-tool (func_create_testdir): Change $auxdir while generating
78561         the contents of $testsbase.
78562         Reported by Ralf Wildenhues.
78564 2007-12-22  Bruno Haible  <bruno@clisp.org>
78566         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
78567         two variables local_ldadd_before, local_ldadd_last.
78569 2007-12-20  Eric Blake  <ebb9@byu.net>
78571         Work around circular library issue when cross-compiling.
78572         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
78573         that progname.o does not need to pull in rpl_memcmp.
78575 2007-12-19  Eric Blake  <ebb9@byu.net>
78577         Fix memmem to avoid O(n^2) worst-case complexity.
78578         * lib/memmem.c (knuth_morris_pratt): New function.
78579         (memmem): Use it if first few naive iterations fail.
78580         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
78581         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
78582         * modules/memchr (License): Likewise.
78583         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
78584         malloca.
78585         * tests/test-memmem.c: Rewrite, borrowing ideas from
78586         test-mbsstr1.c; the old version wouldn't even compile!
78587         * modules/memmem-tests: New file.
78588         * lib/string.in.h (rpl_memmem): Add declaration.
78589         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
78590         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
78591         REPLACE_MEMMEM.
78593 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
78595         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
78596         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
78597         before any system include files, and undef after them all.  This
78598         should fix a problem on VMS reported by John E. Malmberg in
78599         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
78601 2007-12-17  Eric Blake  <ebb9@byu.net>
78603         Revert addition of verify, for BSD/OS.
78604         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
78605         can't handle large files, for the sake of obsolete platforms.
78606         * modules/fseeko (Depends-on): Remove verify.
78607         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
78608         * doc/functions/ftello.texi (ftello): Likewise.
78609         * doc/functions/fgetpos.texi (fgetpos): Likewise.
78610         Reported by Larry Jones.
78612 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
78614         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
78615         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
78617 2007-12-17  Jim Meyering  <meyering@redhat.com>
78619         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
78620         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
78621         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
78622         * modules/getcwd (Depends-on): Add openat.
78623         Reported by Petr Salinger.
78625 2007-12-17  Bruno Haible  <bruno@clisp.org>
78627         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
78628         avoid a segmentation fault of the configure test on x86_64 systems.
78630 2007-12-15  Jim Meyering  <meyering@redhat.com>
78632         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
78634 2007-12-13  Eric Blake  <ebb9@byu.net>
78636         Another fseek test.
78637         * tests/test-fseek.c (main): Also test ungetc handling.
78638         * tests/test-fseeko.c (main): Likewise.
78639         * modules/fseeko (Depends-on): Add verify.
78640         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
78641         large.
78642         Reported by Larry Jones.
78644         Fix fseeko on mingw.
78645         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
78646         seek.
78648         Beef up fseek tests.
78649         * tests/test-fseek.c (main): Also test eof handling.
78650         * tests/test-fseeko.c (main): Likewise.
78651         Reported by Larry Jones.
78653 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
78655         Fix fseeko on BSD-based platforms.
78656         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
78657         successful seek.
78659 2007-12-12  Eric Blake  <ebb9@byu.net>
78661         Allow circular dependency of separate libtests.a
78662         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
78663         when use_libtests.
78665 2007-12-11  Eric Blake  <ebb9@byu.net>
78667         Fix bug with -0.0L in previous patch.
78668         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
78669         * tests/test-isnan.c (main): Also test on zeroes.
78670         * tests/test-isnanf.c (main): Likewise.
78671         * tests/test-isnanl.h (main): Likewise.
78673         Detect pseudo-denormals on x86 even when cross-compiling.
78674         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
78675         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
78676         invalid bit patterns that happen to satisfy ==.
78678         Avoid link failures with separate libtests.a.
78679         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
78680         last, to satisfy circular dependencies.
78682 2007-12-11  Eric Blake  <ebb9@byu.net>
78683         and Bruno Haible  <bruno@clisp.org>
78685         Fix OpenBSD 4.0 <float.h> handling of long double.
78686         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
78687         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
78688         * doc/headers/float.texi (float.h): Document OpenBSD bug.
78690 2007-12-11  Jim Meyering  <meyering@redhat.com>
78692         * users.txt: Add libvirt.
78694         Support versions of autoconf prior to 2.59c.
78695         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
78696         if it is not already defined.
78698 2007-12-09  Bruno Haible  <bruno@clisp.org>
78700         Let 'gnulib-tool --import' collect sources needed for the tests in
78701         tests/ rather than in lib/.
78702         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
78703         argument. If true, add rules to generate libtests.a, and put libtests.a
78704         into $(LDADD). Consider source files in subdirectories and set
78705         uses_subdirs.
78706         (func_emit_initmacro_start, func_emit_initmacro_end,
78707         func_emit_initmacro_done): Pass all arguments explicitly.
78708         (func_import): Determine two module lists main_modules,
78709         testsrelated_modules. Determine use_libtests. Determine two variables
78710         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
78711         instead of just sed_transform_lib_file. Determine two variables
78712         main_files and testsrelated_files. Compute 'files' as the union of
78713         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
78714         func_add_or_update. In the generated gnulib-comp.m4, collect the
78715         object files for tests/ in different variables than those for lib/.
78716         Substitute LIBTESTS_LIBDEPS.
78717         (func_create_testdir): Combine the uses_subdirs results from
78718         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
78720 2007-12-09  Bruno Haible  <bruno@clisp.org>
78722         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
78723         the build-aux directory.
78725 2007-12-09  Bruno Haible  <bruno@clisp.org>
78727         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
78728         introduced on 2006-09-09.
78730 2007-12-07  Jim Meyering  <meyering@redhat.com>
78732         Let these macros work also with autoconf-2.59.
78733         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
78734         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
78735         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
78737 2007-12-06  Jim Meyering  <meyering@redhat.com>
78739         Avoid a configure-time syntax error in gl_FUNC_ACL.
78740         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
78741         function in each branch, before testing the cache variable.
78743 2007-12-04  Eric Blake  <ebb9@byu.net>
78745         Make scripts executable.
78746         * build-aux/config.guess: Add execute permissions.
78747         * build-aux/config.sub: Likewise.
78748         * build-aux/gendocs.sh: Likewise.
78750         Fix frexp on mingw.
78751         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
78752         cross-compiling.
78753         * doc/functions/frexp.texi (frexp): Document the bug.
78755         Make cygwin fseeko check more reliable.
78756         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
78757         version numbers, rather than unrelated feature check.
78758         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
78759         * doc/functions/ftello.texi (ftello): Likewise.
78760         Reported by Bruno Haible.
78762         * m4/strerror.m4: Bump version number.
78764 2007-12-03  Bruno Haible  <bruno@clisp.org>
78766         * doc/functions/mprotect.texi: Mention the mingw problem.
78768 2007-12-03  Eric Blake  <ebb9@byu.net>
78770         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
78771         REPLACE_STRERROR is initialized before this macro.
78773 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
78775         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
78776         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
78777         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
78778         put -lsec in even for programs other than 'ls'.  This fixes a problem
78779         for gettext reported by Bruno Haible in
78780         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
78781         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
78782         Add support for Solaris 10.  This isn't efficient, but should get the
78783         job done for now.
78785 2007-12-03  James Youngman  <jay@gnu.org>
78787         * doc/regexprops-generic.texi: change "an close-group" to "a
78788         close-group" and "illegal" to "not allowed".
78790 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78792         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
78793         pr_byname.h. Needed for the rare case when the maintainer has done
78794         "make maintainer-clean" in the source directory and then attempts a
78795         build outside the source directory.
78796         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
78797         scripts_byname.h.
78799 2007-12-02  Martin Lambers  <marlam@marlam.de>
78800             Bruno Haible  <bruno@clisp.org>
78802         * lib/getpagesize.h: Remove file.
78803         * lib/unistd.in.h: Include declaration of getpagesize here.
78804         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
78805         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
78806         HAVE_SYS_PARAM_H.
78807         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
78808         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
78809         * modules/getpagesize (Files): Remove lib/getpagesize.h.
78810         (Depends-on): Add unistd.
78811         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
78812         (Include): Use <unistd.h> instead of getpagesize.h.
78813         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
78814         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
78815         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
78816         gl_GETPAGESIZE invocation, already handled by module dependency.
78817         * lib/pagealign_alloc.c: Don't include getpagesize.h.
78819 2007-12-02  Bruno Haible  <bruno@clisp.org>
78821         * modules/strings-tests: New file.
78822         * tests/test-strings.c: New file.
78824         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
78825         * lib/strings.in.h: New file.
78826         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
78827         * m4/strings_h.m4: New file.
78828         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
78829         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
78830         * modules/strings: New file.
78831         * modules/string (Makefile.am): Update.
78832         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
78833         Reported by Karl Berry.
78835 2007-12-01  Eric Blake  <ebb9@byu.net>
78837         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
78838         accommodate fix in cygwin 1.5.25.
78840 2007-12-01  Jim Meyering  <meyering@redhat.com>
78842         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
78843         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
78844         that would inhibit utf8-optimization of a regexp containing line-
78845         or buffer-anchors, e.g., `^', `$'.
78847 2007-11-30  Bruno Haible  <bruno@clisp.org>
78849         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
78850         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
78851         glthread_recursive_lock_init.
78852         * lib/lock.c (glthread_recursive_lock_init)
78853         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
78854         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
78856 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
78858         New function qset_acl, like set_acl but with syscall semantics.
78859         * lib/acl.h (qset_acl): New decl.
78860         * lib/acl.c (qset_acl): New function.
78861         (set_acl): Use new function.  Use more-consistent diagnostics.
78863 2007-11-28  Jim Meyering  <meyering@redhat.com>
78865         * modules/physmem (License): Change from GPL to LGPLv2+.
78867 2007-11-26  Bruno Haible  <bruno@clisp.org>
78869         * lib/vasnprintf.c (decode_long_double): Don't abort if the
78870         'long double' type has excess precision.
78871         Reported by Jim Meyering in
78872         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
78874 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78876         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
78877         Sync from <http://gnu.org/licenses>.
78878         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
78879         with license text from same location.
78880         * doc/maintain.texi, doc/standards.texi:  Sync from
78881         <http://savannah.gnu.org/projects/gnustandards>.
78883 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
78884         and Jim Meyering  <meyering@redhat.com>
78886         Adjust getdate' grammar to accept a slightly more regular language.
78887         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
78888         Before, the former was rejected.
78889         * lib/getdate.y (digits_to_date_time): New function, factored
78890         out of ...
78891         (number): ...here.  Just call digits_to_date_time.
78892         (hybrid): New non-terminal to handle an <unsigned number,
78893         signed relative offset> sequence consistently.
78895 2007-11-18  Jim Meyering  <meyering@redhat.com>
78897         Pull my changes from coreutils:
78898         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
78899         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
78900         use of $gnulib_tool_option_extras, so that it's separated from the
78901         preceding argument.
78903         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
78904         * build-aux/bootstrap (cp_mark_as_generated): Create any required
78905         parent destination directories before copying a file into place.
78907 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
78909         bootstrap: work also with 4-argument variant of AC_INIT
78910         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
78912 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78914         Port test-getaddrinfo to Solaris.
78915         Problem reported by Bruno Haible in
78916         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
78917         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
78918         explanation of setting 'hints'.
78919         Don't reject an implementation merely because it returns EAI_SERVICE.
78920         (EAI_SERVICE): Define to 0 if not defined.
78922 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
78924         The license of gnu-make and posix-shell is now "GPLed build tool".
78925         * modules/gnu-make (License): Likewise.
78926         * modules/posix-shell (License): Likewise.
78928         New module posix-shell, for determining a POSIX shell
78929         or perhaps something that is close enough to a POSIX shell.
78930         * m4/posix-shell.m4: New file.
78931         * modules/posix-shell: New file.
78933         * MODULES.html.sh: Mention new module.
78935         New module gnu-make, for determining whether we're using GNU Make.
78936         * m4/gnu-make.m4: New file.
78937         * modules/gnu-make: New file.
78938         * MODULES.html.sh: Mention new module.
78940 2007-11-14  Jim Meyering  <meyering@redhat.com>
78942         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
78943         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
78944         use this macro to create a function _definition_.
78945         Remove useless "#undef ARGMATCH_DIE".
78947 2007-11-14  Bruno Haible  <bruno@clisp.org>
78949         * lib/config.charset: Update for OpenBSD 4.1.
78950         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
78952 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
78954         Document 64-bit #if problems in stdint.texi.
78955         * doc/headers/stdint.texi (stdint.h): Mention problems with
78956         64-bit-#if, and how to work around them.
78958         Don't insist on 'long long int' support in the preprocessor.  It
78959         breaks too many things.  For example, PRIdMAX still uses a 'long
78960         long int' format with the latest Sun compiler, even though
78961         HAVE_LONG_LONG_INT isn't defined due to that compiler's
78962         preprocessor problem.  This causes the latest coreutils to dump
78963         core on Solaris 10 sparc with the Sun C compiler.
78964         Instead, fix the 2007-10-16 problem in a different way, by evaluating
78965         the troublesome expressions at configure-time, not at #if-time.
78966         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
78967         preprocessor.
78968         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
78969         compile-time C checks, done at 'configure'-time.
78970         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
78971         * modules/inttypes (Makefile): Substitute the new symbols that
78972         gl_INTTYPES_H now generates.
78973         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
78975 2007-11-12  Bruno Haible  <bruno@clisp.org>
78977         Tests for Unicode character classification functions.
78979         * modules/unictype/bidicategory-byname-tests: New file.
78980         * modules/unictype/bidicategory-name-tests: New file.
78981         * modules/unictype/bidicategory-of-tests: New file.
78982         * modules/unictype/bidicategory-test-tests: New file.
78983         * modules/unictype/block-list-tests: New file.
78984         * modules/unictype/block-of-tests: New file.
78985         * modules/unictype/block-test-tests: New file.
78986         * modules/unictype/category-C-tests: New file.
78987         * modules/unictype/category-Cc-tests: New file.
78988         * modules/unictype/category-Cf-tests: New file.
78989         * modules/unictype/category-Cn-tests: New file.
78990         * modules/unictype/category-Co-tests: New file.
78991         * modules/unictype/category-Cs-tests: New file.
78992         * modules/unictype/category-L-tests: New file.
78993         * modules/unictype/category-Ll-tests: New file.
78994         * modules/unictype/category-Lm-tests: New file.
78995         * modules/unictype/category-Lo-tests: New file.
78996         * modules/unictype/category-Lt-tests: New file.
78997         * modules/unictype/category-Lu-tests: New file.
78998         * modules/unictype/category-M-tests: New file.
78999         * modules/unictype/category-Mc-tests: New file.
79000         * modules/unictype/category-Me-tests: New file.
79001         * modules/unictype/category-Mn-tests: New file.
79002         * modules/unictype/category-N-tests: New file.
79003         * modules/unictype/category-Nd-tests: New file.
79004         * modules/unictype/category-Nl-tests: New file.
79005         * modules/unictype/category-No-tests: New file.
79006         * modules/unictype/category-P-tests: New file.
79007         * modules/unictype/category-Pc-tests: New file.
79008         * modules/unictype/category-Pd-tests: New file.
79009         * modules/unictype/category-Pe-tests: New file.
79010         * modules/unictype/category-Pf-tests: New file.
79011         * modules/unictype/category-Pi-tests: New file.
79012         * modules/unictype/category-Po-tests: New file.
79013         * modules/unictype/category-Ps-tests: New file.
79014         * modules/unictype/category-S-tests: New file.
79015         * modules/unictype/category-Sc-tests: New file.
79016         * modules/unictype/category-Sk-tests: New file.
79017         * modules/unictype/category-Sm-tests: New file.
79018         * modules/unictype/category-So-tests: New file.
79019         * modules/unictype/category-Z-tests: New file.
79020         * modules/unictype/category-Zl-tests: New file.
79021         * modules/unictype/category-Zp-tests: New file.
79022         * modules/unictype/category-Zs-tests: New file.
79023         * modules/unictype/category-and-not-tests: New file.
79024         * modules/unictype/category-and-tests: New file.
79025         * modules/unictype/category-byname-tests: New file.
79026         * modules/unictype/category-name-tests: New file.
79027         * modules/unictype/category-none-tests: New file.
79028         * modules/unictype/category-of-tests: New file.
79029         * modules/unictype/category-or-tests: New file.
79030         * modules/unictype/category-test-withtable-tests: New file.
79031         * modules/unictype/combining-class-tests: New file.
79032         * modules/unictype/ctype-alnum-tests: New file.
79033         * modules/unictype/ctype-alpha-tests: New file.
79034         * modules/unictype/ctype-blank-tests: New file.
79035         * modules/unictype/ctype-cntrl-tests: New file.
79036         * modules/unictype/ctype-digit-tests: New file.
79037         * modules/unictype/ctype-graph-tests: New file.
79038         * modules/unictype/ctype-lower-tests: New file.
79039         * modules/unictype/ctype-print-tests: New file.
79040         * modules/unictype/ctype-punct-tests: New file.
79041         * modules/unictype/ctype-space-tests: New file.
79042         * modules/unictype/ctype-upper-tests: New file.
79043         * modules/unictype/ctype-xdigit-tests: New file.
79044         * modules/unictype/decimal-digit-tests: New file.
79045         * modules/unictype/digit-tests: New file.
79046         * modules/unictype/mirror-tests: New file.
79047         * modules/unictype/numeric-tests: New file.
79048         * modules/unictype/property-alphabetic-tests: New file.
79049         * modules/unictype/property-ascii-hex-digit-tests: New file.
79050         * modules/unictype/property-bidi-arabic-digit-tests: New file.
79051         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
79052         * modules/unictype/property-bidi-block-separator-tests: New file.
79053         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
79054         * modules/unictype/property-bidi-common-separator-tests: New file.
79055         * modules/unictype/property-bidi-control-tests: New file.
79056         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
79057         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
79058         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
79059         * modules/unictype/property-bidi-european-digit-tests: New file.
79060         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
79061         * modules/unictype/property-bidi-left-to-right-tests: New file.
79062         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
79063         * modules/unictype/property-bidi-other-neutral-tests: New file.
79064         * modules/unictype/property-bidi-pdf-tests: New file.
79065         * modules/unictype/property-bidi-segment-separator-tests: New file.
79066         * modules/unictype/property-bidi-whitespace-tests: New file.
79067         * modules/unictype/property-byname-tests: New file.
79068         * modules/unictype/property-combining-tests: New file.
79069         * modules/unictype/property-composite-tests: New file.
79070         * modules/unictype/property-currency-symbol-tests: New file.
79071         * modules/unictype/property-dash-tests: New file.
79072         * modules/unictype/property-decimal-digit-tests: New file.
79073         * modules/unictype/property-default-ignorable-code-point-tests: New file.
79074         * modules/unictype/property-deprecated-tests: New file.
79075         * modules/unictype/property-diacritic-tests: New file.
79076         * modules/unictype/property-extender-tests: New file.
79077         * modules/unictype/property-format-control-tests: New file.
79078         * modules/unictype/property-grapheme-base-tests: New file.
79079         * modules/unictype/property-grapheme-extend-tests: New file.
79080         * modules/unictype/property-grapheme-link-tests: New file.
79081         * modules/unictype/property-hex-digit-tests: New file.
79082         * modules/unictype/property-hyphen-tests: New file.
79083         * modules/unictype/property-id-continue-tests: New file.
79084         * modules/unictype/property-id-start-tests: New file.
79085         * modules/unictype/property-ideographic-tests: New file.
79086         * modules/unictype/property-ids-binary-operator-tests: New file.
79087         * modules/unictype/property-ids-trinary-operator-tests: New file.
79088         * modules/unictype/property-ignorable-control-tests: New file.
79089         * modules/unictype/property-iso-control-tests: New file.
79090         * modules/unictype/property-join-control-tests: New file.
79091         * modules/unictype/property-left-of-pair-tests: New file.
79092         * modules/unictype/property-line-separator-tests: New file.
79093         * modules/unictype/property-logical-order-exception-tests: New file.
79094         * modules/unictype/property-lowercase-tests: New file.
79095         * modules/unictype/property-math-tests: New file.
79096         * modules/unictype/property-non-break-tests: New file.
79097         * modules/unictype/property-not-a-character-tests: New file.
79098         * modules/unictype/property-numeric-tests: New file.
79099         * modules/unictype/property-other-alphabetic-tests: New file.
79100         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
79101         * modules/unictype/property-other-grapheme-extend-tests: New file.
79102         * modules/unictype/property-other-id-continue-tests: New file.
79103         * modules/unictype/property-other-id-start-tests: New file.
79104         * modules/unictype/property-other-lowercase-tests: New file.
79105         * modules/unictype/property-other-math-tests: New file.
79106         * modules/unictype/property-other-uppercase-tests: New file.
79107         * modules/unictype/property-paired-punctuation-tests: New file.
79108         * modules/unictype/property-paragraph-separator-tests: New file.
79109         * modules/unictype/property-pattern-syntax-tests: New file.
79110         * modules/unictype/property-pattern-white-space-tests: New file.
79111         * modules/unictype/property-private-use-tests: New file.
79112         * modules/unictype/property-punctuation-tests: New file.
79113         * modules/unictype/property-quotation-mark-tests: New file.
79114         * modules/unictype/property-radical-tests: New file.
79115         * modules/unictype/property-sentence-terminal-tests: New file.
79116         * modules/unictype/property-soft-dotted-tests: New file.
79117         * modules/unictype/property-space-tests: New file.
79118         * modules/unictype/property-terminal-punctuation-tests: New file.
79119         * modules/unictype/property-test-tests: New file.
79120         * modules/unictype/property-titlecase-tests: New file.
79121         * modules/unictype/property-unassigned-code-value-tests: New file.
79122         * modules/unictype/property-unified-ideograph-tests: New file.
79123         * modules/unictype/property-uppercase-tests: New file.
79124         * modules/unictype/property-variation-selector-tests: New file.
79125         * modules/unictype/property-white-space-tests: New file.
79126         * modules/unictype/property-xid-continue-tests: New file.
79127         * modules/unictype/property-xid-start-tests: New file.
79128         * modules/unictype/property-zero-width-tests: New file.
79129         * modules/unictype/scripts-tests: New file.
79130         * modules/unictype/syntax-c-ident-tests: New file.
79131         * modules/unictype/syntax-c-whitespace-tests: New file.
79132         * modules/unictype/syntax-java-ident-tests: New file.
79133         * modules/unictype/syntax-java-whitespace-tests: New file.
79134         * tests/unictype/test-bidi_byname.c: New file.
79135         * tests/unictype/test-bidi_name.c: New file.
79136         * tests/unictype/test-bidi_of.c: New file.
79137         * tests/unictype/test-bidi_test.c: New file.
79138         * tests/unictype/test-block_list.c: New file.
79139         * tests/unictype/test-block_of.c: New file.
79140         * tests/unictype/test-block_test.c: New file.
79141         * tests/unictype/test-categ_and.c: New file.
79142         * tests/unictype/test-categ_and_not.c: New file.
79143         * tests/unictype/test-categ_byname.c: New file.
79144         * tests/unictype/test-categ_name.c: New file.
79145         * tests/unictype/test-categ_none.c: New file.
79146         * tests/unictype/test-categ_of.c: New file.
79147         * tests/unictype/test-categ_or.c: New file.
79148         * tests/unictype/test-categ_test_withtable.c: New file.
79149         * tests/unictype/test-combining.c: New file.
79150         * tests/unictype/test-decdigit.c: New file.
79151         * tests/unictype/test-digit.c: New file.
79152         * tests/unictype/test-mirror.c: New file.
79153         * tests/unictype/test-numeric.c: New file.
79154         * tests/unictype/test-pr_byname.c: New file.
79155         * tests/unictype/test-pr_test.c: New file.
79156         * tests/unictype/test-predicate-part1.h: New file.
79157         * tests/unictype/test-predicate-part2.h: New file.
79158         * tests/unictype/test-scripts.c: New file.
79159         * tests/unictype/test-sy_c_ident.c: New file.
79160         * tests/unictype/test-sy_java_ident.c: New file.
79162         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
79163         for Unicode 5.0.0.
79164         * tests/unictype/test-categ_Cc.c: Likewise.
79165         * tests/unictype/test-categ_Cf.c: Likewise.
79166         * tests/unictype/test-categ_Cn.c: Likewise.
79167         * tests/unictype/test-categ_Co.c: Likewise.
79168         * tests/unictype/test-categ_Cs.c: Likewise.
79169         * tests/unictype/test-categ_L.c: Likewise.
79170         * tests/unictype/test-categ_Ll.c: Likewise.
79171         * tests/unictype/test-categ_Lm.c: Likewise.
79172         * tests/unictype/test-categ_Lo.c: Likewise.
79173         * tests/unictype/test-categ_Lt.c: Likewise.
79174         * tests/unictype/test-categ_Lu.c: Likewise.
79175         * tests/unictype/test-categ_M.c: Likewise.
79176         * tests/unictype/test-categ_Mc.c: Likewise.
79177         * tests/unictype/test-categ_Me.c: Likewise.
79178         * tests/unictype/test-categ_Mn.c: Likewise.
79179         * tests/unictype/test-categ_N.c: Likewise.
79180         * tests/unictype/test-categ_Nd.c: Likewise.
79181         * tests/unictype/test-categ_Nl.c: Likewise.
79182         * tests/unictype/test-categ_No.c: Likewise.
79183         * tests/unictype/test-categ_P.c: Likewise.
79184         * tests/unictype/test-categ_Pc.c: Likewise.
79185         * tests/unictype/test-categ_Pd.c: Likewise.
79186         * tests/unictype/test-categ_Pe.c: Likewise.
79187         * tests/unictype/test-categ_Pf.c: Likewise.
79188         * tests/unictype/test-categ_Pi.c: Likewise.
79189         * tests/unictype/test-categ_Po.c: Likewise.
79190         * tests/unictype/test-categ_Ps.c: Likewise.
79191         * tests/unictype/test-categ_S.c: Likewise.
79192         * tests/unictype/test-categ_Sc.c: Likewise.
79193         * tests/unictype/test-categ_Sk.c: Likewise.
79194         * tests/unictype/test-categ_Sm.c: Likewise.
79195         * tests/unictype/test-categ_So.c: Likewise.
79196         * tests/unictype/test-categ_Z.c: Likewise.
79197         * tests/unictype/test-categ_Zl.c: Likewise.
79198         * tests/unictype/test-categ_Zp.c: Likewise.
79199         * tests/unictype/test-categ_Zs.c: Likewise.
79200         * tests/unictype/test-ctype_alnum.c: Likewise.
79201         * tests/unictype/test-ctype_alpha.c: Likewise.
79202         * tests/unictype/test-ctype_blank.c: Likewise.
79203         * tests/unictype/test-ctype_cntrl.c: Likewise.
79204         * tests/unictype/test-ctype_digit.c: Likewise.
79205         * tests/unictype/test-ctype_graph.c: Likewise.
79206         * tests/unictype/test-ctype_lower.c: Likewise.
79207         * tests/unictype/test-ctype_print.c: Likewise.
79208         * tests/unictype/test-ctype_punct.c: Likewise.
79209         * tests/unictype/test-ctype_space.c: Likewise.
79210         * tests/unictype/test-ctype_upper.c: Likewise.
79211         * tests/unictype/test-ctype_xdigit.c: Likewise.
79212         * tests/unictype/test-decdigit.h: Likewise.
79213         * tests/unictype/test-digit.h: Likewise.
79214         * tests/unictype/test-numeric.h: Likewise.
79215         * tests/unictype/test-pr_alphabetic.c: Likewise.
79216         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
79217         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
79218         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
79219         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
79220         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
79221         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
79222         * tests/unictype/test-pr_bidi_control.c: Likewise.
79223         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
79224         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
79225         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
79226         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
79227         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
79228         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
79229         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
79230         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
79231         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
79232         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
79233         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
79234         * tests/unictype/test-pr_combining.c: Likewise.
79235         * tests/unictype/test-pr_composite.c: Likewise.
79236         * tests/unictype/test-pr_currency_symbol.c: Likewise.
79237         * tests/unictype/test-pr_dash.c: Likewise.
79238         * tests/unictype/test-pr_decimal_digit.c: Likewise.
79239         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
79240         * tests/unictype/test-pr_deprecated.c: Likewise.
79241         * tests/unictype/test-pr_diacritic.c: Likewise.
79242         * tests/unictype/test-pr_extender.c: Likewise.
79243         * tests/unictype/test-pr_format_control.c: Likewise.
79244         * tests/unictype/test-pr_grapheme_base.c: Likewise.
79245         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
79246         * tests/unictype/test-pr_grapheme_link.c: Likewise.
79247         * tests/unictype/test-pr_hex_digit.c: Likewise.
79248         * tests/unictype/test-pr_hyphen.c: Likewise.
79249         * tests/unictype/test-pr_id_continue.c: Likewise.
79250         * tests/unictype/test-pr_id_start.c: Likewise.
79251         * tests/unictype/test-pr_ideographic.c: Likewise.
79252         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
79253         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
79254         * tests/unictype/test-pr_ignorable_control.c: Likewise.
79255         * tests/unictype/test-pr_iso_control.c: Likewise.
79256         * tests/unictype/test-pr_join_control.c: Likewise.
79257         * tests/unictype/test-pr_left_of_pair.c: Likewise.
79258         * tests/unictype/test-pr_line_separator.c: Likewise.
79259         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
79260         * tests/unictype/test-pr_lowercase.c: Likewise.
79261         * tests/unictype/test-pr_math.c: Likewise.
79262         * tests/unictype/test-pr_non_break.c: Likewise.
79263         * tests/unictype/test-pr_not_a_character.c: Likewise.
79264         * tests/unictype/test-pr_numeric.c: Likewise.
79265         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
79266         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
79267         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
79268         * tests/unictype/test-pr_other_id_continue.c: Likewise.
79269         * tests/unictype/test-pr_other_id_start.c: Likewise.
79270         * tests/unictype/test-pr_other_lowercase.c: Likewise.
79271         * tests/unictype/test-pr_other_math.c: Likewise.
79272         * tests/unictype/test-pr_other_uppercase.c: Likewise.
79273         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
79274         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
79275         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
79276         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
79277         * tests/unictype/test-pr_private_use.c: Likewise.
79278         * tests/unictype/test-pr_punctuation.c: Likewise.
79279         * tests/unictype/test-pr_quotation_mark.c: Likewise.
79280         * tests/unictype/test-pr_radical.c: Likewise.
79281         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
79282         * tests/unictype/test-pr_soft_dotted.c: Likewise.
79283         * tests/unictype/test-pr_space.c: Likewise.
79284         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
79285         * tests/unictype/test-pr_titlecase.c: Likewise.
79286         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
79287         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
79288         * tests/unictype/test-pr_uppercase.c: Likewise.
79289         * tests/unictype/test-pr_variation_selector.c: Likewise.
79290         * tests/unictype/test-pr_white_space.c: Likewise.
79291         * tests/unictype/test-pr_xid_continue.c: Likewise.
79292         * tests/unictype/test-pr_xid_start.c: Likewise.
79293         * tests/unictype/test-pr_zero_width.c: Likewise.
79294         * tests/unictype/test-sy_c_whitespace.c: Likewise.
79295         * tests/unictype/test-sy_java_whitespace.c: Likewise.
79297 2007-11-12  Bruno Haible  <bruno@clisp.org>
79299         Unicode character classification functions.
79300         * lib/unictype.h: New file.
79301         * modules/unictype/base: New file.
79302         * modules/unictype/category-L: New file.
79303         * modules/unictype/category-Lu: New file.
79304         * modules/unictype/category-Ll: New file.
79305         * modules/unictype/category-Lt: New file.
79306         * modules/unictype/category-Lm: New file.
79307         * modules/unictype/category-Lo: New file.
79308         * modules/unictype/category-M: New file.
79309         * modules/unictype/category-Mn: New file.
79310         * modules/unictype/category-Mc: New file.
79311         * modules/unictype/category-Me: New file.
79312         * modules/unictype/category-N: New file.
79313         * modules/unictype/category-Nd: New file.
79314         * modules/unictype/category-Nl: New file.
79315         * modules/unictype/category-No: New file.
79316         * modules/unictype/category-P: New file.
79317         * modules/unictype/category-Pc: New file.
79318         * modules/unictype/category-Pd: New file.
79319         * modules/unictype/category-Ps: New file.
79320         * modules/unictype/category-Pe: New file.
79321         * modules/unictype/category-Pi: New file.
79322         * modules/unictype/category-Pf: New file.
79323         * modules/unictype/category-Po: New file.
79324         * modules/unictype/category-S: New file.
79325         * modules/unictype/category-Sm: New file.
79326         * modules/unictype/category-Sc: New file.
79327         * modules/unictype/category-Sk: New file.
79328         * modules/unictype/category-So: New file.
79329         * modules/unictype/category-Z: New file.
79330         * modules/unictype/category-Zs: New file.
79331         * modules/unictype/category-Zl: New file.
79332         * modules/unictype/category-Zp: New file.
79333         * modules/unictype/category-C: New file.
79334         * modules/unictype/category-Cc: New file.
79335         * modules/unictype/category-Cf: New file.
79336         * modules/unictype/category-Cs: New file.
79337         * modules/unictype/category-Co: New file.
79338         * modules/unictype/category-Cn: New file.
79339         * modules/unictype/category-or: New file.
79340         * modules/unictype/category-of: New file.
79341         * modules/unictype/category-test: New file.
79342         * modules/unictype/category-test-withtable: New file.
79343         * modules/unictype/category-byname: New file.
79344         * modules/unictype/category-none: New file.
79345         * modules/unictype/category-and: New file.
79346         * modules/unictype/category-and-not: New file.
79347         * modules/unictype/category-name: New file.
79348         * modules/unictype/combining-class: New file.
79349         * modules/unictype/category-all: New file.
79350         * modules/unictype/bidicategory-all: New file.
79351         * modules/unictype/bidicategory-byname: New file.
79352         * modules/unictype/bidicategory-name: New file.
79353         * modules/unictype/bidicategory-of: New file.
79354         * modules/unictype/bidicategory-test: New file.
79355         * modules/unictype/decimal-digit: New file.
79356         * modules/unictype/digit: New file.
79357         * modules/unictype/numeric: New file.
79358         * modules/unictype/mirror: New file.
79359         * modules/unictype/property-white-space: New file.
79360         * modules/unictype/property-alphabetic: New file.
79361         * modules/unictype/property-other-alphabetic: New file.
79362         * modules/unictype/property-not-a-character: New file.
79363         * modules/unictype/property-default-ignorable-code-point: New file.
79364         * modules/unictype/property-other-default-ignorable-code-point: New
79365         file.
79366         * modules/unictype/property-deprecated: New file.
79367         * modules/unictype/property-logical-order-exception: New file.
79368         * modules/unictype/property-variation-selector: New file.
79369         * modules/unictype/property-private-use: New file.
79370         * modules/unictype/property-unassigned-code-value: New file.
79371         * modules/unictype/property-uppercase: New file.
79372         * modules/unictype/property-other-uppercase: New file.
79373         * modules/unictype/property-lowercase: New file.
79374         * modules/unictype/property-other-lowercase: New file.
79375         * modules/unictype/property-titlecase: New file.
79376         * modules/unictype/property-soft-dotted: New file.
79377         * modules/unictype/property-id-start: New file.
79378         * modules/unictype/property-other-id-start: New file.
79379         * modules/unictype/property-id-continue: New file.
79380         * modules/unictype/property-other-id-continue: New file.
79381         * modules/unictype/property-xid-start: New file.
79382         * modules/unictype/property-xid-continue: New file.
79383         * modules/unictype/property-pattern-white-space: New file.
79384         * modules/unictype/property-pattern-syntax: New file.
79385         * modules/unictype/property-join-control: New file.
79386         * modules/unictype/property-grapheme-base: New file.
79387         * modules/unictype/property-grapheme-extend: New file.
79388         * modules/unictype/property-other-grapheme-extend: New file.
79389         * modules/unictype/property-grapheme-link: New file.
79390         * modules/unictype/property-bidi-control: New file.
79391         * modules/unictype/property-bidi-left-to-right: New file.
79392         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
79393         * modules/unictype/property-bidi-arabic-right-to-left: New file.
79394         * modules/unictype/property-bidi-european-digit: New file.
79395         * modules/unictype/property-bidi-eur-num-separator: New file.
79396         * modules/unictype/property-bidi-eur-num-terminator: New file.
79397         * modules/unictype/property-bidi-arabic-digit: New file.
79398         * modules/unictype/property-bidi-common-separator: New file.
79399         * modules/unictype/property-bidi-block-separator: New file.
79400         * modules/unictype/property-bidi-segment-separator: New file.
79401         * modules/unictype/property-bidi-whitespace: New file.
79402         * modules/unictype/property-bidi-non-spacing-mark: New file.
79403         * modules/unictype/property-bidi-boundary-neutral: New file.
79404         * modules/unictype/property-bidi-pdf: New file.
79405         * modules/unictype/property-bidi-embedding-or-override: New file.
79406         * modules/unictype/property-bidi-other-neutral: New file.
79407         * modules/unictype/property-hex-digit: New file.
79408         * modules/unictype/property-ascii-hex-digit: New file.
79409         * modules/unictype/property-ideographic: New file.
79410         * modules/unictype/property-unified-ideograph: New file.
79411         * modules/unictype/property-radical: New file.
79412         * modules/unictype/property-ids-binary-operator: New file.
79413         * modules/unictype/property-ids-trinary-operator: New file.
79414         * modules/unictype/property-zero-width: New file.
79415         * modules/unictype/property-space: New file.
79416         * modules/unictype/property-non-break: New file.
79417         * modules/unictype/property-iso-control: New file.
79418         * modules/unictype/property-format-control: New file.
79419         * modules/unictype/property-dash: New file.
79420         * modules/unictype/property-hyphen: New file.
79421         * modules/unictype/property-punctuation: New file.
79422         * modules/unictype/property-line-separator: New file.
79423         * modules/unictype/property-paragraph-separator: New file.
79424         * modules/unictype/property-quotation-mark: New file.
79425         * modules/unictype/property-sentence-terminal: New file.
79426         * modules/unictype/property-terminal-punctuation: New file.
79427         * modules/unictype/property-currency-symbol: New file.
79428         * modules/unictype/property-math: New file.
79429         * modules/unictype/property-other-math: New file.
79430         * modules/unictype/property-paired-punctuation: New file.
79431         * modules/unictype/property-left-of-pair: New file.
79432         * modules/unictype/property-combining: New file.
79433         * modules/unictype/property-composite: New file.
79434         * modules/unictype/property-decimal-digit: New file.
79435         * modules/unictype/property-numeric: New file.
79436         * modules/unictype/property-diacritic: New file.
79437         * modules/unictype/property-extender: New file.
79438         * modules/unictype/property-ignorable-control: New file.
79439         * modules/unictype/property-test: New file.
79440         * modules/unictype/property-byname: New file.
79441         * modules/unictype/property-all: New file.
79442         * modules/unictype/scripts: New file.
79443         * modules/unictype/scripts-all: New file.
79444         * modules/unictype/block-of: New file.
79445         * modules/unictype/block-test: New file.
79446         * modules/unictype/block-list: New file.
79447         * modules/unictype/block-all: New file.
79448         * modules/unictype/syntax-c-whitespace: New file.
79449         * modules/unictype/syntax-java-whitespace: New file.
79450         * modules/unictype/syntax-c-ident: New file.
79451         * modules/unictype/syntax-java-ident: New file.
79452         * modules/unictype/ctype-alnum: New file.
79453         * modules/unictype/ctype-alpha: New file.
79454         * modules/unictype/ctype-cntrl: New file.
79455         * modules/unictype/ctype-digit: New file.
79456         * modules/unictype/ctype-graph: New file.
79457         * modules/unictype/ctype-lower: New file.
79458         * modules/unictype/ctype-print: New file.
79459         * modules/unictype/ctype-punct: New file.
79460         * modules/unictype/ctype-space: New file.
79461         * modules/unictype/ctype-upper: New file.
79462         * modules/unictype/ctype-xdigit: New file.
79463         * modules/unictype/ctype-blank: New file.
79464         * lib/unictype/bidi_byname.c: New file.
79465         * lib/unictype/bidi_name.c: New file.
79466         * lib/unictype/bidi_of.c: New file.
79467         * lib/unictype/bidi_test.c: New file.
79468         * lib/unictype/bitmap.h: New file.
79469         * lib/unictype/block_test.c: New file.
79470         * lib/unictype/blocks.c: New file.
79471         * lib/unictype/categ_C.c: New file.
79472         * lib/unictype/categ_Cc.c: New file.
79473         * lib/unictype/categ_Cf.c: New file.
79474         * lib/unictype/categ_Cn.c: New file.
79475         * lib/unictype/categ_Co.c: New file.
79476         * lib/unictype/categ_Cs.c: New file.
79477         * lib/unictype/categ_L.c: New file.
79478         * lib/unictype/categ_Ll.c: New file.
79479         * lib/unictype/categ_Lm.c: New file.
79480         * lib/unictype/categ_Lo.c: New file.
79481         * lib/unictype/categ_Lt.c: New file.
79482         * lib/unictype/categ_Lu.c: New file.
79483         * lib/unictype/categ_M.c: New file.
79484         * lib/unictype/categ_Mc.c: New file.
79485         * lib/unictype/categ_Me.c: New file.
79486         * lib/unictype/categ_Mn.c: New file.
79487         * lib/unictype/categ_N.c: New file.
79488         * lib/unictype/categ_Nd.c: New file.
79489         * lib/unictype/categ_Nl.c: New file.
79490         * lib/unictype/categ_No.c: New file.
79491         * lib/unictype/categ_P.c: New file.
79492         * lib/unictype/categ_Pc.c: New file.
79493         * lib/unictype/categ_Pd.c: New file.
79494         * lib/unictype/categ_Pe.c: New file.
79495         * lib/unictype/categ_Pf.c: New file.
79496         * lib/unictype/categ_Pi.c: New file.
79497         * lib/unictype/categ_Po.c: New file.
79498         * lib/unictype/categ_Ps.c: New file.
79499         * lib/unictype/categ_S.c: New file.
79500         * lib/unictype/categ_Sc.c: New file.
79501         * lib/unictype/categ_Sk.c: New file.
79502         * lib/unictype/categ_Sm.c: New file.
79503         * lib/unictype/categ_So.c: New file.
79504         * lib/unictype/categ_Z.c: New file.
79505         * lib/unictype/categ_Zl.c: New file.
79506         * lib/unictype/categ_Zp.c: New file.
79507         * lib/unictype/categ_Zs.c: New file.
79508         * lib/unictype/categ_and.c: New file.
79509         * lib/unictype/categ_and_not.c: New file.
79510         * lib/unictype/categ_byname.c: New file.
79511         * lib/unictype/categ_name.c: New file.
79512         * lib/unictype/categ_none.c: New file.
79513         * lib/unictype/categ_of.c: New file.
79514         * lib/unictype/categ_or.c: New file.
79515         * lib/unictype/categ_test.c: New file.
79516         * lib/unictype/combining.c: New file.
79517         * lib/unictype/ctype_alnum.c: New file.
79518         * lib/unictype/ctype_alpha.c: New file.
79519         * lib/unictype/ctype_blank.c: New file.
79520         * lib/unictype/ctype_cntrl.c: New file.
79521         * lib/unictype/ctype_digit.c: New file.
79522         * lib/unictype/ctype_graph.c: New file.
79523         * lib/unictype/ctype_lower.c: New file.
79524         * lib/unictype/ctype_print.c: New file.
79525         * lib/unictype/ctype_punct.c: New file.
79526         * lib/unictype/ctype_space.c: New file.
79527         * lib/unictype/ctype_upper.c: New file.
79528         * lib/unictype/ctype_xdigit.c: New file.
79529         * lib/unictype/decdigit.c: New file.
79530         * lib/unictype/digit.c: New file.
79531         * lib/unictype/identsyntaxmap.h: New file.
79532         * lib/unictype/mirror.c: New file.
79533         * lib/unictype/numeric.c: New file.
79534         * lib/unictype/pr_alphabetic.c: New file.
79535         * lib/unictype/pr_ascii_hex_digit.c: New file.
79536         * lib/unictype/pr_bidi_arabic_digit.c: New file.
79537         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
79538         * lib/unictype/pr_bidi_block_separator.c: New file.
79539         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
79540         * lib/unictype/pr_bidi_common_separator.c: New file.
79541         * lib/unictype/pr_bidi_control.c: New file.
79542         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
79543         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
79544         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
79545         * lib/unictype/pr_bidi_european_digit.c: New file.
79546         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
79547         * lib/unictype/pr_bidi_left_to_right.c: New file.
79548         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
79549         * lib/unictype/pr_bidi_other_neutral.c: New file.
79550         * lib/unictype/pr_bidi_pdf.c: New file.
79551         * lib/unictype/pr_bidi_segment_separator.c: New file.
79552         * lib/unictype/pr_bidi_whitespace.c: New file.
79553         * lib/unictype/pr_byname.c: New file.
79554         * lib/unictype/pr_byname.gperf: New file.
79555         * lib/unictype/pr_combining.c: New file.
79556         * lib/unictype/pr_composite.c: New file.
79557         * lib/unictype/pr_currency_symbol.c: New file.
79558         * lib/unictype/pr_dash.c: New file.
79559         * lib/unictype/pr_decimal_digit.c: New file.
79560         * lib/unictype/pr_default_ignorable_code_point.c: New file.
79561         * lib/unictype/pr_deprecated.c: New file.
79562         * lib/unictype/pr_diacritic.c: New file.
79563         * lib/unictype/pr_extender.c: New file.
79564         * lib/unictype/pr_format_control.c: New file.
79565         * lib/unictype/pr_grapheme_base.c: New file.
79566         * lib/unictype/pr_grapheme_extend.c: New file.
79567         * lib/unictype/pr_grapheme_link.c: New file.
79568         * lib/unictype/pr_hex_digit.c: New file.
79569         * lib/unictype/pr_hyphen.c: New file.
79570         * lib/unictype/pr_id_continue.c: New file.
79571         * lib/unictype/pr_id_start.c: New file.
79572         * lib/unictype/pr_ideographic.c: New file.
79573         * lib/unictype/pr_ids_binary_operator.c: New file.
79574         * lib/unictype/pr_ids_trinary_operator.c: New file.
79575         * lib/unictype/pr_ignorable_control.c: New file.
79576         * lib/unictype/pr_iso_control.c: New file.
79577         * lib/unictype/pr_join_control.c: New file.
79578         * lib/unictype/pr_left_of_pair.c: New file.
79579         * lib/unictype/pr_line_separator.c: New file.
79580         * lib/unictype/pr_logical_order_exception.c: New file.
79581         * lib/unictype/pr_lowercase.c: New file.
79582         * lib/unictype/pr_math.c: New file.
79583         * lib/unictype/pr_non_break.c: New file.
79584         * lib/unictype/pr_not_a_character.c: New file.
79585         * lib/unictype/pr_numeric.c: New file.
79586         * lib/unictype/pr_other_alphabetic.c: New file.
79587         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
79588         * lib/unictype/pr_other_grapheme_extend.c: New file.
79589         * lib/unictype/pr_other_id_continue.c: New file.
79590         * lib/unictype/pr_other_id_start.c: New file.
79591         * lib/unictype/pr_other_lowercase.c: New file.
79592         * lib/unictype/pr_other_math.c: New file.
79593         * lib/unictype/pr_other_uppercase.c: New file.
79594         * lib/unictype/pr_paired_punctuation.c: New file.
79595         * lib/unictype/pr_paragraph_separator.c: New file.
79596         * lib/unictype/pr_pattern_syntax.c: New file.
79597         * lib/unictype/pr_pattern_white_space.c: New file.
79598         * lib/unictype/pr_private_use.c: New file.
79599         * lib/unictype/pr_punctuation.c: New file.
79600         * lib/unictype/pr_quotation_mark.c: New file.
79601         * lib/unictype/pr_radical.c: New file.
79602         * lib/unictype/pr_sentence_terminal.c: New file.
79603         * lib/unictype/pr_soft_dotted.c: New file.
79604         * lib/unictype/pr_space.c: New file.
79605         * lib/unictype/pr_terminal_punctuation.c: New file.
79606         * lib/unictype/pr_test.c: New file.
79607         * lib/unictype/pr_titlecase.c: New file.
79608         * lib/unictype/pr_unassigned_code_value.c: New file.
79609         * lib/unictype/pr_unified_ideograph.c: New file.
79610         * lib/unictype/pr_uppercase.c: New file.
79611         * lib/unictype/pr_variation_selector.c: New file.
79612         * lib/unictype/pr_white_space.c: New file.
79613         * lib/unictype/pr_xid_continue.c: New file.
79614         * lib/unictype/pr_xid_start.c: New file.
79615         * lib/unictype/pr_zero_width.c: New file.
79616         * lib/unictype/scripts.c: New file.
79617         * lib/unictype/sy_c_ident.c: New file.
79618         * lib/unictype/sy_c_whitespace.c: New file.
79619         * lib/unictype/sy_java_ident.c: New file.
79620         * lib/unictype/sy_java_whitespace.c: New file.
79622         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
79623         Unicode 5.0.0.
79624         * lib/unictype/blocks.h: Likewise.
79625         * lib/unictype/categ_C.h: Likewise.
79626         * lib/unictype/categ_Cc.h: Likewise.
79627         * lib/unictype/categ_Cf.h: Likewise.
79628         * lib/unictype/categ_Cn.h: Likewise.
79629         * lib/unictype/categ_Co.h: Likewise.
79630         * lib/unictype/categ_Cs.h: Likewise.
79631         * lib/unictype/categ_L.h: Likewise.
79632         * lib/unictype/categ_Ll.h: Likewise.
79633         * lib/unictype/categ_Lm.h: Likewise.
79634         * lib/unictype/categ_Lo.h: Likewise.
79635         * lib/unictype/categ_Lt.h: Likewise.
79636         * lib/unictype/categ_Lu.h: Likewise.
79637         * lib/unictype/categ_M.h: Likewise.
79638         * lib/unictype/categ_Mc.h: Likewise.
79639         * lib/unictype/categ_Me.h: Likewise.
79640         * lib/unictype/categ_Mn.h: Likewise.
79641         * lib/unictype/categ_N.h: Likewise.
79642         * lib/unictype/categ_Nd.h: Likewise.
79643         * lib/unictype/categ_Nl.h: Likewise.
79644         * lib/unictype/categ_No.h: Likewise.
79645         * lib/unictype/categ_P.h: Likewise.
79646         * lib/unictype/categ_Pc.h: Likewise.
79647         * lib/unictype/categ_Pd.h: Likewise.
79648         * lib/unictype/categ_Pe.h: Likewise.
79649         * lib/unictype/categ_Pf.h: Likewise.
79650         * lib/unictype/categ_Pi.h: Likewise.
79651         * lib/unictype/categ_Po.h: Likewise.
79652         * lib/unictype/categ_Ps.h: Likewise.
79653         * lib/unictype/categ_S.h: Likewise.
79654         * lib/unictype/categ_Sc.h: Likewise.
79655         * lib/unictype/categ_Sk.h: Likewise.
79656         * lib/unictype/categ_Sm.h: Likewise.
79657         * lib/unictype/categ_So.h: Likewise.
79658         * lib/unictype/categ_Z.h: Likewise.
79659         * lib/unictype/categ_Zl.h: Likewise.
79660         * lib/unictype/categ_Zp.h: Likewise.
79661         * lib/unictype/categ_Zs.h: Likewise.
79662         * lib/unictype/categ_of.h: Likewise.
79663         * lib/unictype/combining.h: Likewise.
79664         * lib/unictype/ctype_alnum.h: Likewise.
79665         * lib/unictype/ctype_alpha.h: Likewise.
79666         * lib/unictype/ctype_blank.h: Likewise.
79667         * lib/unictype/ctype_cntrl.h: Likewise.
79668         * lib/unictype/ctype_digit.h: Likewise.
79669         * lib/unictype/ctype_graph.h: Likewise.
79670         * lib/unictype/ctype_lower.h: Likewise.
79671         * lib/unictype/ctype_print.h: Likewise.
79672         * lib/unictype/ctype_punct.h: Likewise.
79673         * lib/unictype/ctype_space.h: Likewise.
79674         * lib/unictype/ctype_upper.h: Likewise.
79675         * lib/unictype/ctype_xdigit.h: Likewise.
79676         * lib/unictype/decdigit.h: Likewise.
79677         * lib/unictype/digit.h: Likewise.
79678         * lib/unictype/mirror.h: Likewise.
79679         * lib/unictype/numeric.h: Likewise.
79680         * lib/unictype/pr_alphabetic.h: Likewise.
79681         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
79682         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
79683         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
79684         * lib/unictype/pr_bidi_block_separator.h: Likewise.
79685         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
79686         * lib/unictype/pr_bidi_common_separator.h: Likewise.
79687         * lib/unictype/pr_bidi_control.h: Likewise.
79688         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
79689         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
79690         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
79691         * lib/unictype/pr_bidi_european_digit.h: Likewise.
79692         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
79693         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
79694         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
79695         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
79696         * lib/unictype/pr_bidi_pdf.h: Likewise.
79697         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
79698         * lib/unictype/pr_bidi_whitespace.h: Likewise.
79699         * lib/unictype/pr_combining.h: Likewise.
79700         * lib/unictype/pr_composite.h: Likewise.
79701         * lib/unictype/pr_currency_symbol.h: Likewise.
79702         * lib/unictype/pr_dash.h: Likewise.
79703         * lib/unictype/pr_decimal_digit.h: Likewise.
79704         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
79705         * lib/unictype/pr_deprecated.h: Likewise.
79706         * lib/unictype/pr_diacritic.h: Likewise.
79707         * lib/unictype/pr_extender.h: Likewise.
79708         * lib/unictype/pr_format_control.h: Likewise.
79709         * lib/unictype/pr_grapheme_base.h: Likewise.
79710         * lib/unictype/pr_grapheme_extend.h: Likewise.
79711         * lib/unictype/pr_grapheme_link.h: Likewise.
79712         * lib/unictype/pr_hex_digit.h: Likewise.
79713         * lib/unictype/pr_hyphen.h: Likewise.
79714         * lib/unictype/pr_id_continue.h: Likewise.
79715         * lib/unictype/pr_id_start.h: Likewise.
79716         * lib/unictype/pr_ideographic.h: Likewise.
79717         * lib/unictype/pr_ids_binary_operator.h: Likewise.
79718         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
79719         * lib/unictype/pr_ignorable_control.h: Likewise.
79720         * lib/unictype/pr_iso_control.h: Likewise.
79721         * lib/unictype/pr_join_control.h: Likewise.
79722         * lib/unictype/pr_left_of_pair.h: Likewise.
79723         * lib/unictype/pr_line_separator.h: Likewise.
79724         * lib/unictype/pr_logical_order_exception.h: Likewise.
79725         * lib/unictype/pr_lowercase.h: Likewise.
79726         * lib/unictype/pr_math.h: Likewise.
79727         * lib/unictype/pr_non_break.h: Likewise.
79728         * lib/unictype/pr_not_a_character.h: Likewise.
79729         * lib/unictype/pr_numeric.h: Likewise.
79730         * lib/unictype/pr_other_alphabetic.h: Likewise.
79731         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
79732         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
79733         * lib/unictype/pr_other_id_continue.h: Likewise.
79734         * lib/unictype/pr_other_id_start.h: Likewise.
79735         * lib/unictype/pr_other_lowercase.h: Likewise.
79736         * lib/unictype/pr_other_math.h: Likewise.
79737         * lib/unictype/pr_other_uppercase.h: Likewise.
79738         * lib/unictype/pr_paired_punctuation.h: Likewise.
79739         * lib/unictype/pr_paragraph_separator.h: Likewise.
79740         * lib/unictype/pr_pattern_syntax.h: Likewise.
79741         * lib/unictype/pr_pattern_white_space.h: Likewise.
79742         * lib/unictype/pr_private_use.h: Likewise.
79743         * lib/unictype/pr_punctuation.h: Likewise.
79744         * lib/unictype/pr_quotation_mark.h: Likewise.
79745         * lib/unictype/pr_radical.h: Likewise.
79746         * lib/unictype/pr_sentence_terminal.h: Likewise.
79747         * lib/unictype/pr_soft_dotted.h: Likewise.
79748         * lib/unictype/pr_space.h: Likewise.
79749         * lib/unictype/pr_terminal_punctuation.h: Likewise.
79750         * lib/unictype/pr_titlecase.h: Likewise.
79751         * lib/unictype/pr_unassigned_code_value.h: Likewise.
79752         * lib/unictype/pr_unified_ideograph.h: Likewise.
79753         * lib/unictype/pr_uppercase.h: Likewise.
79754         * lib/unictype/pr_variation_selector.h: Likewise.
79755         * lib/unictype/pr_white_space.h: Likewise.
79756         * lib/unictype/pr_xid_continue.h: Likewise.
79757         * lib/unictype/pr_xid_start.h: Likewise.
79758         * lib/unictype/pr_zero_width.h: Likewise.
79759         * lib/unictype/scripts.h: Likewise.
79760         * lib/unictype/scripts_byname.gperf: Likewise.
79761         * lib/unictype/sy_c_ident.h: Likewise.
79762         * lib/unictype/sy_c_whitespace.h: Likewise.
79763         * lib/unictype/sy_java_ident.h: Likewise.
79764         * lib/unictype/sy_java_whitespace.h: Likewise.
79766         * lib/unictype/Makefile: New file.
79767         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
79768         glibc.
79769         * lib/unictype/3level.h: New file, copied from glibc.
79770         * lib/unictype/3levelbit.h: New file.
79772 2007-11-11  Bruno Haible  <bruno@clisp.org>
79774         * modules/gperf: New file.
79775         * modules/iconv_open (Depends-on): Add it.
79776         (Makefile.am): Remove the GPERF definition.
79778 2007-11-11  Bruno Haible  <bruno@clisp.org>
79780         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
79781         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
79783 2007-11-11  Bruno Haible  <bruno@clisp.org>
79785         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
79786         (usage): Remove function.
79788 2007-11-11  Bruno Haible  <bruno@clisp.org>
79790         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
79791         gl_FUNC_CEILF_LIBS.
79792         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
79793         gl_FUNC_CEIL_LIBS.
79794         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
79795         gl_FUNC_CEILL_LIBS.
79796         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
79797         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
79798         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
79800 2007-11-11  Bruno Haible  <bruno@clisp.org>
79802         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
79803         roundf were declared but do not exist on functions.
79804         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
79805         roundl were declared but do not exist on functions.
79806         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
79807         HAVE_FLOORL_AND_CEILL, respectively.
79808         Needed for Sun C on Solaris 10.
79810 2007-11-11  Bruno Haible  <bruno@clisp.org>
79812         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
79813         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
79814         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
79815         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
79816         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
79817         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
79818         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
79819         HAVE_DECL_ROUNDF.
79820         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
79821         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
79822         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
79823         of HAVE_DECL_ROUND*.
79824         * modules/math (Makefile.am): Update.
79826 2007-11-10  Bruno Haible  <bruno@clisp.org>
79828         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
79829         ptrdiff_t as m4/intl.m4.
79831 2007-11-10  Jim Meyering  <meyering@redhat.com>
79833         Avoid link failure for the argmatch test.
79834         * tests/test-argmatch.c (usage): Define function to avoid a link
79835         failure: argmatch_die requires a usage function.
79837 2007-11-09  Bruno Haible  <bruno@clisp.org>
79839         * doc/functions/snprintf.texi: Mention BeOS deficiency.
79840         * doc/functions/vsnprintf.texi: Likewise.
79841         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
79842         with a size argument < 2.
79844 2007-11-09  Bruno Haible  <bruno@clisp.org>
79846         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
79847         buffer. Fixes an inefficiency introduced on 2007-11-03.
79849 2007-11-09  Bruno Haible  <bruno@clisp.org>
79851         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
79852         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
79854 2007-11-08  Jim Meyering  <meyering@redhat.com>
79856         Change cache variable name prefix "jm_" to "gl_" everywhere.
79857         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
79858         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
79859         * m4/uptime.m4: s/gl_/jm_/
79861 2007-11-07  Bruno Haible  <bruno@clisp.org>
79863         Update to GNU gettext 0.17.
79864         * m4/intl.m4: Update to GNU gettext 0.17.
79865         * m4/po.m4: Likewise.
79866         * modules/gettext (Files): Remove m4/ulonglong.m4.
79867         (configure.ac): Require gettext infrastructure from version 0.17.
79869 2007-11-06  Bruno Haible  <bruno@clisp.org>
79871         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
79872         symbolic values are not defined in a public header.
79873         * lib/freadable.c (freadable) [QNX]: Likewise.
79874         * lib/freadahead.c (freadahead) [QNX]: Likewise.
79875         * lib/freading.c (freading) [QNX]: Likewise.
79876         * lib/fseterr.c (fseterr) [QNX]: Likewise.
79877         * lib/fwritable.c (fwritable) [QNX]: Likewise.
79878         * lib/fwriting.c (fwriting) [QNX]: Likewise.
79879         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
79880         Reported by Alain Magloire.
79882         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
79884 2007-11-05  Bruno Haible  <bruno@clisp.org>
79886         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
79887         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
79888         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
79889         Reported by Eric Blake.
79891 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79892             Bruno Haible  <bruno@clisp.org>
79894         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
79895         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
79896         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
79897         (malloc): Undefine also before including <stdlib.h>.
79898         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
79899         Needed on OSF/1 4.0.
79901 2007-11-05  Jim Meyering  <meyering@redhat.com>
79903         git-version-gen: sync from coreutils.
79904         * build-aux/git-version-gen: Add comments.
79905         Change the first '-' to '.' in the snapshot version string,
79906         e.g., 6.9-377-08144 -> 6.9.377-08144
79907         Remove first parameter.
79908         Don't declare a version "-dirty" merely because a time
79909         stamp has changed.
79911 2007-11-04  Bruno Haible  <bruno@clisp.org>
79913         * lib/lock.h: Protect all macro definitions containing an 'if'
79914         statement through a "do { ... } while (0)".
79915         * lib/tls.h: Likewise.
79917 2007-11-04  Bruno Haible  <bruno@clisp.org>
79919         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
79921 2007-11-04  Bruno Haible  <bruno@clisp.org>
79923         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
79924         * modules/fprintf-posix (Depends-on): Add nocrash.
79925         * modules/snprintf-posix (Depends-on): Likewise.
79926         * modules/sprintf-posix (Depends-on): Likewise.
79927         * modules/vasnprintf-posix (Depends-on): Likewise.
79928         * modules/vasprintf-posix (Depends-on): Likewise.
79929         * modules/vfprintf-posix (Depends-on): Likewise.
79930         * modules/vsnprintf-posix (Depends-on): Likewise.
79931         * modules/vsprintf-posix (Depends-on): Likewise.
79932         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
79933         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
79934         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
79935         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
79936         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
79937         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
79938         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
79940 2007-11-04  Bruno Haible  <bruno@clisp.org>
79942         * modules/nocrash: New file.
79943         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
79944         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
79946 2007-11-04  Bruno Haible  <bruno@clisp.org>
79948         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
79949         precision handling.
79950         * tests/test-vasprintf-posix.c (test_function): Likewise.
79951         * tests/test-snprintf-posix.h (test_function): Likewise.
79952         * tests/test-sprintf-posix.h (test_function): Likewise.
79954         Fix *printf behaviour for large precisions on mingw and BeOS.
79955         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
79956         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
79957         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
79958         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
79959         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
79960         gl_PRINTF_PRECISION and test its result. Invoke
79961         gl_PREREQ_VASNPRINTF_PRECISION.
79962         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
79963         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
79964         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
79965         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
79966         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
79967         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
79968         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
79969         * doc/functions/fprintf.texi: Update.
79970         * doc/functions/printf.texi: Update.
79971         * doc/functions/snprintf.texi: Update.
79972         * doc/functions/sprintf.texi: Update.
79973         * doc/functions/vfprintf.texi: Update.
79974         * doc/functions/vprintf.texi: Update.
79975         * doc/functions/vsnprintf.texi: Update.
79976         * doc/functions/vsprintf.texi: Update.
79978 2007-11-04  Bruno Haible  <bruno@clisp.org>
79980         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
79982 2007-11-04  Bruno Haible  <bruno@clisp.org>
79984         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
79985         Reported by Sylvain Beucler <beuc@gnu.org>.
79987 2007-11-03  Bruno Haible  <bruno@clisp.org>
79989         * tests/test-fprintf-posix2.sh: New file.
79990         * tests/test-fprintf-posix2.c: New file.
79991         * modules/fprintf-posix-tests (Files): Add them.
79992         (TESTS): Add test-fprintf-posix2.sh.
79993         (configure.ac): Check for getrlimit and setrlimit.
79994         (check_PROGRAMS): Add test-fprintf-posix2.
79996         * tests/test-printf-posix2.sh: New file.
79997         * tests/test-printf-posix2.c: New file.
79998         * modules/printf-posix-tests (Files): Add them.
79999         (TESTS): Add test-printf-posix2.sh.
80000         (configure.ac): Check for getrlimit and setrlimit.
80001         (check_PROGRAMS): Add test-printf-posix2.
80003         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
80004         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
80005         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
80006         (decode_double): New function, copied from decode_long_double.
80007         (scale10_round_decimal_decoded): New function, extracted from
80008         scale10_round_decimal_long_double.
80009         (scale10_round_decimal_long_double): Use it.
80010         (scale10_round_decimal_double): New function.
80011         (floorlog10): New function.
80012         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
80013         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
80014         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
80015         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
80016         gl_PRINTF_ENOMEM and test its result. Invoke
80017         gl_PREREQ_VASNPRINTF_ENOMEM.
80018         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
80019         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
80020         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
80021         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
80022         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
80023         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
80024         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
80025         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
80026         * modules/snprintf-posix (Depends-on): Likewise.
80027         * modules/sprintf-posix (Depends-on): Likewise.
80028         * modules/vasnprintf-posix (Depends-on): Likewise.
80029         * modules/vasprintf-posix (Depends-on): Likewise.
80030         * modules/vfprintf-posix (Depends-on): Likewise.
80031         * modules/vsnprintf-posix (Depends-on): Likewise.
80032         * modules/vsprintf-posix (Depends-on): Likewise.
80033         * doc/functions/fprintf.texi: Update.
80034         * doc/functions/printf.texi: Update.
80035         * doc/functions/snprintf.texi: Update.
80036         * doc/functions/sprintf.texi: Update.
80037         * doc/functions/vfprintf.texi: Update.
80038         * doc/functions/vprintf.texi: Update.
80039         * doc/functions/vsnprintf.texi: Update.
80040         * doc/functions/vsprintf.texi: Update.
80042 2007-11-03  Bruno Haible  <bruno@clisp.org>
80044         * modules/frexp-nolibm-tests: New file.
80046         * modules/frexp-nolibm: New file.
80047         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
80049 2007-11-03  Bruno Haible  <bruno@clisp.org>
80051         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
80052         value is C99 compliant.
80053         Needed for OSF/1 5.1.
80055 2007-11-03  Bruno Haible  <bruno@clisp.org>
80057         Fix out-of-memory handling of vasnprintf.
80058         * lib/printf-parse.c: Include <errno.h>.
80059         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
80060         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
80061         is already set.
80063 2007-11-02  Eric Blake  <ebb9@byu.net>
80065         Fix tests on cygwin.
80066         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
80068 2007-11-01  Bruno Haible  <bruno@clisp.org>
80070         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
80071         warning.
80072         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
80073         needed for POSIX compatibility.
80075 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
80077         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
80078         for compatibility with GNU.
80080 2007-11-01  Bruno Haible  <bruno@clisp.org>
80082         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
80083         (putenv): Renamed from rpl_putenv. Change argument type from
80084         'const char *' to 'char *'.
80085         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
80086         of defining putenv in config.h, just set REPLACE_PUTENV.
80087         * modules/putenv (Depends-on): Add stdlib.
80088         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
80089         (Include): Use <stdlib.h>.
80090         * lib/stdlib.in.h (putenv): New declaration.
80091         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
80092         REPLACE_PUTENV.
80093         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
80094         REPLACE_PUTENV.
80095         Needed for MacOS X 10.5.0.
80096         Reported by Peter O'Gorman <peter@pogma.com>.
80098 2007-11-01  Jim Meyering  <meyering@redhat.com>
80100         Treat an empty date string exactly like "0".
80101         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
80102         if the remaining date string (to be parsed) is empty, use "0".
80103         Reported by Mischa Molhoek and discussed in this thread:
80104         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
80106 2007-10-31  Bruno Haible  <bruno@clisp.org>
80108         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
80109         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
80110         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
80111         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
80112         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
80113         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
80115 2007-10-31  Bruno Haible  <bruno@clisp.org>
80117         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
80118         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
80119         (AC_TYPE_LONG_LONG_INT): Use it.
80120         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
80121         it as well.
80122         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
80123         to m4/longlong.m4.
80124         * modules/stdint (Files): Remove m4/ulonglong.m4.
80125         * modules/strtoull (Files): Use m4/longlong.m4 instead of
80126         m4/ulonglong.m4.
80127         * modules/strtoumax (Files): Likewise.
80129 2007-10-30  Bruno Haible  <bruno@clisp.org>
80131         * modules/xvasprintf-posix: New file.
80132         Suggested by Eric Blake.
80134 2007-10-30  Bruno Haible  <bruno@clisp.org>
80136         * modules/xprintf-posix-tests: New file.
80137         * tests/test-xprintf-posix.sh: New file.
80138         * tests/test-xprintf-posix.c: New file.
80139         * tests/test-xfprintf-posix.c: New file.
80141         * modules/xprintf-posix: New file.
80143 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80145         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
80146         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
80147         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
80149 2007-10-29  Bruno Haible  <bruno@clisp.org>
80151         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
80152         contain the special marker '_cv_'.
80153         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
80154         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
80155         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
80156         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
80157         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
80158         Reported by Ralf Wildenhues.
80160 2007-10-29  Bruno Haible  <bruno@clisp.org>
80162         * gnulib-tool (func_import): When --lgpl is not specified, set
80163         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
80164         GPLv3.
80165         Reported by Simon Josefsson.
80167 2007-10-28  Bruno Haible  <bruno@clisp.org>
80169         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
80170         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
80171         HAVE_DECL_ISFINITE.
80172         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
80173         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
80174         HAVE_DECL_ISFINITE.
80176 2007-10-28  Bruno Haible  <bruno@clisp.org>
80178         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
80179         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
80181 2007-10-28  Bruno Haible  <bruno@clisp.org>
80183         Fix link errors with Sun C 5.0 on Solaris 10.
80184         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
80185         function is declared but not present in the compiler's libm.
80186         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
80187         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
80188         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
80189         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
80190         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
80191         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
80192         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
80193         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
80194         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
80195         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
80196         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
80197         HAVE_DECL_FLOORL.
80199 2007-10-28  Bruno Haible  <bruno@clisp.org>
80201         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
80202         gl_FUNC_FLOORL. Cache the result.
80203         (gl_FUNC_FLOORL): Use it.
80204         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
80205         gl_FUNC_CEILL. Cache the result.
80206         (gl_FUNC_CEILL): Use it.
80208         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
80209         gl_FUNC_FLOOR. Cache the result.
80210         (gl_FUNC_FLOOR): Use it.
80211         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
80212         gl_FUNC_CEIL. Cache the result.
80213         (gl_FUNC_CEIL): Use it.
80215         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
80216         gl_FUNC_FLOORF. Cache the result.
80217         (gl_FUNC_FLOORF): Use it.
80218         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
80219         gl_FUNC_CEILF. Cache the result.
80220         (gl_FUNC_CEILF): Use it.
80222 2007-10-28  Bruno Haible  <bruno@clisp.org>
80224         * gnulib-tool: Allow specifying the LGPL version number through
80225         --lgpl=2 or --lgpl=3.
80226         (func_usage): Document --lgpl with argument.
80227         Handle --lgpl=... arguments.
80228         (func_import): Recognize also gl_LGPL calls with an argument. When
80229         --lgpl=2 is used and the module's license is just LGPL, report an
80230         error. Set sed_transform_lib_file according to the lgpl variable. In
80231         the generated files, use --lgpl or gl_LGPL invocations with argument,
80232         if necessary.
80233         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
80234         an LGPv2+ license.
80235         * doc/gnulib-tool.texi (Modified imports): Update explanation of
80236         gl_LGPL macro.
80238 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80239             Bruno Haible  <bruno@clisp.org>
80241         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
80242         (u16_uctomb_aux): Likewise.
80243         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
80244         !HAVE_INLINE.
80245         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
80247 2007-10-28  Bruno Haible  <bruno@clisp.org>
80249         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
80250         Invoke AM_GETTEXT_OPTION if it exists.
80251         * modules/vasprintf: Likewise.
80252         * modules/verror: Likewise.
80253         * modules/xprintf: Likewise.
80254         * modules/xvasprintf: Likewise.
80256 2007-10-27  Ben Pfaff  <blp@gnu.org>
80258         * lib/math.in.h: Define isfinite macro and prototypes for
80259         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
80260         implementations.
80261         * m4/math_h.m4: New substitutions for isfinite module.
80262         * lib/isfinite.c: New file.
80263         * m4/isfinite.m4: New file.
80264         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
80265         * modules/isfinite: New file.
80266         * modules/isfinite-tests: New file.
80267         * tests/tests-isfinite.c: New file.
80268         * doc/functions/isfinite.texi: Mention isfinite module.
80269         * MODULES.html.sh: Mention new module.
80271 2007-10-27  Ben Pfaff  <blp@gnu.org>
80273         Ralf Wildenhues reported that Tru64 4.0D declares the round
80274         functions but does not have definitions.
80275         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
80276         cannot be found in any library, set the output variable to
80277         "missing" instead of "".
80278         * m4/round.m4: Also use our substitute if we cannot find round in
80279         any library, even if it is declared.
80280         * m4/roundf.m4: Likewise for roundf.
80281         * m4/roundl.m4: Likewise for roundl.
80282         * lib/math.in.h: Undefine roundf, round, roundl before defining
80283         their replacements, to allow for hypothetical systems where these
80284         may be defined as macros but not available in libraries.
80286 2007-10-27  Bruno Haible  <bruno@clisp.org>
80288         * doc/gnulib.texi: Invoke @firstparagraphindent.
80289         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
80290         changes in gnulib.
80291         (Source changes): New section.
80293 2007-10-26  Bruno Haible  <bruno@clisp.org>
80295         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
80296         borrowed from autoconf.
80298 2007-10-26  Bruno Haible  <bruno@clisp.org>
80300         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
80301         strerror returned the empty string. Needed on HP-UX 11.00.
80303 2007-10-24  Micah Cowan  <micah@cowan.name>
80305         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
80306         * build-aux/bootstrap: Remove support for now-unnecessary option,
80307         --cvs-user, and envvars CVS_USER, CVS_RSH.
80309 2007-10-24  Jim Meyering  <meyering@redhat.com>
80311         Avoid diagnostics from sha1sum when there is no cached checksum.
80312         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
80313         if the po.s1 file hasn't been created yet.
80315         * build-aux/bootstrap: Sync from coreutils:
80316         2007-10-24  Jim Meyering  <meyering@redhat.com>
80317         Get gnulib from the git repository, not from an obsolete cvs one.
80318         * build-aux/bootstrap: Suggestion from Micah Cowan.
80319         2007-10-04  Jim Meyering  <jim@meyering.net>
80320         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
80321         (update_po_files): Work also when there are no .po files in po/.
80323 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
80325         * README: Append ".git" to git and cg examples.
80326         Problem reported by Benoit Sigoure.
80328 2007-10-23  Micah Cowan  <micah@cowan.name>
80330         * users.txt: Add wget.
80332 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80334         Fix linking of some unistdio tests on FreeBSD.
80335         * modules/unistdio/u16-vsnprintf-tests
80336         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
80337         * modules/unistdio/u16-vsprintf-tests
80338         (test_u16_vsnprintf1_LDADD): Likewise.
80339         * modules/unistdio/u32-vsnprintf-tests
80340         (test_u32_vsnprintf1_LDADD): Likewise.
80341         * modules/unistdio/u32-vsprintf-tests
80342         (test_u32_vsprintf1_LDADD): Likewise.
80343         * modules/unistdio/u8-vsnprintf-tests
80344         (test_u8_vsnprintf1_LDADD): Likewise.
80345         * modules/unistdio/u8-vsprintf-tests
80346         (test_u8_vsprintf1_LDADD): Likewise.
80347         * modules/unistdio/ulc-vsnprintf-tests
80348         (test_ulc_vsnprintf1_LDADD): Likewise.
80349         * modules/unistdio/ulc-vsprintf-tests
80350         (test_ulc_vsprintf1_LDADD): Likewise.
80352         Fix linking of some uniconv tests on FreeBSD.
80353         * modules/uniconv/u16-conv-from-enc-tests
80354         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
80355         * modules/uniconv/u16-conv-to-enc-tests
80356         (test_u16_conv_to_enc_LDADD): Likewise.
80357         * modules/uniconv/u16-strconv-from-enc-tests
80358         (test_u16_strconv_from_enc_LDADD): Likewise.
80359         * modules/uniconv/u16-strconv-to-enc-tests
80360         (test_u16_strconv_to_enc_LDADD): Likewise.
80361         * modules/uniconv/u32-conv-from-enc-tests
80362         (test_u32_conv_from_enc_LDADD): Likewise.
80363         * modules/uniconv/u32-conv-to-enc-tests
80364         (test_u32_conv_to_enc_LDADD): Likewise.
80365         * modules/uniconv/u32-strconv-from-enc-tests
80366         (test_u32_strconv_from_enc_LDADD): Likewise.
80367         * modules/uniconv/u32-strconv-to-enc-tests
80368         (test_u32_strconv_to_enc_LDADD): Likewise.
80369         * modules/uniconv/u8-conv-from-enc-tests
80370         (test_u8_conv_from_enc_LDADD): Likewise.
80371         * modules/uniconv/u8-conv-to-enc-tests
80372         (test_u8_conv_to_enc_LDADD): Likewise.
80373         * modules/uniconv/u8-strconv-from-enc-tests
80374         (test_u8_strconv_from_enc_LDADD): Likewise.
80375         * modules/uniconv/u8-strconv-to-enc-tests
80376         (test_u8_strconv_to_enc_LDADD): Likewise.
80378 2007-10-22  Bruno Haible  <bruno@clisp.org>
80380         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
80381         size.
80383 2007-10-22  Eric Blake  <ebb9@byu.net>
80385         Tweak x*printf documentation.
80386         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
80387         variable name and comments.
80388         Suggested by Bruno Haible.
80390 2007-10-22  Bruno Haible  <bruno@clisp.org>
80392         * lib/acl.c (copy_acl): Fix file name in comment.
80394 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
80396         Fix Tru64 problem with stdbool.h.
80397         * lib/stdbool.in.h (false, true):
80398         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
80399         Don't declare as an enum in this situation; it runs afoul of Tru64.
80400         Problem reported by Steven M. Schweda in
80401         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
80403 2007-10-22  Eric Blake  <ebb9@byu.net>
80405         Also wrap vf?printf.
80406         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
80407         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
80408         (xvprintf, xvfprintf): New functions.
80410 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80412         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
80413         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
80415         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
80416         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
80418 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
80420         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
80421         by Bruno Haible.
80423 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80425         * lib/getloadavg.c
80426         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
80427         Undef `sys' after including sys/table.h, for Tru64 4.0D.
80429         * tests/test-i-ring.c: Work for C89.
80431 2007-10-22  Bruno Haible  <bruno@clisp.org>
80433         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
80434         -1u, in preprocessor expression, so that we don't test for the bug
80435         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
80436         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
80438 2007-10-22  Eric Blake  <ebb9@byu.net>
80440         * tests/test-yesno.sh: Silence stderr during test.
80442 2007-10-22  Simon Josefsson  <simon@josefsson.org>
80444         * modules/crypto/gc-camellia: New file.
80446         * m4/gc-camellia.m4: New file.
80448         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
80450         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
80452 2007-10-22  Simon Josefsson  <simon@josefsson.org>
80454         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
80455         --help to stdout.  Reported by sms@antinode.org (Steven
80456         M. Schweda).
80458 2007-10-22  Simon Josefsson  <simon@josefsson.org>
80460         * users.txt: Fix link to libksba.
80462 2007-10-21  Ben Pfaff  <blp@gnu.org>
80464         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
80465         round.c roundf implementation that depends on floorf and ceilf to
80466         be tested unconditionally.
80468 2007-10-21  Ben Pfaff  <blp@gnu.org>
80470         * m4/check-libm-func.m4: Removed.
80471         * m4/check-math-lib.m4: New file.
80472         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
80473         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
80474         definition and lack of AC_LIBOBJ([roundf]).
80475         * m4/roundl.m4: Ditto, and similarly for roundl.
80476         * modules/round: Reference new m4 file.
80477         * modules/roundf: Ditto.
80478         * modules/roundl: Ditto.
80479         * tests/test-round2.c (main): Use ROUND instead of round.
80480         Bug report from Bruno Haible.
80482 2007-10-21  Bruno Haible  <bruno@clisp.org>
80484         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
80485         context.
80487 2007-10-21  Bruno Haible  <bruno@clisp.org>
80489         * tests/test-wcwidth.c (main): Allow negative result for some control
80490         characters.
80492         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
80493         Needed on OSF/1 5.1.
80495 2007-10-21  Bruno Haible  <bruno@clisp.org>
80497         * tests/test-floorf1.c: Include isnanf.h.
80498         (main): Use isnanf() instead of isnan().
80499         * tests/test-ceilf1.c: Include isnanf.h.
80500         (main): Use isnanf() instead of isnan().
80501         * tests/test-truncf1.c: Include isnanf.h.
80502         (main): Use isnanf() instead of isnan().
80503         * tests/test-roundf1.c: Include isnanf.h.
80504         (main): Use isnanf() instead of isnan().
80506 2007-10-21  Eric Blake  <ebb9@byu.net>
80508         * users.txt: Update URL for m4.
80510 2007-10-21  Bruno Haible  <bruno@clisp.org>
80512         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
80514 2007-10-21  Bruno Haible  <bruno@clisp.org>
80516         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
80517         Git's management files if the CVS files are not present.
80519 2007-10-20  Bruno Haible  <bruno@clisp.org>
80521         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
80522         gcc-3.4.x.
80524 2007-10-20  Ben Pfaff  <blp@gnu.org>
80526         * lib/math.in.h: Declare round, roundf, roundl if we are providing
80527         implementations.
80528         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
80529         * lib/round.c: New file.
80530         * lib/roundf.c: New file.
80531         * lib/roundl.c: New file.
80532         * m4/round.m4: New file.
80533         * m4/roundf.m4: New file.
80534         * m4/roundl.m4: New file.
80535         * m4/check-libm-func-m4: New file.
80536         * modules/math: Replace round, roundf, roundl related @VARS@ in
80537         math.in.h.
80538         * modules/round: New file.
80539         * modules/round-tests: New file.
80540         * modules/roundf: New file.
80541         * modules/roundf-tests: New file.
80542         * modules/roundl: New file.
80543         * modules/roundl-tests: New file.
80544         * tests/test-round1.c: New file.
80545         * tests/test-round2.c: New file.
80546         * tests/test-roundf1.c: New file.
80547         * tests/test-roundf2.c: New file.
80548         * tests/test-roundl.c: New file.
80549         * doc/functions/round.texi: Mention round module.
80550         * doc/functions/roundf.texi: Mention roundf module.
80551         * doc/functions/roundl.texi: Mention roundl module.
80552         * MODULES.html.sh: Mention new modules.
80553         Thanks to Bruno Haible for suggestions.
80555 2007-10-20  Jim Meyering  <meyering@redhat.com>
80557         * lib/xprintf.c: Include <config.h> unconditionally.
80559         Change xprintf's license to GPL.
80560         * modules/xprintf (License): s/LGPL/GPL/, since this module
80561         depends on modules (exit and exitfail) which are GPL.
80562         Suggestion from Bruno Haible.
80564         xprintf fixes.
80565         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
80566         Use a clearer diagnostic.
80567         Patch from Bruno Haible.
80569 2007-10-20  Bruno Haible  <bruno@clisp.org>
80571         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
80572         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
80573         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80575 2007-10-20  Bruno Haible  <bruno@clisp.org>
80577         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
80578         precision in the comparison result > x - 1 or similar.
80579         * tests/test-ceilf2.c (correct_result_p): Likewise.
80580         * tests/test-truncf2.c (correct_result_p): Likewise.
80581         * tests/test-trunc2.c (correct_result_p): Likewise.
80582         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80584 2007-10-20  Bruno Haible  <bruno@clisp.org>
80586         * modules/ceil: New file.
80587         * m4/ceil.m4: New file.
80588         * doc/functions/ceil.texi: Mention the 'ceil' module.
80590 2007-10-20  Bruno Haible  <bruno@clisp.org>
80592         * modules/floor: New file.
80593         * m4/floor.m4: New file.
80594         * doc/functions/floor.texi: Mention the 'floor' module.
80596 2007-10-20  Bruno Haible  <bruno@clisp.org>
80598         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
80599         of %a.
80600         * modules/floorf-tests (Depends-on): Likewise.
80601         * modules/truncf-tests (Depends-on): Likewise.
80602         * modules/trunc-tests (Depends-on): Likewise.
80603         Reported by Ben Pfaff.
80605 2007-10-19  Jim Meyering  <meyering@redhat.com>
80607         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
80608         Don't bother testing specific errno values.  Just test ferror.
80610         New module: xprintf
80611         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
80613 2007-10-19  Bruno Haible  <bruno@clisp.org>
80615         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
80616         syntax.
80617         * modules/javaexec (Makefile.am): Likewise.
80618         * modules/relocatable-prog (Makefile.am): Likewise.
80619         Suggested by Jim Meyering.
80621 2007-10-18  Bruno Haible  <bruno@clisp.org>
80623         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
80624         Reported by Jim Meyering.
80626 2007-10-18  Eric Blake  <ebb9@byu.net>
80628         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
80630 2007-10-18  Bruno Haible  <bruno@clisp.org>
80632         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
80633         the format string into writable memory. Needed in Fortify conditions.
80635 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
80636             Bruno Haible  <bruno@clisp.org>
80638         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
80639         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
80640         * modules/trim (Depends-on): Add mbchar.
80641         (configure.ac): Add gl_FUNC_MBRTOWC.
80642         (Makefile.am): Augment lib_SOURCES.
80644 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
80646         Modify glob.c to use fstatat and dirfd, to simplify it.
80647         Suggested by Eric Blake.
80648         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
80649         Don't include <stdbool.h>; not used.
80650         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
80651         (link_exists_p): Simplify implementation, since we can now assume
80652         dirfd and fstatat.
80653         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
80655 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80657         * gnulib-tool (func_get_dependencies): Fix sed script to
80658         match only tests.
80660 2007-10-17  Bruno Haible  <bruno@clisp.org>
80662         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
80663         allow locale names without encoding suffix.
80664         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
80665         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
80667 2007-10-16  Bruno Haible  <bruno@clisp.org>
80669         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
80670         * lib/getgroups.c (getgroups): Likewise.
80671         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
80673 2007-10-16  Bruno Haible  <bruno@clisp.org>
80675         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
80676         * modules/malloc-posix (License): Likewise.
80677         * modules/realloc-posix (License): Likewise.
80678         * modules/calloc-posix (License): Likewise.
80679         * modules/intprops (License): Change from GPL to LGPL, with
80680         Paul Eggert's approval.
80682 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
80684         Merge glibc changes into lib/glob.c.
80686         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
80687         2007-10-15 04:59:03 UTC.  Here are the changes:
80689         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
80691         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
80693         * lib/glob.c: Add some branch prediction throughout.
80695         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
80697         [BZ #5103]
80698         * lib/glob.c (glob): Recognize patterns starting \/.
80700         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
80702         [BZ #3996]
80703         * lib/glob.c (attribute_hidden): Define if not defined.
80704         (glob): Unescape dirname, filename or username when needed and not
80705         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
80706         is NULL.  Handle unescaped [ in pattern without closing ].
80707         Don't pass GLOB_CHECK down to recursive glob for directories.
80708         (__glob_pattern_type): New function.
80709         (__glob_pattern_p): Implement using __glob_pattern_type.
80710         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
80711         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
80712         Remove unreachable code.
80714         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
80716         * lib/glob.c (glob_in_dir): Add some comments and asserts to
80717         explain why there are no leaks.
80719         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
80721         [BZ #3253]
80722         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
80723         time, rather allocate increasingly bigger arrays of pointers, if
80724         possible with alloca, if too large with malloc.
80726 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
80728         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
80729         Problem reported by H.Merijn Brand in
80730         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
80731         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
80732         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
80734 2007-10-15  Bruno Haible  <bruno@clisp.org>
80736         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
80737         with explicit rpl_ prefix.
80738         * lib/fopen.c (fopen): Likewise.
80739         * lib/freopen.c (freopen): Likewise.
80740         * lib/iconv.c (iconv): Likewise.
80741         * lib/iconv_close.c (iconv_close): Likewise.
80743 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80745         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
80747 2007-10-15  Bruno Haible  <bruno@clisp.org>
80749         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
80750         <stddef.h> instead of <stdlib.h> since we only need NULL.
80751         Reported by Ben Pfaff <blp@cs.stanford.edu>.
80753 2007-10-15  Bruno Haible  <bruno@clisp.org>
80755         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
80756         Replace paragraph talking about LIBOBJS.
80757         Reported by Colin Watson <cjwatson@debian.org>.
80759 2007-10-15  Bruno Haible  <bruno@clisp.org>
80761         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
80762         <stdlib.h> before using NULL.
80764 2007-10-15  Simon Josefsson  <simon@josefsson.org>
80766         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
80767         Reported by Albert Chin <china@thewrittenword.com>.
80769 2007-10-14  Bruno Haible  <bruno@clisp.org>
80771         * modules/iconv_open-utf-tests: New file.
80772         * tests/test-iconv-utf.c: New file.
80774         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
80775         * modules/iconv_open-utf: New file.
80776         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
80777         (iconv, iconv_close): New declarations.
80778         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
80779         be defined.
80780         (iconv_open): Add special handling of conversion between UTF-8 and
80781         UTF-{16,32}{BE,LE}.
80782         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
80783         * lib/iconv_close.c: New file.
80784         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
80785         gl_FUNC_ICONV_OPEN.
80786         (gl_FUNC_ICONV_OPEN): Use it.
80787         (gl_FUNC_ICONV_OPEN_UTF): New macro.
80788         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
80789         and REPLACE_ICONV_UTF.
80790         * modules/iconv_open (Depends-on): Add c-strcase.
80791         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
80792         ICONV_CONST.
80793         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
80795 2007-10-13  Albert Chin  <china@thewrittenword.com>
80796             Bruno Haible  <bruno@clisp.org>
80798         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
80799         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
80801 2007-10-13  Bruno Haible  <bruno@clisp.org>
80803         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
80804         defined, use the ISO C99 inline semantics.
80805         * lib/argp.h (ARGP_EI): Likewise.
80807 2007-10-13  Bruno Haible  <bruno@clisp.org>
80809         Handle 'inline' change in gcc 4.3.0.
80810         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
80811         argp_fmtstream_write, argp_fmtstream_set_lmargin,
80812         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
80813         argp_fmtstream_point): Disable 'extern' declaration if the function
80814         definition is going to be provided inline.
80815         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
80816         semantics, not the ISO C99 inline semantics.
80817         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
80818         'extern' declaration if the function definition is going to be provided
80819         inline.
80820         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
80821         the GNU C inline semantics, not the ISO C99 inline semantics. With
80822         GCC 4.2, avoid a warning.
80824 2007-10-13  Bruno Haible  <bruno@clisp.org>
80826         * lib/freading.h (freading): Enable the use of __freading for
80827         glibc >= 2.7.
80828         * lib/freading.c (freading): Likewise.
80830 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
80832         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
80833         "warning: C99 inline functions are not supported; using GNU89".
80835 2007-10-12  Bruno Haible  <bruno@clisp.org>
80837         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
80838         of 2.
80839         * tests/test-ceilf2.c: New file.
80840         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
80842         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
80843         * modules/ceilf-tests: Update.
80845 2007-10-12  Bruno Haible  <bruno@clisp.org>
80847         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
80848         of 2.
80849         * tests/test-floorf2.c: New file.
80850         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
80852         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
80853         * modules/floorf-tests: Update.
80855 2007-10-12  Bruno Haible  <bruno@clisp.org>
80857         * tests/test-trunc2.c: New file.
80858         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
80860         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
80861         * modules/trunc-tests: Update.
80863 2007-10-12  Bruno Haible  <bruno@clisp.org>
80865         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
80866         of 2.
80867         * tests/test-truncf2.c: New file.
80868         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
80870         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
80871         * modules/truncf-tests: Update.
80873 2007-10-11  Eric Blake  <ebb9@byu.net>
80875         Don't claim strerror is broken on Interix.
80876         * doc/functions/strerror.texi (strerror): Known broken systems are
80877         now Solaris 8, and not Interix.
80878         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
80879         Interix on cross-compile.
80880         Reported by Martin Koeppe in
80881         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
80883 2007-10-11  Bruno Haible  <bruno@clisp.org>
80885         * modules/i-ring-tests: New file.
80886         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
80887         instead of assert.
80889 2007-10-11  Bruno Haible  <bruno@clisp.org>
80891         * modules/filenamecat-tests: New file.
80892         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
80893         * lib/filenamecat.c: Remove test code.
80895 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
80897         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
80899         * lib/strerror.c: Include <string.h> always, to test interface,
80900         and to remove the need for the dummy.
80901         Include intprops.h to compute width instead of doing it ourselves
80902         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
80903         (strerror): Define it to return NULL if there's no system strerror.
80904         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
80905         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
80906         ancient pre-strerror Unix systems well any more.  Saying "unknown
80907         system error" is enough.
80908         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
80909         simpler strerror.c implementation.
80910         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
80911         Simplify the tests to reflect the simpler strerror implementation.
80912         * modules/strerror (Depends-on): Add intprops.
80914 2007-10-09  Eric Blake  <ebb9@byu.net>
80916         Silence test-fpending.
80917         * modules/fpending-tests (Files): Add wrapper script.
80918         * tests/test-fpending.sh: New file.
80920 2007-10-09  Bruno Haible  <bruno@clisp.org>
80922         * MODULES.html.sh (func_module): Don't create a hyperlink for
80923         function names like 'printf_frexp'.
80924         (Misc): Add crc, memxor.
80925         (Characteristics of floating types): New section.
80926         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
80927         isnanf-nolibm, signbit, trunc, truncf, truncl.
80928         (Enhancements for ISO C 99 functions): New subsection Input/output.
80929         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
80930         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
80931         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
80932         (Compatibility checks for POSIX:2001 functions): Add clock-time.
80933         (Enhancements for POSIX:2001 functions): Add chdir-long.
80934         (File system functions): Add areadlink, chdir-safer, read-file.
80935         Remove cycle-check.
80936         (File system as inode set): New section.
80937         (Date and time): Add gethrxtime.
80938         (Multithreading): Add openmp.
80939         (Internationalization functions): Add localename.
80940         (Unicode string functions): Add unistr/u*-mbsnlen.
80941         (Support for maintaining and releasing projects): Add git-version-gen.
80942         (Lone files): Remove directories.
80944 2007-10-08  Ben Pfaff  <blp@gnu.org>
80946         * lib/xmalloca.h: Fix typo in comment.
80948 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
80950         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
80951         when avoiding problems with integer overflow.  Use a portable test
80952         instead.
80954 2007-10-08  Simon Josefsson  <simon@josefsson.org>
80956         * modules/dummy (License): Change to LGPLv2+.
80957         * modules/float (License): Likewise
80958         * modules/realloc (License): Likewise
80959         * modules/stdlib (License): Likewise
80961 2007-10-07  Bruno Haible  <bruno@clisp.org>
80963         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
80964         * floor.c (TWO_MANT_DIG): Likewise.
80965         * ceil.c (TWO_MANT_DIG): Likewise.
80966         Reported by Ben Pfaff.
80968 2007-10-07  Bruno Haible  <bruno@clisp.org>
80970         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
80971         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
80972         * lib/frexp.c (FUNC): Likewise.
80973         * lib/printf-frexp.h (printf_frexp): Likewise.
80974         * lib/printf-frexpl.h (printf_frexpl): Likewise.
80975         * lib/printf-frexp.c (FUNC): Likewise.
80976         Suggested by Jim Meyering.
80978 2007-10-07  Jim Meyering  <meyering@redhat.com>
80980         Make xnanosleep's integer overflow test more robust.
80981         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
80982         so that gcc-4.3.0 doesn't optimize away this test for overflow.
80984 2007-10-07  Bruno Haible  <bruno@clisp.org>
80986         * NEWS: Mention the license change.
80988         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
80989         abbreviations in the modules files.
80991         Change copyright notice from GPLv2+ to GPLv3+.
80992         * README: Change copyright notice.
80993         * MODULES.html.sh: Likewise.
80994         * build-aux/bootstrap.conf: Likewise.
80995         * build-aux/config.libpath: Likewise.
80996         * build-aux/csharpcomp.sh.in: Likewise.
80997         * build-aux/csharpexec.sh.in: Likewise.
80998         * build-aux/install-reloc: Likewise.
80999         * build-aux/javacomp.sh.in: Likewise.
81000         * build-aux/javaexec.sh.in: Likewise.
81001         * build-aux/ldd.sh.in: Likewise.
81002         * build-aux/reloc-ldflags: Likewise.
81003         * build-aux/relocatable.sh.in: Likewise.
81004         * build-aux/x-to-1.in: Likewise.
81005         * check-module: Likewise.
81006         * config/srclistvars.sh: Likewise.
81007         * gnulib-tool: Likewise.
81008         * lib/acl-internal.h: Likewise.
81009         * lib/acl.c: Likewise.
81010         * lib/acl.h: Likewise.
81011         * lib/acl_entries.c: Likewise.
81012         * lib/areadlink-with-size.c: Likewise.
81013         * lib/areadlink.c: Likewise.
81014         * lib/areadlink.h: Likewise.
81015         * lib/argmatch.c: Likewise.
81016         * lib/argmatch.h: Likewise.
81017         * lib/argp-ba.c: Likewise.
81018         * lib/argp-eexst.c: Likewise.
81019         * lib/argp-fmtstream.c: Likewise.
81020         * lib/argp-fmtstream.h: Likewise.
81021         * lib/argp-fs-xinl.c: Likewise.
81022         * lib/argp-help.c: Likewise.
81023         * lib/argp-namefrob.h: Likewise.
81024         * lib/argp-parse.c: Likewise.
81025         * lib/argp-pin.c: Likewise.
81026         * lib/argp-pv.c: Likewise.
81027         * lib/argp-pvh.c: Likewise.
81028         * lib/argp-xinl.c: Likewise.
81029         * lib/argp.h: Likewise.
81030         * lib/at-func.c: Likewise.
81031         * lib/atanl.c: Likewise.
81032         * lib/backupfile.c: Likewise.
81033         * lib/backupfile.h: Likewise.
81034         * lib/basename.c: Likewise.
81035         * lib/binary-io.h: Likewise.
81036         * lib/byteswap.in.h: Likewise.
81037         * lib/c-stack.c: Likewise.
81038         * lib/c-stack.h: Likewise.
81039         * lib/c-strcasestr.c: Likewise.
81040         * lib/c-strcasestr.h: Likewise.
81041         * lib/c-strstr.c: Likewise.
81042         * lib/c-strstr.h: Likewise.
81043         * lib/c-strtod.c: Likewise.
81044         * lib/calloc.c: Likewise.
81045         * lib/canon-host.c: Likewise.
81046         * lib/canon-host.h: Likewise.
81047         * lib/canonicalize-lgpl.c: Likewise.
81048         * lib/canonicalize.c: Likewise.
81049         * lib/canonicalize.h: Likewise.
81050         * lib/ceil.c: Likewise.
81051         * lib/ceilf.c: Likewise.
81052         * lib/ceill.c: Likewise.
81053         * lib/chdir-long.c: Likewise.
81054         * lib/chdir-long.h: Likewise.
81055         * lib/chdir-safer.c: Likewise.
81056         * lib/chdir-safer.h: Likewise.
81057         * lib/chown.c: Likewise.
81058         * lib/classpath.c: Likewise.
81059         * lib/classpath.h: Likewise.
81060         * lib/clean-temp.c: Likewise.
81061         * lib/clean-temp.h: Likewise.
81062         * lib/cloexec.c: Likewise.
81063         * lib/close-stream.c: Likewise.
81064         * lib/closein.c: Likewise.
81065         * lib/closein.h: Likewise.
81066         * lib/closeout.c: Likewise.
81067         * lib/closeout.h: Likewise.
81068         * lib/concat-filename.c: Likewise.
81069         * lib/copy-file.c: Likewise.
81070         * lib/copy-file.h: Likewise.
81071         * lib/count-one-bits.h: Likewise.
81072         * lib/crc.c: Likewise.
81073         * lib/crc.h: Likewise.
81074         * lib/creat-safer.c: Likewise.
81075         * lib/csharpcomp.c: Likewise.
81076         * lib/csharpcomp.h: Likewise.
81077         * lib/csharpexec.c: Likewise.
81078         * lib/csharpexec.h: Likewise.
81079         * lib/cycle-check.c: Likewise.
81080         * lib/cycle-check.h: Likewise.
81081         * lib/diacrit.c: Likewise.
81082         * lib/diacrit.h: Likewise.
81083         * lib/diffseq.h: Likewise.
81084         * lib/dirchownmod.c: Likewise.
81085         * lib/dirent.in.h: Likewise.
81086         * lib/dirfd.c: Likewise.
81087         * lib/dirfd.h: Likewise.
81088         * lib/dirname.c: Likewise.
81089         * lib/dirname.h: Likewise.
81090         * lib/dummy.c: Likewise.
81091         * lib/dup-safer.c: Likewise.
81092         * lib/dup2.c: Likewise.
81093         * lib/eealloc.h: Likewise.
81094         * lib/error.c: Likewise.
81095         * lib/error.h: Likewise.
81096         * lib/euidaccess.c: Likewise.
81097         * lib/exclude.c: Likewise.
81098         * lib/exclude.h: Likewise.
81099         * lib/execute.c: Likewise.
81100         * lib/execute.h: Likewise.
81101         * lib/exitfail.c: Likewise.
81102         * lib/exitfail.h: Likewise.
81103         * lib/expl.c: Likewise.
81104         * lib/fatal-signal.c: Likewise.
81105         * lib/fatal-signal.h: Likewise.
81106         * lib/fbufmode.c: Likewise.
81107         * lib/fbufmode.h: Likewise.
81108         * lib/fchdir.c: Likewise.
81109         * lib/fchmodat.c: Likewise.
81110         * lib/fchownat.c: Likewise.
81111         * lib/fcntl--.h: Likewise.
81112         * lib/fcntl-safer.h: Likewise.
81113         * lib/fcntl.in.h: Likewise.
81114         * lib/fd-safer.c: Likewise.
81115         * lib/fflush.c: Likewise.
81116         * lib/file-has-acl.c: Likewise.
81117         * lib/file-set.c: Likewise.
81118         * lib/file-type.c: Likewise.
81119         * lib/file-type.h: Likewise.
81120         * lib/fileblocks.c: Likewise.
81121         * lib/filemode.c: Likewise.
81122         * lib/filemode.h: Likewise.
81123         * lib/filename.h: Likewise.
81124         * lib/filenamecat.c: Likewise.
81125         * lib/filenamecat.h: Likewise.
81126         * lib/findprog.c: Likewise.
81127         * lib/findprog.h: Likewise.
81128         * lib/float.in.h: Likewise.
81129         * lib/floor.c: Likewise.
81130         * lib/floorf.c: Likewise.
81131         * lib/floorl.c: Likewise.
81132         * lib/fopen-safer.c: Likewise.
81133         * lib/fopen.c: Likewise.
81134         * lib/fpending.c: Likewise.
81135         * lib/fpending.h: Likewise.
81136         * lib/fprintf.c: Likewise.
81137         * lib/fprintftime.h: Likewise.
81138         * lib/fpucw.h: Likewise.
81139         * lib/fpurge.c: Likewise.
81140         * lib/fpurge.h: Likewise.
81141         * lib/freadable.c: Likewise.
81142         * lib/freadable.h: Likewise.
81143         * lib/freadahead.c: Likewise.
81144         * lib/freadahead.h: Likewise.
81145         * lib/freading.c: Likewise.
81146         * lib/freading.h: Likewise.
81147         * lib/free.c: Likewise.
81148         * lib/freopen.c: Likewise.
81149         * lib/frexp.c: Likewise.
81150         * lib/frexpl.c: Likewise.
81151         * lib/fseek.c: Likewise.
81152         * lib/fseterr.c: Likewise.
81153         * lib/fseterr.h: Likewise.
81154         * lib/fstatat.c: Likewise.
81155         * lib/fstrcmp.c: Likewise.
81156         * lib/fstrcmp.h: Likewise.
81157         * lib/fsusage.c: Likewise.
81158         * lib/fsusage.h: Likewise.
81159         * lib/ftell.c: Likewise.
81160         * lib/ftello.c: Likewise.
81161         * lib/fts-cycle.c: Likewise.
81162         * lib/fts.c: Likewise.
81163         * lib/fts_.h: Likewise.
81164         * lib/full-read.c: Likewise.
81165         * lib/full-read.h: Likewise.
81166         * lib/full-write.c: Likewise.
81167         * lib/full-write.h: Likewise.
81168         * lib/fwritable.c: Likewise.
81169         * lib/fwritable.h: Likewise.
81170         * lib/fwriteerror.c: Likewise.
81171         * lib/fwriteerror.h: Likewise.
81172         * lib/fwriting.c: Likewise.
81173         * lib/fwriting.h: Likewise.
81174         * lib/gcd.c: Likewise.
81175         * lib/gcd.h: Likewise.
81176         * lib/getcwd.c: Likewise.
81177         * lib/getdate.h: Likewise.
81178         * lib/getdate.y: Likewise.
81179         * lib/getdomainname.c: Likewise.
81180         * lib/getdomainname.h: Likewise.
81181         * lib/getgroups.c: Likewise.
81182         * lib/gethostname.c: Likewise.
81183         * lib/gethrxtime.c: Likewise.
81184         * lib/gethrxtime.h: Likewise.
81185         * lib/getloadavg.c: Likewise.
81186         * lib/getndelim2.c: Likewise.
81187         * lib/getndelim2.h: Likewise.
81188         * lib/getnline.c: Likewise.
81189         * lib/getnline.h: Likewise.
81190         * lib/getopt.c: Likewise.
81191         * lib/getopt.in.h: Likewise.
81192         * lib/getopt1.c: Likewise.
81193         * lib/getopt_int.h: Likewise.
81194         * lib/getpagesize.h: Likewise.
81195         * lib/getsubopt.c: Likewise.
81196         * lib/gettime.c: Likewise.
81197         * lib/getugroups.c: Likewise.
81198         * lib/getugroups.h: Likewise.
81199         * lib/getusershell.c: Likewise.
81200         * lib/gl_anyavltree_list1.h: Likewise.
81201         * lib/gl_anyavltree_list2.h: Likewise.
81202         * lib/gl_anyhash_list1.h: Likewise.
81203         * lib/gl_anyhash_list2.h: Likewise.
81204         * lib/gl_anylinked_list1.h: Likewise.
81205         * lib/gl_anylinked_list2.h: Likewise.
81206         * lib/gl_anyrbtree_list1.h: Likewise.
81207         * lib/gl_anyrbtree_list2.h: Likewise.
81208         * lib/gl_anytree_list1.h: Likewise.
81209         * lib/gl_anytree_list2.h: Likewise.
81210         * lib/gl_anytree_oset.h: Likewise.
81211         * lib/gl_anytreehash_list1.h: Likewise.
81212         * lib/gl_anytreehash_list2.h: Likewise.
81213         * lib/gl_array_list.c: Likewise.
81214         * lib/gl_array_list.h: Likewise.
81215         * lib/gl_array_oset.c: Likewise.
81216         * lib/gl_array_oset.h: Likewise.
81217         * lib/gl_avltree_list.c: Likewise.
81218         * lib/gl_avltree_list.h: Likewise.
81219         * lib/gl_avltree_oset.c: Likewise.
81220         * lib/gl_avltree_oset.h: Likewise.
81221         * lib/gl_avltreehash_list.c: Likewise.
81222         * lib/gl_avltreehash_list.h: Likewise.
81223         * lib/gl_carray_list.c: Likewise.
81224         * lib/gl_carray_list.h: Likewise.
81225         * lib/gl_linked_list.c: Likewise.
81226         * lib/gl_linked_list.h: Likewise.
81227         * lib/gl_linkedhash_list.c: Likewise.
81228         * lib/gl_linkedhash_list.h: Likewise.
81229         * lib/gl_list.c: Likewise.
81230         * lib/gl_list.h: Likewise.
81231         * lib/gl_oset.c: Likewise.
81232         * lib/gl_oset.h: Likewise.
81233         * lib/gl_rbtree_list.c: Likewise.
81234         * lib/gl_rbtree_list.h: Likewise.
81235         * lib/gl_rbtree_oset.c: Likewise.
81236         * lib/gl_rbtree_oset.h: Likewise.
81237         * lib/gl_rbtreehash_list.c: Likewise.
81238         * lib/gl_rbtreehash_list.h: Likewise.
81239         * lib/gl_sublist.c: Likewise.
81240         * lib/gl_sublist.h: Likewise.
81241         * lib/group-member.c: Likewise.
81242         * lib/group-member.h: Likewise.
81243         * lib/hard-locale.c: Likewise.
81244         * lib/hard-locale.h: Likewise.
81245         * lib/hash-pjw.c: Likewise.
81246         * lib/hash-pjw.h: Likewise.
81247         * lib/hash-triple.c: Likewise.
81248         * lib/hash.c: Likewise.
81249         * lib/hash.h: Likewise.
81250         * lib/human.c: Likewise.
81251         * lib/human.h: Likewise.
81252         * lib/i-ring.c: Likewise.
81253         * lib/i-ring.h: Likewise.
81254         * lib/idcache.c: Likewise.
81255         * lib/imaxabs.c: Likewise.
81256         * lib/imaxdiv.c: Likewise.
81257         * lib/inet_pton.c: Likewise.
81258         * lib/inet_pton.h: Likewise.
81259         * lib/intprops.h: Likewise.
81260         * lib/inttostr.c: Likewise.
81261         * lib/inttostr.h: Likewise.
81262         * lib/inttypes.in.h: Likewise.
81263         * lib/isapipe.c: Likewise.
81264         * lib/isdir.c: Likewise.
81265         * lib/isnan.c: Likewise.
81266         * lib/isnan.h: Likewise.
81267         * lib/isnanf.c: Likewise.
81268         * lib/isnanf.h: Likewise.
81269         * lib/isnanl-nolibm.h: Likewise.
81270         * lib/isnanl.c: Likewise.
81271         * lib/isnanl.h: Likewise.
81272         * lib/javacomp.c: Likewise.
81273         * lib/javacomp.h: Likewise.
81274         * lib/javaexec.c: Likewise.
81275         * lib/javaexec.h: Likewise.
81276         * lib/javaversion.c: Likewise.
81277         * lib/javaversion.h: Likewise.
81278         * lib/javaversion.java: Likewise.
81279         * lib/lbrkprop.h: Likewise.
81280         * lib/lchmod.h: Likewise.
81281         * lib/lchown.c: Likewise.
81282         * lib/ldexpl.c: Likewise.
81283         * lib/linebreak.c: Likewise.
81284         * lib/linebreak.h: Likewise.
81285         * lib/linebuffer.c: Likewise.
81286         * lib/linebuffer.h: Likewise.
81287         * lib/locale.in.h: Likewise.
81288         * lib/logl.c: Likewise.
81289         * lib/long-options.c: Likewise.
81290         * lib/long-options.h: Likewise.
81291         * lib/lstat.c: Likewise.
81292         * lib/lstat.h: Likewise.
81293         * lib/math.in.h: Likewise.
81294         * lib/mbchar.c: Likewise.
81295         * lib/mbchar.h: Likewise.
81296         * lib/mbfile.h: Likewise.
81297         * lib/mbiter.h: Likewise.
81298         * lib/mbscasecmp.c: Likewise.
81299         * lib/mbscasestr.c: Likewise.
81300         * lib/mbschr.c: Likewise.
81301         * lib/mbscspn.c: Likewise.
81302         * lib/mbslen.c: Likewise.
81303         * lib/mbsncasecmp.c: Likewise.
81304         * lib/mbsnlen.c: Likewise.
81305         * lib/mbspbrk.c: Likewise.
81306         * lib/mbspcasecmp.c: Likewise.
81307         * lib/mbsrchr.c: Likewise.
81308         * lib/mbssep.c: Likewise.
81309         * lib/mbsspn.c: Likewise.
81310         * lib/mbsstr.c: Likewise.
81311         * lib/mbstok_r.c: Likewise.
81312         * lib/mbswidth.c: Likewise.
81313         * lib/mbswidth.h: Likewise.
81314         * lib/mbuiter.h: Likewise.
81315         * lib/memcasecmp.c: Likewise.
81316         * lib/memcasecmp.h: Likewise.
81317         * lib/memchr.c: Likewise.
81318         * lib/memcmp.c: Likewise.
81319         * lib/memcoll.c: Likewise.
81320         * lib/memcoll.h: Likewise.
81321         * lib/memcpy.c: Likewise.
81322         * lib/memrchr.c: Likewise.
81323         * lib/mkancesdirs.c: Likewise.
81324         * lib/mkdir-p.c: Likewise.
81325         * lib/mkdir-p.h: Likewise.
81326         * lib/mkdir.c: Likewise.
81327         * lib/mkdirat.c: Likewise.
81328         * lib/mkdtemp.c: Likewise.
81329         * lib/mkstemp-safer.c: Likewise.
81330         * lib/mkstemp.c: Likewise.
81331         * lib/modechange.c: Likewise.
81332         * lib/modechange.h: Likewise.
81333         * lib/mountlist.c: Likewise.
81334         * lib/mountlist.h: Likewise.
81335         * lib/mpsort.c: Likewise.
81336         * lib/nanosleep.c: Likewise.
81337         * lib/obstack.c: Likewise.
81338         * lib/obstack.h: Likewise.
81339         * lib/open-safer.c: Likewise.
81340         * lib/open.c: Likewise.
81341         * lib/openat-die.c: Likewise.
81342         * lib/openat-priv.h: Likewise.
81343         * lib/openat-proc.c: Likewise.
81344         * lib/openat.c: Likewise.
81345         * lib/openat.h: Likewise.
81346         * lib/pagealign_alloc.c: Likewise.
81347         * lib/pagealign_alloc.h: Likewise.
81348         * lib/physmem.c: Likewise.
81349         * lib/physmem.h: Likewise.
81350         * lib/pipe-safer.c: Likewise.
81351         * lib/pipe.c: Likewise.
81352         * lib/pipe.h: Likewise.
81353         * lib/posixtm.c: Likewise.
81354         * lib/posixtm.h: Likewise.
81355         * lib/posixver.c: Likewise.
81356         * lib/printf-frexp.c: Likewise.
81357         * lib/printf-frexp.h: Likewise.
81358         * lib/printf-frexpl.c: Likewise.
81359         * lib/printf-frexpl.h: Likewise.
81360         * lib/printf.c: Likewise.
81361         * lib/progname.c: Likewise.
81362         * lib/progname.h: Likewise.
81363         * lib/progreloc.c: Likewise.
81364         * lib/putenv.c: Likewise.
81365         * lib/quote.c: Likewise.
81366         * lib/quote.h: Likewise.
81367         * lib/quotearg.c: Likewise.
81368         * lib/quotearg.h: Likewise.
81369         * lib/raise.c: Likewise.
81370         * lib/readline.c: Likewise.
81371         * lib/readline.h: Likewise.
81372         * lib/readlink.c: Likewise.
81373         * lib/readtokens.c: Likewise.
81374         * lib/readtokens.h: Likewise.
81375         * lib/readtokens0.c: Likewise.
81376         * lib/readtokens0.h: Likewise.
81377         * lib/readutmp.c: Likewise.
81378         * lib/readutmp.h: Likewise.
81379         * lib/realloc.c: Likewise.
81380         * lib/relocwrapper.c: Likewise.
81381         * lib/rename-dest-slash.c: Likewise.
81382         * lib/rename.c: Likewise.
81383         * lib/rmdir.c: Likewise.
81384         * lib/rpmatch.c: Likewise.
81385         * lib/safe-read.c: Likewise.
81386         * lib/safe-read.h: Likewise.
81387         * lib/safe-write.c: Likewise.
81388         * lib/safe-write.h: Likewise.
81389         * lib/same-inode.h: Likewise.
81390         * lib/same.c: Likewise.
81391         * lib/same.h: Likewise.
81392         * lib/save-cwd.c: Likewise.
81393         * lib/save-cwd.h: Likewise.
81394         * lib/savedir.c: Likewise.
81395         * lib/savedir.h: Likewise.
81396         * lib/savewd.c: Likewise.
81397         * lib/savewd.h: Likewise.
81398         * lib/search.in.h: Likewise.
81399         * lib/setenv.c: Likewise.
81400         * lib/setenv.h: Likewise.
81401         * lib/settime.c: Likewise.
81402         * lib/sh-quote.c: Likewise.
81403         * lib/sh-quote.h: Likewise.
81404         * lib/sig2str.c: Likewise.
81405         * lib/sig2str.h: Likewise.
81406         * lib/signal.in.h: Likewise.
81407         * lib/signbitd.c: Likewise.
81408         * lib/signbitf.c: Likewise.
81409         * lib/signbitl.c: Likewise.
81410         * lib/sigprocmask.c: Likewise.
81411         * lib/sincosl.c: Likewise.
81412         * lib/sleep.c: Likewise.
81413         * lib/sprintf.c: Likewise.
81414         * lib/sqrtl.c: Likewise.
81415         * lib/stat-time.h: Likewise.
81416         * lib/stdio--.h: Likewise.
81417         * lib/stdio-safer.h: Likewise.
81418         * lib/stdlib--.h: Likewise.
81419         * lib/stdlib-safer.h: Likewise.
81420         * lib/stdlib.in.h: Likewise.
81421         * lib/stpcpy.c: Likewise.
81422         * lib/stpncpy.c: Likewise.
81423         * lib/strchrnul.c: Likewise.
81424         * lib/strcspn.c: Likewise.
81425         * lib/strerror.c: Likewise.
81426         * lib/strftime.c: Likewise.
81427         * lib/strftime.h: Likewise.
81428         * lib/striconveh.c: Likewise.
81429         * lib/striconveh.h: Likewise.
81430         * lib/striconveha.c: Likewise.
81431         * lib/striconveha.h: Likewise.
81432         * lib/stripslash.c: Likewise.
81433         * lib/strnlen1.c: Likewise.
81434         * lib/strnlen1.h: Likewise.
81435         * lib/strtod.c: Likewise.
81436         * lib/strtoimax.c: Likewise.
81437         * lib/strtok_r.c: Likewise.
81438         * lib/strtol.c: Likewise.
81439         * lib/strtoll.c: Likewise.
81440         * lib/strtoul.c: Likewise.
81441         * lib/strtoull.c: Likewise.
81442         * lib/sysexits.in.h: Likewise.
81443         * lib/tempname.c: Likewise.
81444         * lib/tempname.h: Likewise.
81445         * lib/timespec.h: Likewise.
81446         * lib/tls.c: Likewise.
81447         * lib/tls.h: Likewise.
81448         * lib/tmpdir.c: Likewise.
81449         * lib/tmpdir.h: Likewise.
81450         * lib/tmpfile-safer.c: Likewise.
81451         * lib/tmpfile.c: Likewise.
81452         * lib/trigl.c: Likewise.
81453         * lib/trigl.h: Likewise.
81454         * lib/trim.c: Likewise.
81455         * lib/trim.h: Likewise.
81456         * lib/trunc.c: Likewise.
81457         * lib/truncf.c: Likewise.
81458         * lib/truncl.c: Likewise.
81459         * lib/tsearch.c: Likewise.
81460         * lib/unicodeio.c: Likewise.
81461         * lib/unicodeio.h: Likewise.
81462         * lib/unistd--.h: Likewise.
81463         * lib/unistd-safer.h: Likewise.
81464         * lib/unistdio/ulc-fprintf.c: Likewise.
81465         * lib/unistdio/ulc-vfprintf.c: Likewise.
81466         * lib/unlinkdir.c: Likewise.
81467         * lib/unlinkdir.h: Likewise.
81468         * lib/unlocked-io.h: Likewise.
81469         * lib/unsetenv.c: Likewise.
81470         * lib/userspec.c: Likewise.
81471         * lib/utime.c: Likewise.
81472         * lib/utimecmp.c: Likewise.
81473         * lib/utimecmp.h: Likewise.
81474         * lib/utimens.c: Likewise.
81475         * lib/verify.h: Likewise.
81476         * lib/verror.c: Likewise.
81477         * lib/verror.h: Likewise.
81478         * lib/version-etc-fsf.c: Likewise.
81479         * lib/version-etc.c: Likewise.
81480         * lib/version-etc.h: Likewise.
81481         * lib/vfprintf.c: Likewise.
81482         * lib/vprintf.c: Likewise.
81483         * lib/vsprintf.c: Likewise.
81484         * lib/w32spawn.h: Likewise.
81485         * lib/wait-process.c: Likewise.
81486         * lib/wait-process.h: Likewise.
81487         * lib/wcwidth.c: Likewise.
81488         * lib/write-any-file.c: Likewise.
81489         * lib/xalloc-die.c: Likewise.
81490         * lib/xalloc.h: Likewise.
81491         * lib/xasprintf.c: Likewise.
81492         * lib/xgetcwd.c: Likewise.
81493         * lib/xgetcwd.h: Likewise.
81494         * lib/xgetdomainname.c: Likewise.
81495         * lib/xgetdomainname.h: Likewise.
81496         * lib/xgethostname.c: Likewise.
81497         * lib/xmalloc.c: Likewise.
81498         * lib/xmalloca.c: Likewise.
81499         * lib/xmalloca.h: Likewise.
81500         * lib/xmemcoll.c: Likewise.
81501         * lib/xnanosleep.c: Likewise.
81502         * lib/xreadlink.c: Likewise.
81503         * lib/xreadlink.h: Likewise.
81504         * lib/xsetenv.c: Likewise.
81505         * lib/xsetenv.h: Likewise.
81506         * lib/xstriconv.c: Likewise.
81507         * lib/xstriconv.h: Likewise.
81508         * lib/xstrndup.c: Likewise.
81509         * lib/xstrndup.h: Likewise.
81510         * lib/xstrtod.c: Likewise.
81511         * lib/xstrtod.h: Likewise.
81512         * lib/xstrtol-error.c: Likewise.
81513         * lib/xstrtol.c: Likewise.
81514         * lib/xstrtol.h: Likewise.
81515         * lib/xtime.h: Likewise.
81516         * lib/xvasprintf.c: Likewise.
81517         * lib/xvasprintf.h: Likewise.
81518         * lib/yesno.c: Likewise.
81519         * lib/yesno.h: Likewise.
81520         * posix-modules: Likewise.
81521         * tests/test-alloca-opt.c: Likewise.
81522         * tests/test-arcfour.c: Likewise.
81523         * tests/test-arctwo.c: Likewise.
81524         * tests/test-argmatch.c: Likewise.
81525         * tests/test-argp-2.sh: Likewise.
81526         * tests/test-argp.c: Likewise.
81527         * tests/test-arpa_inet.c: Likewise.
81528         * tests/test-array_list.c: Likewise.
81529         * tests/test-array_oset.c: Likewise.
81530         * tests/test-atexit.c: Likewise.
81531         * tests/test-avltree_list.c: Likewise.
81532         * tests/test-avltree_oset.c: Likewise.
81533         * tests/test-avltreehash_list.c: Likewise.
81534         * tests/test-base64.c: Likewise.
81535         * tests/test-binary-io.c: Likewise.
81536         * tests/test-byteswap.c: Likewise.
81537         * tests/test-c-ctype.c: Likewise.
81538         * tests/test-c-strcasecmp.c: Likewise.
81539         * tests/test-c-strcasestr.c: Likewise.
81540         * tests/test-c-strncasecmp.c: Likewise.
81541         * tests/test-c-strstr.c: Likewise.
81542         * tests/test-canonicalize-lgpl.c: Likewise.
81543         * tests/test-canonicalize.c: Likewise.
81544         * tests/test-carray_list.c: Likewise.
81545         * tests/test-ceilf.c: Likewise.
81546         * tests/test-ceill.c: Likewise.
81547         * tests/test-count-one-bits.c: Likewise.
81548         * tests/test-crc.c: Likewise.
81549         * tests/test-dirname.c: Likewise.
81550         * tests/test-fbufmode.c: Likewise.
81551         * tests/test-fcntl.c: Likewise.
81552         * tests/test-fflush.c: Likewise.
81553         * tests/test-floorf.c: Likewise.
81554         * tests/test-floorl.c: Likewise.
81555         * tests/test-fopen.c: Likewise.
81556         * tests/test-fprintf-posix.c: Likewise.
81557         * tests/test-fprintf-posix.h: Likewise.
81558         * tests/test-fpurge.c: Likewise.
81559         * tests/test-freadable.c: Likewise.
81560         * tests/test-freadahead.c: Likewise.
81561         * tests/test-freading.c: Likewise.
81562         * tests/test-freopen.c: Likewise.
81563         * tests/test-frexp.c: Likewise.
81564         * tests/test-frexpl.c: Likewise.
81565         * tests/test-fseek.c: Likewise.
81566         * tests/test-fseeko.c: Likewise.
81567         * tests/test-fseterr.c: Likewise.
81568         * tests/test-fstrcmp.c: Likewise.
81569         * tests/test-ftell.c: Likewise.
81570         * tests/test-ftello.c: Likewise.
81571         * tests/test-fwritable.c: Likewise.
81572         * tests/test-fwriting.c: Likewise.
81573         * tests/test-getaddrinfo.c: Likewise.
81574         * tests/test-getpass.c: Likewise.
81575         * tests/test-gettimeofday.c: Likewise.
81576         * tests/test-hmac-md5.c: Likewise.
81577         * tests/test-hmac-sha1.c: Likewise.
81578         * tests/test-iconv.c: Likewise.
81579         * tests/test-iconvme.c: Likewise.
81580         * tests/test-inttypes.c: Likewise.
81581         * tests/test-isnan.c: Likewise.
81582         * tests/test-isnanf.c: Likewise.
81583         * tests/test-isnanl-nolibm.c: Likewise.
81584         * tests/test-isnanl.c: Likewise.
81585         * tests/test-isnanl.h: Likewise.
81586         * tests/test-ldexpl.c: Likewise.
81587         * tests/test-linked_list.c: Likewise.
81588         * tests/test-linkedhash_list.c: Likewise.
81589         * tests/test-locale.c: Likewise.
81590         * tests/test-localename.c: Likewise.
81591         * tests/test-lock.c: Likewise.
81592         * tests/test-lseek.c: Likewise.
81593         * tests/test-malloca.c: Likewise.
81594         * tests/test-math.c: Likewise.
81595         * tests/test-mbscasecmp.c: Likewise.
81596         * tests/test-mbscasestr1.c: Likewise.
81597         * tests/test-mbscasestr2.c: Likewise.
81598         * tests/test-mbscasestr3.c: Likewise.
81599         * tests/test-mbscasestr4.c: Likewise.
81600         * tests/test-mbschr.c: Likewise.
81601         * tests/test-mbscspn.c: Likewise.
81602         * tests/test-mbsncasecmp.c: Likewise.
81603         * tests/test-mbspbrk.c: Likewise.
81604         * tests/test-mbspcasecmp.c: Likewise.
81605         * tests/test-mbsrchr.c: Likewise.
81606         * tests/test-mbsspn.c: Likewise.
81607         * tests/test-mbsstr1.c: Likewise.
81608         * tests/test-mbsstr2.c: Likewise.
81609         * tests/test-mbsstr3.c: Likewise.
81610         * tests/test-md5.c: Likewise.
81611         * tests/test-memmem.c: Likewise.
81612         * tests/test-netinet_in.c: Likewise.
81613         * tests/test-open.c: Likewise.
81614         * tests/test-printf-frexp.c: Likewise.
81615         * tests/test-printf-frexpl.c: Likewise.
81616         * tests/test-printf-posix.c: Likewise.
81617         * tests/test-printf-posix.h: Likewise.
81618         * tests/test-rbtree_list.c: Likewise.
81619         * tests/test-rbtree_oset.c: Likewise.
81620         * tests/test-rbtreehash_list.c: Likewise.
81621         * tests/test-read-file.c: Likewise.
81622         * tests/test-rijndael.c: Likewise.
81623         * tests/test-search.c: Likewise.
81624         * tests/test-signbit.c: Likewise.
81625         * tests/test-sleep.c: Likewise.
81626         * tests/test-snprintf-posix.c: Likewise.
81627         * tests/test-snprintf-posix.h: Likewise.
81628         * tests/test-snprintf.c: Likewise.
81629         * tests/test-sprintf-posix.c: Likewise.
81630         * tests/test-sprintf-posix.h: Likewise.
81631         * tests/test-stat-time.c: Likewise.
81632         * tests/test-stdbool.c: Likewise.
81633         * tests/test-stdint.c: Likewise.
81634         * tests/test-stdio.c: Likewise.
81635         * tests/test-stdlib.c: Likewise.
81636         * tests/test-stpncpy.c: Likewise.
81637         * tests/test-strcasestr.c: Likewise.
81638         * tests/test-striconv.c: Likewise.
81639         * tests/test-striconveh.c: Likewise.
81640         * tests/test-striconveha.c: Likewise.
81641         * tests/test-string.c: Likewise.
81642         * tests/test-sys_select.c: Likewise.
81643         * tests/test-sys_socket.c: Likewise.
81644         * tests/test-sys_stat.c: Likewise.
81645         * tests/test-sys_time.c: Likewise.
81646         * tests/test-sysexits.c: Likewise.
81647         * tests/test-time.c: Likewise.
81648         * tests/test-tls.c: Likewise.
81649         * tests/test-trunc.c: Likewise.
81650         * tests/test-truncf.c: Likewise.
81651         * tests/test-truncl.c: Likewise.
81652         * tests/test-unistd.c: Likewise.
81653         * tests/test-vasnprintf-posix.c: Likewise.
81654         * tests/test-vasnprintf-posix2.c: Likewise.
81655         * tests/test-vasnprintf.c: Likewise.
81656         * tests/test-vasprintf-posix.c: Likewise.
81657         * tests/test-vasprintf.c: Likewise.
81658         * tests/test-verify.c: Likewise.
81659         * tests/test-vfprintf-posix.c: Likewise.
81660         * tests/test-vprintf-posix.c: Likewise.
81661         * tests/test-vsnprintf-posix.c: Likewise.
81662         * tests/test-vsnprintf.c: Likewise.
81663         * tests/test-vsprintf-posix.c: Likewise.
81664         * tests/test-wchar.c: Likewise.
81665         * tests/test-wctype.c: Likewise.
81666         * tests/test-wcwidth.c: Likewise.
81667         * tests/test-xstrtol.c: Likewise.
81668         * tests/test-xvasprintf.c: Likewise.
81669         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
81670         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
81671         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
81672         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
81673         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
81674         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
81675         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
81676         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
81677         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
81678         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
81679         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
81680         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
81681         * tests/uniname/test-uninames.c: Likewise.
81682         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
81683         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
81684         * tests/unistdio/test-u16-printf1.h: Likewise.
81685         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
81686         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
81687         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
81688         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
81689         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
81690         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
81691         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
81692         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
81693         * tests/unistdio/test-u32-printf1.h: Likewise.
81694         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
81695         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
81696         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
81697         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
81698         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
81699         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
81700         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
81701         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
81702         * tests/unistdio/test-u8-printf1.h: Likewise.
81703         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
81704         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
81705         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
81706         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
81707         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
81708         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
81709         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
81710         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
81711         * tests/unistdio/test-ulc-printf1.h: Likewise.
81712         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
81713         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
81714         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
81715         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
81716         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
81717         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
81718         * tests/uniwidth/test-u16-strwidth.c: Likewise.
81719         * tests/uniwidth/test-u16-width.c: Likewise.
81720         * tests/uniwidth/test-u32-strwidth.c: Likewise.
81721         * tests/uniwidth/test-u32-width.c: Likewise.
81722         * tests/uniwidth/test-u8-strwidth.c: Likewise.
81723         * tests/uniwidth/test-u8-width.c: Likewise.
81724         * tests/uniwidth/test-uc_width.c: Likewise.
81725         * config/srclist-update: Likewise.
81726         (fixlicense): Update to GPLv3+.
81728         Change copyright notice from LGPLv2.1+ to LGPLv3+.
81729         * tests/test-tsearch.c: Change copyright notice.
81731         Change copyright notice from LGPLv2.0+ to LGPLv3+.
81732         * lib/c-strcaseeq.h: Change copyright notice.
81733         * lib/streq.h: Likewise.
81734         * lib/uniconv.h: Likewise.
81735         * lib/uniconv/u-conv-from-enc.h: Likewise.
81736         * lib/uniconv/u-conv-to-enc.h: Likewise.
81737         * lib/uniconv/u-strconv-from-enc.h: Likewise.
81738         * lib/uniconv/u-strconv-to-enc.h: Likewise.
81739         * lib/uniconv/u16-conv-from-enc.c: Likewise.
81740         * lib/uniconv/u16-conv-to-enc.c: Likewise.
81741         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
81742         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
81743         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
81744         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
81745         * lib/uniconv/u32-conv-from-enc.c: Likewise.
81746         * lib/uniconv/u32-conv-to-enc.c: Likewise.
81747         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
81748         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
81749         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
81750         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
81751         * lib/uniconv/u8-conv-from-enc.c: Likewise.
81752         * lib/uniconv/u8-conv-to-enc.c: Likewise.
81753         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
81754         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
81755         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
81756         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
81757         * lib/uniname.h: Likewise.
81758         * lib/uniname/uniname.c: Likewise.
81759         * lib/unistdio.h: Likewise.
81760         * lib/unistdio/u-asnprintf.h: Likewise.
81761         * lib/unistdio/u-asprintf.h: Likewise.
81762         * lib/unistdio/u-printf-args.c: Likewise.
81763         * lib/unistdio/u-printf-args.h: Likewise.
81764         * lib/unistdio/u-printf-parse.h: Likewise.
81765         * lib/unistdio/u-snprintf.h: Likewise.
81766         * lib/unistdio/u-sprintf.h: Likewise.
81767         * lib/unistdio/u-vasprintf.h: Likewise.
81768         * lib/unistdio/u-vsnprintf.h: Likewise.
81769         * lib/unistdio/u-vsprintf.h: Likewise.
81770         * lib/unistdio/u16-asnprintf.c: Likewise.
81771         * lib/unistdio/u16-asprintf.c: Likewise.
81772         * lib/unistdio/u16-printf-parse.c: Likewise.
81773         * lib/unistdio/u16-snprintf.c: Likewise.
81774         * lib/unistdio/u16-sprintf.c: Likewise.
81775         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
81776         * lib/unistdio/u16-u16-asprintf.c: Likewise.
81777         * lib/unistdio/u16-u16-snprintf.c: Likewise.
81778         * lib/unistdio/u16-u16-sprintf.c: Likewise.
81779         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
81780         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
81781         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
81782         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
81783         * lib/unistdio/u16-vasnprintf.c: Likewise.
81784         * lib/unistdio/u16-vasprintf.c: Likewise.
81785         * lib/unistdio/u16-vsnprintf.c: Likewise.
81786         * lib/unistdio/u16-vsprintf.c: Likewise.
81787         * lib/unistdio/u32-asnprintf.c: Likewise.
81788         * lib/unistdio/u32-asprintf.c: Likewise.
81789         * lib/unistdio/u32-printf-parse.c: Likewise.
81790         * lib/unistdio/u32-snprintf.c: Likewise.
81791         * lib/unistdio/u32-sprintf.c: Likewise.
81792         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
81793         * lib/unistdio/u32-u32-asprintf.c: Likewise.
81794         * lib/unistdio/u32-u32-snprintf.c: Likewise.
81795         * lib/unistdio/u32-u32-sprintf.c: Likewise.
81796         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
81797         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
81798         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
81799         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
81800         * lib/unistdio/u32-vasnprintf.c: Likewise.
81801         * lib/unistdio/u32-vasprintf.c: Likewise.
81802         * lib/unistdio/u32-vsnprintf.c: Likewise.
81803         * lib/unistdio/u32-vsprintf.c: Likewise.
81804         * lib/unistdio/u8-asnprintf.c: Likewise.
81805         * lib/unistdio/u8-asprintf.c: Likewise.
81806         * lib/unistdio/u8-printf-parse.c: Likewise.
81807         * lib/unistdio/u8-snprintf.c: Likewise.
81808         * lib/unistdio/u8-sprintf.c: Likewise.
81809         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
81810         * lib/unistdio/u8-u8-asprintf.c: Likewise.
81811         * lib/unistdio/u8-u8-snprintf.c: Likewise.
81812         * lib/unistdio/u8-u8-sprintf.c: Likewise.
81813         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
81814         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
81815         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
81816         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
81817         * lib/unistdio/u8-vasnprintf.c: Likewise.
81818         * lib/unistdio/u8-vasprintf.c: Likewise.
81819         * lib/unistdio/u8-vsnprintf.c: Likewise.
81820         * lib/unistdio/u8-vsprintf.c: Likewise.
81821         * lib/unistdio/ulc-asnprintf.c: Likewise.
81822         * lib/unistdio/ulc-asprintf.c: Likewise.
81823         * lib/unistdio/ulc-printf-parse.c: Likewise.
81824         * lib/unistdio/ulc-snprintf.c: Likewise.
81825         * lib/unistdio/ulc-sprintf.c: Likewise.
81826         * lib/unistdio/ulc-vasnprintf.c: Likewise.
81827         * lib/unistdio/ulc-vasprintf.c: Likewise.
81828         * lib/unistdio/ulc-vsnprintf.c: Likewise.
81829         * lib/unistdio/ulc-vsprintf.c: Likewise.
81830         * lib/unistr.h: Likewise.
81831         * lib/unistr/u-cpy-alloc.h: Likewise.
81832         * lib/unistr/u-cpy.h: Likewise.
81833         * lib/unistr/u-endswith.h: Likewise.
81834         * lib/unistr/u-move.h: Likewise.
81835         * lib/unistr/u-set.h: Likewise.
81836         * lib/unistr/u-startswith.h: Likewise.
81837         * lib/unistr/u-stpcpy.h: Likewise.
81838         * lib/unistr/u-stpncpy.h: Likewise.
81839         * lib/unistr/u-strcat.h: Likewise.
81840         * lib/unistr/u-strcpy.h: Likewise.
81841         * lib/unistr/u-strcspn.h: Likewise.
81842         * lib/unistr/u-strdup.h: Likewise.
81843         * lib/unistr/u-strlen.h: Likewise.
81844         * lib/unistr/u-strncat.h: Likewise.
81845         * lib/unistr/u-strncpy.h: Likewise.
81846         * lib/unistr/u-strnlen.h: Likewise.
81847         * lib/unistr/u-strpbrk.h: Likewise.
81848         * lib/unistr/u-strspn.h: Likewise.
81849         * lib/unistr/u-strstr.h: Likewise.
81850         * lib/unistr/u-strtok.h: Likewise.
81851         * lib/unistr/u16-check.c: Likewise.
81852         * lib/unistr/u16-chr.c: Likewise.
81853         * lib/unistr/u16-cmp.c: Likewise.
81854         * lib/unistr/u16-cpy-alloc.c: Likewise.
81855         * lib/unistr/u16-cpy.c: Likewise.
81856         * lib/unistr/u16-endswith.c: Likewise.
81857         * lib/unistr/u16-mblen.c: Likewise.
81858         * lib/unistr/u16-mbsnlen.c: Likewise.
81859         * lib/unistr/u16-mbtouc-aux.c: Likewise.
81860         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
81861         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
81862         * lib/unistr/u16-mbtouc.c: Likewise.
81863         * lib/unistr/u16-mbtoucr.c: Likewise.
81864         * lib/unistr/u16-move.c: Likewise.
81865         * lib/unistr/u16-next.c: Likewise.
81866         * lib/unistr/u16-prev.c: Likewise.
81867         * lib/unistr/u16-set.c: Likewise.
81868         * lib/unistr/u16-startswith.c: Likewise.
81869         * lib/unistr/u16-stpcpy.c: Likewise.
81870         * lib/unistr/u16-stpncpy.c: Likewise.
81871         * lib/unistr/u16-strcat.c: Likewise.
81872         * lib/unistr/u16-strchr.c: Likewise.
81873         * lib/unistr/u16-strcmp.c: Likewise.
81874         * lib/unistr/u16-strcpy.c: Likewise.
81875         * lib/unistr/u16-strcspn.c: Likewise.
81876         * lib/unistr/u16-strdup.c: Likewise.
81877         * lib/unistr/u16-strlen.c: Likewise.
81878         * lib/unistr/u16-strmblen.c: Likewise.
81879         * lib/unistr/u16-strmbtouc.c: Likewise.
81880         * lib/unistr/u16-strncat.c: Likewise.
81881         * lib/unistr/u16-strncmp.c: Likewise.
81882         * lib/unistr/u16-strncpy.c: Likewise.
81883         * lib/unistr/u16-strnlen.c: Likewise.
81884         * lib/unistr/u16-strpbrk.c: Likewise.
81885         * lib/unistr/u16-strrchr.c: Likewise.
81886         * lib/unistr/u16-strspn.c: Likewise.
81887         * lib/unistr/u16-strstr.c: Likewise.
81888         * lib/unistr/u16-strtok.c: Likewise.
81889         * lib/unistr/u16-to-u32.c: Likewise.
81890         * lib/unistr/u16-to-u8.c: Likewise.
81891         * lib/unistr/u16-uctomb-aux.c: Likewise.
81892         * lib/unistr/u16-uctomb.c: Likewise.
81893         * lib/unistr/u32-check.c: Likewise.
81894         * lib/unistr/u32-chr.c: Likewise.
81895         * lib/unistr/u32-cmp.c: Likewise.
81896         * lib/unistr/u32-cpy-alloc.c: Likewise.
81897         * lib/unistr/u32-cpy.c: Likewise.
81898         * lib/unistr/u32-endswith.c: Likewise.
81899         * lib/unistr/u32-mblen.c: Likewise.
81900         * lib/unistr/u32-mbsnlen.c: Likewise.
81901         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
81902         * lib/unistr/u32-mbtouc.c: Likewise.
81903         * lib/unistr/u32-mbtoucr.c: Likewise.
81904         * lib/unistr/u32-move.c: Likewise.
81905         * lib/unistr/u32-next.c: Likewise.
81906         * lib/unistr/u32-prev.c: Likewise.
81907         * lib/unistr/u32-set.c: Likewise.
81908         * lib/unistr/u32-startswith.c: Likewise.
81909         * lib/unistr/u32-stpcpy.c: Likewise.
81910         * lib/unistr/u32-stpncpy.c: Likewise.
81911         * lib/unistr/u32-strcat.c: Likewise.
81912         * lib/unistr/u32-strchr.c: Likewise.
81913         * lib/unistr/u32-strcmp.c: Likewise.
81914         * lib/unistr/u32-strcpy.c: Likewise.
81915         * lib/unistr/u32-strcspn.c: Likewise.
81916         * lib/unistr/u32-strdup.c: Likewise.
81917         * lib/unistr/u32-strlen.c: Likewise.
81918         * lib/unistr/u32-strmblen.c: Likewise.
81919         * lib/unistr/u32-strmbtouc.c: Likewise.
81920         * lib/unistr/u32-strncat.c: Likewise.
81921         * lib/unistr/u32-strncmp.c: Likewise.
81922         * lib/unistr/u32-strncpy.c: Likewise.
81923         * lib/unistr/u32-strnlen.c: Likewise.
81924         * lib/unistr/u32-strpbrk.c: Likewise.
81925         * lib/unistr/u32-strrchr.c: Likewise.
81926         * lib/unistr/u32-strspn.c: Likewise.
81927         * lib/unistr/u32-strstr.c: Likewise.
81928         * lib/unistr/u32-strtok.c: Likewise.
81929         * lib/unistr/u32-to-u16.c: Likewise.
81930         * lib/unistr/u32-to-u8.c: Likewise.
81931         * lib/unistr/u32-uctomb.c: Likewise.
81932         * lib/unistr/u8-check.c: Likewise.
81933         * lib/unistr/u8-chr.c: Likewise.
81934         * lib/unistr/u8-cmp.c: Likewise.
81935         * lib/unistr/u8-cpy-alloc.c: Likewise.
81936         * lib/unistr/u8-cpy.c: Likewise.
81937         * lib/unistr/u8-endswith.c: Likewise.
81938         * lib/unistr/u8-mblen.c: Likewise.
81939         * lib/unistr/u8-mbsnlen.c: Likewise.
81940         * lib/unistr/u8-mbtouc-aux.c: Likewise.
81941         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
81942         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
81943         * lib/unistr/u8-mbtouc.c: Likewise.
81944         * lib/unistr/u8-mbtoucr.c: Likewise.
81945         * lib/unistr/u8-move.c: Likewise.
81946         * lib/unistr/u8-next.c: Likewise.
81947         * lib/unistr/u8-prev.c: Likewise.
81948         * lib/unistr/u8-set.c: Likewise.
81949         * lib/unistr/u8-startswith.c: Likewise.
81950         * lib/unistr/u8-stpcpy.c: Likewise.
81951         * lib/unistr/u8-stpncpy.c: Likewise.
81952         * lib/unistr/u8-strcat.c: Likewise.
81953         * lib/unistr/u8-strchr.c: Likewise.
81954         * lib/unistr/u8-strcmp.c: Likewise.
81955         * lib/unistr/u8-strcpy.c: Likewise.
81956         * lib/unistr/u8-strcspn.c: Likewise.
81957         * lib/unistr/u8-strdup.c: Likewise.
81958         * lib/unistr/u8-strlen.c: Likewise.
81959         * lib/unistr/u8-strmblen.c: Likewise.
81960         * lib/unistr/u8-strmbtouc.c: Likewise.
81961         * lib/unistr/u8-strncat.c: Likewise.
81962         * lib/unistr/u8-strncmp.c: Likewise.
81963         * lib/unistr/u8-strncpy.c: Likewise.
81964         * lib/unistr/u8-strnlen.c: Likewise.
81965         * lib/unistr/u8-strpbrk.c: Likewise.
81966         * lib/unistr/u8-strrchr.c: Likewise.
81967         * lib/unistr/u8-strspn.c: Likewise.
81968         * lib/unistr/u8-strstr.c: Likewise.
81969         * lib/unistr/u8-strtok.c: Likewise.
81970         * lib/unistr/u8-to-u16.c: Likewise.
81971         * lib/unistr/u8-to-u32.c: Likewise.
81972         * lib/unistr/u8-uctomb-aux.c: Likewise.
81973         * lib/unistr/u8-uctomb.c: Likewise.
81974         * lib/unitypes.h: Likewise.
81975         * lib/uniwidth.h: Likewise.
81976         * lib/uniwidth/cjk.h: Likewise.
81977         * lib/uniwidth/u16-strwidth.c: Likewise.
81978         * lib/uniwidth/u16-width.c: Likewise.
81979         * lib/uniwidth/u32-strwidth.c: Likewise.
81980         * lib/uniwidth/u32-width.c: Likewise.
81981         * lib/uniwidth/u8-strwidth.c: Likewise.
81982         * lib/uniwidth/u8-width.c: Likewise.
81983         * lib/uniwidth/width.c: Likewise.
81985 2007-10-07  Bruno Haible  <bruno@clisp.org>
81987         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
81988         The file is still under LGPL (see modules/inttypes).
81990 2007-10-06  Bruno Haible  <bruno@clisp.org>
81992         * modules/trunc (Dependencies): Add 'extensions'.
81993         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
81994         Reported by Ben Pfaff <blp@gnu.org>.
81996 2007-10-06  Bruno Haible  <bruno@clisp.org>
81998         * modules/freopen-tests: New file.
81999         * tests/test-freopen.c: New file.
82001         * modules/fopen-tests: New file.
82002         * tests/test-fopen.c: New file.
82004         * modules/fopen: New file.
82005         * lib/fopen.c: New file.
82006         * m4/fopen.m4: New file.
82007         * modules/freopen: New file.
82008         * lib/freopen.c: New file.
82009         * m4/freopen.m4: New file.
82010         * lib/stdio.in.h (fopen, freopen): New declarations.
82011         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
82012         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
82013         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
82014         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
82015         * doc/functions/fopen.texi: Mention the 'fopen' module.
82016         * doc/functions/freopen.texi: Mention the 'freopen' module.
82018 2007-10-06  Bruno Haible  <bruno@clisp.org>
82020         * modules/open-tests: New file.
82021         * tests/test-open.c: New file.
82023         * modules/open: New file.
82024         * lib/open.c: New file.
82025         * m4/open.m4: New file.
82026         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
82027         lib/open.c does.
82028         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
82029         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
82030         macros.
82031         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
82032         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
82033         REPLACE_OPEN.
82034         * doc/functions/open.texi: Mention the 'open' module.
82036 2007-10-04  Bruno Haible  <bruno@clisp.org>
82038         * modules/ceill-tests: New file.
82039         * tests/test-ceill.c: New file.
82041         * modules/ceill: New file.
82042         * lib/ceill.c: Replace entire file.
82043         * m4/ceill.m4: New file.
82044         * lib/math.in.h (ceill): Replace declaration.
82045         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
82046         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
82047         * doc/functions/ceill.texi: Mention the 'ceill' module.
82048         * modules/mathl (Files): Remove lib/ceill.c.
82049         (Depends-on): Add ceill.
82051 2007-10-04  Bruno Haible  <bruno@clisp.org>
82053         * modules/ceilf-tests: New file.
82054         * tests/test-ceilf.c: New file.
82056         * modules/ceilf: New file.
82057         * lib/ceil.c: New file.
82058         * lib/ceilf.c: New file.
82059         * m4/ceilf.m4: New file.
82060         * lib/math.in.h (ceilf): New declaration.
82061         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
82062         HAVE_DECL_CEILF.
82063         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
82064         HAVE_DECL_CEILF.
82065         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
82067 2007-10-04  Bruno Haible  <bruno@clisp.org>
82069         * modules/floorl-tests: New file.
82070         * tests/test-floorl.c: New file.
82072         * modules/floorl: New file.
82073         * lib/floorl.c: Replace entire file.
82074         * m4/floorl.m4: New file.
82075         * lib/math.in.h (floorl): Replace declaration.
82076         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
82077         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
82078         * doc/functions/floorl.texi: Mention the 'floorl' module.
82079         * modules/mathl (Files): Remove lib/floorl.c.
82080         (Depends-on): Add floorl.
82082 2007-10-04  Bruno Haible  <bruno@clisp.org>
82084         * modules/floorf-tests: New file.
82085         * tests/test-floorf.c: New file.
82087         * modules/floorf: New file.
82088         * lib/floor.c: New file.
82089         * lib/floorf.c: New file.
82090         * m4/floorf.m4: New file.
82091         * lib/math.in.h (floorf): New declaration.
82092         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
82093         HAVE_DECL_FLOORF.
82094         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
82095         HAVE_DECL_FLOORF.
82096         * doc/functions/floorf.texi: Mention the 'floorf' module.
82098 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
82099             Bruno Haible  <bruno@clisp.org>
82101         Advertise for the Git server instead of the CVS server.
82102         * doc/gnulib-intro.texi (Steady Development): Mention the Git
82103         repository instead of the CVS one.
82104         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
82105         about all VCS systems generically.
82106         * doc/gnulib.texi (Introduction): Capitalize `Git'.
82108 2007-10-04  Bruno Haible  <bruno@clisp.org>
82110         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
82111         means.
82112         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
82114 2007-10-04  Bruno Haible  <bruno@clisp.org>
82116         * modules/truncl-tests: New file.
82117         * tests/test-truncl.c: New file.
82119         * modules/truncl: New file.
82120         * lib/truncl.c: New file.
82121         * m4/truncl.m4: New file.
82122         * lib/math.in.h (truncl): New declaration.
82123         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
82124         HAVE_DECL_TRUNCL.
82125         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
82126         HAVE_DECL_TRUNCL.
82127         * doc/functions/truncl.texi: Mention the 'truncl' module.
82129 2007-10-04  Bruno Haible  <bruno@clisp.org>
82131         * modules/truncf-tests: New file.
82132         * tests/test-truncf.c: New file.
82134         * modules/truncf: New file.
82135         * lib/trunc.c: Make paramerizable through USE_* macros.
82136         * lib/truncf.c: New file.
82137         * m4/truncf.m4: New file.
82138         * lib/math.in.h (truncf): New declaration.
82139         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
82140         HAVE_DECL_TRUNCF.
82141         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
82142         HAVE_DECL_TRUNCF.
82143         * doc/functions/truncf.texi: Mention the 'truncf' module.
82145 2007-10-03  Bruno Haible  <bruno@clisp.org>
82147         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
82148         augmentation also for tests modules.
82149         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
82150         * modules/atexit-tests (Makefile.am): Likewise.
82151         * modules/binary-io-tests (Makefile.am): Likewise.
82152         * modules/c-strcase-tests (Makefile.am): Likewise.
82153         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
82154         * modules/canonicalize-tests (Makefile.am): Likewise.
82155         * modules/closein-tests (Makefile.am): Likewise.
82156         * modules/fprintf-posix-tests (Makefile.am): Likewise.
82157         * modules/freadahead-tests (Makefile.am): Likewise.
82158         * modules/fseek-tests (Makefile.am): Likewise.
82159         * modules/fseeko-tests (Makefile.am): Likewise.
82160         * modules/ftell-tests (Makefile.am): Likewise.
82161         * modules/ftello-tests (Makefile.am): Likewise.
82162         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
82163         * modules/isnanl-tests (Makefile.am): Likewise.
82164         * modules/lseek-tests (Makefile.am): Likewise.
82165         * modules/mbscasecmp-tests (Makefile.am): Likewise.
82166         * modules/mbscasestr-tests (Makefile.am): Likewise.
82167         * modules/mbschr-tests (Makefile.am): Likewise.
82168         * modules/mbscspn-tests (Makefile.am): Likewise.
82169         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
82170         * modules/mbspbrk-tests (Makefile.am): Likewise.
82171         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
82172         * modules/mbsrchr-tests (Makefile.am): Likewise.
82173         * modules/mbsspn-tests (Makefile.am): Likewise.
82174         * modules/mbsstr-tests (Makefile.am): Likewise.
82175         * modules/printf-posix-tests (Makefile.am): Likewise.
82176         * modules/snprintf-posix-tests (Makefile.am): Likewise.
82177         * modules/sprintf-posix-tests (Makefile.am): Likewise.
82178         * modules/tsearch-tests (Makefile.am): Likewise.
82179         * modules/uniname/uniname-tests (Makefile.am): Likewise.
82180         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
82181         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
82182         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
82183         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
82184         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
82185         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
82186         * modules/vprintf-posix-tests (Makefile.am): Likewise.
82187         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
82188         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
82189         * modules/xstrtoimax-tests (Makefile.am): Likewise.
82190         * modules/xstrtol-tests (Makefile.am): Likewise.
82191         * modules/xstrtoumax-tests (Makefile.am): Likewise.
82192         * modules/yesno-tests (Makefile.am): Likewise.
82194 2007-10-03  Bruno Haible  <bruno@clisp.org>
82196         * modules/trunc-tests: New file.
82197         * tests/test-trunc.c: New file.
82199         * modules/trunc: New file.
82200         * lib/trunc.c: New file.
82201         * m4/trunc.m4: New file.
82202         * lib/math.in.h (trunc): New declaration.
82203         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
82204         HAVE_DECL_TRUNC.
82205         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
82206         HAVE_DECL_TRUNC.
82207         * doc/functions/trunc.texi: Mention the 'trunc' module.
82209 2007-10-03  Bruno Haible  <bruno@clisp.org>
82211         * tests/test-fpending.c: New file, mostly copied
82212         from coreutils/lib/t-fpending.c.
82213         * modules/fpending-tests: New file.
82215 2007-10-03  Bruno Haible  <bruno@clisp.org>
82217         Port the stdio extensions to QNX (untested).
82218         * lib/fseterr.c (fseterr): Add support for QNX.
82219         * lib/fbufmode.c (fbufmode): Likewise.
82220         * lib/freadable.c (freadable): Likewise.
82221         * lib/fwritable.c (fwritable): Likewise.
82222         * lib/freading.c (freading): Likewise.
82223         * lib/fwriting.c (fwriting): Likewise.
82224         * lib/freadahead.c (freadahed): Likewise.
82225         * lib/fpurge.c (fpurge): Likewise.
82226         * lib/fseeko.c (rpl_fseeko): Likewise.
82228 2007-10-03  Bruno Haible  <bruno@clisp.org>
82229             Jim Meyering  <jim@meyering.net>
82230             Eric Blake  <ebb9@byu.net>
82232         * doc/relocatable.texi: Use @command instead of @program.
82234 2007-10-02  Jim Meyering  <jim@meyering.net>
82236         Perform one more "_.h" -> ".in.h" substitution.
82237         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
82238         instead of unistd_.h here, too.
82240 2007-10-01  Bruno Haible  <bruno@clisp.org>
82242         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
82243         Needed for the alloca-opt module.
82245 2007-09-30  Bruno Haible  <bruno@clisp.org>
82247         * lib/alloca.in.h: Renamed from lib/alloca_.h.
82248         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
82249         alloca_.h.
82250         * lib/argz.in.h: Renamed from lib/argz_.h.
82251         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
82252         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
82253         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
82254         byteswap_.h.
82255         * lib/dirent.in.h: Renamed from lib/dirent_.h.
82256         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
82257         dirent_.h.
82258         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
82259         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
82260         fcntl_.h.
82261         * lib/float.in.h: Renamed from lib/float_.h.
82262         * modules/float (Files, Makefile.am): Use float.in.h instead of
82263         float_.h.
82264         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
82265         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
82266         fnmatch_.h.
82267         * lib/getopt.in.h: Renamed from lib/getopt_.h.
82268         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
82269         getopt_.h.
82270         * lib/glob.in.h: Renamed from lib/glob_.h.
82271         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
82272         * lib/iconv.in.h: Renamed from lib/iconv_.h.
82273         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
82274         iconv_.h.
82275         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
82276         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
82277         inttypes_.h.
82278         * lib/locale.in.h: Renamed from lib/locale_.h.
82279         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
82280         locale_.h.
82281         * lib/math.in.h: Renamed from lib/math_.h.
82282         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
82283         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
82284         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
82285         of netinet_in_.h. Add dependency.
82286         * lib/poll.in.h: Renamed from lib/poll_.h.
82287         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
82288         * lib/search.in.h: Renamed from lib/search_.h.
82289         * modules/search (Files, Makefile.am): Use search.in.h instead of
82290         search_.h.
82291         * lib/signal.in.h: Renamed from lib/signal_.h.
82292         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
82293         _signal.h.
82294         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
82295         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
82296         stdbool_.h.
82297         * lib/stdint.in.h: Renamed from lib/stdint_.h.
82298         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
82299         stdint_.h.
82300         * lib/stdio.in.h: Renamed from lib/stdio_.h.
82301         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
82302         stdio_.h.
82303         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
82304         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
82305         stdlib_.h.
82306         * lib/string.in.h: Renamed from lib/string_.h.
82307         * modules/string (Files, Makefile.am): Use string.in.h instead of
82308         string_.h.
82309         * doc/gnulib-tool.texi (Initial import): Update.
82310         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
82311         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
82312         of sys_select_.h. Add dependency.
82313         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
82314         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
82315         of sys_socket_.h.
82316         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
82317         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
82318         sys_stat_.h.
82319         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
82320         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
82321         sys_time_.h.
82322         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
82323         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
82324         sysexits_.h.
82325         * lib/time.in.h: Renamed from lib/time_.h.
82326         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
82327         * lib/unistd.in.h: Renamed from lib/unistd_.h.
82328         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
82329         unistd_.h.
82330         * lib/wchar.in.h: Renamed from lib/wchar_.h.
82331         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
82332         wchar_.h.
82333         * lib/wctype.in.h: Renamed from lib/wctype_.h.
82334         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
82335         wctype_.h.
82336         * build-aux/bootstrap (slurp): Update.
82337         * lib/.cppi-disable: Update.
82339 2007-09-30  Bruno Haible  <bruno@clisp.org>
82341         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
82342         Needed on BeOS.
82344 2007-09-30  Bruno Haible  <bruno@clisp.org>
82346         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
82348 2007-09-29  Bruno Haible  <bruno@clisp.org>
82350         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
82352 2007-09-29  Bruno Haible  <bruno@clisp.org>
82354         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
82355         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
82356         * build-aux/install-reloc: Compile also areadlink.c.
82357         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
82359 2007-09-29  Bruno Haible  <bruno@clisp.org>
82361         * gnulib-tool (func_emit_initmacro_done): Indentation.
82363 2007-09-29  Bruno Haible  <bruno@clisp.org>
82365         * README: Add CVS checkout update instructions.
82366         Info from Bob Proulx <bob@proulx.com>.
82368 2007-09-28  Eric Blake  <ebb9@byu.net>
82370         Provide move-if-change.
82371         * build-aux/move-if-change: New file, based on best practice
82372         rather than any canonical upstream location.
82374 2007-09-28  Jim Meyering  <jim@meyering.net>
82376         Fix canonicalize loop-detection corner case.
82377         Do not attempt to stat the symlink values stored via seen_triple.
82378         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
82379         on linux-2.6.18, (but not 2.6.22).
82380         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
82381         triple_compare.  The former compares dev,ino,filename, while the latter
82382         would actually stat dirname(filename) when dev and ino were equal.
82383         * lib/hash-triple.c: Install <string.h>.
82384         (STREQ): Define.
82385         (triple_compare_ino_str): New function.
82386         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
82388 2007-09-28  Eric Blake  <ebb9@byu.net>
82390         Enforce that AC_REPLACE_FUNCS files exist.
82391         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
82392         override check for typos.
82394         Fix test-closein on Solaris 10.
82395         * tests/test-closein.c (main): Don't assume stdin can be inherited
82396         closed on all systems.
82397         * tests/test-closein.sh: Likewise.
82398         Reported by Piotr Tarnowski.
82400 2007-09-28  Jim Meyering  <jim@meyering.net>
82402         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
82404 2007-09-27  Jim Meyering  <jim@meyering.net>
82406         canonicalize: Avoid a false-positive cycle failure.
82407         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
82408         Sort.  Remove cycle-check.
82409         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
82410         not cycle-check.h.
82411         (seen_triple): New function.
82412         (canonicalize_filename_mode): Use it instead of cycle-check.
82413         * tests/test-canonicalize.c: Add a test for this bug.
82414         * tests/test-canonicalize.sh: Set up and run the test.
82416         New module, file-set, from coreutils.
82417         * modules/file-set: Define it.
82418         * lib/file-set.c, lib/file-set.h: Implement.
82420         New module, hash-triple, from coreutils.
82421         * modules/hash-triple: Define it.
82422         * lib/hash-triple.c, lib/hash-triple.h: Implement.
82424 2007-09-25  Eric Blake  <ebb9@byu.net>
82426         Fix strerror on Interix.
82427         * lib/string_.h (strerror): Declare replacement.
82428         * doc/functions/strerror.texi (strerror): Document the Interix
82429         shortcoming.
82430         * modules/string (Makefile.am): Support new hooks.
82431         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
82432         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
82433         gl_FUNC_STRERROR_SEPARATE.
82434         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
82435         * lib/strerror.c (rpl_strerror): Provide replacement.
82436         * modules/strerror (Depends-on): Add string.
82437         (configure.ac): Detect use of module.
82438         * tests/test-strerror.c: New file.
82439         * modules/strerror-tests: New test module.
82440         * modules/argp (Depends-on): Add strerror.
82441         * modules/error (Depends-on): Likewise.
82442         Reported by Martin Koeppe.
82444 2007-09-24  Bruno Haible  <bruno@clisp.org>
82446         * README: Update git instructions.
82448 2007-09-24  Eric Blake  <ebb9@byu.net>
82450         Revert fpending breakage from 2007-09-08.
82451         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
82452         __fpending.c.
82454 2007-09-24  Jim Meyering  <jim@meyering.net>
82456         filenamecat.c: Add a test.
82457         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
82458         showing how the function works when DIR is the empty string.
82460 2007-09-21  Simon Josefsson  <simon@josefsson.org>
82462         * tests/test-canonicalize.sh: Turn on executable bit.
82464 2007-09-19  Eric Blake  <ebb9@byu.net>
82466         * README: Update CVS instructions.
82468 2007-09-18  Bruno Haible  <bruno@clisp.org>
82470         * modules/areadlink: New file.
82471         * lib/areadlink.h (areadlink): New declaration.
82472         * lib/areadlink.c: New file, based on lib/xreadlink.c.
82474 2007-09-17  Jim Meyering  <jim@meyering.net>
82476         * lib/savewd.c (ESTALE) [!defined]: Define.
82477         Reported to be required on Interix by Martin Koeppe.
82479 2007-09-17  Bruno Haible  <bruno@clisp.org>
82481         * gnulib-tool (func_version): Use $version.
82483 2007-09-16  Bruno Haible  <bruno@clisp.org>
82485         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
82486         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
82487         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
82488         Reported by Greg Schafer <gschafer@zip.com.au>.
82490 2007-09-15  Bruno Haible  <bruno@clisp.org>
82492         * gnulib-tool (sed): Try a little harder to make bash understand the
82493         alias.
82494         Reported by Bruce Korb <bruce.korb@gmail.com>.
82496 2007-09-13  Eric Blake  <ebb9@byu.net>
82498         * ChangeLog: Remove conflict markers.
82500 2007-09-13  Simon Josefsson  <simon@josefsson.org>
82502         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
82503         Reported by Bruno Haible <bruno@clisp.org>.
82505 2007-09-12  Bruno Haible  <bruno@clisp.org>
82507         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
82508         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
82509         is not defined.
82511 2007-09-12  Eric Blake  <ebb9@byu.net>
82513         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
82514         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
82515         Autoconf definition.
82516         * modules/euidaccess (Depends-on): Add extensions, for
82517         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
82518         * modules/fnmatch (Depends-on): Likewise.
82519         * modules/getaddrinfo (Depends-on): Likewise.
82520         * modules/getdelim (Depends-on): Likewise.
82521         * modules/getline (Depends-on): Likewise.
82522         * modules/getsubopt (Depends-on): Likewise.
82523         * modules/gettext (Depends-on): Likewise.
82524         * modules/group-member (Depends-on): Likewise.
82525         * modules/mbchar (Depends-on): Likewise.
82526         * modules/memmem (Depends-on): Likewise.
82527         * modules/mempcpy (Depends-on): Likewise.
82528         * modules/memrchr (Depends-on): Likewise.
82529         * modules/pagealign_alloc (Depends-on): Likewise.
82530         * modules/readutmp (Depends-on): Likewise.
82531         * modules/stpcpy (Depends-on): Likewise.
82532         * modules/stpncpy (Depends-on): Likewise.
82533         * modules/strchrnul (Depends-on): Likewise.
82534         * modules/strndup (Depends-on): Likewise.
82535         * modules/strsep (Depends-on): Likewise.
82536         * modules/strverscmp (Depends-on): Likewise.
82537         * modules/vasprintf (Depends-on): Likewise.
82538         * modules/wcwidth (Depends-on): Likewise.
82539         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
82540         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
82541         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
82542         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
82543         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
82544         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
82545         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
82546         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
82547         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
82548         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
82549         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
82550         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
82551         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
82552         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
82553         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
82554         * m4/readutmp.m4 (gl_READUTMP): Likewise.
82555         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
82556         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
82557         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
82558         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
82559         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
82560         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
82561         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
82562         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
82563         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
82564         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
82565         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
82566         so that lock.m4 can be used in gettext without extensions module.
82568 2007-09-11  Bruno Haible  <bruno@clisp.org>
82570         * m4/isc-posix.m4: Remove file.
82571         Suggested by Eric Blake.
82573 2007-09-11  Eric Blake  <ebb9@byu.net>
82575         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
82577 2007-09-10  Bruno Haible  <bruno@clisp.org>
82579         * posix-modules: Fix typo in error message.
82580         Reported by Matt <mkraai@beckman.com>.
82582 2007-09-09  Bruno Haible  <bruno@clisp.org>
82584         * doc/functions/getdelim.texi: Update list of platforms lacking the
82585         function.
82586         * doc/functions/getline.texi: Likewise.
82588 2007-09-09  Jim Meyering  <jim@meyering.net>
82590         * lib/hash.c (hash_initialize): Detect calloc failure.
82591         Reported by Bruno Haible.
82593 2007-09-09  Bruno Haible  <bruno@clisp.org>
82595         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
82596         malloc or realloc fails.
82598 2007-09-09  Bruno Haible  <bruno@clisp.org>
82600         * modules/getcwd (Depends-on): Add malloc-posix.
82601         * modules/glob (Depends-on): Likewise.
82602         * modules/putenv (Depends-on): Likewise.
82603         * modules/strdup (Depends-on): Likewise.
82604         * modules/getdelim (Depends-on): Add realloc-posix.
82605         * modules/read-file (Depends-on): Likewise.
82607 2007-09-09  Bruno Haible  <bruno@clisp.org>
82609         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
82610         (gl_FUNC_MALLOC_POSIX): Require it.
82611         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
82612         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
82613         * modules/realloc (Files): Add m4/malloc.m4.
82614         * modules/calloc (Files): Likewise.
82616 2007-09-09  Bruno Haible  <bruno@clisp.org>
82618         * modules/malloc-posix: New file.
82619         * modules/malloc (Depends-on): Add malloc-posix.
82620         * lib/malloc.c: Include errno.h.
82621         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
82622         and a POSIX-compatible malloc into a single function. Set ENOMEM
82623         when returning NULL.
82624         * m4/malloc.m4: New file.
82625         * doc/functions/malloc.texi: Mention the malloc-posix module.
82626         * lib/stdlib_.h (malloc): New declaration.
82627         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
82628         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
82629         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
82630         and HAVE_MALLOC_POSIX.
82632 2007-09-09  Bruno Haible  <bruno@clisp.org>
82634         * modules/realloc-posix: New file.
82635         * modules/realloc (Depends-on): Add realloc-posix.
82636         * lib/realloc.c: Include errno.h.
82637         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
82638         and a POSIX-compatible realloc into a single function. Set ENOMEM
82639         when returning NULL.
82640         * m4/realloc.m4: New file.
82641         * doc/functions/realloc.texi: Mention the realloc-posix module.
82642         * lib/stdlib_.h (realloc): New declaration.
82643         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
82644         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
82645         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
82646         and HAVE_REALLOC_POSIX.
82648 2007-09-09  Bruno Haible  <bruno@clisp.org>
82650         * modules/calloc-posix: New file.
82651         * modules/calloc (Depends-on): Add calloc-posix.
82652         * lib/calloc.c: Include errno.h.
82653         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
82654         and a POSIX-compatible calloc into a single function. Set ENOMEM
82655         when returning NULL.
82656         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
82657         * doc/functions/calloc.texi: Mention the calloc-posix module.
82658         * lib/stdlib_.h (calloc): New declaration.
82659         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
82660         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
82661         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
82662         and HAVE_CALLOC_POSIX.
82664 2007-09-09  Bruno Haible  <bruno@clisp.org>
82666         Allow for modules to show an arbitrary notice.
82667         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
82668         * gnulib-tool: New option --extract-notice.
82669         (func_usage): Document it.
82670         (sed_extract_prog): Update.
82671         (func_get_notice): New function.
82672         (func_modules_notice): New function.
82673         (func_import, func_create_testdir): Invoke it.
82674         Suggested by Jim Meyering.
82676 2007-09-09  Bruno Haible  <bruno@clisp.org>
82678         * gnulib-tool: New options --verbose, --quiet.
82679         (func_usage): Document them.
82680         (verbose): New variable.
82681         (func_execute_command): New function.
82682         (func_import): Don't show the module list and the file list if
82683         $verbose < 0.
82684         (func_create_testdir): Likewise. Use func_execute_command.
82685         (func_create_megatestdir): Use func_execute_command.
82687 2007-09-08  Bruno Haible  <bruno@clisp.org>
82689         * gnulib-tool (func_import): Prefer rsync over wget when available,
82690         for fetching the PO files.
82692 2007-09-08  Bruno Haible  <bruno@clisp.org>
82694         * posix-modules: New file. Portions copied from gnulib-tool.
82695         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
82697 2007-09-08  Jim Meyering  <jim@meyering.net>
82699         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
82700         * lib/fpending.h: Rename from __fpending.h.
82701         * lib/fpending.c: Rename from __fpending.c.
82702         Include "fpending.h", not "__fpending.h".
82703         * lib/__fpending.h, lib/__fpending.c: Remove files.
82704         * modules/fpending (Files): Reflect new file names.
82705         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
82707 2007-09-08  Bruno Haible  <bruno@clisp.org>
82709         * m4/inttypes-h.m4: Remove stub file.
82711 2007-09-07  Simon Josefsson  <simon@josefsson.org>
82713         * doc/headers/stdint.texi: Discuss #include_next issue.
82715 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
82717         * build-aux/bootstrap: Remove obsolete comment about wget --help.
82719 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82721         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
82722         in variable name.
82724 2007-09-03  Jim Meyering  <jim@meyering.net>
82726         New module: git-version-gen.
82727         * modules/git-version-gen: New file.
82729         Import changes from coreutils for bootstrap script.
82731         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
82733         bootstrap: uses rsync to download the .po files
82734         * build-aux/bootstrap (po_download_command_format): New global.
82735         (download_po_files): Use rsync.
82736         (update_po_files): Don't remove .po files after download,
82737         so future rsync runs can take advantage of the copies.
82739         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
82741         Solve the unnecessary-.po-file-regeneration problem once and for all.
82742         * build-aux/bootstrap (download_po_files): New function, renamed from
82743         get_translations.  Now, downloads, but doesn't update LINGUAS.
82744         (update_po_files): New function.
82746         bootstrap: Ignore more.
82747         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
82748         uniwidth to e.g., lib/.gitignore.
82749         (slurp): Handle the sys_stat_.h -> sys mapping, too.
82751         * build-aux/bootstrap: New setting: vc_ignore.
82752         (insert_sorted_if_absent): Create $file if absent.
82753         Adapt to new, possibly empty, list: $vc_ignore.
82755         bootstrap: generate more ignorable names
82756         * build-aux/bootstrap (slurp): When generating ignorable names,
82757         also map .sin to .sed, .gperf to .c, and .y to .c.
82759 2007-09-03  Jim Meyering  <jim@meyering.net>
82761         * build-aux/git-version-gen: New file, from coreutils.  For details, see
82762         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
82764 2007-09-02  Bruno Haible  <bruno@clisp.org>
82766         Fix mis-recognition of 'mcs' on QNX 6.
82767         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
82768         output contains the string "Mono".
82769         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
82770         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
82772 2007-09-01  Bruno Haible  <bruno@clisp.org>
82774         Fix collision between uniwidth/* and linebreak modules.
82775         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
82776         u32_width): Remove declarations.
82777         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
82778         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
82779         streq3, streq2, streq1, streq0): Remove functions.
82780         (STREQ): Remove macro.
82781         (is_cjk_encoding): Remove function.
82782         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
82783         (uc_width, u8_width, u16_width, u32_width): Remove functions.
82784         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
82785         * NEWS: Document the change.
82787 2007-09-01  Bruno Haible  <bruno@clisp.org>
82789         * lib/streq.h: Add double-inclusion guard.
82791 2007-09-01  Karl Berry  <karl@gnu.org>
82793         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
82795 2007-08-28  Jim Meyering  <jim@meyering.net>
82797         Rename mreadlink_with_size to areadlink_with_size.
82798         * NEWS: Document the change.
82799         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
82800         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
82801         * lib/mreadlink.h: Rename this to...
82802         * lib/areadlink.h: ...this.
82803         * modules/mreadlink-with-size: Rename this to...
82804         * modules/areadlink-with-size: ...this.
82805         * lib/canonicalize.c: Reflect the renaming.
82806         * modules/canonicalize: Likewise.
82808 2007-08-26  Bruno Haible  <bruno@clisp.org>
82810         * gnulib-tool (func_import): When deciding which files to remove,
82811         consider also dangling symbolic links.
82812         Reported by Eric Blake.
82814 2007-08-26  Bruno Haible  <bruno@clisp.org>
82816         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
82818 2007-08-23  Simon Josefsson  <simon@josefsson.org>
82820         * lib/readline.c: Don't include getline.h, the prototype is now
82821         found in stdio.h.
82823 2007-08-23  Jim Meyering  <jim@meyering.net>
82825         Getdelim touchup.
82826         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
82827         around the funlockfile call, since funlockfile never sets errno.
82828         Don't set errno upon failed realloc.
82830 2007-08-22  Eric Blake  <ebb9@byu.net>
82832         Getline touchups.
82833         * lib/getdelim.c (getdelim): Revert regression that required *n to
82834         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
82835         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
82836         getdelim, rather than whether implementation is missing.
82837         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
82838         * lib/stdio_.h (getline): Also declare if replacement is
82839         required.
82840         * doc/functions/getdelim.texi: New file.
82841         * doc/functions/getline.texi: Likewise.
82842         * doc/gnulib.texi (Function Substitutes): Add new files.
82843         Reported by Bruno Haible.
82845 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
82847         * users.txt: Add Guile.
82849 2007-08-22  Eric Blake  <ebb9@byu.net>
82851         * tests/test-getdelim.c (main): Use remove, not unlink.
82852         * tests/test-getline.c (main): Likewise.
82854         Move getline and getdelim into stdio.h, per POSIX 200x.
82855         * modules/getline (Files): Remove getline.h.
82856         (Depends-on): Add stdio.
82857         (configure.ac): Add module indicator.
82858         * modules/getdelim (Files): Remove getdelim.h.
82859         (Depends-on): Add stdio.
82860         (configure.ac): Add module indicator.
82861         * modules/stdio (Makefile.am): Work with new indicators.
82862         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
82863         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
82864         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
82865         * lib/getdelim.h: Delete.
82866         * lib/getline.h: Delete.
82867         * lib/stdio_.h (getdelim, getline): Declare.
82868         * modules/getdelim-tests: New module.
82869         * modules/getline-tests: Likewise.
82870         * tests/test-getdelim.c: New file.
82871         * tests/test-getline.c: Likewise.
82872         * NEWS: Document the change.
82873         * lib/getline.c: Update choice of header.
82874         * lib/csharpcomp.c: Likewise.
82875         * lib/getpass.c: Likewise.
82876         * lib/javacomp.c: Likewise.
82877         * lib/javaversion.c: Likewise.
82878         * lib/yesno.c: Likewise.
82879         * lib/getdelim.c: Likewise.
82880         (getdelim): Set errno on failure, and avoid memory leak.
82882 2007-08-19  Bruno Haible  <bruno@clisp.org>
82884         * modules/closein (Depends-on): Add freadahead.
82885         * lib/closein.c: Include freadahead.h.
82886         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
82887         is zero.
82889 2007-08-19  Bruno Haible  <bruno@clisp.org>
82891         * modules/freadahead-tests: New file.
82892         * tests/test-freadahead.sh: New file.
82893         * tests/test-freadahead.c: New file.
82895         * modules/freadahead: New file.
82896         * lib/freadahead.h: New file.
82897         * lib/freadahead.c: New file.
82898         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
82899         fbufmode, fpurge, freadable, fwritable.
82901 2007-08-19  Eric Blake  <ebb9@byu.net>
82903         Test yesno in combination with closein.
82904         * lib/yesno.c (yesno): Document use of stdin.
82905         * modules/yesno-tests (Files): New module.
82906         * tests/test-yesno.c (main): New file.
82907         * tests/test-yesno.sh: Likewise.
82909 2007-08-19  Bruno Haible  <bruno@clisp.org>
82911         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
82912         * lib/fseeko.c (rpl_fseeko): Likewise.
82913         * lib/fseterr.c (fseterr): Likewise.
82915 2007-08-19  Bruno Haible  <bruno@clisp.org>
82917         * tests/test-lseek.c (main): Disable a test for BeOS.
82918         * doc/functions/lseek.texi: Document the BeOS bug.
82920 2007-08-19  Bruno Haible  <bruno@clisp.org>
82921             Eric Blake  <ebb9@byu.net>
82923         * lib/lseek.c: Include <sys/stat.h>.
82924         (rpl_lseek): Add workaround code also for Unix platforms.
82925         Needed for BeOS.
82926         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
82927         * doc/functions/lseek.texi: Document BeOS definiency.
82929 2007-08-18  Bruno Haible  <bruno@clisp.org>
82931         * modules/fstrcmp-tests: New file.
82932         * tests/test-fstrcmp.c: New file.
82934 2007-08-18  Bruno Haible  <bruno@clisp.org>
82936         * modules/fstrcmp: New file, from GNU gettext with modifications.
82937         * lib/fstrcmp.h: New file, from GNU gettext.
82938         * lib/fstrcmp.c: New file, from GNU gettext.
82939         * MODULES.html.sh (String handling): Add fstrcmp.
82941 2007-08-18  Bruno Haible  <bruno@clisp.org>
82943         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
82944         'bool'.
82945         (diag, compareseq): Remove const from the ctxt argument.
82946         (USE_HEURISTIC): Undefine at the end.
82948 2007-08-18  Jim Meyering  <jim@meyering.net>
82950         New file: lib/idcache.h
82951         * NEWS: Mention the addition.
82952         * modules/idcache (Files): Add lib/idcache.h
82953         * lib/idcache.c: Include "idcache.h".
82954         Don't include <sys/types.h>.
82955         Add a FIXME comment.
82956         Move file-scoped "static" declarations to the top.
82957         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
82959 2007-08-17  Bruno Haible  <bruno@clisp.org>
82960         and Paul Eggert  <eggert@cs.ucla.edu>
82962         * MODULES.html.sh: Add diffseq.
82963         * modules/diffseq: New file.
82964         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
82965         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
82967 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
82969         Import changes from coreutils for bootstrap script.
82971         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
82973         * build-aux/bootstrap (slurp): Work even in environments where
82974         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
82975         current code does not slurp files whose names start with ".", and
82976         this looks like it might be a troublesome area.
82978         2007-07-11  Jim Meyering  <jim@meyering.net>
82980         If there's a GPL vN copyright comment, require that N == 3.
82982         2007-07-08  Jim Meyering  <jim@meyering.net>
82984         Run the coreutils-specific code only if tests/Makefile.am.in exists.
82985         * build-aux/bootstrap (mam_template): Move definition out of loop.
82987         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
82989         * build-aux/bootstrap (symlink_to_dir): Rename function from
82990         symlink_to_gnulib.  Add a directory parameter.  Update all
82991         callers.
82992         (cp_mark_as_generated): Also check for -- and link to -- files in
82993         gl/.
82995         2007-07-08  Jim Meyering  <jim@meyering.net>
82997         Adapt to deeper hierarchy in gnulib.
82998         * build-aux/bootstrap (symlink_to_dir): If the destination
82999         directory doesn't exist, create it. This is required at least for
83000         "lib/uniwidth/cjk.h".
83002         2007-05-15  Jim Meyering  <jim@meyering.net>
83004         * build-aux/bootstrap: Now that generated Makefile.am files
83005         are no longer under version control, they must be created at
83006         bootstrap time.
83008 2007-08-14  Ben Pfaff  <blp@gnu.org>
83010         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
83012 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
83014         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
83015         given the changes below.
83016         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
83017         even on hosts that have padding bits beyond the supported 64.
83019 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
83021         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
83022         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
83023         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
83024         depends on it.
83025         (xstrtol_error): Remove.
83026         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
83027         but with a different signature.
83028         (ATTRIBUTE_NORETURN, __attribute__): New macros.
83029         * lib/xstrtol-error.c: Include exitfail.h.
83030         (xstrtol_fatal): New function, with a different signature from the
83031         old xstrtol_error, so that the caller need not worry about passing
83032         in an exit status, or about storage management of the option argument.
83033         (xstrtol_error): Now a static function.  Redo signature to
83034         implement xstrtol_fatal.  Output the correct number of hyphens in
83035         front of the option so that the caller need not worry about
83036         storage management.
83037         (N_): New macro.
83038         (_): Remove; not used now.
83039         * modules/xstrtol: Depend on getopt.
83040         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
83041         of old STRTOL_FATAL_ERROR macro.
83042         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
83043         of test program.
83044         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
83045         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
83047 2007-08-08  Eric Blake  <ebb9@byu.net>
83049         * lib/xstrtol-error.c: Add missing include.
83051         Move xstrtol messages into gnulib domain, when --pobase is used.
83052         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
83053         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
83054         * modules/xstrtol (Files): Distribute new file.
83055         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
83056         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
83057         * tests/test-xstrtol.c: ...into new file.
83058         * tests/test-xstrtoul.c: Also test xstrtoul.
83059         * tests/test-xstrtoimax.c: Also test xstrtoimax.
83060         * tests/test-xstrtoumax.c: Also test xstrtoumax.
83061         * tests/test-xstrtol.sh: Drive the tests.
83062         * tests/test-xstrtoimax.sh: Likewise.
83063         * tests/test-xstrtoumax.sh: Likewise.
83064         * modules/xstrtol-tests: New module.
83065         * modules/xstrtoimax-tests: Likewise.
83066         * modules/xstrtoumax-tests: Likewise.
83068 2007-08-08  Jim Meyering  <jim@meyering.net>
83070         New function: mfile_name_concat.
83071         * lib/filenamecat.c (mfile_name_concat): New function, just like
83072         file_name_concat, but return NULL upon failure rather than exiting
83073         with a diagnostic.
83074         * lib/filenamecat.h: Declare it.
83076 2007-08-07  Bruno Haible  <bruno@clisp.org>
83078         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
83079         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
83080         warning from gcc.
83081         Reported by Eric Blake.
83083 2007-08-07  Simon Josefsson  <simon@josefsson.org>
83085         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
83086         * modules/crypto/arcfour (License): Likewise.
83087         * modules/crypto/des-tests (License): Likewise.
83088         * modules/crypto/gc-arctwo-tests (License): Likewise.
83089         * modules/crypto/gc-des-tests (License): Likewise.
83090         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
83091         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
83092         * modules/crypto/gc-md2-tests (License): Likewise.
83093         * modules/crypto/gc-md4-tests (License): Likewise.
83094         * modules/crypto/gc-md5-tests (License): Likewise.
83095         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
83096         * modules/crypto/gc-rijndael-tests (License): Likewise.
83097         * modules/crypto/gc-sha1-tests (License): Likewise.
83098         * modules/crypto/gc-tests (License): Likewise.
83099         * modules/crypto/hmac-md5 (License): Likewise.
83100         * modules/crypto/hmac-sha1 (License): Likewise.
83101         * modules/crypto/md2-tests (License): Likewise.
83102         * modules/crypto/md4-tests (License): Likewise.
83103         * modules/crypto/md5 (License): Likewise.
83104         * modules/crypto/rijndael (License): Likewise.
83105         * modules/crypto/sha1 (License): Likewise.
83106         * modules/memxor (License): Likewise.
83108 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
83109         and Bruno Haible  <bruno@clisp.org>
83111         * NEWS: Describe interface changes to human, xstrtol.
83112         * lib/human.h: Include <xstrtol.h>.
83113         (human_options): Return enum strtol_error, not int.  Remove
83114         bool arg; take int * instead.
83115         * lib/human.c: Don't include "gettext.h".
83116         (_): Remove; no longer used.
83117         Don't include <xstrtol.h>, since human.h does it.
83118         (human_options): Adjust to abovementioned interface changes.
83119         Do not report error to stderr; that's now the caller's
83120         responsibility.
83121         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
83122         interface change.
83123         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
83124         Str, Argument_type_string.  All uses changed.  Put " argument"
83125         in diagnostics to make them clearer.  Change wording of suffix
83126         message for clarity.
83127         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
83128         Argument_type_string.
83129         (STRTOL_FATAL_WARN): Remove; no longer used.
83130         * modules/human (Depends-on): Remove gettext-h.
83132 2007-08-06  Simon Josefsson  <simon@josefsson.org>
83134         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
83136 2007-07-31  Bruno Haible  <bruno@clisp.org>
83138         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
83139         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
83140         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
83142 2007-07-31  Bruno Haible  <bruno@clisp.org>
83144         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
83145         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
83147 2007-07-30  Bruno Haible  <bruno@clisp.org>
83149         * modules/base64 (License): Use the synonymous term "LGPLv2+".
83150         * modules/c-ctype (License): Likewise.
83151         * modules/c-strcase (License): Likewise.
83152         * modules/check-version (License): Likewise.
83153         * modules/iconv (License): Likewise.
83154         * modules/iconv_open (License): Likewise.
83155         * modules/read-file (License): Likewise.
83156         * modules/striconv (License): Likewise.
83157         * modules/strverscmp (License): Likewise.
83158         * modules/vasprintf (License): Likewise.
83159         * modules/crypto/des (License): Likewise.
83160         * modules/crypto/gc (License): Likewise.
83161         * modules/crypto/gc-arcfour (License): Likewise.
83162         * modules/crypto/gc-arctwo (License): Likewise.
83163         * modules/crypto/gc-des (License): Likewise.
83164         * modules/crypto/gc-hmac-md5 (License): Likewise.
83165         * modules/crypto/gc-hmac-sha1 (License): Likewise.
83166         * modules/crypto/gc-md2 (License): Likewise.
83167         * modules/crypto/gc-md4 (License): Likewise.
83168         * modules/crypto/gc-md5 (License): Likewise.
83169         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
83170         * modules/crypto/gc-random (License): Likewise.
83171         * modules/crypto/gc-rijndael (License): Likewise.
83172         * modules/crypto/gc-sha1 (License): Likewise.
83173         * modules/crypto/md2 (License): Likewise.
83174         * modules/crypto/md4 (License): Likewise.
83176 2007-07-30  Jim Meyering  <jim@meyering.net>
83178         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
83179         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
83180         it has valid stat data.  This bug would cause du not to count the
83181         sizes of inaccessible directories.
83182         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
83183         in <http://bugzilla.redhat.com/250077>.
83185 2007-07-25  Peter O'Gorman  <peter@pogma.com>
83186             Bruno Haible  <bruno@clisp.org>
83188         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
83189         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
83190         #include_next, gives a diagnostic about it, but reports no error in
83191         the exit code.
83192         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
83194 2007-07-24  Ben Pfaff  <blp@gnu.org>
83196         Improve name: "count-one-bits" is better than "popcount".
83197         * MODULES.html.sh: Update name.
83198         * lib/popcount.h: Renamed lib/count-one-bits.h.
83199         (popcount): Renamed count_one_bits.
83200         (popcountl): Renamed count_one_bits_l.
83201         (popcountll): Renamed count_one_bits_ll.
83202         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
83203         * modules/popcount: Renamed module/count-one-bits.
83204         * modules/popcount-tests: Renamed module/count-one-bits-tests.
83205         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
83207 2007-07-23  Ben Pfaff  <blp@gnu.org>
83209         * lib/popcount.h (popcount32): Reduce size of constants, to allow
83210         better code generation, and add U to large constants to avoid
83211         warnings, in non-GCC case.
83212         Suggested by Bruno Haible.
83214 2007-07-23  Ben Pfaff  <blp@gnu.org>
83216         * lib/popcount.h: Use verify_true instead of if...abort.
83217         * modules/popcount: Depend on verify module.
83218         Suggested by Jim Meyering.
83220 2007-07-23  Bruno Haible  <bruno@clisp.org>
83222         * gnulib-tool (func_import): Create a .cvsignore file also when the
83223         directory is not yet in CVS but the toplevel directory is. When
83224         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
83225         Reported by Karl Berry.
83227 2007-07-22  Ben Pfaff  <blp@gnu.org>
83229         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
83230         case.
83231         Suggested by Eric Blake.
83233 2007-07-22  Ben Pfaff  <blp@gnu.org>
83235         New module: popcount.
83236         * MODULES.html.sh: Add popcount.
83237         * modules/popcount: New file.
83238         * modules/popcount-tests: New file.
83239         * tests/test-popcount.c: New file.
83240         * lib/popcount.h: New file.
83241         * m4/popcount.m4: New file.
83243 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
83245         * build-aux/announce-gen: Update to GPLv3.
83247         * build-aux/config.guess: Update from config.
83249 2007-07-21  Bruno Haible  <bruno@clisp.org>
83251         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
83252         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
83254 2007-07-20  Jim Meyering  <jim@meyering.net>
83256         * check-module: Diagnose a self-dependency.
83258 2007-07-19  Bruno Haible  <bruno@clisp.org>
83260         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
83261         empty.
83262         Reported by Eric Blake.
83264 2007-07-18  Bruno Haible  <bruno@clisp.org>
83266         * gnulib-tool: New options --po-base, --po-domain.
83267         (func_usage): Document them.
83268         (pobase, po_domain): New variables.
83269         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
83270         DEFAULT_TEXT_DOMAIN.
83271         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
83272         (func_import): Consider pobase and po_domain. Create a po/ directory.
83273         (func_create_testdir): Set pobase and po_domain to empty.
83274         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
83275         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
83277 2007-07-18  Bruno Haible  <bruno@clisp.org>
83279         * gnulib-tool (func_get_automake_snippet): Synthesize also an
83280         EXTRA_DIST augmentation for files in build-aux/.
83282 2007-07-16  Bruno Haible  <bruno@clisp.org>
83284         * modules/lseek (License): Use the synonymous term "LGPLv2+".
83285         * modules/getdelim (License): Likewise.
83287 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83289         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
83290         * modules/d-type (License): Likewise.
83291         * modules/extensions (License): Likewise.
83292         * modules/fnmatch (License): Likewise.
83293         * modules/fseeko (License): Likewise.
83294         * modules/getaddrinfo (License): Likewise.
83295         * modules/getline (License): Likewise.
83296         * modules/getlogin_r (License): Likewise.
83297         * modules/getpass (License): Likewise.
83298         * modules/gettimeofday (License): Likewise.
83299         * modules/glob (License): Likewise.
83300         * modules/inet_ntop (License): Likewise.
83301         * modules/malloc (License): Likewise.
83302         * modules/malloca (License): Likewise.
83303         * modules/memmem (License): Likewise.
83304         * modules/mempcpy (License): Likewise.
83305         * modules/memset (License): Likewise.
83306         * modules/minmax (License): Likewise.
83307         * modules/mktime (License): Likewise.
83308         * modules/netinet_in (License): Likewise.
83309         * modules/pathmax (License): Likewise.
83310         * modules/poll (License): Likewise.
83311         * modules/regex (License): Likewise.
83312         * modules/snprintf (License): Likewise.
83313         * modules/stdbool (License): Likewise.
83314         * modules/stdint (License): Likewise.
83315         * modules/stdio (License): Likewise.
83316         * modules/strcase (License): Likewise.
83317         * modules/strcasestr (License): Likewise.
83318         * modules/strdup (License): Likewise.
83319         * modules/string (License): Likewise.
83320         * modules/strndup (License): Likewise.
83321         * modules/strnlen (License): Likewise.
83322         * modules/strpbrk (License): Likewise.
83323         * modules/strptime (License): Likewise.
83324         * modules/strsep (License): Likewise.
83325         * modules/sys_select (License): Likewise.
83326         * modules/sys_socket (License): Likewise.
83327         * modules/sys_stat (License): Likewise.
83328         * modules/sys_time (License): Likewise.
83329         * modules/time (License): Likewise.
83330         * modules/time_r (License): Likewise.
83331         * modules/timegm (License): Likewise.
83332         * modules/unistd (License): Likewise.
83333         * modules/vsnprintf (License): Likewise.
83334         * modules/wctype (License): Likewise.
83336 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83338         * modules/argz (License): LGPLv2+.
83340 2007-07-15  Karl Berry  <karl@gnu.org>
83342         * doc/gnulib.texi: revise node structure per new fdl.texi.
83344 2007-07-14  Bruno Haible  <bruno@clisp.org>
83346         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
83347         the output file.
83348         * lib/uniname/uninames.h: Regenerated.
83350 2007-07-14  Karl Berry  <karl@gnu.org>
83352         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
83353         omitting sectioning and index commands.
83355 2007-07-13  Bruno Haible  <bruno@clisp.org>
83357         New gnulib-tool option --more-symlinks.
83358         * gnulib-tool (func_usage): Document --more-symlinks.
83359         (do_copyrights): New variable.
83360         Recognize option --more-symlinks.
83361         (func_import): Don't add a copyright notice transform to
83362         sed_transform_lib_file if do_copyrights is empty.
83364 2007-07-13  Bruno Haible  <bruno@clisp.org>
83366         * lib/vasnprintf.c (decimal_point_char): Define also if
83367         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
83368         && !NEED_PRINTF_DIRECTIVE_A.
83369         Reported by Clemens Koller <clemens.koller@anagramm.de> via
83370         Gary V. Vaughan <gary@gnu.org>.
83372 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
83374         * lib/inttypes_.h: Undo previous change, since it was fixed
83375         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
83377 2007-07-13  Bruno Haible  <bruno@clisp.org>
83379         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
83380         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
83382 2007-07-13  Jim Meyering  <jim@meyering.net>
83384         df: Don't fail for Tru64's "file-on-file mount".
83385         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
83386         so we fall through and use statfs instead.  Details here:
83387         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
83388         Reported by Albert Chin.
83390 2007-07-13  Bruno Haible  <bruno@clisp.org>
83392         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
83393         * modules/configmake (License): Likewise.
83394         * modules/gettext (License): Likewise.
83395         * modules/gettext-h (License): Likewise.
83396         * modules/include_next (License): Likewise.
83397         * modules/link-warning (License): Likewise.
83398         * modules/localcharset (License): Likewise.
83399         * modules/localename (License): Likewise.
83400         * modules/lock (License): Likewise.
83401         * modules/relocatable-lib-lgpl (License): Likewise.
83402         * modules/size_max (License): Likewise.
83403         * modules/vasnprintf (License): Likewise.
83404         * modules/wchar (License): Likewise.
83405         * modules/xsize (License): Likewise.
83407 2007-07-13  Bruno Haible  <bruno@clisp.org>
83409         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
83410         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
83412 2007-07-12  Bruno Haible  <bruno@clisp.org>
83414         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
83415         in the modules files.
83417 2007-07-11  Karl Berry  <karl@gnu.org>
83419         * MODULES.html.sh (func_module): use
83420          sed -e '\|^'"${includefile}"'$|d'
83421          instead of /.../d, to avoid errors on $includefile's containing /.
83423 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
83425         * gnulib-tool (func_import): Avoid duplication of --avoid
83426         statements
83427         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
83428         names to `_' in variable names.
83430 2007-07-10  Eric Blake  <ebb9@byu.net>
83432         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
83433         * NEWS: Document this change.
83435 2007-07-08  Bruno Haible  <bruno@clisp.org>
83437         Update to Unicode 5.0.
83438         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
83439         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
83440         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
83441         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
83442         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
83443         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
83444         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
83445         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
83446         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
83447         U+10A3F, U+1D242..U+1D244.
83448         (nonspacing_table_ind): Update.
83449         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
83450         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
83452 2007-07-08  Bruno Haible  <bruno@clisp.org>
83454         Update to Unicode 5.0.
83455         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
83456         code transform. Extend the name index field of unicode_name_to_code and
83457         unicode_code_to_name from 16 to 24 bits.
83458         * lib/uniname/uniname.c (unicode_character_name,
83459         unicode_name_character): Add the range 0x12xxx to the code transform.
83460         * lib/uniname/uninames.h: Regenerated.
83461         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
83463 2007-07-07  Bruno Haible  <bruno@clisp.org>
83465         * modules/wcwidth-tests: New file.
83466         * tests/test-wcwidth.c: New file.
83468         Work around MacOS X wcwidth() bug.
83469         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
83470         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
83471         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
83472         original wcwidth in non-UTF-8 locales.
83473         * modules/wcwidth (Depends-on): Add localcharset, streq,
83474         uniwidth/width.
83475         * doc/functions/wcwidth.texi: Update.
83477 2007-07-07  Bruno Haible  <bruno@clisp.org>
83479         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
83480         (wcwidth): New declaration.
83481         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
83482         macros.
83483         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
83484         here. Prepare for creating <wchar.h> unconditionally.
83485         * modules/wchar (Depends-on): Add link-warning.
83486         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
83487         REPLACE_WCWIDTH, and GL_LINK_WARNING.
83488         * lib/wcwidth.h: Remove file.
83489         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
83490         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
83491         * modules/wcwidth (Files): Remove lib/wcwidth.h.
83492         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
83493         (Include): Replace wcwidth.h with <wchar.h>.
83494         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
83495         * lib/mbchar.h: Don't include wcwidth.h.
83496         * lib/mbswidth.c: Likewise.
83497         * NEWS: Mention the change.
83499 2007-07-07  Bruno Haible  <bruno@clisp.org>
83501         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
83502         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
83503         definition with an external declaration.
83504         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
83505         defined as a function. Remove AC_C_INLINE requirement.
83506         * modules/wcwidth (Files): Add lib/wcwidth.c.
83507         (Makefile.am): Remove redundant statement.
83509 2007-07-07  Bruno Haible  <bruno@clisp.org>
83511         * MODULES.html.sh (Unicode string functions): Add the new modules.
83513         * tests/uniwidth/test-u32-strwidth.c: New file.
83514         * modules/uniwidth/u32-strwidth-tests: New file.
83516         * lib/uniwidth/u32-strwidth.c: New file.
83517         * modules/uniwidth/u32-strwidth: New file.
83519         * tests/uniwidth/test-u16-strwidth.c: New file.
83520         * modules/uniwidth/u16-strwidth-tests: New file.
83522         * lib/uniwidth/u16-strwidth.c: New file.
83523         * modules/uniwidth/u16-strwidth: New file.
83525         * tests/uniwidth/test-u8-strwidth.c: New file.
83526         * modules/uniwidth/u8-strwidth-tests: New file.
83528         * lib/uniwidth/u8-strwidth.c: New file.
83529         * modules/uniwidth/u8-strwidth: New file.
83531         * tests/uniwidth/test-u32-width.c: New file.
83532         * modules/uniwidth/u32-width-tests: New file.
83534         * lib/uniwidth/u32-width.c: New file.
83535         * modules/uniwidth/u32-width: New file.
83537         * tests/uniwidth/test-u16-width.c: New file.
83538         * modules/uniwidth/u16-width-tests: New file.
83540         * lib/uniwidth/u16-width.c: New file.
83541         * modules/uniwidth/u16-width: New file.
83543         * tests/uniwidth/test-u8-width.c: New file.
83544         * modules/uniwidth/u8-width-tests: New file.
83546         * lib/uniwidth/u8-width.c: New file.
83547         * modules/uniwidth/u8-width: New file.
83549         * tests/uniwidth/test-uc_width.c: New file.
83550         * modules/uniwidth/width-tests: New file.
83552         * lib/uniwidth/width.c: New file, from GNU libiconv.
83553         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
83554         * modules/uniwidth/width: New file.
83556         * lib/uniwidth.h: New file, from GNU libiconv.
83557         * modules/uniwidth/base: New file.
83559 2007-07-07  Bruno Haible  <bruno@clisp.org>
83561         * lib/uniname.h: New file, from GNU gettext.
83562         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
83563         * lib/uniname/uninames.h: New file, from GNU gettext.
83564         * lib/uniname/uniname.c: New file, from GNU gettext.
83565         * tests/uniname/test-uninames.sh: New file.
83566         * tests/uniname/test-uninames.c: New file, from GNU gettext.
83567         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
83568         * modules/uniname/base: New file.
83569         * modules/uniname/uniname: New file.
83570         * modules/uniname/uniname-tests: New file.
83571         * MODULES.html.sh (Unicode string functions): Add the new modules.
83573 2007-07-06  Bruno Haible  <bruno@clisp.org>
83575         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
83577 2007-07-06  Bruno Haible  <bruno@clisp.org>
83579         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
83580         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
83581         includes <cygwin/sys_time.h> which includes <sys/select.h> which
83582         include <sys/time.h>.
83583         Reported by Eric Blake.
83585 2007-07-06  Eric Blake  <ebb9@byu.net>
83587         Fix testing canonicalize on cygwin.
83588         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
83589         Revert patch from 2007-06-19.
83590         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
83591         canonicalize module is also in use.
83592         * tests/test-canonicalize.c: New file.
83593         * tests/test-canonicalize.sh: Likewise.
83594         * modules/canonicalize-tests: Likewise.
83596 2007-07-06  Jim Meyering  <jim@meyering.net>
83598         * lib/getugroups.c (getugroups): Detect getgrent failure.
83599         Adjust comment to reflect reality: this function may return -1.
83601 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
83603         * build-aux/bootstrap (TP_URL,get_translations): Update to use
83604         the new TP address.
83605         (usage): Fix typo
83606         (gnulib_mk): New variable.
83608 2007-07-05  Jim Meyering  <jim@meyering.net>
83610         Don't let endgrent clobber errno, no matter how improbable.
83611         * lib/getugroups.c (getugroups): Save and restore errno around
83612         endgrent call.
83614         Close the group DB even when failing with 2^31 or more members.
83615         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
83617 2007-07-04  Jim Meyering  <jim@meyering.net>
83619         * lib/getugroups.h: New file.
83620         * lib/getugroups.c: Include "getugroups.h".
83621         Remove uses of "register" keyword.
83622         Move local variable, "cp", down into scope where used.
83623         Give "username" parameter the "const" attribute.
83624         * modules/getugroups (Files): Add lib/getugroups.h
83626 2007-07-04  Karl Berry  <karl@gnu.org>
83628         * MODULES.html.sh (func_all_modules): Complete rename of
83629         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
83631 2007-07-02  Bruno Haible  <bruno@clisp.org>
83633         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
83634         mode, when inttypes.h comes from gnulib.
83635         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
83637 2007-07-02  Simon Josefsson  <simon@josefsson.org>
83639         * NEWS: Mention lgpl module name change.
83641         * modules/lgpl-2.1: Renamed from lgpl.
83643         * NEWS: Mention gpl module name change.
83645         * modules/gpl-3.0: New file, based on gpl-2.0.
83647         * modules/gpl-2.0: Renamed from gpl.
83649         * modules/gpl: Fix filename, doc/gpl.texi is now found at
83650         doc/gpl-2.0.texi.
83652 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
83654         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
83655         #define __STDC_LIMIT_MACROS temporarily while including
83656         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
83657         Problem reported by Joel E. Denny in
83658         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
83660 2007-07-01  Bruno Haible  <bruno@clisp.org>
83662         * lib/unistdio.h: New file.
83663         * lib/unistdio/u-asnprintf.h: New file.
83664         * lib/unistdio/u-asprintf.h: New file.
83665         * lib/unistdio/u-printf-args.c: New file.
83666         * lib/unistdio/u-printf-args.h: New file.
83667         * lib/unistdio/u-printf-parse.h: New file.
83668         * lib/unistdio/u-snprintf.h: New file.
83669         * lib/unistdio/u-sprintf.h: New file.
83670         * lib/unistdio/u-vasprintf.h: New file.
83671         * lib/unistdio/u-vsnprintf.h: New file.
83672         * lib/unistdio/u-vsprintf.h: New file.
83673         * lib/unistdio/ulc-asnprintf.c: New file.
83674         * lib/unistdio/ulc-asprintf.c: New file.
83675         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
83676         * lib/unistdio/ulc-printf-parse.c: New file.
83677         * lib/unistdio/ulc-snprintf.c: New file.
83678         * lib/unistdio/ulc-sprintf.c: New file.
83679         * lib/unistdio/ulc-vasnprintf.c: New file.
83680         * lib/unistdio/ulc-vasprintf.c: New file.
83681         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
83682         * lib/unistdio/ulc-vsnprintf.c: New file.
83683         * lib/unistdio/ulc-vsprintf.c: New file.
83684         * lib/unistdio/u8-asnprintf.c: New file.
83685         * lib/unistdio/u8-asprintf.c: New file.
83686         * lib/unistdio/u8-printf-parse.c: New file.
83687         * lib/unistdio/u8-snprintf.c: New file.
83688         * lib/unistdio/u8-sprintf.c: New file.
83689         * lib/unistdio/u8-vasnprintf.c: New file.
83690         * lib/unistdio/u8-vasprintf.c: New file.
83691         * lib/unistdio/u8-vsnprintf.c: New file.
83692         * lib/unistdio/u8-vsprintf.c: New file.
83693         * lib/unistdio/u8-u8-asnprintf.c: New file.
83694         * lib/unistdio/u8-u8-asprintf.c: New file.
83695         * lib/unistdio/u8-u8-snprintf.c: New file.
83696         * lib/unistdio/u8-u8-sprintf.c: New file.
83697         * lib/unistdio/u8-u8-vasnprintf.c: New file.
83698         * lib/unistdio/u8-u8-vasprintf.c: New file.
83699         * lib/unistdio/u8-u8-vsnprintf.c: New file.
83700         * lib/unistdio/u8-u8-vsprintf.c: New file.
83701         * lib/unistdio/u16-asnprintf.c: New file.
83702         * lib/unistdio/u16-asprintf.c: New file.
83703         * lib/unistdio/u16-printf-parse.c: New file.
83704         * lib/unistdio/u16-snprintf.c: New file.
83705         * lib/unistdio/u16-sprintf.c: New file.
83706         * lib/unistdio/u16-vasnprintf.c: New file.
83707         * lib/unistdio/u16-vasprintf.c: New file.
83708         * lib/unistdio/u16-vsnprintf.c: New file.
83709         * lib/unistdio/u16-vsprintf.c: New file.
83710         * lib/unistdio/u16-u16-asnprintf.c: New file.
83711         * lib/unistdio/u16-u16-asprintf.c: New file.
83712         * lib/unistdio/u16-u16-snprintf.c: New file.
83713         * lib/unistdio/u16-u16-sprintf.c: New file.
83714         * lib/unistdio/u16-u16-vasnprintf.c: New file.
83715         * lib/unistdio/u16-u16-vasprintf.c: New file.
83716         * lib/unistdio/u16-u16-vsnprintf.c: New file.
83717         * lib/unistdio/u16-u16-vsprintf.c: New file.
83718         * lib/unistdio/u32-asnprintf.c: New file.
83719         * lib/unistdio/u32-asprintf.c: New file.
83720         * lib/unistdio/u32-printf-parse.c: New file.
83721         * lib/unistdio/u32-snprintf.c: New file.
83722         * lib/unistdio/u32-sprintf.c: New file.
83723         * lib/unistdio/u32-vasnprintf.c: New file.
83724         * lib/unistdio/u32-vasprintf.c: New file.
83725         * lib/unistdio/u32-vsnprintf.c: New file.
83726         * lib/unistdio/u32-vsprintf.c: New file.
83727         * lib/unistdio/u32-u32-asnprintf.c: New file.
83728         * lib/unistdio/u32-u32-asprintf.c: New file.
83729         * lib/unistdio/u32-u32-snprintf.c: New file.
83730         * lib/unistdio/u32-u32-sprintf.c: New file.
83731         * lib/unistdio/u32-u32-vasnprintf.c: New file.
83732         * lib/unistdio/u32-u32-vasprintf.c: New file.
83733         * lib/unistdio/u32-u32-vsnprintf.c: New file.
83734         * lib/unistdio/u32-u32-vsprintf.c: New file.
83735         * tests/unistdio/test-ulc-asnprintf1.c: New file.
83736         * tests/unistdio/test-ulc-asnprintf1.h: New file.
83737         * tests/unistdio/test-ulc-printf1.h: New file.
83738         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
83739         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
83740         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
83741         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
83742         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
83743         * tests/unistdio/test-ulc-vasprintf1.c: New file.
83744         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
83745         * tests/unistdio/test-ulc-vsprintf1.c: New file.
83746         * tests/unistdio/test-u8-asnprintf1.c: New file.
83747         * tests/unistdio/test-u8-asnprintf1.h: New file.
83748         * tests/unistdio/test-u8-printf1.h: New file.
83749         * tests/unistdio/test-u8-vasnprintf1.c: New file.
83750         * tests/unistdio/test-u8-vasnprintf2.c: New file.
83751         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
83752         * tests/unistdio/test-u8-vasnprintf3.c: New file.
83753         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
83754         * tests/unistdio/test-u8-vasprintf1.c: New file.
83755         * tests/unistdio/test-u8-vsnprintf1.c: New file.
83756         * tests/unistdio/test-u8-vsprintf1.c: New file.
83757         * tests/unistdio/test-u16-asnprintf1.c: New file.
83758         * tests/unistdio/test-u16-asnprintf1.h: New file.
83759         * tests/unistdio/test-u16-printf1.h: New file.
83760         * tests/unistdio/test-u16-vasnprintf1.c: New file.
83761         * tests/unistdio/test-u16-vasnprintf2.c: New file.
83762         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
83763         * tests/unistdio/test-u16-vasnprintf3.c: New file.
83764         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
83765         * tests/unistdio/test-u16-vasprintf1.c: New file.
83766         * tests/unistdio/test-u16-vsnprintf1.c: New file.
83767         * tests/unistdio/test-u16-vsprintf1.c: New file.
83768         * tests/unistdio/test-u32-asnprintf1.c: New file.
83769         * tests/unistdio/test-u32-asnprintf1.h: New file.
83770         * tests/unistdio/test-u32-printf1.h: New file.
83771         * tests/unistdio/test-u32-vasnprintf1.c: New file.
83772         * tests/unistdio/test-u32-vasnprintf2.c: New file.
83773         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
83774         * tests/unistdio/test-u32-vasnprintf3.c: New file.
83775         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
83776         * tests/unistdio/test-u32-vasprintf1.c: New file.
83777         * tests/unistdio/test-u32-vsnprintf1.c: New file.
83778         * tests/unistdio/test-u32-vsprintf1.c: New file.
83779         * modules/unistdio/base: New file.
83780         * modules/unistdio/u-printf-args: New file.
83781         * modules/unistdio/ulc-asnprintf: New file.
83782         * modules/unistdio/ulc-asprintf: New file.
83783         * modules/unistdio/ulc-fprintf: New file.
83784         * modules/unistdio/ulc-printf-parse: New file.
83785         * modules/unistdio/ulc-snprintf: New file.
83786         * modules/unistdio/ulc-sprintf: New file.
83787         * modules/unistdio/ulc-vasnprintf: New file.
83788         * modules/unistdio/ulc-vasprintf: New file.
83789         * modules/unistdio/ulc-vfprintf: New file.
83790         * modules/unistdio/ulc-vsnprintf: New file.
83791         * modules/unistdio/ulc-vsprintf: New file.
83792         * modules/unistdio/u8-asnprintf: New file.
83793         * modules/unistdio/u8-asprintf: New file.
83794         * modules/unistdio/u8-printf-parse: New file.
83795         * modules/unistdio/u8-snprintf: New file.
83796         * modules/unistdio/u8-sprintf: New file.
83797         * modules/unistdio/u8-vasnprintf: New file.
83798         * modules/unistdio/u8-vasprintf: New file.
83799         * modules/unistdio/u8-vsnprintf: New file.
83800         * modules/unistdio/u8-vsprintf: New file.
83801         * modules/unistdio/u8-u8-asnprintf: New file.
83802         * modules/unistdio/u8-u8-asprintf: New file.
83803         * modules/unistdio/u8-u8-snprintf: New file.
83804         * modules/unistdio/u8-u8-sprintf: New file.
83805         * modules/unistdio/u8-u8-vasnprintf: New file.
83806         * modules/unistdio/u8-u8-vasprintf: New file.
83807         * modules/unistdio/u8-u8-vsnprintf: New file.
83808         * modules/unistdio/u8-u8-vsprintf: New file.
83809         * modules/unistdio/u16-asnprintf: New file.
83810         * modules/unistdio/u16-asprintf: New file.
83811         * modules/unistdio/u16-printf-parse: New file.
83812         * modules/unistdio/u16-snprintf: New file.
83813         * modules/unistdio/u16-sprintf: New file.
83814         * modules/unistdio/u16-vasnprintf: New file.
83815         * modules/unistdio/u16-vasprintf: New file.
83816         * modules/unistdio/u16-vsnprintf: New file.
83817         * modules/unistdio/u16-vsprintf: New file.
83818         * modules/unistdio/u16-u16-asnprintf: New file.
83819         * modules/unistdio/u16-u16-asprintf: New file.
83820         * modules/unistdio/u16-u16-snprintf: New file.
83821         * modules/unistdio/u16-u16-sprintf: New file.
83822         * modules/unistdio/u16-u16-vasnprintf: New file.
83823         * modules/unistdio/u16-u16-vasprintf: New file.
83824         * modules/unistdio/u16-u16-vsnprintf: New file.
83825         * modules/unistdio/u16-u16-vsprintf: New file.
83826         * modules/unistdio/u32-asnprintf: New file.
83827         * modules/unistdio/u32-asprintf: New file.
83828         * modules/unistdio/u32-printf-parse: New file.
83829         * modules/unistdio/u32-snprintf: New file.
83830         * modules/unistdio/u32-sprintf: New file.
83831         * modules/unistdio/u32-vasnprintf: New file.
83832         * modules/unistdio/u32-vasprintf: New file.
83833         * modules/unistdio/u32-vsnprintf: New file.
83834         * modules/unistdio/u32-vsprintf: New file.
83835         * modules/unistdio/u32-u32-asnprintf: New file.
83836         * modules/unistdio/u32-u32-asprintf: New file.
83837         * modules/unistdio/u32-u32-snprintf: New file.
83838         * modules/unistdio/u32-u32-sprintf: New file.
83839         * modules/unistdio/u32-u32-vasnprintf: New file.
83840         * modules/unistdio/u32-u32-vasprintf: New file.
83841         * modules/unistdio/u32-u32-vsnprintf: New file.
83842         * modules/unistdio/u32-u32-vsprintf: New file.
83843         * modules/unistdio/ulc-asnprintf-tests: New file.
83844         * modules/unistdio/ulc-vasnprintf-tests: New file.
83845         * modules/unistdio/ulc-vasprintf-tests: New file.
83846         * modules/unistdio/ulc-vsnprintf-tests: New file.
83847         * modules/unistdio/ulc-vsprintf-tests: New file.
83848         * modules/unistdio/u8-asnprintf-tests: New file.
83849         * modules/unistdio/u8-vasnprintf-tests: New file.
83850         * modules/unistdio/u8-vasprintf-tests: New file.
83851         * modules/unistdio/u8-vsnprintf-tests: New file.
83852         * modules/unistdio/u8-vsprintf-tests: New file.
83853         * modules/unistdio/u16-asnprintf-tests: New file.
83854         * modules/unistdio/u16-vasnprintf-tests: New file.
83855         * modules/unistdio/u16-vasprintf-tests: New file.
83856         * modules/unistdio/u16-vsnprintf-tests: New file.
83857         * modules/unistdio/u16-vsprintf-tests: New file.
83858         * modules/unistdio/u32-asnprintf-tests: New file.
83859         * modules/unistdio/u32-vasnprintf-tests: New file.
83860         * modules/unistdio/u32-vasprintf-tests: New file.
83861         * modules/unistdio/u32-vsnprintf-tests: New file.
83862         * modules/unistdio/u32-vsprintf-tests: New file.
83863         * MODULES.html.sh (Unicode string functions): Add the new modules.
83865 2007-07-01  Bruno Haible  <bruno@clisp.org>
83867         * lib/sprintf.c (sprintf): Limit the available length estimation,
83868         to avoid address wraparound.
83869         * lib/vsprintf.c (vsprintf): Likewise.
83870         * modules/sprintf-posix (Dependencies): Add stdint.
83871         * modules/vsprintf-posix (Dependencies): Likewise.
83873 2007-07-01  Bruno Haible  <bruno@clisp.org>
83875         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
83876         Windows PATH as well. Conservative double-quoting. Comments.
83878 2007-07-01  Bruno Haible  <bruno@clisp.org>
83879             Eric Blake  <ebb9@byu.net>
83880             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83882         * gnulib-tool (self_abspathname): Fix algorithm to cope with
83883         empty components in $PATH, denoting '.'.
83885 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83887         * gnulib-tool: Fix indentation.
83888         (func_create_megatestdir): Likewise.
83889         Report by Bruno Haible.
83891 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83893         Sync from Automake.
83894         * build-aux/gnupload: Fix shell portability issues with for loops.
83895         Report by Karl Berry.
83897 2007-06-29  Simon Josefsson  <simon@josefsson.org>
83899         * build-aux/maint.mk (POURL): Use translationproject.org.
83901 2007-06-27  Simon Josefsson  <simon@josefsson.org>
83902             Bruno Haible  <bruno@clisp.org>
83904         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
83905         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
83906         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
83907         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
83908         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
83910 2007-06-27  Bruno Haible  <bruno@clisp.org>
83912         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
83913         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
83915 2007-06-26  Karl Berry  <karl@gnu.org>
83917         * MODULES.html.sh: remove xreadlink-with-size.
83919 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
83921         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
83922         method that I hope also handles the double-include problem noted
83923         by Bruno Haible in
83924         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
83926 2007-06-23  Bruno Haible  <bruno@clisp.org>
83928         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
83929         Don't let the 'mostlyclean' target fail if the last subdirectory could
83930         not be removed.
83931         Reported by Karl Berry.
83933 2007-06-23  Bruno Haible  <bruno@clisp.org>
83935         * gnulib-tool (echo): Add a speedier workaround for ksh.
83936         * tests/test-echo.sh: Likewise.
83938 2007-06-23  Bruno Haible  <bruno@clisp.org>
83940         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
83941         * tests/test-echo.sh: Likewise.
83943 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83945         * gnulib-tool (IFS): Initialize early, so we don't set it to
83946         empty later.
83947         (self_abspathname): Rewrite algorithm to set it, reindent.
83948         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
83949         (func_create_megatestdir): Merge some sed scripts.
83951 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
83953         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
83954         exposed by Sun Studio 11 cc on Solaris 8.
83956 2007-06-22  Bruno Haible  <bruno@clisp.org>
83958         * gnulib-tool (echo): Ensure the echo primitive does not interpret
83959         backslashes.
83960         * tests/test-echo.sh: New file.
83962 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83964         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
83965         simplify `sed_replace_build_aux' scripts, they are portable but
83966         echoing them with `echo' is not.
83967         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
83969 2007-06-21  Karl Berry  <karl@gnu.org>
83971         * config/srclist.txt: guess we can't handle the licenses via
83972         srclist at the moment.
83974 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
83976         * MODULES.html.sh: Add include_next.
83977         * modules/include_next: New file.
83979 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
83981         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
83982         INCLUDE_NEXT.
83983         (gl_CHECK_NEXT_HEADERS): New macro.
83984         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
83985         the obsolescent gl_ABSOLUTE_HEADER.
83986         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
83987         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
83988         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
83989         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
83990         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
83991         * m4/math_h.m4 (gl_MATH_H): Likewise.
83992         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
83993         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
83994         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
83995         * m4/stdint.m4 (gl_STDINT_H): Likewise.
83996         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
83997         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
83998         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
83999         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
84000         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
84001         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
84002         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
84003         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
84004         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
84005         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
84006         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
84007         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
84008         * m4/inttypes.m4 (gl_INTTYPES_H): Define
84009         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
84010         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
84011         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
84012         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
84013         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
84014         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
84015         * lib/float_.h: Likewise.
84016         * lib/inttypes_.h: Likewise.
84017         * lib/math_.h: Likewise.
84018         * lib/search_.h: Likewise.
84019         * lib/signal_.h: Likewise.
84020         * lib/stdint_.h: Likewise.
84021         * lib/stdio_.h: Likewise.
84022         * lib/stdlib_.h: Likewise.
84023         * lib/string_.h: Likewise.
84024         * lib/sys_stat_.h: Likewise.
84025         * lib/sys_time_.h: Likewise.
84026         * lib/time_.h: Likewise.
84027         * lib/unistd_.h: Likewise.
84028         * lib/wchar_.h: Likewise.
84029         * lib/wctype_.h: Likewise.
84030         * lib/dirent_.h: Likewise.
84031         * lib/iconv_.h: Likewise.
84032         * lib/locale_.h: Likewise.
84033         * lib/netinet_in_.h: Likewise.
84034         * lib/sys_select_.h: Likewise.
84035         * lib/sys_socket_.h: Likewise.
84036         * lib/sysexits_.h: Likewise.
84037         * modules/fcntl (Depends-on): Depend on include_next, not
84038         absolute_header.
84039         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
84040         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
84041         * modules/fchdir: Likewise.
84042         * modules/float: Likewise.
84043         * modules/iconv_open: Likewise.
84044         * modules/inttypes: Likewise.
84045         * modules/locale: Likewise.
84046         * modules/math: Likewise.
84047         * modules/netinet_in: Likewise.
84048         * modules/search: Likewise.
84049         * modules/signal: Likewise.
84050         * modules/stdint: Likewise.
84051         * modules/stdio: Likewise.
84052         * modules/stdlib: Likewise.
84053         * modules/string: Likewise.
84054         * modules/sys_select: Likewise.
84055         * modules/sys_socket: Likewise.
84056         * modules/sys_stat: Likewise.
84057         * modules/sys_time: Likewise.
84058         * modules/sysexits: Likewise.
84059         * modules/time: Likewise.
84060         * modules/unistd: Likewise.
84061         * modules/wchar: Likewise.
84062         * modules/wctype: Likewise.
84063         * modules/sys_stat: Change maintainer to "all".
84064         * modules/unistd: Likewise.
84066 2007-06-20  Karl Berry  <karl@gnu.org>
84068         * config/srclist.txt: track www changes in license files.
84070 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
84072         * build-aux/bootstrap: Remove stray dot.
84073         Make sure build_aux settings are honored when linking
84074         gnulib_extra_files.
84076 2007-06-19  Eric Blake  <ebb9@byu.net>
84078         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
84079         Allow compilation on cygwin.
84081 2007-06-19  Jim Meyering  <jim@meyering.net>
84083         xreadlink-with-size: Remove module.  No longer used.
84084         Ex-callers now use xreadlink or mreadlink-with-size.
84085         * modules/xreadlink-with-size: Remove module.
84086         * lib/xreadlink-with-size.c: Remove file.
84087         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
84088         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
84089         just before the function definition *is* accurate.
84091         Eliminate one way canonicalize_filename_mode could exit.
84092         * lib/canonicalize.c (canonicalize_filename_mode):
84093         Use mreadlink_with_size, not xreadlink_with_size.
84095 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
84097         Detect porting problems to FreeBSD/arm, which has time_t wider than
84098         long int.  Original problem reported for GNU diff by Xin Li in
84099         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
84100         * modules/getdate (Depends-on): Add intprops, verify.
84101         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
84102         is an integer type no wider than long int.
84104 2007-06-18  Jim Meyering  <jim@meyering.net>
84106         New module: mreadlink-with-size.
84107         * MODULES.html.sh: Add mreadlink-with-size.
84108         * modules/mreadlink-with-size: New module
84109         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
84110         not xreadlink-with-size.
84111         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
84113 2007-06-16  Bruno Haible  <bruno@clisp.org>
84115         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
84116         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
84117         Reported by Gary V. Vaughan <gary@gnu.org>.
84119 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
84121         Revamp lchown so that it lives in unistd.h where it belongs.
84122         * lib/lchown.h: Remove.
84123         * lib/dirchownmod.c: Don't include lib/lchown.h.
84124         * lib/fchownat.c: Likewise.
84125         * lib/openat.c: Likewise.
84126         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
84127         does not follow symlinks.
84128         (EOPNOTSUPP): Define if not defined.
84129         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
84130         is defined to 0.
84131         (lchown): New decl.
84132         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
84133         Do not check for lchown decl.
84134         Set REPLACE_LCHOWN.
84135         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
84136         REPLACE_LCHOWN.
84137         * modules/chown: Make it clear it follows symlinks.
84138         * modules/lchown: Make it clear it doesn't follow symlinks.
84139         (Files): Remove lib/lchown.h
84140         (Depends-on): Add unistd.
84141         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
84142         (Include): Include <unistd.h>, not "lchown.h".
84143         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
84144         REPLACE_LCHOWN.
84146 2007-06-15  Jim Meyering  <jim@meyering.net>
84148         Change license (GPL to LGPL) of fsusage and dependents.
84149         * modules/fsusage (License): Change to LGPL.
84150         * modules/full-read (License): Likewise.
84151         * modules/full-write (License): Likewise.
84152         * modules/safe-read (License): Likewise.
84153         * modules/safe-write (License): Likewise.
84155 2007-06-14  Ben Pfaff  <blp@gnu.org>
84157         Missing part of allocsa -> malloca transition.
84158         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
84159         gl_MALLOCA.
84161 2007-06-12  Bruno Haible  <bruno@clisp.org>
84163         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
84164         to ia64, x86_64, i386.
84165         Reported by Eric Blake.
84167 2007-06-12  Bruno Haible  <bruno@clisp.org>
84169         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
84170         cross-compiling to x86_64.
84172 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
84174         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
84175         glitch reported by Ralf Wildenhues in
84176         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
84178         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
84179         Vin Shelton.
84181 2007-06-11  Bruno Haible  <bruno@clisp.org>
84183         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
84184         replacement string.
84185         Reported by Eric Blake.
84187 2007-06-10  Bruno Haible  <bruno@clisp.org>
84189         Prepare vasnprintf code for use with Unicode strings.
84190         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
84191         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
84192         TYPE_U32_STRING.
84193         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
84194         a_u32_string variants.
84195         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
84196         * lib/printf-args.c: Don't include config.h and the specification
84197         header if PRINTF_FETCHARGS is already defined.
84198         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
84199         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
84200         TYPE_U16_STRING, TYPE_U32_STRING.
84201         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
84202         u16_directive, u16_directives, u32_directive, u32_directives): New
84203         types.
84204         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
84205         New declarations.
84206         * lib/printf-parse.c: Don't include config.h and the specification
84207         header if PRINTF_PARSE is already defined. Eliminate the set of
84208         parameters for WIDE_CHAR_VERSION; the user of this file must provide
84209         them now. Include c-ctype.h.
84210         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
84211         directive and CHAR_T_ONLY_ASCII.
84212         * lib/vasnprintf.c: Don't include config.h and the specification header
84213         if VASNPRINTF is already defined.
84214         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
84215         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
84216         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
84217         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
84218         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
84219         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
84220         code accordingly.
84221         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
84222         pad_ourselves also in this case, with the 'c' and 's' directives, and
84223         with a different notion of "width".
84224         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
84226 2007-06-10  Bruno Haible  <bruno@clisp.org>
84228         * modules/unistr/u32-mbsnlen: New file.
84229         * lib/unistr/u32-mbsnlen.c: New file.
84231         * modules/unistr/u16-mbsnlen: New file.
84232         * lib/unistr/u16-mbsnlen.c: New file.
84234         * modules/unistr/u8-mbsnlen: New file.
84235         * lib/unistr/u8-mbsnlen.c: New file.
84237         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
84238         declarations.
84240 2007-06-10  Bruno Haible  <bruno@clisp.org>
84242         * lib/string_.h (mbsnlen): New declaration.
84243         * lib/mbsnlen.c: New file.
84244         * m4/mbsnlen.m4: New file.
84245         * modules/mbsnlen: New file.
84246         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
84247         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
84248         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
84250 2007-06-10  Bruno Haible  <bruno@clisp.org>
84252         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
84254 2007-06-10  Bruno Haible  <bruno@clisp.org>
84256         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
84257         * lib/mbuiter.h: Likewise.
84259 2007-06-10  Bruno Haible  <bruno@clisp.org>
84261         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
84262         declaration.
84264 2007-06-10  Karl Berry  <karl@gnu.org>
84266         * config/srclist.txt: remove gettext entries, Bruno prefers
84267         to update individually.
84269 2007-06-10  Bruno Haible  <bruno@clisp.org>
84271         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
84272         'maxlen'. Ensure only length + width bytes are allocated, not
84273         length + 1 + width.
84275 2007-06-09  Bruno Haible  <bruno@clisp.org>
84277         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
84278         (CHAR_T): Remove macro.
84279         (VASNPRINTF): Update.
84281 2007-06-09  Bruno Haible  <bruno@clisp.org>
84283         * MODULES.html.sh (Unicode string functions): Add the new modules.
84285         * modules/uniconv/u32-conv-to-enc: New file.
84286         * lib/uniconv/u32-conv-to-enc.c: New file.
84287         * modules/uniconv/u32-conv-to-enc-tests: New file.
84288         * tests/uniconv/test-u32-conv-to-enc.c: New file.
84290         * modules/uniconv/u16-conv-to-enc: New file.
84291         * lib/uniconv/u16-conv-to-enc.c: New file.
84292         * lib/uniconv/u-conv-to-enc.h: New file.
84293         * modules/uniconv/u16-conv-to-enc-tests: New file.
84294         * tests/uniconv/test-u16-conv-to-enc.c: New file.
84296         * modules/uniconv/u8-conv-to-enc: New file.
84297         * lib/uniconv/u8-conv-to-enc.c: New file.
84298         * modules/uniconv/u8-conv-to-enc-tests: New file.
84299         * tests/uniconv/test-u8-conv-to-enc.c: New file.
84301         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
84302         u32_conv_to_encoding): New declarations.
84304 2007-06-09  Bruno Haible  <bruno@clisp.org>
84306         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
84308 2007-06-09  Bruno Haible  <bruno@clisp.org>
84310         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
84311         * modules/malloca: Renamed from modules/allocsa, updated.
84312         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
84313         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
84314         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
84315         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
84316         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
84317         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
84318         * modules/xmalloca: Renamed from modules/xallocsa, updated.
84319         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
84320         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
84321         * modules/c-strcasestr (Depends-on): Update.
84322         * lib/c-strcasestr.c: Update.
84323         * modules/c-strstr (Depends-on): Update.
84324         * lib/c-strstr.c: Update.
84325         * modules/canonicalize-lgpl (Depends-on): Update.
84326         * lib/canonicalize-lgpl.c: Update.
84327         * modules/clean-temp (Depends-on): Update.
84328         * lib/clean-temp.c: Update.
84329         * modules/csharpcomp (Depends-on): Update.
84330         * lib/csharpcomp.c: Update.
84331         * modules/csharpexec (Depends-on): Update.
84332         * lib/csharpexec.c: Update.
84333         * modules/javacomp (Depends-on): Update.
84334         * lib/javacomp.c: Update.
84335         * modules/javaexec (Depends-on): Update.
84336         * lib/javaexec.c: Update.
84337         * modules/mbscasestr (Depends-on): Update.
84338         * lib/mbscasestr.c: Update.
84339         * modules/mbsstr (Depends-on): Update.
84340         * lib/mbsstr.c: Update.
84341         * modules/setenv (Depends-on): Update.
84342         * lib/setenv.c: Update.
84343         * modules/strcasestr (Depends-on): Update.
84344         * lib/strcasestr.c: Update.
84345         * modules/striconveha (Depends-on): Update.
84346         * lib/striconveha.c: Update.
84347         * modules/relocatable-prog-wrapper (Files): Update.
84348         * lib/relocwrapper.c: Update.
84349         * build-aux/install-reloc: Update.
84350         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
84352 2007-06-08  Bruno Haible  <bruno@clisp.org>
84354         Port to uClibc.
84355         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
84356         * lib/fpurge.c (fpurge): Likewise.
84357         * lib/freading.c (freading): Likewise.
84358         * lib/fseeko.c (rpl_fseeko): Likewise.
84359         * lib/fseterr.c (fseterr): Likewise.
84360         * lib/fwriting.c (fwriting): Likewise.
84361         * tests/test-fflush.c (main): Avoid a failure on uClibc.
84363 2007-06-08  Bruno Haible  <bruno@clisp.org>
84365         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
84366         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
84367         * modules/gettext (Files): Add m4/intlmacosx.m4.
84369 2007-06-07  Bruno Haible  <bruno@clisp.org>
84371         * modules/localename-tests: New file.
84372         * tests/test-localename.c: New file.
84374         New module 'localename'.
84375         * lib/localename.h: New file.
84376         * lib/localename.c: New file, from GNU gettext.
84377         * m4/localename.m4: New file.
84378         * modules/localename: New file.
84380 2007-06-07  Bruno Haible  <bruno@clisp.org>
84382         Work around the lack of <wchar.h> on some builds of uClibc.
84383         * doc/headers/wchar.texi: Update.
84384         * lib/wchar_.h: Include <wchar.h> only if it exists.
84385         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
84386         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
84387         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
84388         doesn't exist.
84389         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
84390         * modules/mbfile (Depends-on): Add wchar.
84391         * modules/mbiter (Depends-on): Likewise.
84392         * modules/mbuiter (Depends-on): Likewise.
84393         Reported by Simon Josefsson.
84395 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
84397         Work around problem reported by Steven M. Schweda in
84398         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
84399         Tru64 5.1B with the Compaq compiler environment installed declares
84400         an 'isblank' function but does not define it in the C library.
84401         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
84402         * lib/regex_internal.h (isblank): Likewise.
84403         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
84404         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
84406 2007-06-05  Bruno Haible  <bruno@clisp.org>
84408         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
84409         ia64.
84410         * modules/printf-safe: New file.
84411         * modules/fprintf-posix (Depends-on): Add printf-safe.
84412         * modules/printf-posix (Depends-on): Likewise.
84413         * modules/snprintf-posix (Depends-on): Likewise.
84414         * modules/sprintf-posix (Depends-on): Likewise.
84415         * modules/vasnprintf-posix (Depends-on): Likewise.
84416         * modules/vasprintf-posix (Depends-on): Likewise.
84417         * modules/vfprintf-posix (Depends-on): Likewise.
84418         * modules/vprintf-posix (Depends-on): Likewise.
84419         * modules/vsnprintf-posix (Depends-on): Likewise.
84420         * modules/vsprintf-posix (Depends-on): Likewise.
84421         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
84422         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
84423         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
84424         "no" on i386, x86_64, ia64.
84425         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
84426         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
84427         on i386, x86_64, ia64.
84428         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
84429         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
84430         on i386, x86_64, ia64.
84431         * tests/test-vasnprintf-posix.c: Include float.h.
84432         (LDBL80_WORDS): New macro.
84433         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
84434         on i386, x86_64, ia64.
84435         * tests/test-vasprintf-posix.c: Include float.h.
84436         (LDBL80_WORDS): New macro.
84437         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
84438         on i386, x86_64, ia64.
84439         * tests/test-snprintf-posix.c: Include float.h.
84440         * tests/test-sprintf-posix.c: Likewise.
84441         * tests/test-vsnprintf-posix.c: Likewise.
84442         * tests/test-vsprintf-posix.c: Likewise.
84444 2007-06-05  Bruno Haible  <bruno@clisp.org>
84446         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
84447         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
84448         non-IEEE numbers on i386, x86_64, ia64.
84449         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
84450         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
84451         * tests/test-isnanl.h: Include float.h.
84452         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
84454 2007-06-05  Bruno Haible  <bruno@clisp.org>
84456         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
84457         also the %a / %A. Handle the %a / %A code before this extra handling.
84459 2007-06-05  Bruno Haible  <bruno@clisp.org>
84461         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
84462         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
84464 2007-06-05  Bruno Haible  <bruno@clisp.org>
84466         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
84467         typo in variable name.
84469 2007-06-05  Eric Blake  <ebb9@byu.net>
84471         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
84472         Reported by Simon Josefsson.
84474 2007-06-04  Bruno Haible  <bruno@clisp.org>
84476         Avoid test failures on some PowerPC platforms.
84477         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
84478         Define differently for PowerPC.
84479         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
84480         Reported by Gary V. Vaughan <gary@gnu.org>.
84482 2007-06-02  Bruno Haible  <bruno@clisp.org>
84484         Fix test-stdint failure on FreeBSD/ia64.
84485         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
84486         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
84487         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
84488         * doc/headers/stdint.texi: Update.
84490 2007-06-01  Bruno Haible  <bruno@clisp.org>
84492         * tests/test-binary-io.c (main): Pass a third argument to open().
84493         Reported by Gary V. Vaughan <gary@gnu.org>.
84495 2007-06-01  Bruno Haible  <bruno@clisp.org>
84497         * doc/functions/frexpl.texi: Update for mingw.
84499 2007-06-01  Bruno Haible  <bruno@clisp.org>
84501         * tests/test-lseek.c (main): Disable test of errno for invalid third
84502         argument.
84503         * doc/functions/lseek.texi: Update.
84504         Reported by Gary V. Vaughan <gary@gnu.org>.
84506 2007-05-28  Bruno Haible  <bruno@clisp.org>
84508         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
84510 2007-05-31  Eric Blake  <ebb9@byu.net>
84512         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
84513         cross compiling.
84515 2007-05-30  Eric Blake  <ebb9@byu.net>
84516         and Bruno Haible  <bruno@clisp.org>
84518         Work around mingw test failures exposed by m4-1.4.9b.
84519         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
84520         * tests/test-unistd.c: Disable uid_t and git_t tests for the
84521         moment.
84523 2007-05-30  Bruno Haible  <bruno@clisp.org>
84525         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
84526         assuming that they are closed. Needed on HP-UX 11.
84528 2007-05-29  Bruno Haible  <bruno@clisp.org>
84530         Fix a problem with #include_next.
84531         * lib/dirent_.h: Split the double-inclusion guard.
84532         * lib/fcntl_.h: Likewise.
84533         * lib/float_.h: Likewise.
84534         * lib/iconv_.h: Likewise.
84535         * lib/inttypes_.h: Likewise.
84536         * lib/locale_.h: Likewise.
84537         * lib/math_.h: Likewise.
84538         * lib/netinet_in_.h: Likewise.
84539         * lib/search_.h: Likewise.
84540         * lib/signal_.h: Likewise.
84541         * lib/stdint_.h: Likewise.
84542         * lib/stdio_.h: Likewise.
84543         * lib/stdlib_.h: Likewise.
84544         * lib/string_.h: Likewise.
84545         * lib/sys_select_.h: Likewise.
84546         * lib/sys_socket_.h: Likewise.
84547         * lib/sys_stat_.h: Likewise.
84548         * lib/sys_time_.h: Likewise.
84549         * lib/sysexits_.h: Likewise.
84550         * lib/time_.h: Likewise.
84551         * lib/unistd_.h: Likewise.
84552         * lib/wchar_.h: Likewise.
84553         * lib/wctype_.h: Likewise.
84555 2007-05-29  Bruno Haible  <bruno@clisp.org>
84557         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
84558         for the moment.
84560 2007-05-29  Bruno Haible  <bruno@clisp.org>
84562         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
84563         invocation.
84564         Reported by Eric Blake.
84566 2007-05-29  Bruno Haible  <bruno@clisp.org>
84568         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
84569         compiling case.
84571 2007-05-29  Eric Blake  <ebb9@byu.net>
84572             Bruno Haible  <bruno@clisp.org>
84574         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
84575         cross compiles.
84577 2007-05-28  Eric Blake  <ebb9@byu.net>
84579         * modules/closein-tests (test_closein_LDADD): Support test on
84580         cygwin with libtool.
84582 2007-05-28  Bruno Haible  <bruno@clisp.org>
84584         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
84585         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
84586         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
84587         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
84588         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
84589         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
84590         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
84591         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
84592         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
84594 2007-05-28  Eric Blake  <ebb9@byu.net>
84596         Unconditionally include <config.h> in unit tests.
84597         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
84598         * tests/test-allocsa.c, tests/test-arcfour.c,
84599         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
84600         tests/test-array_list.c, tests/test-array_oset.c,
84601         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
84602         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
84603         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
84604         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
84605         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
84606         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
84607         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
84608         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
84609         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
84610         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
84611         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
84612         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
84613         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
84614         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
84615         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
84616         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
84617         test-md5.c, test-memmem.c, test-printf-posix.c,
84618         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
84619         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
84620         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
84621         test-strcasestr.c, test-striconv.c, test-striconveh.c,
84622         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
84623         test-vasnprintf-posix2.c, test-vasnprintf.c,
84624         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
84625         test-vfprintf-posix.c, test-vprintf-posix.c,
84626         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
84627         test-xvasprintf.c: Likewise.
84629 2007-05-28  Bruno Haible  <bruno@clisp.org>
84631         * gnulib-tool (func_import): Remember the --with-tests command-line
84632         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
84633         Reported by Eric Blake.
84635 2007-05-28  Bruno Haible  <bruno@clisp.org>
84637         * modules/ftell-tests: New file.
84638         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
84639         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
84641         * lib/ftell.c: New file.
84642         * modules/ftell: New file.
84643         * m4/ftell.m4: New file.
84644         * doc/functions/ftell.texi: Update.
84645         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
84646         REPLACE_FTELL.
84647         * lib/stdio_.h (rpl_ftell): New declaration.
84648         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
84649         REPLACE_FTELL.
84651 2007-05-28  Eric Blake  <ebb9@byu.net>
84653         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
84655 2007-05-28  Bruno Haible  <bruno@clisp.org>
84657         * modules/fseek-tests: New file.
84658         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
84659         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
84661         * lib/fseek.c: New file.
84662         * modules/fseek: New file.
84663         * m4/fseek.m4: New file.
84664         * doc/functions/fseek.texi: Update.
84665         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
84666         REPLACE_FSEEK.
84667         * lib/stdio_.h (rpl_fseek): New declaration.
84668         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
84669         REPLACE_FSEEK.
84671 2007-05-28  Bruno Haible  <bruno@clisp.org>
84673         * lib/stdio_.h (fflush): More comments.
84675 2007-05-28  Bruno Haible  <bruno@clisp.org>
84677         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
84678         runtime test.
84680 2007-05-28  Eric Blake  <ebb9@byu.net>
84682         Improve lseek module.
84683         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
84684         * lib/unistd_.h (lseek): Scale back link warning message.
84685         * tests/test-lseek.c: Beef up test.
84686         * tests/test-lseek.sh: Exercise more facets of lseek.
84687         Reported by Bruno Haible.
84689 2007-05-28  Bruno Haible  <bruno@clisp.org>
84691         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
84692         to define.
84694 2007-05-27  Bruno Haible  <bruno@clisp.org>
84696         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
84698 2007-05-27  Bruno Haible  <bruno@clisp.org>
84700         * modules/openmp: New file.
84701         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
84702         Noah Misch.
84704 2007-05-26  Bruno Haible  <bruno@clisp.org>
84706         * modules/chdir-long (Depends-on): Add fchdir.
84707         * modules/chdir-safer (Depends-on): Likewise.
84708         * modules/fts (Depends-on): Likewise.
84709         * modules/fts-lgpl (Depends-on): Likewise.
84710         * modules/openat (Depends-on): Likewise.
84711         * modules/savewd (Depends-on): Likewise.
84713 2007-05-24  Eric Blake  <ebb9@byu.net>
84715         Fix lseek on mingw.
84716         * modules/lseek: New module.
84717         * m4/lseek.m4: New file.
84718         * lib/lseek.c: New file.
84719         * modules/lseek-tests: New file.
84720         * tests/test-lseek.c: New file.
84721         * tests/test-lseek.sh: New file.
84722         * MODULES.html.sh: Document lseek module.
84723         * modules/fflush (Depends-on): Add lseek, fseeko.
84724         * modules/fseeko (Depends-on): Likewise.
84725         * modules/ftello (Depends-on): Likewise.
84726         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
84727         broken.
84728         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
84729         broken.
84730         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
84731         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
84732         * lib/ftello.c (rpl_ftello): Likewise.
84733         * tests/test-fseeko.c (main): Test this.
84734         * tests/test-fseeko.sh: Likewise.
84735         * tests/test-ftello.c (main): Likewise.
84736         * tests/test-ftello.sh: Likewise.
84737         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
84738         implies replacing fseek.
84739         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
84740         HAVE_FTELLO.
84741         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
84742         * modules/unistd (Makefile.am): Likewise.
84743         * lib/unistd_.h (lseek): Declare a replacement.
84744         * doc/functions/lseek.texi (lseek): Document this fix.
84745         * doc/functions/fseek.texi (fseek): Likewise.
84746         * doc/functions/ftell.texi (ftell): Likewise.
84748 2007-05-24  Bruno Haible  <bruno@clisp.org>
84750         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
84751         in the printed representation of a NaN.
84752         * tests/test-vasprintf-posix.c (test_function): Likewise.
84753         * tests/test-snprintf-posix.h (test_function): Likewise.
84754         * tests/test-sprintf-posix.h (test_function): Likewise.
84755         Reported by Eric Blake.
84757 2007-05-23  Eric Blake  <ebb9@byu.net>
84759         Fix fseeko/ftello on cygwin 1.5.24.
84760         * doc/functions/fseeko.texi (fseeko): Document the fix.
84761         * doc/functions/ftello.texi (ftello): Document the fix.
84762         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
84763         * doc/functions/stdout.text (stdout): New file.
84764         * doc/functions/stderr.text (stderr): New file.
84765         * doc/gnulib.texi (Function Substitutes): Use new files.
84766         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
84767         prior to 1.7.0.
84768         * tests/test-ftello.c (main): Likewise for ftello.
84769         * tests/test-fseeko.sh: New file.
84770         * tests/test-ftello.sh: New file.
84771         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
84772         with seekable stdin.
84773         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
84774         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
84775         (gl_REPLACE_FSEEKO): New macro.
84776         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
84777         * modules/fseeko (Files): Distribute fseeko.c.
84778         * modules/ftello (Files): Distribute ftello.c.
84779         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
84780         mode.
84781         * lib/ftello.c (rpl_ftello): New file.
84782         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
84783         fseeko, ftello.
84784         (gl_STDIN_LARGE_OFFSET): New macro.
84785         * modules/stdio (Makefile.am): Perform the replacement.
84786         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
84788 2007-05-23  Bruno Haible  <bruno@clisp.org>
84790         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
84791         GNULIB_POSIXCHECK is defined.
84793 2007-05-21  Bruno Haible  <bruno@clisp.org>
84795         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
84796         Check also the output for NaN arguments. When cross-compiling, guess
84797         no on IRIX.
84798         * lib/vasnprintf.c: Update comments.
84799         * tests/test-vasnprintf-posix.c (strisnan): New function.
84800         (test_function): Use it.
84801         * tests/test-vasprintf-posix.c (strisnan): New function.
84802         (test_function): Use it.
84803         * tests/test-snprintf-posix.h (strisnan): New function.
84804         (test_function): Use it.
84805         * tests/test-sprintf-posix.h (strisnan): New function.
84806         (test_function): Use it.
84807         Reported by Eric Blake.
84809 2007-05-20  Bruno Haible  <bruno@clisp.org>
84811         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
84812         numbers that fails on BeOS.
84813         * doc/functions/frexpl.texi: Update.
84815 2007-05-20  Jim Meyering  <jim@meyering.net>
84817         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
84818         forced upon us by glibc-2.6.
84820 2007-05-20  Bruno Haible  <bruno@clisp.org>
84822         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
84823         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
84824         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
84825         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
84826         NEED_PRINTF_INFINITE.
84827         (is_infinitel): New function.
84828         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
84829         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
84830         gl_PREREQ_VASNPRINTF_INFINITE.
84831         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
84832         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
84833         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
84834         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
84835         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
84836         gl_PREREQ_VASNPRINTF_INFINITE.
84837         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
84838         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
84839         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
84840         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
84841         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
84842         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
84843         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
84844         * doc/functions/fprintf.texi: Update.
84845         * doc/functions/printf.texi: Update.
84846         * doc/functions/snprintf.texi: Update.
84847         * doc/functions/sprintf.texi: Update.
84848         * doc/functions/vfprintf.texi: Update.
84849         * doc/functions/vprintf.texi: Update.
84850         * doc/functions/vsnprintf.texi: Update.
84851         * doc/functions/vsprintf.texi: Update.
84853 2007-05-20  Bruno Haible  <bruno@clisp.org>
84855         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
84856         was not found in libc.
84857         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
84859 2007-05-20  Bruno Haible  <bruno@clisp.org>
84861         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
84862         printed as "-nan" instead of "nan".
84863         * tests/test-vasprintf-posix.c (test_function): Likewise.
84864         * tests/test-snprintf-posix.h (test_function): Likewise.
84865         * tests/test-sprintf-posix.h (test_function): Likewise.
84866         Needed for HP-UX 11.
84868 2007-05-20  Jim Meyering  <jim@meyering.net>
84870         Fix buggy test for the fchownat-deref bug.
84871         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
84872         symlink required for the run-test.  Without it, this test would
84873         always declare that fchownat doesn't work, and client code would
84874         unnecessarily use the replacement function with fixed libc.
84875         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
84876         Reported by Greg Schafer.
84878 2007-05-19  Bruno Haible  <bruno@clisp.org>
84880         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
84881         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
84882         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
84883         Needed for IRIX 6.5 and Solaris 2.5.1.
84885 2007-05-19  Bruno Haible  <bruno@clisp.org>
84887         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
84888         (test_function): Skip tests involving -0.0 on platforms where
84889         -0.0 = 0.0.
84890         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
84891         (test_function): Skip tests involving -0.0 on platforms where
84892         -0.0 = 0.0.
84893         * tests/test-snprintf-posix.h (have_minus_zero): New function.
84894         (test_function): Skip tests involving -0.0 on platforms where
84895         -0.0 = 0.0.
84896         * tests/test-sprintf-posix.h (have_minus_zero): New function.
84897         (test_function): Skip tests involving -0.0 on platforms where
84898         -0.0 = 0.0.
84899         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
84900         tests.
84901         * tests/test-printf-posix.h (test_function): Likewise.
84902         * tests/test-printf-posix.output: Remove all -0.0 related results.
84903         Needed for IRIX 6.5.
84905 2007-05-19  Bruno Haible  <bruno@clisp.org>
84907         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
84908         printed as "nan0x7fffffff" instead of "nan".
84909         * tests/test-vasprintf-posix.c (test_function): Likewise.
84910         * tests/test-snprintf-posix.h (test_function): Likewise.
84911         * tests/test-sprintf-posix.h (test_function): Likewise.
84912         * tests/test-fprintf-posix.h (NaN): Remove macro.
84913         (test_function): Remove all NaN related tests.
84914         * tests/test-printf-posix.h (NaN): Remove macro.
84915         (test_function): Remove all NaN related tests.
84916         * tests/test-printf-posix.output: Remove all NaN related results.
84917         Needed for IRIX 6.5.
84919 2007-05-19  Bruno Haible  <bruno@clisp.org>
84921         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
84922         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
84924 2007-05-19  Bruno Haible  <bruno@clisp.org>
84926         * lib/float_.h: New file.
84927         * m4/float_h.m4: New file.
84928         * modules/float: New file.
84929         * modules/isnanl (Dependencies): Add float.
84930         * modules/isnanl-nolibm (Dependencies): Likewise.
84931         * modules/mathl (Dependencies): Likewise.
84932         * modules/printf-frexpl (Dependencies): Likewise.
84933         * modules/signbit (Dependencies): Likewise.
84934         * modules/vasnprintf (Dependencies): Likewise.
84935         * doc/headers/float.texi: Update.
84937 2007-05-19  Jim Meyering  <jim@meyering.net>
84939         * lib/utimens.c (gl_futimens): Rename from futimens,
84940         now that glibc-2.6 declares futimens.
84941         * lib/utimens.h: Likewise.
84943 2007-05-19  Bruno Haible  <bruno@clisp.org>
84945         Avoid test failures on mingw.
84946         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
84947         * tests/test-printf-posix.sh: Likewise.
84948         * tests/test-vfprintf-posix.sh: Likewise.
84949         * tests/test-vprintf-posix.sh: Likewise.
84951 2007-05-19  Bruno Haible  <bruno@clisp.org>
84953         Fix *printf result for NaN, Inf, -0.0 on mingw.
84954         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
84955         * lib/vasnprintf.c: Include math.h and isnan.h.
84956         (is_infinite_or_zero): New function.
84957         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
84958         values in the %f, %F, %e, %E, %g, %G directives.
84959         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
84960         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
84961         gl_PRINTF_INFINITE and test its result. Invoke
84962         gl_PREREQ_VASNPRINTF_INFINITE.
84963         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
84964         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
84965         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
84966         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
84967         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
84968         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
84969         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
84970         * doc/functions/fprintf.texi: Update.
84971         * doc/functions/printf.texi: Update.
84972         * doc/functions/snprintf.texi: Update.
84973         * doc/functions/sprintf.texi: Update.
84974         * doc/functions/vfprintf.texi: Update.
84975         * doc/functions/vprintf.texi: Update.
84976         * doc/functions/vsnprintf.texi: Update.
84977         * doc/functions/vsprintf.texi: Update.
84979 2007-05-19  Bruno Haible  <bruno@clisp.org>
84981         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
84982         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
84983         Instead of multiplying with 10^k, set extra_zeroes to k.
84984         (scale10_round_long_double): Remove function.
84986 2007-05-18  Bruno Haible  <bruno@clisp.org>
84988         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
84989         introduced on 2007-05-06.
84991 2007-05-18  Bruno Haible  <bruno@clisp.org>
84993         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
84994         %g directives.
84995         * tests/test-vasprintf-posix.c (test_function): Likewise.
84996         * tests/test-snprintf-posix.h (test_function): Likewise.
84997         * tests/test-sprintf-posix.h (test_function): Likewise.
84999 2007-05-18  Bruno Haible  <bruno@clisp.org>
85001         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
85002         (strmatch): New function.
85003         (test_function): Test the %f directive on numbers of various exponents.
85004         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
85005         (strmatch): New function.
85006         (test_function): Test the %f directive on numbers of various exponents.
85007         * tests/test-snprintf-posix.h (strmatch): New function.
85008         (test_function): Test the %f directive on numbers of various exponents.
85009         * tests/test-sprintf-posix.h (strmatch): New function.
85010         (test_function): Test the %f directive on numbers of various exponents.
85011         * tests/test-snprintf-posix.c (SIZEOF): New macro.
85012         * tests/test-sprintf-posix.c (SIZEOF): New macro.
85013         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
85014         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
85016 2007-05-18  Bruno Haible  <bruno@clisp.org>
85018         Add support for 'long double' number output.
85019         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
85020         * lib/vasnprintf.c: Include math.h and float+.h.
85021         (mp_limb_t): New type.
85022         (GMP_LIMB_BITS): New macro.
85023         (mp_twolimb_t): New type.
85024         (GMP_TWOLIMB_BITS): New macro.
85025         (mpn_t): New type.
85026         (multiply, divide, convert_to_decimal, decode_long_double,
85027         scale10_round_long_double, scale10_round_decimal_long_double,
85028         floorlog10l): New functions.
85029         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
85030         for the %f, %F, %e, %E, %g, %G directives.
85031         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
85032         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
85033         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
85034         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
85035         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
85036         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
85037         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
85038         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
85039         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
85040         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
85041         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
85042         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
85043         * modules/snprintf-posix (Depends-on): Likewise.
85044         * modules/sprintf-posix (Depends-on): Likewise.
85045         * modules/vasnprintf-posix (Depends-on): Likewise.
85046         * modules/vasprintf-posix (Depends-on): Likewise.
85047         * modules/vfprintf-posix (Depends-on): Likewise.
85048         * modules/vsnprintf-posix (Depends-on): Likewise.
85049         * modules/vsprintf-posix (Depends-on): Likewise.
85050         * modules/vasnprintf (Files): Add lib/float+.h.
85051         * doc/functions/fprintf.texi: Update.
85052         * doc/functions/printf.texi: Update.
85053         * doc/functions/snprintf.texi: Update.
85054         * doc/functions/sprintf.texi: Update.
85055         * doc/functions/vfprintf.texi: Update.
85056         * doc/functions/vprintf.texi: Update.
85057         * doc/functions/vsnprintf.texi: Update.
85058         * doc/functions/vsprintf.texi: Update.
85060 2007-05-18  Bruno Haible  <bruno@clisp.org>
85062         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
85064 2007-05-18  Bruno Haible  <bruno@clisp.org>
85066         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
85067         for printing 64-bit integers. Needed for mingw.
85069 2007-05-18  Bruno Haible  <bruno@clisp.org>
85071         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
85072         gl_FUNC_FREXPL_WORKS.
85073         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
85075 2007-05-18  Bruno Haible  <bruno@clisp.org>
85077         * modules/frexpl-nolibm-tests: New file.
85079         * modules/frexpl-nolibm: New file.
85080         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
85082 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85084         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
85085         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
85086         GCC 4.2, which otherwise issues a lot of warnings.
85087         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
85088         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
85089         Likewise.
85090         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
85091         * modules/iconv_open (iconv.h): Likewise.
85092         * modules/locale (locale.h): Likewise.
85093         * modules/netinet_in (netinet/in.h): Likewise.
85094         * modules/sys_select (sys_select.h): Likewise.
85095         * modules/sys_socket (sys/socket.h): Likewise.
85096         * modules/sys_stat (sys/stat.h): Likewise.
85097         * modules/sysexits (sysexits.h): Likewise.
85098         * modules/unistd (unistd.h): Likewise.
85100 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85102         * modules/closein-tests (Makefile.am): Distribute
85103         `test-closein.sh'.
85105 2007-05-17  Bruno Haible  <bruno@clisp.org>
85107         * tests/test-printf-posix.output: Renamed from
85108         tests/test-fprintf-posix.out.
85109         * modules/fprintf-posix-tests: Update.
85110         * modules/printf-posix-tests: Update.
85111         * modules/vfprintf-posix-tests: Update.
85112         * modules/vprintf-posix-tests: Update.
85113         * tests/test-fprintf-posix.sh: Update.
85114         * tests/test-printf-posix.sh: Update.
85115         * tests/test-vfprintf-posix.sh: Update.
85116         * tests/test-vprintf-posix.sh: Update.
85117         Reported by Ralf Wildenhues.
85119 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85121         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
85122         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
85123         GCC 4.2, which otherwise issues a lot of warnings.
85124         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
85125         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
85126         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
85127         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
85128         it should no longer be needed.
85129         * lib/string_.h: Likewise.
85130         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
85131         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
85132         * modules/inttypes (inttypes.h): Likewise.
85133         * modules/math (math.h): Likewise.
85134         * modules/search (search.h): Likewise.
85135         * modules/signal (signal.h): Likewise.
85136         * modules/stdint (stdint.h): Likewise.
85137         * modules/stdio (stdio.h): Likewise.
85138         * modules/stdlib (stdlib.h): Likewise.
85139         * modules/string (string.h): Likewise.
85140         * modules/sys_time (sys/time.h): Likewise.
85141         * modules/time (time.h): Likewise.
85142         * modules/wchar (wchar.h): Likewise.
85143         * modules/wctype (wtype.h): Likewise.
85145 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
85147         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
85149 2007-05-13  Bruno Haible  <bruno@clisp.org>
85151         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
85152         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
85153         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
85154         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
85155         (gl_PREREQ_STRTOK_R): Don't require it here.
85157 2007-05-13  Bruno Haible  <bruno@clisp.org>
85159         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
85160         when used in C++ mode.
85162 2007-05-12  Bruno Haible  <bruno@clisp.org>
85164         * lib/linebuffer.h: Tweak doc.
85165         * lib/linebuffer.c: Likewise.
85167 2007-05-12  James Youngman  <jay@gnu.org>
85169         * lib/linebuffer.c (readlinebuffer_delim): New function,
85170         like readlinebuffer, but use a caller-specified delimiter.
85171         (readlinebuffer): Just call readlinebuffer_delim with '\n'
85172         as the delimiter.
85173         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
85175 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
85177         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
85178         * modules/openat (Files): Remove openat-die.c.
85179         (Depends-on): Add openat-die.
85180         * modules/openat-die: New module.
85182 2007-05-06  Bruno Haible  <bruno@clisp.org>
85184         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
85185         Update with info about Cygwin.
85186         * doc/functions/fprintf.texi: Update.
85187         * doc/functions/printf.texi: Update.
85188         * doc/functions/snprintf.texi: Update.
85189         * doc/functions/sprintf.texi: Update.
85190         * doc/functions/vfprintf.texi: Update.
85191         * doc/functions/vprintf.texi: Update.
85192         * doc/functions/vsnprintf.texi: Update.
85193         * doc/functions/vsprintf.texi: Update.
85194         Reported by Eric Blake.
85196 2007-05-06  Bruno Haible  <bruno@clisp.org>
85198         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
85199         padding ourselves for the floating-point directives.
85200         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
85201         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
85202         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
85203         gl_PRINTF_FLAG_ZERO and test its result. Invoke
85204         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
85205         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
85206         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
85207         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
85208         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
85209         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
85210         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
85211         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
85212         * tests/test-snprintf-posix.h (test_function): Also check the width
85213         and some flags in the %f directive.
85214         * tests/test-sprintf-posix.h (test_function): Likewise.
85215         * tests/test-vasnprintf-posix.c (test_function): Likewise.
85216         * tests/test-vasprintf-posix.c (test_function): Likewise.
85217         * doc/functions/fprintf.texi: Update.
85218         * doc/functions/printf.texi: Update.
85219         * doc/functions/snprintf.texi: Update.
85220         * doc/functions/sprintf.texi: Update.
85221         * doc/functions/vfprintf.texi: Update.
85222         * doc/functions/vprintf.texi: Update.
85223         * doc/functions/vsnprintf.texi: Update.
85224         * doc/functions/vsprintf.texi: Update.
85226 2007-05-06  Bruno Haible  <bruno@clisp.org>
85228         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
85229         pass the ' flag character to sprintf or snprintf.
85230         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
85231         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
85232         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
85233         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
85234         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
85235         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
85236         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
85237         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
85238         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
85239         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
85240         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
85241         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
85242         * tests/test-snprintf-posix.h (test_function): Also check the grouping
85243         flag.
85244         * tests/test-sprintf-posix.h (test_function): Likewise.
85245         * tests/test-vasnprintf-posix.c (test_function): Likewise.
85246         * tests/test-vasprintf-posix.c (test_function): Likewise.
85247         * doc/functions/fprintf.texi: Update.
85248         * doc/functions/printf.texi: Update.
85249         * doc/functions/snprintf.texi: Update.
85250         * doc/functions/sprintf.texi: Update.
85251         * doc/functions/vfprintf.texi: Update.
85252         * doc/functions/vprintf.texi: Update.
85253         * doc/functions/vsnprintf.texi: Update.
85254         * doc/functions/vsprintf.texi: Update.
85256 2007-05-01  Bruno Haible  <bruno@clisp.org>
85258         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
85260 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
85262         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
85263         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
85265 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
85267         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
85268         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
85269         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
85271 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
85273         * lib/argp-help.c (struct hol_entry): New member `ord'.
85274         (HOL_ENTRY_PTRCMP): Use ord for comparison
85275         (hol_sort): Initialize ord.
85277 2007-05-01  Bruno Haible  <bruno@clisp.org>
85279         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
85280         Reported by Eric Blake.
85281         * doc/gnulib.texi (Function Substitutes): Update.
85283 2007-05-01  Bruno Haible  <bruno@clisp.org>
85285         * doc/functions.texi: Remove file, now redundant through
85286         doc/functions/*.texi.
85288 2007-05-01  Bruno Haible  <bruno@clisp.org>
85290         * modules/argp (Depends-on): Add sleep.
85292 2007-05-01  Bruno Haible  <bruno@clisp.org>
85294         * modules/sleep-tests: New file.
85295         * tests/test-sleep.c: New file.
85297         * modules/sleep: New file.
85298         * lib/sleep.c: New file.
85299         * m4/sleep.m4: New file.
85300         * lib/unistd_.h (sleep): New declaration.
85301         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
85302         HAVE_SLEEP.
85303         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
85304         * doc/functions/sleep.texi: Document the sleep module.
85306 2007-05-01  Bruno Haible  <bruno@clisp.org>
85308         * lib/sigprocmask.h: Remove file.
85309         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
85310         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
85311         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
85312         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
85313         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
85314         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
85315         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
85316         HAVE_SIGSET_T as a shell variable.
85317         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
85318         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
85319         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
85320         (Depends-on): Add signal. Remove verify.
85321         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
85322         (Include): Mention <signal.h> instead of sigprocmask.h.
85323         * NEWS: Mention the change.
85324         * lib/fatal-signal.c: Don't include sigprocmask.h.
85326 2007-05-01  Bruno Haible  <bruno@clisp.org>
85328         * modules/signal: New file.
85329         * lib/signal_.h: New file.
85330         * m4/signal_h.m4: New file.
85332 2007-05-01  Bruno Haible  <bruno@clisp.org>
85334         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
85335         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
85336         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
85337         HAVE_WCTYPE_CTMP_BUG into wctype.h.
85339 2007-05-01  Bruno Haible  <bruno@clisp.org>
85341         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
85342         configure time.
85343         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
85344         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
85345         * modules/sys_stat (Makefile.am): Substitute their values into
85346         sys/stat.h.
85348 2007-05-01  Bruno Haible  <bruno@clisp.org>
85350         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
85351         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
85352         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
85354 2007-05-01  Bruno Haible  <bruno@clisp.org>
85356         * doc/header/assert.texi: Undo last change: don't mention the gnulib
85357         'assert' module here.
85359 2007-05-01  Bruno Haible  <bruno@clisp.org>
85361         * doc/functions/*.texi: New files.
85362         * doc/functions/google-ranking.txt: New file.
85363         * doc/gnulib.texi (Function Substitutes): New chapter.
85364         (ctime, inet_ntoa): Remove sections.
85365         * doc/ctime.texi: Remove file.
85366         * doc/inet_ntoa.texi: Remove file.
85367         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
85368         dependencies.
85369         (%.info): New rule, specifying a --reference-limit.
85371 2007-05-01  Bruno Haible  <bruno@clisp.org>
85373         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
85375 2007-05-01  Bruno Haible  <bruno@clisp.org>
85377         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
85378         the portability of 'mkdir' to mingw systems.
85380 2007-05-01  Bruno Haible  <bruno@clisp.org>
85382         * doc/headers/google-ranking.txt: New file.
85384 2007-04-30  Eric Blake  <ebb9@byu.net>
85386         Prefer fseeko to fseek.
85387         * modules/getpass (Depends-on): Add fseeko.
85388         * lib/getpass.c (getpass): Use fseeko, not fseek.
85390 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
85392         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
85393         assumes the sorting is stable, while most qsort implementations
85394         are not.  Use argument addresses to ensure they never compare as
85395         equal.
85397         * tests/test-argp-2.sh (usage-indent test): Fix output
85398         (func_compare): Restore diff options
85399         * tests/test-argp.c: Restore #include "progname.h"
85401 2007-04-29  Bruno Haible  <bruno@clisp.org>
85403         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
85404         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
85405         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
85406         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
85407         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
85408         (configure.ac): Define CHECK_SNPRINTF_POSIX.
85409         (TESTS, check_PROGRAMS): Add test-snprintf.
85410         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
85411         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
85412         (TESTS, check_PROGRAMS): Add test-vsnprintf.
85413         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
85414         assertions that fail on HP-UX, OSF/1, or IRIX.
85415         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
85417 2007-04-29  Bruno Haible  <bruno@clisp.org>
85419         * MODULES.html.sh (posix_functions): Remove 'contents'.
85421 2007-04-29  Karl Berry  <karl@gnu.org>
85423         * config/srclist.txt (gendocs_template_min): new entry.
85425 2007-04-29  Bruno Haible  <bruno@clisp.org>
85427         Work around fpurge bug on BSD systems.
85428         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
85429         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
85430         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
85431         fpurge to rpl_fpurge if the system already has this function.
85432         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
85433         the case where the system already has this function. Correct invariants
85434         on BSD systems.
85435         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
85436         BSD systems.
85438 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
85440         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
85441         proposed by Sven Verdoolaege.
85443         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
85444         options.
85445         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
85446         (usage and help tests): Update
85448 2007-04-29  Bruno Haible  <bruno@clisp.org>
85450         * tests/test-fflush.c (main): Use a file of size 17, not 10.
85451         Print more information in case of failure. Disable a test on BeOS.
85453 2007-04-29  Bruno Haible  <bruno@clisp.org>
85455         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
85456         This helps debugging on systems on which no gdb is available.
85458 2007-04-29  Bruno Haible  <bruno@clisp.org>
85460         * lib/freading.h: Improve comments.
85461         * lib/fwriting.h: Likewise.
85462         * tests/test-freading.c (main): Don't check freading immediately after
85463         repositioning. Needed for glibc.
85465 2007-04-29  Bruno Haible  <bruno@clisp.org>
85467         * lib/freading.c (freading): Trivial simplification.
85469 2007-04-28  Bruno Haible  <bruno@clisp.org>
85471         * tests/test-fwriting.c (main): Also test the interaction between
85472         fflush and fwriting.
85473         * modules/fwriting-tests (Depends-on): Add fflush.
85475         * tests/test-freading.c (main): Also test the interaction between
85476         fflush and freading.
85477         * modules/freading-tests (Depends-on): Add fflush.
85479 2007-04-28  Bruno Haible  <bruno@clisp.org>
85481         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
85482         fseeko and ftello.
85483         Suggested by Eric Blake.
85485 2007-04-28  Jim Meyering  <jim@meyering.net>
85487         Avoid false-negative in gl_STDINT_H's C99 conformance test.
85488         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
85489         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
85491 2007-04-27  Eric Blake  <ebb9@byu.net>
85493         * doc/headers/assert.texi (assert.h): Document assert module use.
85495 2007-04-27  Bruno Haible  <bruno@clisp.org>
85497         * doc/headers/*.texi: New files.
85498         * doc/gnulib.texi (Header File Substitutes): New chapter.
85499         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
85500         dependencies.
85501         (standards.info ,standards.html, standards.dvi): Update dependencies.
85502         (mostlyclean, clean): New targets.
85504 2007-04-27  Bruno Haible  <bruno@clisp.org>
85506         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
85507         * modules/sysexits (Files, Makefile.am): Update.
85509         * lib/sys_socket_.h: Renamed from lib/socket_.h.
85510         * modules/sys_socket (Files, Makefile.am): Update.
85512         * lib/sys_stat_.h: Renamed from lib/stat_.h.
85513         * modules/sys_stat (Files, Makefile.am): Update.
85515 2007-04-27  Eric Blake  <ebb9@byu.net>
85517         * lib/freading.h: Improve comments.
85518         * lib/fwriting.h: Likewise.
85519         * lib/fflush.c: Likewise.
85521         Fix closein for mingw.
85522         * modules/closein-tests: Add tests for closein.
85523         * tests/test-closein.c: New file.
85524         * tests/test-closein.sh: Likewise.
85525         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
85526         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
85528 2007-04-27  Bruno Haible  <bruno@clisp.org>
85530         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
85531         version is < 6.
85532         * lib/math_.h [__DECC]: Likewise.
85533         * lib/stdio_.h [__DECC]: Likewise.
85534         * lib/stdlib_.h [__DECC]: Likewise.
85535         * lib/string_.h [__DECC]: Likewise.
85536         * lib/time_.h [__DECC]: Likewise.
85537         * lib/wchar_.h [__DECC]: Likewise.
85538         * lib/wctype_.h [__DECC]: Likewise.
85540 2007-04-27  Bruno Haible  <bruno@clisp.org>
85542         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
85544 2007-04-27  Bruno Haible  <bruno@clisp.org>
85546         * lib/fflush.c: Add comments.
85547         * modules/fpurge-tests (Depends-on): Add fflush.
85548         * modules/freadable-tests (Depends-on): Likewise.
85549         * modules/fwritable-tests (Depends-on): Likewise.
85551 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
85553         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
85554         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
85555         Report by Bruno Haible <bruno@clisp.org>.
85557 2007-04-26  Eric Blake  <ebb9@byu.net>
85559         Fix fflush on mingw.
85560         * modules/fflush (Depends-on): Add freading.
85561         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
85562         but unread data.
85564 2007-04-26  Eric Blake  <ebb9@byu.net>
85565         and Bruno Haible  <bruno@clisp.org>
85567         Implement freading and fwriting.
85568         * lib/freading.c: New file.
85569         * lib/freading.h: Likewise.
85570         * m4/freading.m4: Likewise.
85571         * modules/freading: Likewise.
85572         * modules/freading-tests: Likewise.
85573         * tests/test-freading.c: Likewise.
85574         * lib/fwriting.c: New file.
85575         * lib/fwriting.h: Likewise.
85576         * m4/fwriting.m4: Likewise.
85577         * modules/fwriting: Likewise.
85578         * modules/fwriting-tests: Likewise.
85579         * tests/test-fwriting.c: Likewise.
85580         * MODULES.html.sh (File stream based Input/Output): Mention them.
85582 2007-04-26  Bruno Haible  <bruno@clisp.org>
85584         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
85585         'long' when we assume it.
85586         Suggested by Eric Blake.
85588 2007-04-26  Bruno Haible  <bruno@clisp.org>
85590         Ensure fseeko, ftello are declared on glibc systems.
85591         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
85592         * modules/fseeko (configure.ac-early): Likewise.
85593         * modules/ftello (configure.ac-early): Likewise.
85594         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
85595         AC_FUNC_FSEEKO for this.
85596         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
85597         (gl_CHECK_FSEEKO): Remove macro.
85599 2007-04-26  Bruno Haible  <bruno@clisp.org>
85601         * tests/test-fflush.c (main): Also check the ftell result after
85602         fflush and fseek/fseeko.
85603         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
85604         file descriptor position cache in the stream.
85605         * lib/fseeko.c (rpl_fseeko): Likewise.
85607 2007-04-26  Bruno Haible  <bruno@clisp.org>
85609         * modules/fflush-tests (Depends-on): Add fseeko.
85611 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
85612             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85614         * lib/argz_.h: ensure error_t definition is obtained in same
85615         mechanism system argz.h would have.
85616         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
85617         argz facilities are known bad.  Err on the side of caution if
85618         cross-compiling.
85620 2007-04-25  Eric Blake  <ebb9@byu.net>
85622         * lib/fpurge.c (includes): Use stdlib.h for free.
85623         * tests/test-fflush.c (main): Also test fflush-fseeko.
85625 2007-04-25  Bruno Haible  <bruno@clisp.org>
85627         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
85628         * lib/fseeko.c: New file.
85629         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
85630         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
85631         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
85632         gl_FUNC_FSEEKO.
85633         (gl_FUNC_FSEEKO): Invoke it.
85634         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
85635         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
85636         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
85638 2007-04-25  Bruno Haible  <bruno@clisp.org>
85640         * modules/fflush (Depends-on): Add ftello.
85642 2007-04-25  Bruno Haible  <bruno@clisp.org>
85644         * modules/ftello-tests: New file.
85645         * tests/test-ftello.c: New file.
85647         * modules/ftello: New file.
85648         * m4/ftello.m4: New file.
85649         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
85650         HAVE_FTELLO.
85651         * lib/stdio_.h (ftello): New declaration.
85652         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
85653         HAVE_FTELLO.
85655 2007-04-25  Bruno Haible  <bruno@clisp.org>
85657         * modules/fseeko-tests: New file.
85658         * tests/test-fseeko.c: New file.
85660         * modules/fseeko: New file.
85661         * m4/fseeko.m4: New file.
85662         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
85663         HAVE_FSEEKO.
85664         * lib/stdio_.h (fseeko): New declaration.
85665         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
85666         HAVE_FSEEKO.
85668 2007-04-25  Bruno Haible  <bruno@clisp.org>
85670         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
85672 2007-04-25  Bruno Haible  <bruno@clisp.org>
85674         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
85675         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
85676         * tests/test-unistd.c: Likewise.
85677         * tests/test-fcntl.c: Likewise.
85679 2007-04-23  Eric Blake  <ebb9@byu.net>
85681         * lib/fflush.c: Fix missing include.
85682         Reported by Bruno Haible.
85684 2007-04-23  Bruno Haible  <bruno@clisp.org>
85686         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
85687         Reported by Eric Blake.
85689 2007-04-23  Bruno Haible  <bruno@clisp.org>
85691         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
85693 2007-04-23  Bruno Haible  <bruno@clisp.org>
85695         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
85697 2007-04-23  Bruno Haible  <bruno@clisp.org>
85699         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
85700         Needed on HP-UX 11.
85702 2007-04-16  Eric Blake  <ebb9@byu.net>
85704         Make fflush rely on fpurge.
85705         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
85706         open coding all variants.
85707         * modules/fflush (Depends-on): Add fpurge and unistd.
85708         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
85709         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
85711         Fix --with-tests compilation on cygwin.
85712         * modules/argmatch-tests (Makefile.am): List gnulib library first
85713         in LDADD.
85714         * modules/argp-tests (Makefile.am): Likewise.
85715         * modules/array-list-tests (Makefile.am): Likewise.
85716         * modules/array-oset-tests (Makefile.am): Likewise.
85717         * modules/avltree-list-tests (Makefile.am): Likewise.
85718         * modules/avltree-oset-tests (Makefile.am): Likewise.
85719         * modules/avltreehash-list-tests (Makefile.am): Likewise.
85720         * modules/carray-list-tests (Makefile.am): Likewise.
85721         * modules/dirname-tests (Makefile.am): Likewise.
85722         * modules/frexp-tests (Makefile.am): Likewise.
85723         * modules/isnanl-tests (Makefile.am): Likewise.
85724         * modules/linked-list-tests (Makefile.am): Likewise.
85725         * modules/linkedhash-list-tests (Makefile.am): Likewise.
85726         * modules/lock-tests (Makefile.am): Likewise.
85727         * modules/rbtree-list-tests (Makefile.am): Likewise.
85728         * modules/rbtree-oset-tests (Makefile.am): Likewise.
85729         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
85730         * modules/tls-tests (Makefile.am): Likewise.
85731         * modules/tsearch-tests (Makefile.am): Likewise.
85732         * modules/xvasprintf-tests (Makefile.am): Likewise.
85734         Fix fpurge for cygwin.
85735         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
85736         value.
85737         * modules/fpurge-tests (Depends-on): Clean up trash.
85739 2007-04-16  Simon Josefsson  <simon@josefsson.org>
85741         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
85743         * m4/autobuild.m4: Re-indent.
85745 2007-04-13  Bruno Haible  <bruno@clisp.org>
85747         * modules/fpurge-tests: New file.
85748         * tests/test-fpurge.c: New file.
85750         * modules/fpurge: New file.
85751         * lib/fpurge.h: New file.
85752         * lib/fpurge.c: New file.
85753         * m4/fpurge.m4: New file.
85755 2007-04-13  Bruno Haible  <bruno@clisp.org>
85757         * modules/fbufmode-tests: New file.
85758         * tests/test-fbufmode.c: New file.
85760         * modules/fbufmode: New file.
85761         * lib/fbufmode.h: New file.
85762         * lib/fbufmode.c: New file.
85763         * m4/fbufmode.m4: New file.
85765 2007-04-13  Bruno Haible  <bruno@clisp.org>
85767         * modules/fwritable-tests: New file.
85768         * tests/test-fwritable.c: New file.
85770         * modules/fwritable: New file.
85771         * lib/fwritable.h: New file.
85772         * lib/fwritable.c: New file.
85773         * m4/fwritable.m4: New file.
85775 2007-04-13  Bruno Haible  <bruno@clisp.org>
85777         * modules/freadable-tests: New file.
85778         * tests/test-freadable.c: New file.
85780         * modules/freadable: New file.
85781         * lib/freadable.h: New file.
85782         * lib/freadable.c: New file.
85783         * m4/freadable.m4: New file.
85785 2007-04-13  Bruno Haible  <bruno@clisp.org>
85787         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
85788         MOSTLYCLEANFILES.
85790 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
85792         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
85793         gzip bootstrap.conf to avoid dragging in i18n machinery.
85794         (gnulib_tool_option): Use it.
85796 2007-04-13  Bruno Haible  <bruno@clisp.org>
85798         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
85799         %F directives.
85800         * tests/test-vasprintf-posix.c (test_function): Likewise.
85801         * tests/test-snprintf-posix.h (test_function): Likewise.
85802         * tests/test-sprintf-posix.h (test_function): Likewise.
85803         * tests/test-fprintf-posix.h (test_function): Likewise.
85804         * tests/test-printf-posix.h (test_function): Likewise.
85805         * tests/test-fprintf-posix.out: Likewise.
85807 2007-04-13  Bruno Haible  <bruno@clisp.org>
85809         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
85810         * modules/tls-tests (configure.ac): Likewise.
85811         Reported by Arto C. Nirkko <anirkko@insel.ch>.
85813 2007-04-13  Bruno Haible  <bruno@clisp.org>
85815         * lib/tls.c (glthread_tls_get): Fix return type.
85816         Patch by Arto C. Nirkko <anirkko@insel.ch>.
85818 2007-04-12  Eric Blake  <ebb9@byu.net>
85820         * modules/gettime (Depends-on): Remove gettime.
85821         Reported by Dmitry V. Levin.
85823 2007-04-12  Bruno Haible  <bruno@clisp.org>
85825         * modules/fflush (Include): Mention <stdio.h>.
85826         * modules/strtoimax (Include): Mention <inttypes.h>.
85827         * modules/strtoumax (Include): Likewise.
85829 2007-04-12  Eric Blake  <ebb9@byu.net>
85831         * .cvsignore: New file.
85832         * .gitignore: Likewise.
85834 2007-04-12  Bruno Haible  <bruno@clisp.org>
85836         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
85837         not before, since $(LDADD) often contains libgnu.a.
85838         * modules/striconv-tests (test_striconv_LDADD): Likewise.
85839         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
85840         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
85841         Needed on Cygwin.
85843 2007-04-12  Eric Blake  <ebb9@byu.net>
85845         Work around glibc's failure to flush stdin on fclose.
85846         * lib/closein.c (close_stdin): Flush stdin before closing.
85848         Work around glibc's failure to reset seekable stdin on exit.
85849         * modules/closein: New module.
85850         * lib/closein.c: New file.
85851         * lib/closein.h: Likewise.
85852         * m4/closein.m4: Likewise.
85853         * MODULES.html.sh (File stream based Input/Output): Document it.
85855 2007-04-12  Simon Josefsson  <simon@josefsson.org>
85857         * gnulib-tool: Rename generated 'autobuild' script to
85858         'do-autobuild' in --create-megatestdir output.
85860         * doc/gnulib.texi (Build robot for gnulib): Fix.
85862 2007-04-12  Simon Josefsson  <simon@josefsson.org>
85864         * modules/sysexits (Depends-on): Add absolute-header.
85866 2007-04-12  Eric Blake  <ebb9@byu.net>
85868         No need to preserve errno on success.
85869         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
85870         Reported by Bruno Haible.
85872 2007-04-12  Simon Josefsson  <simon@josefsson.org>
85874         * MODULES.html.sh (Support for maintaining and releasing
85875         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
85877 2007-04-12  Simon Josefsson  <simon@josefsson.org>
85879         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
85881 2007-04-12  Simon Josefsson  <simon@josefsson.org>
85883         * modules/autobuild: New module.
85885         * m4/autobuild.m4: New file.
85887 2007-04-11  Bruno Haible  <bruno@clisp.org>
85889         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
85890         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
85891         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
85892         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
85893         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
85894         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
85895         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
85896         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
85897         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
85898         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
85899         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
85900         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
85901         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
85902         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
85903         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
85904         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
85905         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
85906         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
85907         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
85908         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
85909         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
85910         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
85911         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
85912         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
85913         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
85914         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
85915         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
85916         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
85917         Reported by Eric Blake.
85919 2007-04-11  Bruno Haible  <bruno@clisp.org>
85921         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
85923 2007-04-10  Bruno Haible  <bruno@clisp.org>
85925         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
85926         for NaN and Infinity. Needed on FreeBSD 6.1.
85927         * tests/test-vasnprintf-posix.c (test_function): Undo last change
85928         regarding results for "%010a" of Infinity and NaN.
85929         * tests/test-vasprintf-posix.c (test_function): Likewise.
85930         * tests/test-snprintf-posix.h (test_function): Likewise.
85931         * tests/test-sprintf-posix.h (test_function): Likewise.
85932         * tests/test-fprintf-posix.h (test_function): Likewise.
85933         * tests/test-printf-posix.h (test_function): Likewise.
85934         * tests/test-fprintf-posix.out: Likewise.
85936 2007-04-10  Bruno Haible  <bruno@clisp.org>
85938         * modules/locale-tests: New file.
85939         * tests/test-locale.c: New file.
85941         * modules/locale: New file.
85942         * lib/locale_.h: New file.
85943         * m4/locale_h.m4: New file.
85945 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
85946             Bruno Haible  <bruno@clisp.org>
85948         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
85949         be determined, test for availability of the copysignf, copysign,
85950         copysignl functions.
85951         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
85952         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
85953         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
85955 2007-04-09  Eric Blake  <ebb9@byu.net>
85957         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
85958         * modules/stdio (Makefile.am): Support fflush.
85959         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
85960         * modules/fflush: New file.
85961         * lib/fflush.c: Likewise.
85962         * m4/fflush.m4: Likewise.
85963         * modules/fflush-tests: New test.
85964         * tests/test-fflush.c: Likewise.
85965         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
85967 2007-04-06  Bruno Haible  <bruno@clisp.org>
85969         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
85970         (VASNPRINTF): Use signbit for faster determination whether to print a
85971         minus sign.
85972         * modules/vasnprintf (Files): Remove lib/float+.h.
85973         * modules/fprintf-posix (Depends-on): Add signbit.
85974         * modules/snprintf-posix (Depends-on): Likewise.
85975         * modules/sprintf-posix (Depends-on): Likewise.
85976         * modules/vasnprintf-posix (Depends-on): Likewise.
85977         * modules/vasprintf-posix (Depends-on): Likewise.
85978         * modules/vfprintf-posix (Depends-on): Likewise.
85979         * modules/vsnprintf-posix (Depends-on): Likewise.
85980         * modules/vsprintf-posix (Depends-on): Likewise.
85982 2007-04-06  Bruno Haible  <bruno@clisp.org>
85984         * tests/test-frexp.c (main): Test also the sign bit of zero results.
85985         * tests/test-frexpl.c (main): Likewise.
85986         * tests/test-ldexpl.c (main): Likewise.
85987         * modules/frexp-tests (Depends-on): Add signbit.
85988         * modules/frexpl-tests (Depdends-on): Likewise.
85989         * modules/ldexpl-tests (Depdends-on): Likewise.
85991 2007-04-06  Bruno Haible  <bruno@clisp.org>
85993         * modules/signbit-tests: New file.
85994         * tests/test-signbit.c: New file.
85996         * modules/signbit: New file.
85997         * lib/signbitf.c: New file.
85998         * lib/signbitd.c: New file.
85999         * lib/signbitl.c: New file.
86000         * m4/signbit.m4: New file.
86001         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
86002         (signbit): New macro.
86003         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
86004         REPLACE_SIGNBIT.
86005         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
86006         REPLACE_FREXPL into math.h.
86008 2007-04-06  Bruno Haible  <bruno@clisp.org>
86010         * modules/isnanf-nolibm-tests: New file.
86011         * tests/test-isnanf.c: New file.
86013         * modules/isnanf-nolibm: New file.
86014         * lib/isnanf.h: New file.
86015         * lib/isnanf.c: New file.
86016         * lib/isnan.c: Consider the USE_FLOAT macro.
86017         * m4/isnanf.m4: New file.
86019 2007-04-06  Bruno Haible  <bruno@clisp.org>
86021         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
86022         (Link): New section.
86024         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
86026 2007-04-06  Bruno Haible  <bruno@clisp.org>
86028         Assume the 'long double' type.
86029         * m4/longdouble.m4: Remove file.
86030         * config/srclist.txt: Don't mention longdouble.m4.
86031         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
86032         * lib/float+.h: Likewise.
86033         * lib/frexp.c: Likewise.
86034         * lib/printf-args.h: Likewise.
86035         * lib/printf-args.c: Likewise.
86036         * lib/printf-frexp.c: Likewise.
86037         * lib/printf-parse.c: Likewise.
86038         * lib/vasnprintf.c: Likewise.
86039         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
86040         * m4/intl.m4: Likewise.
86041         * m4/isnanl.m4: Likewise.
86042         * m4/printf.m4: Likewise.
86043         * m4/printf-frexpl.m4: Likewise.
86044         * m4/vasnprintf.m4: Likewise.
86045         * modules/allocsa (Files): Remove m4/longdouble.m4.
86046         * modules/gettext (Files): Likewise.
86047         * modules/relocatable-prog-wrapper (Files): Likewise.
86048         * modules/vasnprintf (Files): Likewise.
86049         * modules/isnanl (Files): Likewise.
86050         (Include): Simplify.
86051         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
86052         (Include): Simplify.
86053         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
86054         (Include): Simplify.
86055         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
86056         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
86057         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
86058         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
86059         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
86060         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
86061         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
86062         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
86063         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
86064         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
86065         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
86066         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
86067         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
86068         * tests/test-isnanl.c: Likewise.
86069         * tests/test-snprintf-posix.h: Likewise.
86070         * tests/test-sprintf-posix.h: Likewise.
86071         * tests/test-vasnprintf-posix.c: Likewise.
86072         * tests/test-vasnprintf-posix2.c: Likewise.
86073         * tests/test-vasprintf-posix.c: Likewise.
86075 2007-04-06  Bruno Haible  <bruno@clisp.org>
86077         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
86078         * lib/math_.h [__DECC]: Include the overridden include file through
86079         #include_next, outside the double-inclusion guard.
86080         * lib/stdio_.h [__DECC]: Likewise.
86081         * lib/stdlib_.h [__DECC]: Likewise.
86082         * lib/string_.h [__DECC]: Likewise.
86083         * lib/time_.h [__DECC]: Likewise.
86084         * lib/wchar_.h [__DECC]: Likewise.
86085         * lib/wctype_.h [__DECC]: Likewise.
86086         * lib/inttypes_.h [__DECC]: Likewise.
86087         Reported by Albert Chin <china@thewrittenword.com> in
86088         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
86090 2007-04-04  Eric Blake  <ebb9@byu.net>
86092         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
86093         1.5.x.
86095 2007-04-04  Bruno Haible  <bruno@clisp.org>
86097         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
86098         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
86100 2007-04-04  Bruno Haible  <bruno@clisp.org>
86102         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
86103         results for "%010a" of Infinity and NaN.
86104         * tests/test-vasprintf-posix.c (test_function): Likewise.
86105         * tests/test-snprintf-posix.h (test_function): Likewise.
86106         * tests/test-sprintf-posix.h (test_function): Likewise.
86107         * tests/test-fprintf-posix.h (test_function): Remove these tests.
86108         * tests/test-printf-posix.h (test_function): Likewise.
86109         * tests/test-fprintf-posix.out: Update.
86110         Needed for FreeBSD 6.1.
86112 2007-04-04  Bruno Haible  <bruno@clisp.org>
86114         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
86115         directly used by the gnulib modules nor by gnulib-tool.
86117 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
86119         * DEPENDENCIES: Give overall description of version dependency
86120         desirability.  Use more-typical names for apps.
86121         Add shell, coreutils, diffutils, grep, tar, gzip.
86123 2007-04-04  Simon Josefsson  <simon@josefsson.org>
86125         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
86127 2007-04-04  Karl Berry  <karl@gnu.org>
86129         * MODULES.html.sh (func_module): missing '.
86131 2007-04-03  Bruno Haible  <bruno@clisp.org>
86133         * modules/argmatch-tests (Makefile.am): New variable
86134         test_argmatch_LDADD.
86135         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
86136         * modules/array-list-tests (Makefile.am): New variable
86137         test_array_list_LDADD.
86138         * modules/array-oset-tests (Makefile.am): New variable
86139         test_array_oset_LDADD.
86140         * modules/avltree-list-tests (Makefile.am): New variable
86141         test_avltree_list_LDADD.
86142         * modules/avltree-oset-tests (Makefile.am): New variable
86143         test_avltree_oset_LDADD.
86144         * modules/avltreehash-list-tests (Makefile.am): New variable
86145         test_avltreehash_list_LDADD.
86146         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
86147         test_canonicalize_lgpl_LDADD.
86148         * modules/carray-list-tests (Makefile.am): New variable
86149         test_carray_list_LDADD.
86150         * modules/dirname-tests (Makefile.am): New variable
86151         test_dirname_LDADD.
86152         * modules/linked-list-tests (Makefile.am): New variable
86153         test_linked_list_LDADD.
86154         * modules/linkedhash-list-tests (Makefile.am): New variable
86155         test_linkedhash_list_LDADD.
86156         * modules/rbtree-list-tests (Makefile.am): New variable
86157         test_rbtree_list_LDADD.
86158         * modules/rbtree-oset-tests (Makefile.am): New variable
86159         test_rbtree_oset_LDADD.
86160         * modules/rbtreehash-list-tests (Makefile.am): New variable
86161         test_rbtreehash_list_LDADD.
86162         * modules/xvasprintf-tests (Makefile.am): New variable
86163         test_xvasprintf_LDADD.
86164         Reported by Eric Blake.
86166 2007-04-03  Eric Blake  <ebb9@byu.net>
86168         * DEPENDENCIES: Weaken m4 requirements.
86170 2007-04-03  Bruno Haible  <bruno@clisp.org>
86172         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
86173         * modules/isnanl-tests (configure.ac): Likewise.
86175 2007-04-03  Ben Pfaff  <blp@gnu.org>
86177         * modules/iconv_open: Add $(srcdir)/ to source directory
86178         references in Makefile fragments that call gperf, to fix VPATH
86179         builds.
86181 2007-04-03  Bruno Haible  <bruno@clisp.org>
86183         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
86184         * lib/ldexpl.c: Undo last change.
86186 2007-04-03  Bruno Haible  <bruno@clisp.org>
86188         * modules/printf-frexpl (Depends-on): Undo last change.
86189         (Files): Add m4/ldexpl.m4.
86191 2007-04-03  Bruno Haible  <bruno@clisp.org>
86193         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
86194         * modules/isnanl (Link): New section.
86196         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
86197         * modules/frexp (Link): New section.
86199         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
86200         * modules/frexpl (Link): New section.
86202         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
86203         * modules/ldexpl (Link): New section.
86205 2007-04-03  Bruno Haible  <bruno@clisp.org>
86207         * modules/TEMPLATE-EXTENDED: New file.
86208         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
86210 2007-04-03  Bruno Haible  <bruno@clisp.org>
86212         * DEPENDENCIES: New file.
86213         Suggested by Simon Josefsson.
86215 2007-04-03  Bruno Haible  <bruno@clisp.org>
86217         * doc/gnulib.texi: Escape @.
86219 2007-04-03  James Youngman  <jay@gnu.org>
86220         and Paul Eggert  <eggert@cs.ucla.edu>
86222         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
86223         birthtime on all systems that have birthtime, not just those which
86224         use st_birthtimensec rather than st_birthtim.  Putting zero in
86225         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
86226         that the birth time is not available for files on an NFS mount.
86228 2007-04-03  Simon Josefsson  <simon@josefsson.org>
86230         * modules/memxor: Move back from crypto/, suggested by Bruno.
86231         * modules/crypto/hmac-sha1: Fix memxor dependency.
86233         * modules/crypto/gc: Moved from ../.
86235 2007-04-02  Eric Blake  <ebb9@byu.net>
86237         * lib/ldexpl.c (includes): Avoid libm.
86239         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
86241 2007-04-02  Bruno Haible  <bruno@clisp.org>
86243         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
86244         on IRIX.
86246 2007-04-02  Bruno Haible  <bruno@clisp.org>
86248         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
86249         x86 or x86_64 platforms running MacOS X.
86250         Reported by Ryan Schmidt <@ryandesign.com>.
86252 2007-04-02  Bruno Haible  <bruno@clisp.org>
86254         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
86255         i386.
86257 2007-04-01  Simon Josefsson  <simon@josefsson.org>
86259         * modules/crypto/arcfour: Moved from ../.
86260         * modules/crypto/arcfour-tests: Moved from ../.
86261         * modules/crypto/arctwo: Moved from ../.
86262         * modules/crypto/arctwo-tests: Moved from ../.
86263         * modules/crypto/des: Moved from ../.
86264         * modules/crypto/des-tests: Moved from ../.
86265         * modules/crypto/gc-arcfour: Moved from ../.
86266         * modules/crypto/gc-arcfour-tests: Moved from ../.
86267         * modules/crypto/gc-arctwo: Moved from ../.
86268         * modules/crypto/gc-arctwo-tests: Moved from ../.
86269         * modules/crypto/gc-des: Moved from ../.
86270         * modules/crypto/gc-des-tests: Moved from ../.
86271         * modules/crypto/gc-hmac-md5: Moved from ../.
86272         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
86273         * modules/crypto/gc-hmac-sha1: Moved from ../.
86274         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
86275         * modules/crypto/gc-md2: Moved from ../.
86276         * modules/crypto/gc-md2-tests: Moved from ../.
86277         * modules/crypto/gc-md4: Moved from ../.
86278         * modules/crypto/gc-md4-tests: Moved from ../.
86279         * modules/crypto/gc-md5: Moved from ../.
86280         * modules/crypto/gc-md5-tests: Moved from ../.
86281         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
86282         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
86283         * modules/crypto/gc-random: Moved from ../.
86284         * modules/crypto/gc-rijndael: Moved from ../.
86285         * modules/crypto/gc-rijndael-tests: Moved from ../.
86286         * modules/crypto/gc-sha1: Moved from ../.
86287         * modules/crypto/gc-sha1-tests: Moved from ../.
86288         * modules/crypto/gc-tests: Moved from ../.
86289         * modules/crypto/hmac-md5: Moved from ../.
86290         * modules/crypto/hmac-md5-tests: Moved from ../.
86291         * modules/crypto/hmac-sha1: Moved from ../.
86292         * modules/crypto/hmac-sha1-tests: Moved from ../.
86293         * modules/crypto/md2: Moved from ../.
86294         * modules/crypto/md2-tests: Moved from ../.
86295         * modules/crypto/md4: Moved from ../.
86296         * modules/crypto/md4-tests: Moved from ../.
86297         * modules/crypto/md5: Moved from ../.
86298         * modules/crypto/md5-tests: Moved from ../.
86299         * modules/crypto/memxor: Moved from ../.
86300         * modules/crypto/rijndael: Moved from ../.
86301         * modules/crypto/rijndael-tests: Moved from ../.
86302         * modules/crypto/sha1: Moved from ../.
86304 2007-03-30  James Youngman  <jay@gnu.org>
86306         * tests/test-stat-time.c (prepare_test): use chmod() rather than
86307         rename() to change the ctime of a file (because ctime is unaffected
86308         by rename on jfs2 on AIX 5.1).
86309         (main): Start by doing cleanup, in case a previous run failed leaving
86310         test files behind.
86312 2007-03-31  Bruno Haible  <bruno@clisp.org>
86314         Support old proprietary implementations of iconv.
86315         * modules/iconv_open: New file.
86316         * lib/iconv_.h: New file.
86317         * m4/iconv_h.m4: New file.
86318         * lib/iconv_open.c: New file.
86319         * lib/iconv_open-aix.gperf: New file.
86320         * lib/iconv_open-hpux.gperf: New file.
86321         * lib/iconv_open-irix.gperf: New file.
86322         * lib/iconv_open-osf.gperf: New file.
86323         * m4/iconv_open.m4: New file.
86324         * modules/linebreak (Depends-on): Add iconv_open.
86325         * modules/striconv (Depends-on): Likewise.
86326         * modules/striconveh (Depends-on): Likewise.
86327         * modules/unicodeio (Depends-on): Likewise.
86328         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
86329         (iconv_t)(-1).
86330         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
86331         conversion if cd is (iconv_t)(-1).
86332         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
86333         is not possible.
86335 2007-03-31  Bruno Haible  <bruno@clisp.org>
86337         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
86338         work on Solaris either. Protect also second use of "autodetect_jp".
86340 2007-03-31  Bruno Haible  <bruno@clisp.org>
86342         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
86343         the function is not present.
86345 2007-03-31  Bruno Haible  <bruno@clisp.org>
86347         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
86348         the function is not present.
86350 2007-03-31  Bruno Haible  <bruno@clisp.org>
86352         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
86353         a bug in HP-UX iconv_open().
86355 2007-03-31  Bruno Haible  <bruno@clisp.org>
86357         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
86358         (Mathematics <math.h>): New section, add fpieee.
86359         (Input/output <stdio.h>): Add fseterr.
86360         (Mathematics <math.h>): New section, add printf-frexp.
86361         (Container data structures): Add sublist.
86362         (Core language properties): Add fpucw, inline.
86363         (Functions for greatest-width integer types <inttypes.h>): Add
86364         imaxabs, imaxdiv, inttypes.
86365         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
86366         isnanl-nolibm, ldexp.
86367         (Mathematics <math.h>): New section, add printf-frexpl.
86368         (Support for systems lacking POSIX:2001): Add fprintf-posix,
86369         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
86370         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
86371         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
86372         (Unicode string functions): Add unistr/u*-mbtoucr.
86373         (Java): Add javacomp-script, javaexec-script.
86374         (C#): Add csharpcomp-script, csharpexec-script.
86375         (Support for building libraries and executables): Add havelib,
86376         relocatable-*.
86377         (Support for maintaining and releasing projects): Renamed from
86378         'Support for maintaining and release projects'. Add announce-gen.
86380 2007-03-31  Bruno Haible  <bruno@clisp.org>
86382         * README: Talk primarily about git.
86383         (git and CVS): Renamed from CVS.
86384         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
86385         gnulib is available through git.
86386         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
86388 2007-03-30  Bruno Haible  <bruno@clisp.org>
86390         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
86391         * lib/poll_.h: Likewise.
86392         * lib/stat_.h: Likewise.
86393         * lib/sys_time_.h: Likewise.
86394         * lib/sysexit_.h: Likewise.
86395         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
86396         * lib/stdbool_.h: Likewise.
86397         * lib/byteswap_.h: Add double-inclusion guard.
86399 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
86401         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
86403 2007-03-30  Karl Berry  <karl@gnu.org>
86405         * config/srclist-update: double space after USA in the license
86406         substitution, since that's how it's usually (?) written.
86408 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
86410         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
86411         reported by Bruno Haible.
86413 2007-03-29  Bruno Haible  <bruno@clisp.org>
86415         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
86416         a bug in AIX iconv().
86418 2007-03-29  Bruno Haible  <bruno@clisp.org>
86420         * modules/ldexpl-tests: New file.
86421         * tests/test-ldexpl.c: New file.
86423 2007-03-29  Bruno Haible  <bruno@clisp.org>
86425         * lib/ldexpl.c: Include fpucw.h.
86426         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
86427         multiplication.
86428         * modules/ldexpl (Depends-on): Add fpucw.
86430 2007-03-29  Bruno Haible  <bruno@clisp.org>
86432         * modules/ldexpl: New file.
86433         * m4/ldexpl.m4: New file.
86434         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
86435         set.
86436         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
86437         REPLACE_LDEXPL.
86438         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
86439         REPLACE_LDEXPL.
86440         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
86441         gl_FUNC_LDEXPL_WORKS.
86442         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
86443         * modules/mathl (Files): Remove lib/ldexpl.c.
86444         (Depends-on): Add ldexpl.
86446 2007-03-29  Bruno Haible  <bruno@clisp.org>
86448         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
86450 2007-03-29  Bruno Haible  <bruno@clisp.org>
86452         * tests/test-striconveh.c (main): Don't assume that a direct conversion
86453         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
86454         and possibly also HP-UX.
86455         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
86456         work on AIX, IRIX, HP-UX, OSF/1.
86457         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
86458         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
86459         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
86460         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
86461         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
86462         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
86464 2007-03-29  Bruno Haible  <bruno@clisp.org>
86466         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
86468 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
86470         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
86471         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
86473 2007-03-29  Eric Blake  <ebb9@byu.net>
86475         * lib/acl-internal.h: Remove redundant include.
86476         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
86477         Cygwin when a file is locked.
86479 2007-03-29  Bruno Haible  <bruno@clisp.org>
86481         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
86482         file.
86483         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
86485 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
86487         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
86488         try to remove a parent directory if the child couldn't be removed
86489         (except for the first rmdir, which could fail because the child
86490         doesn't exist).  Problem reported by Jeff Blaine in
86491         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
86493 2007-03-28  Bruno Haible  <bruno@clisp.org>
86495         * lib/striconveh.c (utf8conv_carefully): New function.
86496         (mem_cd_iconveh_internal): Invoke it.
86498 2007-03-28  Bruno Haible  <bruno@clisp.org>
86500         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
86501         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
86502         input.
86503         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
86504         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
86505         unistr/u8-uctomb.
86507 2007-03-28  Bruno Haible  <bruno@clisp.org>
86509         * modules/unistr/u8-mbtoucr: New file.
86510         * lib/unistr/u8-mbtoucr.c: New file.
86511         * modules/unistr/u16-mbtoucr: New file.
86512         * lib/unistr/u16-mbtoucr.c: New file.
86513         * modules/unistr/u16-mbtoucr: New file.
86514         * lib/unistr/u16-mbtoucr.c: New file.
86515         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
86517 2007-03-27  Simon Josefsson  <simon@josefsson.org>
86518             Bruno Haible  <bruno@clisp.org>
86520         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
86521         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
86522         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
86524         * m4/stdio_h.m4: Add stubs for vasprintf too.
86526         * modules/stdio: Support vasprintf in sed command.
86528         * modules/vasprintf: Depend on stdio for prototypes.  Remove
86529         vasprintf.h.  Add stdio module indicator.
86531         * lib/stdio_.h: Declare asprintf and vasprintf, based on
86532         vasprintf.h.
86534         * lib/vasprintf.h: File removed.
86536         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
86537         * lib/vasprintf.c: Ditto.
86538         * lib/xvasprintf.c: Ditto.
86539         * tests/test-vasprintf-posix.c: Ditto.
86540         * tests/test-vasprintf.c: Ditto.
86542 2007-03-27  Bruno Haible  <bruno@clisp.org>
86544         Make vasnprintf multithread-safe.
86545         * lib/vasnprintf.c (decimal_point_char): New function.
86546         (VASNPRINTF): Use it.
86547         Suggested by Simon Josefsson.
86549 2007-03-27  Eric Blake  <ebb9@byu.net>
86551         Support sub-second birthtime on cygwin.
86552         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
86553         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
86554         (get_stat_birthtime): Also work with st_birthtim.
86556 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
86558         * lib/stat-time.h (USE_BIRTHTIME): Remove.
86559         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
86560         (get_stat_birthtime_ns): Do not try to use "spare" fields.
86561         (get_stat_birthtime_ns): Simplify compile-time tests.
86562         (get_stat_birthtime): Change the API to look like
86563         get_stat_mtime etc., except return a negative tv_nsec on error.
86564         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
86565         Don't check for "spare" fields.
86566         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
86567         or for struct stat.st_birthtime, as these tests aren't used.
86568         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
86570 2007-03-27  Bruno Haible  <bruno@clisp.org>
86572         * lib/stat-time.h: Include <sys/stat.h>.
86574 2007-03-27  James Youngman  <jay@gnu.org>
86576         * lib/stat-time.h (get_stat_birthtime): New function for
86577           retrieving st_birthtime as provided by UFS2 (hence *BSD).
86578         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
86579           and its variants.
86580         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
86581         * modules/stat-time-test: New file.
86582         * tests/test-stat-time.c: New test, devised by Bruno Haible.
86584 2007-03-26  Bruno Haible  <bruno@clisp.org>
86586         Better support of signalling NaNs.
86587         * lib/atanl.c: Include isnanl.h.
86588         (atanl): Perform test for NaN at the beginning of the function and
86589         through a call to isnanl.
86590         * lib/cosl.c: Include isnanl.h.
86591         (cosl): Perform test for NaN at the beginning of the function and
86592         through a call to isnanl.
86593         * lib/ldexpl.c: Include isnanl.h.
86594         (ldexpl): Perform test for NaN through a call to isnanl.
86595         * lib/logl.c: Include isnanl.h.
86596         (logl): Perform test for NaN at the beginning of the function and
86597         through a call to isnanl.
86598         * lib/sinl.c: Include isnanl.h.
86599         (sinl): Perform test for NaN at the beginning of the function and
86600         through a call to isnanl.
86601         * lib/sqrtl.c: Include isnanl.h.
86602         (sqrtl): Perform test for NaN at the beginning of the function and
86603         through a call to isnanl.
86604         * lib/tanl.c: Include isnanl.h.
86605         (tanl): Perform test for NaN at the beginning of the function and
86606         through a call to isnanl.
86607         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
86608         * modules/mathl (Depends-on): Add isnanl.
86610 2007-03-26  Eric Blake  <ebb9@byu.net>
86612         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
86613         regression in logic sense of previous patch.
86615 2007-03-26  Bruno Haible  <bruno@clisp.org>
86617         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
86618         unportable shell command "if ! ...".
86619         Reported by Ralf Wildenhues.
86621 2007-03-25  Bruno Haible  <bruno@clisp.org>
86623         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
86624         <sysexits.h> file, and only add EX_CONFIG.
86625         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
86626         absolute file name and whether it is sufficient. Substitute also
86627         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
86628         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
86629         ABSOLUTE_SYSEXITS_H into sysexits.h.
86631 2007-03-25  Bruno Haible  <bruno@clisp.org>
86633         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
86634         hints is NULL.
86636 2007-03-25  Bruno Haible  <bruno@clisp.org>
86638         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
86639         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
86641 2007-03-25  Bruno Haible  <bruno@clisp.org>
86643         * lib/vasnprintf.c: Include langinfo.h.
86644         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
86645         multithread-safe.
86646         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
86647         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
86648         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
86649         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
86650         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
86651         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
86652         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
86653         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
86654         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
86655         Reported by Simon Josefsson.
86657 2007-03-25  Bruno Haible  <bruno@clisp.org>
86659         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
86660         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
86661         * modules/vasnprintf (Depends-on): Add stdint.
86663 2007-03-25  Bruno Haible  <bruno@clisp.org>
86665         * modules/fpieee: New file.
86666         * m4/fpieee.m4: New file.
86667         * modules/isnan-nolibm (Depends-on): Add fpieee.
86668         * modules/isnanl-nolibm (Depends-on): Add fpieee.
86669         * modules/isnanl (Depends-on): Add fpieee.
86671 2007-03-25  Bruno Haible  <bruno@clisp.org>
86673         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
86675 2007-03-25  Bruno Haible  <bruno@clisp.org>
86677         Avoid test failures on IRIX 6.5.
86678         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
86679         (main): Use it.
86680         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
86681         macros.
86682         (main): Use them.
86684 2007-03-25  Bruno Haible  <bruno@clisp.org>
86686         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
86687         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
86688         exists but doesn't work.
86689         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
86690         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
86691         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
86692         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
86693         math.h.
86695 2007-03-25  Bruno Haible  <bruno@clisp.org>
86697         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
86698         returns inf. Needed on IRIX 6.5.
86700 2007-03-25  Bruno Haible  <bruno@clisp.org>
86702         * tests/test-frexpl.c: Include isnanl-nolibm.h.
86703         (main): Use isnanl instead of x != x idiom.
86704         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
86706         * tests/test-frexp.c: Include isnan.h.
86707         (main): Use isnan instead of x != x idiom.
86708         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
86710 2007-03-25  Bruno Haible  <bruno@clisp.org>
86712         * tests/test-frexp.c (NaN): New function/macro.
86713         (main): Use it instead of 0.0 / 0.0.
86714         * tests/test-isnan.c (NaN): New function/macro.
86715         (main): Use it instead of 0.0 / 0.0.
86716         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
86717         (test_function): Use it instead of 0.0 / 0.0.
86718         * tests/test-vasprintf-posix.c (NaN): New function/macro.
86719         (test_function): Use it instead of 0.0 / 0.0.
86720         * tests/test-snprintf-posix.h (NaN): New function/macro.
86721         (test_function): Use it instead of 0.0 / 0.0.
86722         * tests/test-sprintf-posix.h (NaN): New function/macro.
86723         (test_function): Use it instead of 0.0 / 0.0.
86724         * tests/test-fprintf-posix.h (NaN): New function/macro.
86725         (test_function): Use it instead of 0.0 / 0.0.
86726         * tests/test-printf-posix.h (NaN): New function/macro.
86727         (test_function): Use it instead of 0.0 / 0.0.
86729         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
86731 2007-03-25  Bruno Haible  <bruno@clisp.org>
86733         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
86735 2007-03-25  Bruno Haible  <bruno@clisp.org>
86737         * lib/regexec.c (merge_state_with_log): Make static.
86739 2007-03-25  Bruno Haible  <bruno@clisp.org>
86741         * lib/trigl.c (kernel_rem_pio2): Make static.
86743 2007-03-25  Bruno Haible  <bruno@clisp.org>
86745         * lib/sincosl.c (sincosl_table): Make static.
86747 2007-03-25  Bruno Haible  <bruno@clisp.org>
86749         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
86750         if the compiler does not support C99.
86752 2007-03-25  Bruno Haible  <bruno@clisp.org>
86754         * modules/time (Makefile.am): Ensure all rule action lines start with a
86755         tab.
86757 2007-03-24  Bruno Haible  <bruno@clisp.org>
86759         * modules/tsearch-tests: New file.
86760         * tests/test-tsearch.sh: New file.
86761         * tests/test-tsearch.c: New file, mostly copied from glibc.
86763         * modules/search-tests: New file.
86764         * tests/test-search.c: New file.
86766         * modules/search: New file.
86767         * lib/search_.h: New file, incorporating lib/tsearch.h.
86768         * m4/search_h.m4: New file.
86769         * lib/tsearch.h: Remove file.
86770         * lib/tsearch.c: Include search.h instead of tsearch.h.
86771         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
86772         HAVE_TSEARCH.
86773         * modules/tsearch (Files): Remove lib/tsearch.h.
86774         (Depends-on): Add search.
86775         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
86776         (Include): Change tsearch.h into search.h.
86778 2007-03-24  Bruno Haible  <bruno@clisp.org>
86780         * modules/fpucw: New file.
86781         * lib/fpucw.h: New file.
86782         * lib/frexp.c: Include fpucw.h.
86783         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
86784         (FUNC): Use them.
86785         * lib/printf-frexp.c: Include fpucw.h.
86786         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
86787         (FUNC): Use them.
86788         * lib/vasnprintf.c: Include fpucw.h.
86789         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
86790         'long double' calculations.
86791         * tests/test-frexpl.c: Include fpucw.h.
86792         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
86793         * tests/test-printf-frexpl.c: Include fpucw.h.
86794         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
86795         * modules/frexpl (Depends-on): Add fpucw.
86796         * modules/printf-frexpl (Depends-on): Likewise.
86797         * modules/fprintf-posix (Depends-on): Likewise.
86798         * modules/snprintf-posix (Depends-on): Likewise.
86799         * modules/sprintf-posix (Depends-on): Likewise.
86800         * modules/vasnprintf-posix (Depends-on): Likewise.
86801         * modules/vasprintf-posix (Depends-on): Likewise.
86802         * modules/vfprintf-posix (Depends-on): Likewise.
86803         * modules/vsnprintf-posix (Depends-on): Likewise.
86804         * modules/vsprintf-posix (Depends-on): Likewise.
86805         * modules/frexpl-tests (Depends-on): Likewise.
86806         * modules/printf-frexpl-tests (Depends-on): Likewise.
86808 2007-03-24  Bruno Haible  <bruno@clisp.org>
86810         * lib/float+.h: New file.
86811         * lib/isnan.c: Include float+.h.
86812         (SIZE): New macro.
86813         (FUNC): Compare only SIZE bytes of the value.
86814         * lib/vasnprintf.c: Include float+.h.
86815         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
86816         SIZEOF_LDBL or SIZEOF_DBL bytes.
86817         * modules/isnan-nolibm (Files): Add lib/float+.h.
86818         * modules/isnanl-nolibm (Files): Add lib/float+.h.
86819         * modules/isnanl (Files): Add lib/float+.h.
86820         * modules/vasnprintf (Files): Add lib/float+.h.
86822 2007-03-24  Bruno Haible  <bruno@clisp.org>
86824         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
86825         include isnanl-nolibm.h.
86827 2007-03-24  Bruno Haible  <bruno@clisp.org>
86829         * tests/test-read-file.c (main): Don't produce spurious output for
86830         expected situations. Make the test fail if it encountered unexpected
86831         results.
86833 2007-03-24  Bruno Haible  <bruno@clisp.org>
86835         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
86836         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
86838 2007-03-24  Bruno Haible  <bruno@clisp.org>
86840         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
86842 2007-03-24  Bruno Haible  <bruno@clisp.org>
86844         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
86845         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
86847         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
86848         * modules/utf8-ucs4: Turn into a symbolic link to module
86849         unistr/u8-mbtouc.
86851         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
86852         utf8-ucs4-unsafe.
86853         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
86854         unistr/u8-mbtouc-unsafe.
86856         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
86857         * modules/utf16-ucs4: Turn into a symbolic link to module
86858         unistr/u16-mbtouc.
86860         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
86861         utf16-ucs4-unsafe.
86862         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
86863         unistr/u16-mbtouc-unsafe.
86865         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
86866         * modules/ucs4-utf8: Turn into a symbolic link to module
86867         unistr/u8-ubtomb.
86869         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
86870         * modules/ucs4-utf16: Turn into a symbolic link to module
86871         unistr/u16-ubtomb.
86873 2007-03-24  Bruno Haible  <bruno@clisp.org>
86875         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
86876         Enable the function only if HAVE_INLINE.
86877         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
86878         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
86879         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
86880         Enable the function only if HAVE_INLINE.
86881         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
86882         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
86883         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
86884         Enable the function only if HAVE_INLINE.
86885         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
86886         Enable the function only if HAVE_INLINE.
86887         * modules/utf8-ucs4: Update.
86888         * modules/utf8-ucs4-unsafe: Update.
86889         * modules/utf16-ucs4: Update.
86890         * modules/utf16-ucs4-unsafe: Update.
86891         * modules/ucs4-utf8: Update.
86892         * modules/ucs4-utf16: Update.
86894 2007-03-24  Bruno Haible  <bruno@clisp.org>
86896         * lib/utf8-ucs4.h: Remove file.
86897         * lib/utf8-ucs4-unsafe.h: Remove file.
86898         * lib/utf16-ucs4.h: Remove file.
86899         * lib/utf16-ucs4-unsafe.h: Remove file.
86900         * lib/ucs4-utf8.h: Remove file.
86901         * lib/ucs4-utf16.h: Remove file.
86902         * lib/unistr.h: Include their previous contents.
86903         * m4/utf-ucs4.m4: Remove file.
86904         * m4/ucs4-utf.m4: Remove file.
86905         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
86906         (Depends-on): Add unistr/base.
86907         (configure.ac): Remove gl_UTF_UCS4.
86908         (Makefile.am): Update.
86909         (Include): Change to unistr.h.
86910         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
86911         (Depends-on): Add unistr/base.
86912         (configure.ac): Remove gl_UTF_UCS4.
86913         (Makefile.am): Update.
86914         (Include): Change to unistr.h.
86915         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
86916         (Depends-on): Add unistr/base.
86917         (configure.ac): Remove gl_UTF_UCS4.
86918         (Makefile.am): Update.
86919         (Include): Change to unistr.h.
86920         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
86921         (Depends-on): Add unistr/base.
86922         (configure.ac): Remove gl_UTF_UCS4.
86923         (Makefile.am): Update.
86924         (Include): Change to unistr.h.
86925         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
86926         (Depends-on): Add unistr/base.
86927         (configure.ac): Remove gl_UCS4_UTF.
86928         (Makefile.am): Update.
86929         (Include): Change to unistr.h.
86930         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
86931         (Depends-on): Add unistr/base.
86932         (configure.ac): Remove gl_UCS4_UTF.
86933         (Makefile.am): Update.
86934         (Include): Change to unistr.h.
86935         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
86936         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
86937         utf8-ucs4-unsafe.h.
86938         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
86939         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
86940         utf16-ucs4-unsafe.h.
86941         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
86942         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
86943         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
86944         * lib/unistr/u8-strchr.c: Likewise.
86945         * lib/unistr/u8-strrchr.c: Likewise.
86946         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
86947         * lib/unistr/u16-strchr.c: Likewise.
86948         * lib/unistr/u16-strrchr.c: Likewise.
86949         * lib/striconveh.c: Update.
86950         * lib/linebreak.c: Update.
86952 2007-03-24  Bruno Haible  <bruno@clisp.org>
86954         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
86955         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
86957 2007-03-22  Bruno Haible  <bruno@clisp.org>
86959         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
86961 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
86963         * MODULES.html.sh (File system functions): New module write-any-file.
86964         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
86965         * m4/write-any-file.m4: New files.
86967 2007-03-23  Eric Blake  <ebb9@byu.net>
86969         * gnulib-tool: Rearrange space-tab sequences, since some editors
86970         like to eat them.
86972 2007-03-23  Eric Blake  <ebb9@byu.net>
86974         * lib/version-etc.c (version_etc_va): Update license wording to
86975         be more concise.  Recommended by Richard Stallman.
86977 2007-03-22  Bruno Haible  <bruno@clisp.org>
86979         * lib/poll.c (MSG_PEEK): New fallback definition.
86981 2007-03-22  Bruno Haible  <bruno@clisp.org>
86983         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
86984         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
86985         (main): Update.
86986         Fixes a compilation error on BeOS.
86988 2007-03-22  Bruno Haible  <bruno@clisp.org>
86990         * modules/frexpl-tests: New file.
86991         * tests/test-frexpl.c: New file.
86993         * modules/frexpl: New file.
86994         * m4/frexpl.m4: New file.
86995         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
86996         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
86997         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
86998         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
86999         (Depends-on): Add frexpl. Remove isnanl-nolibm.
87000         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
87002 2007-03-22  Bruno Haible  <bruno@clisp.org>
87004         * lib/frexpl.c: Share code with lib/frexp.c.
87005         * modules/mathl (Files): Add lib/frexp.c.
87006         (Depends-on): Add isnanl-nolibm.
87008 2007-03-22  Bruno Haible  <bruno@clisp.org>
87010         * modules/printf-frexp (Files): Add m4/frexp.m4.
87011         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
87012         only if the found frexp function actually works.
87014 2007-03-22  Bruno Haible  <bruno@clisp.org>
87016         * lib/frexp.c: Remove older implementation that uses divisions.
87018 2007-03-21  Bruno Haible  <bruno@clisp.org>
87020         * modules/frexp-tests: New file.
87021         * tests/test-frexp.c: New file.
87023         * modules/frexp: New file.
87024         * lib/frexp.c: New file.
87025         * m4/frexp.m4: New file.
87026         * lib/math_.h (frexp): New declaration.
87027         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
87028         REPLACE_FREXP.
87029         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
87031 2007-03-21  Bruno Haible  <bruno@clisp.org>
87033         * modules/isnanl-tests: New file.
87034         * tests/test-isnanl.c: New file.
87036         * modules/isnanl: New file.
87037         * lib/isnanl.h: New file.
87038         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
87039         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
87040         gl_FUNC_ISNANL_WORKS.
87041         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
87042         New macros.
87044 2007-03-21  Bruno Haible  <bruno@clisp.org>
87046         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
87047         lib/isnanl.h.
87048         (Include): Update.
87049         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
87050         * lib/vasnprintf.c: Update.
87051         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
87052         tests/test-isnanl.h, remove tests/test-isnanl.c.
87053         (Makefile.am): Update.
87054         * tests/test-isnanl-nolibm.c: New file.
87055         * tests/test-isnanl.h: New file.
87056         * tests/test-isnanl.c: Remove file.
87058 2007-03-21  Jim Meyering  <jim@meyering.net>
87060         When trying to open ".", treat ESTALE like EACCES.
87061         * lib/savewd.c (savewd_save): Resort to forking not just upon
87062         failure with EACCES, but also when errno is ESTALE.
87064 2007-03-20  Bruno Haible  <bruno@clisp.org>
87066         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
87067         Needed on AIX 5.1. Reported by Matthew Woehlke.
87069 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
87071         Suggestions by Bruno Haible:
87072         * lib/acl-internal.h: Include "gettext.h" rather than rolling
87073         our own.
87074         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
87075         * modules/acl (Depends-on): Add gettext.
87077 2007-03-19  Bruno Haible  <bruno@clisp.org>
87079         * modules/iconvme: Remove file.
87080         * lib/iconvme.h: Remove file.
87081         * lib/iconvme.c: Remove file.
87082         * m4/iconvme.m4: Remove file.
87084 2007-03-19  Bruno Haible  <bruno@clisp.org>
87086         * doc/relocatable-maint.texi: Break long shell script line.
87087         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
87089 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
87091         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
87092         handle file_has_acl.
87093         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
87094         * lib/acl.c: Move header inclusions and related macro defns into
87095         lib/acl-internal.h.
87096         (S_ISLNK): Remove defn, since that's now done for us.
87097         (file_has_acl): Move to lib/file-has-acl.c.
87098         Call acl_trivial if available.  This is the crucial part of the fix.
87099         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
87100         shared within the library.  Rewrite a bit, partly to make it compatible
87101         with the GNU coding style.
87102         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
87103         Remove unnecessary double-quotes.
87104         Don't test for acl_to_text; the build will catch that.
87105         Replace acl_entries if it doesn't exist and it is needed.
87106         Check for -lsec and acl_trivial (as used on Solaris 10).
87107         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
87108         lib/file-has-acl.c.
87109         (Depends-on): Add sys_stat, for S_ISLNK.
87111 2007-03-19  Ben Pfaff  <blp@gnu.org>
87113         * doc/gnulib.texi: Fix typos.
87114         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
87116 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
87118         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
87119         If size is zero here, buf must be zero.
87121 2007-03-19  Simon Josefsson  <simon@josefsson.org>
87123         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
87124         <bruno@clisp.org>.
87126 2007-03-18  Bruno Haible  <bruno@clisp.org>
87128         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
87129         Suggested by Eric Blake.
87131 2007-03-18  Ben Pfaff  <blp@gnu.org>
87133         * doc/relocatable.texi: Recommend using as prefix a directory
87134         that does not exist and will never be created.  Based on
87135         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
87136         and others.
87138 2007-03-17  Bruno Haible  <bruno@clisp.org>
87140         * lib/fchownat.c: Include lchown.h.
87142 2007-03-17  Bruno Haible  <bruno@clisp.org>
87144         Fix endless loop when the given allocated size was > INT_MAX.
87145         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
87146         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
87147         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
87148         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
87149         * lib/sprintf.c (sprintf): Likewise.
87151 2007-03-17  Bruno Haible  <bruno@clisp.org>
87153         * tests/test-argp-2.sh (func_compare): Output a context diff.
87155 2007-03-17  Bruno Haible  <bruno@clisp.org>
87157         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
87158         locale's decimal-point character.
87160 2007-03-17  Bruno Haible  <bruno@clisp.org>
87162         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
87163         before comparing it. Needed because on some platforms (e.g. x86) a
87164         'long double' occupies less bytes than sizeof (long double).
87166 2007-03-17  Bruno Haible  <bruno@clisp.org>
87168         * tests/test-crc.c (main): Make printf statements 64-bit clean.
87169         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
87170         * tests/test-getaddrinfo.c (simple): Likewise.
87171         * tests/test-read-file.c (main): Likewise.
87173 2007-03-17  Bruno Haible  <bruno@clisp.org>
87175         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
87177 2007-03-17  Bruno Haible  <bruno@clisp.org>
87179         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
87180         unused variable.
87182 2007-03-17  Bruno Haible  <bruno@clisp.org>
87184         * tests/test-c-strcasecmp.c: Include c-strcase.h.
87185         * tests/test-c-strncasecmp.c: Likewise.
87187 2007-03-17  Bruno Haible  <bruno@clisp.org>
87189         * modules/stdlib (Depends-on): Add unistd.
87190         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
87191         Needed for MacOS X 10.3.
87193 2007-03-17  Bruno Haible  <bruno@clisp.org>
87195         * lib/unistr/u-strdup.h: Include <stdlib.h>.
87197 2007-03-17  Bruno Haible  <bruno@clisp.org>
87199         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
87201 2007-03-17  Bruno Haible  <bruno@clisp.org>
87203         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
87204         to reflect files copied from gnulib (with or without modifications).
87205         Suggested by Jim Meyering.
87207 2007-03-17  Eric Blake  <ebb9@byu.net>
87209         * NEWS: Document stdlib change from 2007-02-18.
87211 2007-03-17  Jim Meyering  <jim@meyering.net>
87213         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
87214         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
87215         someone uses a name containing shell meta-characters.
87216         Reported by Alfred M. Szmidt.
87218         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
87220 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
87222         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
87223         and copy gettext configuration files only if configure.ac contains
87224         a use of AM_GNU_GETTEXT_VERSION.
87226 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
87228         * build-aux/bootstrap (gnulib_name): New variable.
87229         (gnulib_tool_options): Use it.
87231 2007-03-13  Simon Josefsson  <simon@josefsson.org>
87233         * tests/test-des.c: Use new namespace.
87235 2007-03-15  Bruno Haible  <bruno@clisp.org>
87237         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
87238         Reported by James Youngman <jay@gnu.org>.
87240 2007-03-15  Bruno Haible  <bruno@clisp.org>
87242         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
87243         declared prototype. Needed with cc on OSF/1 5.1.
87245 2007-03-15  Bruno Haible  <bruno@clisp.org>
87247         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
87248         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
87249         (struct gl_list_implementation): Add dispose_fn argument to the
87250         'create_empty', 'create' methods.
87251         (struct gl_list_impl_base): Add field 'dispose_fn'.
87252         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
87253         argument.
87254         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
87255         dispose_fn argument.
87256         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
87257         dispose_fn on the dropped values.
87258         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
87259         dispose_fn argument.
87260         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
87261         dropped values.
87262         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
87263         (gl_tree_remove_node): Call dispose_fn on the dropped value.
87264         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
87265         (gl_tree_remove_node): Call dispose_fn on the dropped value.
87266         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
87267         argument.
87268         (gl_tree_list_free): Call dispose_fn on the dropped values.
87269         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
87270         the dropped values.
87271         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
87272         Add dispose_fn argument.
87273         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
87274         Call dispose_fn on the dropped values.
87275         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
87276         Add dispose_fn argument.
87277         (gl_sublist_create): Initialize the 'dispose_fn' field.
87278         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
87279         * tests/test-array_list.c (main): Update.
87280         * tests/test-carray_list.c (main): Update.
87281         * tests/test-avltree_list.c (main): Update.
87282         * tests/test-rbtree_list.c (main): Update.
87283         * tests/test-avltreehash_list.c (main): Update.
87284         * tests/test-rbtreehash_list.c (main): Update.
87285         * tests/test-linked_list.c (main): Update.
87286         * tests/test-linkedhash_list.c (main): Update.
87287         * tests/test-array_oset.c (main): Update.
87289 2007-03-15  Bruno Haible  <bruno@clisp.org>
87291         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
87292         (gl_oset_create_empty): Add dispose_fn argument.
87293         (struct gl_oset_implementation): Add dispose_fn argument to
87294         'create_empty' method.
87295         (struct gl_oset_impl_base): Add dispose_fn field.
87296         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
87297         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
87298         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
87299         values.
87300         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
87301         (gl_tree_oset_free): Call dispose_fn on the dropped values.
87302         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
87303         dropped value.
87304         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
87305         dropped value.
87306         * tests/test-array_oset.c (main): Update.
87307         * tests/test-avltree_oset.c (main): Update.
87308         * tests/test-rbtree_oset.c (main): Update.
87309         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
87311 2007-03-13  Bruno Haible  <bruno@clisp.org>
87313         * tests/test-stdbool.c (i): Update after last patch.
87315 2007-03-12  Bruno Haible  <bruno@clisp.org>
87317         * lib/quotearg.c: Include <wctype.h> early, before the definition of
87318         the iswprint macro. Needed on Solaris 2.5.1.
87320 2007-03-12  Bruno Haible  <bruno@clisp.org>
87322         * tests/test-printf-frexp.c (main): Declare x as volatile.
87324 2007-03-12  Simon Josefsson  <simon@josefsson.org>
87326         * doc/gnulib.texi (Build robot for gnulib): New section.
87328 2007-03-12  Jim Meyering  <jim@meyering.net>
87330         * build-aux/bootstrap: New file.
87331         * build-aux/bootstrap.conf: New file, from coreutils.
87333 2007-03-11  Bruno Haible  <bruno@clisp.org>
87335         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
87337 2007-03-12  Simon Josefsson  <simon@josefsson.org>
87339         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
87340         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
87341         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
87343 2007-03-11  Bruno Haible  <bruno@clisp.org>
87345         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
87346         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
87348 2007-03-11  Bruno Haible  <bruno@clisp.org>
87350         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
87351         formula. Needed for SunPRO C 5.0.
87353 2007-03-11  Bruno Haible  <bruno@clisp.org>
87355         * modules/long-options (Depends-on): Add getopt.
87357 2007-03-11  Bruno Haible  <bruno@clisp.org>
87359         * modules/modechange (Depends-on): Add stdbool.
87361 2007-03-11  Bruno Haible  <bruno@clisp.org>
87363         * modules/i-ring (Depends-on): Add stdbool.
87365 2007-03-11  Bruno Haible  <bruno@clisp.org>
87367         * modules/gc-des (Depends-on): Add stdbool.
87369 2007-03-11  Bruno Haible  <bruno@clisp.org>
87371         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
87373 2007-03-11  Bruno Haible  <bruno@clisp.org>
87375         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
87377 2007-03-11  Bruno Haible  <bruno@clisp.org>
87379         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
87381 2007-03-11  Bruno Haible  <bruno@clisp.org>
87383         * lib/vasnprintf.c (sprintf): Undefine.
87385 2007-03-11  Bruno Haible  <bruno@clisp.org>
87387         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
87388         initializers in SunPRO C and Compaq C compilers.
87390 2007-03-11  Bruno Haible  <bruno@clisp.org>
87392         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
87393         decrementing code ANSI C compliant.
87395 2007-03-11  Bruno Haible  <bruno@clisp.org>
87397         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
87398         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
87400 2007-03-11  Bruno Haible  <bruno@clisp.org>
87402         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
87403         <stdbool.h> substitute doesn't pass.
87405 2007-03-11  Bruno Haible  <bruno@clisp.org>
87407         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
87409 2007-03-11  Bruno Haible  <bruno@clisp.org>
87411         * gnulib-tool (func_create_megatestdir): Create also an autobuild
87412         script, for submission to autobuild.josefsson.org.
87414 2007-03-10  Bruno Haible  <bruno@clisp.org>
87416         * modules/canonicalize-lgpl-tests: New file.
87417         * tests/test-canonicalize-lgpl.sh: New file.
87418         * tests/test-canonicalize-lgpl.c: New file.
87420         * modules/c-strcase-tests: New file.
87421         * tests/test-c-strcase.sh: New file.
87422         * tests/test-c-strcasecmp.c: New file.
87423         * tests/test-c-strncasecmp.c: New file.
87425         * modules/atexit-tests: New file.
87426         * tests/test-atexit.sh: New file.
87427         * tests/test-atexit.c: New file.
87429 2007-03-10  Bruno Haible  <bruno@clisp.org>
87431         * tests/test-binary-io.sh: Use temporary filenames that are not so
87432         likely to clash with those of other tests (in a parallel make).
87433         * tests/test-binary-io.c: Likewise.
87435 2007-03-10  Bruno Haible  <bruno@clisp.org>
87437         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
87438         fallback; use #error instead.
87439         Suggested by Simon Josefsson.
87441 2007-03-10  Bruno Haible  <bruno@clisp.org>
87443         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
87444         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
87445         first and the last.
87447 2007-03-10  Bruno Haible  <bruno@clisp.org>
87449         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
87451 2007-03-10  Bruno Haible  <bruno@clisp.org>
87453         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
87454         "make distcheck".
87455         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
87456         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
87457         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
87459 2007-03-10  Bruno Haible  <bruno@clisp.org>
87461         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
87462         variable.
87463         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
87464         variable.
87466 2007-03-09  Eric Blake  <ebb9@byu.net>
87467         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
87469         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
87470         types are not being provided by gnulib.
87471         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
87472         types are supported.
87474 2007-03-10  Bruno Haible  <bruno@clisp.org>
87476         * lib/stdio_.h (__attribute__): New macro.
87477         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
87478         vsprintf): Specify __attribute__ __format__ for GCC.
87479         Suggested by Eric Blake.
87481 2007-03-09  Bruno Haible  <bruno@clisp.org>
87483         * modules/printf-posix-tests: New file.
87484         * tests/test-printf-posix.sh: New file.
87485         * tests/test-printf-posix.c: New file.
87487         * modules/printf-posix: New file.
87488         * lib/printf.c: New file.
87489         * m4/printf-posix-rpl.m4: New file.
87490         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
87491         REPLACE_PRINTF.
87492         * lib/stdio_.h (printf): New declaration.
87493         (format, __format__, ____printf____, ____scanf____, ____strftime____,
87494         ____strfmon____): New macros.
87495         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
87496         REPLACE_PRINTF.
87498 2007-03-09  Bruno Haible  <bruno@clisp.org>
87500         * tests/test-vasnprintf-posix2.sh: New file.
87501         * tests/test-vasnprintf-posix2.c: New file.
87502         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
87503         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
87504         (Makefile.am): Activate test-vasnprintf-posix2.sh.
87506         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
87507         a locale dependent decimal point, rather than always '.'.
87509 2007-03-09  Eric Blake  <ebb9@byu.net>
87511         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
87512         spite of platforms like Tandem/NSK that define it to -1.
87514 2007-03-08  Bruno Haible  <bruno@clisp.org>
87516         * modules/vprintf-posix-tests: New file.
87517         * tests/test-vprintf-posix.sh: New file.
87518         * tests/test-vprintf-posix.c: New file.
87519         * tests/test-printf-posix.h: New file.
87521         * modules/vprintf-posix: New file.
87522         * lib/vprintf.c: New file.
87523         * m4/vprintf-posix.m4: New file.
87524         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
87525         REPLACE_VPRINTF.
87526         * lib/stdio_.h (vprintf): New declaration.
87527         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
87528         REPLACE_VPRINTF.
87530 2007-03-08  Bruno Haible  <bruno@clisp.org>
87532         * modules/fprintf-posix-tests: New file.
87533         * tests/test-fprintf-posix.sh: New file.
87534         * tests/test-fprintf-posix.c: New file.
87536         * modules/fprintf-posix: New file.
87537         * lib/fprintf.c: New file.
87538         * m4/fprintf-posix.m4: New file.
87539         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
87540         REPLACE_FPRINTF.
87541         * lib/stdio_.h (fprintf): New declaration.
87542         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
87543         REPLACE_FPRINTF.
87545 2007-03-08  Bruno Haible  <bruno@clisp.org>
87547         * modules/vfprintf-posix-tests: New file.
87548         * tests/test-vfprintf-posix.sh: New file.
87549         * tests/test-vfprintf-posix.c: New file.
87550         * tests/test-fprintf-posix.h: New file.
87551         * tests/test-fprintf-posix.out: New file.
87553         * modules/vfprintf-posix: New file.
87554         * lib/vfprintf.c: New file.
87555         * m4/vfprintf-posix.m4: New file.
87556         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
87557         REPLACE_VFPRINTF.
87558         * lib/stdio_.h (vfprintf): New declaration.
87559         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
87560         REPLACE_VFPRINTF.
87562 2007-03-08  Bruno Haible  <bruno@clisp.org>
87564         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
87566 2007-03-08  Bruno Haible  <bruno@clisp.org>
87568         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
87569         instead of 'expr' invocations.
87570         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
87571         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
87572         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
87573         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
87574         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
87575         Suggested by Paul Eggert.
87577 2007-03-08  Bruno Haible  <bruno@clisp.org>
87579         * modules/fseterr-tests: New file.
87580         * tests/test-fseterr.c: New file.
87582         * modules/fseterr: New file.
87583         * lib/fseterr.h: New file.
87584         * lib/fseterr.c: New file.
87586 2007-03-08  Bruno Haible  <bruno@clisp.org>
87588         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
87589         * lib/getopt_.h: Likewise.
87590         * lib/mbswidth.h: Likewise.
87591         * lib/setenv.h: Likewise.
87592         * lib/vasnprintf.h: Likewise.
87593         * lib/vasprintf.h: Likewise.
87594         * lib/verror.h: Likewise.
87595         * lib/xsetenv.h: Likewise.
87596         * lib/xvasprintf.h: Likewise.
87598 2007-03-08  Jim Meyering  <jim@meyering.net>
87600         * users.txt: Add parted.
87602         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
87604 2007-03-07  Bruno Haible  <bruno@clisp.org>
87606         * m4/printf.m4: Make the shell script snippets copy&pastable.
87608 2007-03-02  Bruno Haible  <bruno@clisp.org>
87610         * lib/netinet_in_.h: New file.
87611         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
87612         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
87613         * modules/netinet_in (Files): Add lib/netinet_in_.h.
87614         (Depends-on): Add absolute-header.
87615         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
87616         into netinet/in.h.
87618 2007-03-03  Bruno Haible  <bruno@clisp.org>
87620         * lib/sys_select_.h: New file.
87621         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
87622         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
87623         * modules/sys_select (Files): Add lib/sys_select_.h.
87624         (Depends-on): Add absolute-header.
87625         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
87626         into sys/select.h.
87628 2007-03-02  Bruno Haible  <bruno@clisp.org>
87630         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
87631         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
87632         values.
87633         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
87634         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
87635         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
87636         * modules/sys_socket (Depends-on): Add absolute-header.
87637         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
87638         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
87639         (Include): Remove requirement of inclusion of <sys/types.h>.
87641 2007-03-02  Bruno Haible  <bruno@clisp.org>
87643         * lib/byteswap_.h (bswap_32): Fix formula.
87645 2007-03-06  Bruno Haible  <bruno@clisp.org>
87647         * modules/sprintf-posix-tests: New file.
87648         * tests/test-sprintf-posix.c: New file.
87650         * modules/sprintf-posix: New file.
87651         * lib/sprintf.c: New file.
87652         * m4/sprintf-posix.m4: New file.
87653         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
87654         REPLACE_SPRINTF.
87655         * lib/stdio_.h (sprintf): New declaration.
87656         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
87657         REPLACE_SPRINTF.
87659 2007-03-06  Bruno Haible  <bruno@clisp.org>
87661         * modules/vsprintf-posix-tests: New file.
87662         * tests/test-vsprintf-posix.c: New file.
87663         * tests/test-sprintf-posix.h: New file.
87665         * modules/vsprintf-posix: New file.
87666         * lib/vsprintf.c: New file.
87667         * m4/vsprintf-posix.m4: New file.
87668         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
87669         REPLACE_VSPRINTF.
87670         * lib/stdio_.h (vsprintf): New declaration.
87671         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
87672         REPLACE_VSPRINTF.
87674 2007-03-06  Bruno Haible  <bruno@clisp.org>
87676         * modules/vsnprintf (Depend-on): Remove minmax.
87678 2007-03-06  Bruno Haible  <bruno@clisp.org>
87680         * modules/snprintf-posix-tests: New file.
87681         * tests/test-snprintf-posix.c: New file.
87683         * modules/snprintf-posix: New file.
87684         * m4/snprintf-posix.m4: New file.
87685         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
87686         gl_FUNC_SNPRINTF.
87687         (gl_FUNC_SNPRINTF): Invoke it.
87688         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
87689         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
87690         is set.
87691         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
87693 2007-03-06  Bruno Haible  <bruno@clisp.org>
87695         * modules/vsnprintf-posix-tests: New file.
87696         * tests/test-vsnprintf-posix.c: New file.
87697         * tests/test-snprintf-posix.h: New file.
87699         * modules/vsnprintf-posix: New file.
87700         * m4/vsnprintf-posix.m4: New file.
87701         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
87702         gl_FUNC_VSNPRINTF.
87703         (gl_FUNC_VSNPRINTF): Invoke it.
87704         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
87705         * lib/stdio_.h (vsnprintf): Define as a replacement if
87706         REPLACE_VSNPRINTF is set.
87707         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
87709 2007-03-06  Bruno Haible  <bruno@clisp.org>
87711         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
87712         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
87714 2007-03-06  Bruno Haible  <bruno@clisp.org>
87716         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
87717         (asinl): Declare also if HAVE_DECL_ASINL is set.
87718         (atanl): Declare also if HAVE_DECL_ATANL is set.
87719         (ceill): Declare also if HAVE_DECL_CEILL is set.
87720         (cosl): Declare also if HAVE_DECL_COSL is set.
87721         (expl): Declare also if HAVE_DECL_EXPL is set.
87722         (floorl): Declare also if HAVE_DECL_FLOORL is set.
87723         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
87724         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
87725         (logl): Declare also if HAVE_DECL_LOGL is set.
87726         (sinl): Declare also if HAVE_DECL_SINL is set.
87727         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
87728         (tanl): Declare also if HAVE_DECL_TANL is set.
87729         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
87730         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
87731         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
87732         declaration of frexpl, ldexpl.
87733         * modules/printf-frexpl (Depends-on): Add math.
87734         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
87736 2007-03-05  Bruno Haible  <bruno@clisp.org>
87738         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
87739         frexpl and ldexpl are declared.
87740         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
87742 2007-03-05  Bruno Haible  <bruno@clisp.org>
87744         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
87745         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
87747 2007-03-05  Bruno Haible  <bruno@clisp.org>
87749         * lib/stdio_.h: Include <stddef.h>.
87751 2007-03-05  Bruno Haible  <bruno@clisp.org>
87753         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
87755 2007-03-05  Bruno Haible  <bruno@clisp.org>
87757         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
87758         NetBSD 4, from Ralf Wildenhues.
87760 2007-03-04  Bruno Haible  <bruno@clisp.org>
87762         * lib/vasprintf.h: Update #if logic for the case when the functions
87763         exist but are overridden.
87765 2007-03-04  Bruno Haible  <bruno@clisp.org>
87767         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
87768         implementations: glibc-2.4 and MacOS X 10.3.
87769         * tests/test-vasnprintf-posix.c (test_function): Test also the case
87770         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
87771         * tests/test-vasprintf-posix.c (test_function): Likewise.
87773 2007-03-04  Bruno Haible  <bruno@clisp.org>
87775         * modules/vasprintf-posix-tests: New file.
87776         * tests/test-vasprintf-posix.c: New file.
87778         * modules/vasprintf-posix: New file.
87779         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
87780         defined.
87781         * m4/vasprintf-posix.m4: New file.
87782         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
87783         gl_FUNC_VASPRINTF.
87784         (gl_FUNC_VASPRINTF): Invoke it.
87785         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
87786         here.
87787         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
87789 2007-03-04  Bruno Haible  <bruno@clisp.org>
87791         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
87792         REPLACE_GETTIMEOFDAY.
87793         * modules/sys_time (Makefile.am): Likewise.
87794         * m4/sys_time_h.m4: Likewise.
87795         * m4/gettimeofday.m4: Likewise.
87797 2007-03-04  Bruno Haible  <bruno@clisp.org>
87799         * modules/vasnprintf-posix-tests: New file.
87800         * tests/test-vasnprintf-posix.c: New file.
87802         * modules/vasnprintf-posix: New file.
87803         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
87804         printf-frexpl.h.
87805         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
87806         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
87807         REPLACE_VASNPRINTF is defined.
87808         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
87809         gl_FUNC_VASNPRINTF.
87810         (gl_FUNC_VASNPRINTF): Invoke it.
87811         * m4/vasnprintf-posix.m4: New file.
87812         * m4/printf.m4: New file.
87814 2007-03-04  Bruno Haible  <bruno@clisp.org>
87816         Compile progreloc.c only if --enable-relocatable is specified.
87817         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
87818         if --enable-relocatable was specified.
87819         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
87820         lib_SOURCES.
87822 2007-03-04  Jim Meyering  <jim@meyering.net>
87824         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
87825         Use it consistently, rather than enumerating errno constants.
87827 2007-03-04  Bruno Haible  <bruno@clisp.org>
87829         * modules/xvasprintf-tests: New file.
87830         * tests/test-xvasprintf.c: New file.
87832         * modules/vasprintf-tests: New file.
87833         * tests/test-vasprintf.c: New file.
87835         * modules/vasnprintf-tests: New file.
87836         * tests/test-vasnprintf.c: New file.
87838         * modules/vsnprintf-tests: New file.
87839         * tests/test-vsnprintf.c: New file.
87841         * modules/snprintf-tests: New file.
87842         * tests/test-snprintf.c: New file.
87844 2007-03-04  Bruno Haible  <bruno@clisp.org>
87846         Compile relocatable.c only if --enable-relocatable is specified.
87847         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
87848         gl_RELOCATABLE_LIBRARY.
87849         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
87850         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
87851         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
87852         gl_RELOCATABLE_LIBRARY.
87853         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
87854         (Makefile.am): Remove lib_SOURCES.
87855         * modules/relocatable-lib-lgpl (configure.ac): Invoke
87856         gl_RELOCATABLE_LIBRARY.
87857         (Makefile.am): Remove lib_SOURCES.
87858         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
87859         always.
87860         * modules/relocatable-prog-wrapper (configure.ac): Invoke
87861         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
87863 2007-03-04  Bruno Haible  <bruno@clisp.org>
87865         * modules/argmatch-tests: New file.
87866         * tests/test-argmatch.c: New file.
87868         * tests/test-allocsa.c (main): Halve the number of loop runs.
87870         * modules/alloca-opt-tests: New file.
87871         * tests/test-alloca-opt.c: New file.
87873 2007-03-04  Jim Meyering  <jim@meyering.net>
87875         Work around difference between Linux ACLs and Solaris 10 ZFS.
87876         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
87877         for EINVAL.
87879 2007-03-03  Bruno Haible  <bruno@clisp.org>
87881         * modules/relocatable-prog (Depends-on): Add back progreloc's
87882         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
87884 2007-03-03  Bruno Haible  <bruno@clisp.org>
87886         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
87887         * modules/relocatable-lib: New file.
87889 2007-03-03  Bruno Haible  <bruno@clisp.org>
87891         * modules/relocatable-prog: Renamed from modules/relocatable.
87892         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
87894 2007-03-03  Bruno Haible  <bruno@clisp.org>
87896         * modules/relocatable-script (Files): Add doc/relocatable.texi,
87897         m4/relocatable-lib.m4.
87898         (Depends-on): Remove 'relocatable'.
87899         (configure.ac): Add gl_RELOCATABLE_NOP.
87901 2007-03-03  Bruno Haible  <bruno@clisp.org>
87903         * modules/relocatable-prog-wrapper: New file.
87904         * modules/relocatable (Depends-on): Add it. Remove all other
87905         dependencies except progname.
87906         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
87908         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
87909         (gl_FUNC_STRERROR): Nop.
87910         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
87912         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
87913         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
87915         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
87916         (gl_FUNC_READLINK): Update.
87918         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
87920 2007-03-03  Bruno Haible  <bruno@clisp.org>
87922         * lib/xreadlink.c: Include <unistd.h> unconditionally.
87923         * modules/xreadlink (Depends-on): Add unistd.
87924         * modules/xreadlink-with-size (Depends-on): Likewise.
87926 2007-03-03  Bruno Haible  <bruno@clisp.org>
87928         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
87929         extracted from gt_FUNC_SETENV.
87930         (gt_FUNC_SETENV): Remove macro.
87931         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
87932         remove gt_FUNC_SETENV.
87934 2007-03-03  Bruno Haible  <bruno@clisp.org>
87936         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
87937         ENABLE_RELOCATABLE here.
87938         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
87940 2007-03-03  Bruno Haible  <bruno@clisp.org>
87942         * modules/rbtreehash-list-tests (Depends-on): Add progname.
87943         * tests/test-rbtreehash_list.c: Include progname.h.
87944         (main): Call set_program_name.
87946         * modules/rbtree-oset-tests (Depends-on): Add progname.
87947         * tests/test-rbtree_oset.c: Include progname.h.
87948         (main): Call set_program_name.
87950         * modules/rbtree-list-tests (Depends-on): Add progname.
87951         * tests/test-rbtree_list.c: Include progname.h.
87952         (main): Call set_program_name.
87954         * modules/linked-list-tests (Depends-on): Add progname.
87955         * tests/test-linked_list.c: Include progname.h.
87956         (main): Call set_program_name.
87958 2007-03-03  Bruno Haible  <bruno@clisp.org>
87960         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
87961         All uses of __restrict changed to _Restrict_.
87962         * lib/glob_.h (__restrict): Remove macro.
87964 2007-03-02  Bruno Haible  <bruno@clisp.org>
87966         * modules/gettext (configure.ac): Require gettext infrastructure
87967         from version 0.16.1.
87969 2007-03-02  Bruno Haible  <bruno@clisp.org>
87971         * modules/linkedhash-list-tests (Depends-on): Add progname.
87972         * tests/test-linkedhash_list.c: Include progname.h.
87973         (main): Call set_program_name.
87975         * modules/carray-list-tests (Depends-on): Add progname.
87976         * tests/test-carray_list.c: Include progname.h.
87977         (main): Call set_program_name.
87979         * modules/avltreehash-list-tests (Depends-on): Add progname.
87980         * tests/test-avltreehash_list.c: Include progname.h.
87981         (main): Call set_program_name.
87983         * modules/avltree-oset-tests (Depends-on): Add progname.
87984         * tests/test-avltree_oset.c: Include progname.h.
87985         (main): Call set_program_name.
87987         * modules/avltree-list-tests (Depends-on): Add progname.
87988         * tests/test-avltree_list.c: Include progname.h.
87989         (main): Call set_program_name.
87991         * modules/array-oset-tests (Depends-on): Add progname.
87992         * tests/test-array_oset.c: Include progname.h.
87993         (main): Call set_program_name.
87995         * modules/array-list-tests (Depends-on): Add progname.
87996         * tests/test-array_list.c: Include progname.h.
87997         (main): Call set_program_name.
87999         * modules/argp-tests (Depends-on): Add progname.
88000         * tests/test-argp.c: Include argp.h first. Include progname.h.
88001         (main): Call set_program_name.
88003 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
88005         * doc/gnulib-tool.texi (Initial import): Reword description of
88006         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
88007         limited effect even if defined after the first system include.
88009 2007-03-01  Bruno Haible  <bruno@clisp.org>
88011         * build-aux/config.libpath: Update to libtool-1.5.22.
88012         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
88014 2007-03-01  Bruno Haible  <bruno@clisp.org>
88016         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
88017         foo_CFLAGS.
88018         Reported by Ralf Wildenhues.
88020 2007-03-01  Bruno Haible  <bruno@clisp.org>
88022         * build-aux/install-reloc: Remove object files left over by some
88023         compilers.
88024         Reported by Ralf Wildenhues.
88026 2007-03-01  Bruno Haible  <bruno@clisp.org>
88028         * build-aux/install-reloc: Break long lines.
88030 2007-03-01  Bruno Haible  <bruno@clisp.org>
88032         * doc/relocatable.texi: Document that it may not work on OpenBSD.
88033         Reported by Ralf Wildenhues.
88035 2007-03-01  Bruno Haible  <bruno@clisp.org>
88037         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
88038         include ordering constraints.
88040 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88042         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
88043         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
88044         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
88045         as another example.
88046         * lib/time_.h: Fix misspelling.
88047         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
88048         Require gl_HEADER_TIME_H_DEFAULTS.
88049         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
88050         * m4/time_r.m4 (gl_TIME_R): Likewise.
88051         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
88053 2007-03-01  Bruno Haible  <bruno@clisp.org>
88055         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
88056         * m4/utimens.m4 (gl_UTIMENS): Likewise.
88058 2007-03-01  Jim Meyering  <jim@meyering.net>
88060         * modules/xreadlink (Maintainer): Add my name.
88061         * modules/xreadlink-with-size (Depends-on): Alphabetize.
88063 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
88064             Bruno Haible  <bruno@clisp.org>
88066         * build-aux/install-reloc: Compile also c-ctype.c.
88067         * build-aux/relocatable.sh.in: New file.
88068         * doc/relocatable.texi: New file.
88069         * doc/relocatable-maint.texi: New file.
88070         * doc/gnulib.texi: Include relocatable-maint.texi.
88071         * lib/progreloc.c: Include unistd.h unconditionally.
88072         * lib/relocwrapper.c: Include unistd.h unconditionally.
88073         Include c-ctype.h.
88074         (add_dotbin): Use c_tolower.
88075         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
88076         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
88077         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
88078         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
88079         to m4/relocatable-lib.m4.
88080         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
88081         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
88082         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
88083         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
88084         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
88085         * modules/relocatable: New file.
88086         * modules/relocatable-lib: New file.
88087         * modules/relocatable-script: New file.
88089 2007-02-28  Bruno Haible  <bruno@clisp.org>
88091         Import --enable-relocatable infrastructure.
88092         * build-aux/config.libpath: New file, from GNU gettext.
88093         * build-aux/install-reloc: New file, from GNU gettext.
88094         * build-aux/reloc-ldflags: New file, from GNU gettext.
88095         * lib/relocatable.h: New file, from GNU gettext.
88096         * lib/relocatable.c: New file, from GNU gettext.
88097         * lib/relocwrapper.c: New file, from GNU gettext.
88098         * m4/relocatable.m4: New file, from GNU gettext.
88100 2007-02-28  Bruno Haible  <bruno@clisp.org>
88102         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
88104         * modules/xreadlink: New file, from GNU gettext with modifications.
88105         * lib/xreadlink.c: New file, from GNU gettext.
88106         * lib/xreadlink.h: Add comments.
88107         (xreadlink): New declaration.
88109         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
88110         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
88111         lib/xreadlink-with-size.c.
88112         (configure.ac): Remove gl_XREADLINK invocation.
88113         (Makefile.am): Augment lib_SOURCES.
88114         * m4/xreadlink.m4: Remove file.
88115         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
88116         (xreadlink_with_size): Renamed from xreadink.
88117         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
88118         * modules/canonicalize (Depends-on): Replace xreadlink with
88119         xreadlink-with-size.
88120         * lib/canonicalize.c (canonicalize_filename_mode): Update.
88122 2007-02-25  Jim Meyering  <jim@meyering.net>
88124         * build-aux/announce-gen: When complaining about excess arguments,
88125         list them.
88127 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
88129         * README: Document signed integer overflow situation more
88130         accurately.
88132 2007-02-25  Bruno Haible  <bruno@clisp.org>
88134         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
88135         'a' or 'A' conversion.
88137 2007-02-25  Bruno Haible  <bruno@clisp.org>
88139         * modules/filename: Renamed from modules/pathname.
88140         (Files): Replace lib/pathname.h with lib/filename.h. Replace
88141         lib/concatpath.c with lib/concat-filename.c.
88142         (Makefile.am): Update.
88143         (Include): Replace pathname.h with filename.h.
88144         * lib/filename.h: Renamed from lib/pathname.h.
88145         (concatenated_filename): Renamed from concatenated_pathname.
88146         * lib/concat-filename.c: Renamed from lib/concatpath.c.
88147         (concatenated_filename): Renamed from concatenated_pathname.
88148         * lib/findprog.c: Include filename.h instead of pathname.h.
88149         (find_in_path): Update.
88150         * lib/javacomp.c: Include filename.h instead of pathname.h.
88151         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
88152         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
88153         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
88154         is_oldgcj_14_13_usable, is_javac_usable): Update.
88155         * lib/javaexec.c: Include filename.h instead of pathname.h.
88156         (execute_java_class): Update.
88157         * modules/findprog: Update.
88158         * modules/javacomp: Update.
88159         * modules/javaexec: Update.
88160         * MODULES.html.sh (File system functions): Add 'filename', remove
88161         'pathname'.
88163 2007-02-25  Bruno Haible  <bruno@clisp.org>
88165         * modules/printf-frexpl-tests: New file.
88166         * tests/test-printf-frexpl.c: New file.
88168         * modules/printf-frexpl: New file.
88169         * lib/printf-frexpl.h: New file.
88170         * lib/printf-frexpl.c: New file.
88171         * m4/printf-frexpl.m4: New file.
88173 2007-02-25  Bruno Haible  <bruno@clisp.org>
88175         * modules/printf-frexp-tests: New file.
88176         * tests/test-printf-frexp.c: New file.
88178         * modules/printf-frexp: New file.
88179         * lib/printf-frexp.h: New file.
88180         * lib/printf-frexp.c: New file.
88181         * m4/printf-frexp.m4: New file.
88183 2007-02-25  Bruno Haible  <bruno@clisp.org>
88185         Assume automake >= 1.10 for the tests.
88186         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
88187         * modules/arctwo-tests: Likewise.
88188         * modules/argp-tests: Likewise.
88189         * modules/avltree-list-tests: Likewise.
88190         * modules/avltree-oset-tests: Likewise.
88191         * modules/avltreehash-list-tests: Likewise.
88192         * modules/carray-list-tests: Likewise.
88193         * modules/crc-tests: Likewise.
88194         * modules/des-tests: Likewise.
88195         * modules/gc-arcfour-tests: Likewise.
88196         * modules/gc-arctwo-tests: Likewise.
88197         * modules/gc-des-tests: Likewise.
88198         * modules/gc-hmac-md5-tests: Likewise.
88199         * modules/gc-hmac-sha1-tests: Likewise.
88200         * modules/gc-md2-tests: Likewise.
88201         * modules/gc-md4-tests: Likewise.
88202         * modules/gc-md5-tests: Likewise.
88203         * modules/gc-pbkdf2-sha1-tests: Likewise.
88204         * modules/gc-rijndael-tests: Likewise.
88205         * modules/gc-sha1-tests: Likewise.
88206         * modules/gc-tests: Likewise.
88207         * modules/getaddrinfo-tests: Likewise.
88208         * modules/hmac-md5-tests: Likewise.
88209         * modules/hmac-sha1-tests: Likewise.
88210         * modules/linked-list-tests: Likewise.
88211         * modules/linkedhash-list-tests: Likewise.
88212         * modules/lock-tests: Likewise.
88213         * modules/md2-tests: Likewise.
88214         * modules/md4-tests: Likewise.
88215         * modules/md5-tests: Likewise.
88216         * modules/rbtree-list-tests: Likewise.
88217         * modules/rbtree-oset-tests: Likewise.
88218         * modules/rbtreehash-list-tests: Likewise.
88219         * modules/read-file-tests: Likewise.
88220         * modules/rijndael-tests: Likewise.
88221         * modules/stdint-tests: Likewise.
88222         * modules/tls-tests: Likewise.
88224 2007-02-24  Bruno Haible  <bruno@clisp.org>
88226         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
88227         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
88228         function; instead check whether isnan with a double argument links.
88229         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
88230         function; instead check whether isnan with a 'long double' argument
88231         links.
88232         Reported by Eric Blake <ebb9@byu.net>.
88234 2007-02-24  Bruno Haible  <bruno@clisp.org>
88236         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
88237         defined.
88238         * lib/isnanl.c: Remove all code. Just include isnan.c.
88239         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
88241 2007-02-25  Jim Meyering  <jim@meyering.net>
88243         Avoid conflicting types for 'unsetenv' on FreeBSD.
88244         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
88245         conflicting with FreeBSD's (5.0 and 6.1) function declaration
88246         in stdlib.h.
88248 2007-02-24  Bruno Haible  <bruno@clisp.org>
88250         * modules/isnanl-nolibm-tests: New file.
88251         * tests/test-isnanl.c: New file.
88253         * modules/isnanl-nolibm: New file.
88254         * lib/isnanl.h: New file.
88255         * lib/isnanl.c: New file.
88256         * m4/isnanl.m4: New file.
88258 2007-02-24  Bruno Haible  <bruno@clisp.org>
88260         * modules/isnan-nolibm-tests: New file.
88261         * tests/test-isnan.c: New file.
88263         * modules/isnan-nolibm: New file.
88264         * lib/isnan.h: New file.
88265         * lib/isnan.c: New file.
88266         * m4/isnan.m4: New file.
88268 2007-02-24  Bruno Haible  <bruno@clisp.org>
88270         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
88271         assume that an exponent fits in 20 bits.
88273 2007-02-24  Jim Meyering  <jim@meyering.net>
88275         * m4/regex.m4: Update the description of the configure-time option,
88276         --without-included-regex, to state accurately what the defaults are,
88277         and perhaps to give people an idea why using this option is risky.
88279 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
88281         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
88282         loops on small arguments.  This attempts to avoid the problem
88283         Bruno Haible reported for AIX 4.3.2 in
88284         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
88286 2007-02-23  Bruno Haible  <bruno@clisp.org>
88288         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
88289         Needed for help2man.
88291 2007-02-23  Karl Berry  <karl@gnu.org>
88293         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
88294         exists, foo.h should be cvs-ignored, not committed.
88296 2007-02-23  Eric Blake  <ebb9@byu.net>
88298         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
88299         * lib/stat-time.h (includes): Likewise.
88300         * lib/utimecmp.c (includes): Likewise.
88301         * lib/utimens.h (includes): Likewise.
88302         * lib/getdate.y (includes): Also include "timespec.h" for use
88303         internal to the module.
88304         * modules/utimens (Depends-on): Revert yesterday's patch.
88305         * modules/nanosleep (Depends-on): Add missing dependency.
88307 2007-02-22  Bruno Haible  <bruno@clisp.org>
88309         * lib/glob.c: Don't include getlogin_r.h.
88311 2007-02-22  Jim Meyering  <jim@meyering.net>
88313         * modules/utimens (Depends-on): Add timespec, required for
88314         utimens.h's inclusion of timespec.h.
88316 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
88318         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
88319         long unreadable paths in GNU/Linux.  Problem reported by Andreas
88320         Schwab in
88321         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
88322         I'll try to think of a better way to fix the Solaris problem.
88324         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
88325         like glibc; on Solaris 10, it fails with errno == EINVAL.
88326         POSIX says the behavior is unspecified if the first argument is NULL,
88327         so play it safe and never pass NULL to the system getcwd.
88329 2007-02-21  Jim Meyering  <jim@meyering.net>
88331         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
88332         of gettimeofday.  It would conflict with the one now always
88333         provided via sys_time_.h.  Reported by Matthew Woehlke, as
88334         an IRIX 6.5 build failure.
88336 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
88338         Minor fixups to port to Solaris 10 with Sun C 5.8.
88339         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
88340         * modules/getcwd (Depends-on): Add dirfd.
88341         * lib/putenv.c (putenv): #undef it.
88342         (rpl_putenv): New decl.
88343         (malloc, free): Include <stdlib.h> rather than prototyping separately.
88345 2007-02-20  Bruno Haible  <bruno@clisp.org>
88347         * modules/stdio-tests: New file.
88348         * tests/test-stdio.c: New file.
88350         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
88351         (Depends-on): Add stdio.
88352         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
88353         (Include): Use <stdio.h> instead of vsnprintf.h.
88354         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
88355         HAVE_DECL_VSNPRINTF.
88356         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
88358         * modules/snprintf (Files): Remove lib/snprintf.h.
88359         (Depends-on): Add stdio.
88360         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
88361         (Include): Use <stdio.h> instead of snprintf.h.
88362         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
88363         HAVE_DECL_SNPRINTF.
88364         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
88365         * lib/getaddrinfo.c: Likewise.
88367         * modules/stdio: New file.
88368         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
88369         * lib/snprintf.h: Remove file.
88370         * lib/vsnprintf.h: Remove file.
88371         * lib/.cppi-disable: Remove snprintf.h.
88372         * m4/stdio_h.m4: New file.
88373         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
88375 2007-02-20  Jim Meyering  <jim@meyering.net>
88377         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
88378         used by e.g., mingw.  From Bruno Haible.
88380 2007-02-19  Bruno Haible  <bruno@clisp.org>
88382         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
88383         warnings.
88384         Reported by Ben Pfaff <blp@cs.stanford.edu>.
88386 2007-02-19  Bruno Haible  <bruno@clisp.org>
88388         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
88389         from mingw users.
88391 2007-02-19  Bruno Haible  <bruno@clisp.org>
88393         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
88394         warnings.
88395         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
88397 2007-02-19  Jim Meyering  <jim@meyering.net>
88399         Don't use FD after a successful "fdopendir (fd)".
88400         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
88401         Reset it by calling dirfd on the just-obtained DIR*.
88403         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
88404         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
88406 2007-02-18  Bruno Haible  <bruno@clisp.org>
88408         * lib/readlink.c: Include <unistd.h>.
88409         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
88410         HAVE_READLINK.
88411         * modules/readlink (Depends-on): Add unistd.
88412         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
88413         (Include): Add <unistd.h>.
88415         * lib/getlogin_r.h: Remove file.
88416         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
88417         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
88418         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
88419         HAVE_DECL_GETLOGIN_R.
88420         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
88421         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
88422         (Include): Use <unistd.h> instead of getlogin_r.h.
88424         * lib/getcwd.h: Remove file.
88425         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
88426         * lib/xgetcwd.c: Likewise.
88427         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
88428         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
88429         * modules/getcwd (Files): Remove lib/getcwd.h.
88430         (Depends-on): Add unistd.
88431         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
88432         (Include): Use <unistd.h> instad of getcwd.h.
88434         * lib/ftruncate.c: Include <unistd.h> first.
88435         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
88436         Set HAVE_FTRUNCATE.
88437         * modules/ftruncate (Depends-on): Add unistd.
88438         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
88440         * lib/fchdir.c: Include <unistd.h> first.
88441         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
88442         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
88443         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
88444         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
88445         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
88447         * lib/dup2.c: Include <unistd.h> first.
88448         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
88449         HAVE_DUP2.
88450         * modules/dup2 (Depends-on): Add unistd.
88451         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
88453         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
88454         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
88455         REPLACE_CHOWN. Don't define chown as a macro here.
88456         * modules/chown (Depends-on): Add unistd.
88457         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
88459         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
88460         Add definition for GL_LINK_WARNING.
88461         (chown, dup2): New declarations.
88462         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
88463         link warning.
88464         (ftruncate): New declaration.
88465         (getcwd): New declaration, taken from old getcwd.h.
88466         (getlogin_r): New declaration, taken from old getlogin_r.h.
88467         (readlink): New declaration.
88468         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
88469         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
88470         (gl_PREREQ_UNISTD): Remove macro.
88471         (gl_UNISTD_MODULE_INDICATOR): New macro.
88472         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
88473         many new variables. Don't set UNISTD_H.
88474         * modules/unistd (Description): Change.
88475         (Depends-on): Add link-warning.
88476         (configure.ac): Update.
88477         (Makefile.am): Create unistd.h always. Substitute many new variables
88478         into it.
88480 2007-02-18  Bruno Haible  <bruno@clisp.org>
88482         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
88483         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
88484         HAVE_GETSUBOPT.
88485         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
88486         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
88487         * lib/getsubopt.h: Remove file.
88488         * modules/getsubopt (Files): Remove lib/getsubopt.h.
88489         (Depends-on): Add stdlib.
88490         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
88491         (Includes): Use <stdlib.h> instead of getsubopt.h.
88492         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
88493         Set HAVE_GETSUBOPT.
88494         * lib/getsubopt.c: Don't include getsubopt.h.
88496 2007-02-18  Bruno Haible  <bruno@clisp.org>
88498         * modules/fchdir (Depends-on): Add dup2.
88500 2007-02-18  Bruno Haible  <bruno@clisp.org>
88502         * lib/stdlib_.h: Handle glibc's special invocation convention
88503         specially.
88505 2007-02-18  Bruno Haible  <bruno@clisp.org>
88507         * modules/stdlib-tests: New file.
88508         * tests/test-stdlib.c: New file.
88510         * modules/mkstemp (Files): Remove lib/mkstemp.h.
88511         (Depends-on): Add stdlib.
88512         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
88513         (Includes): Use <stdlib.h> instead of mkstemp.h.
88514         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
88515         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
88516         * lib/mkstemp.c: Don't include mkstemp.h.
88517         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
88518         * lib/stdlib--.h: Don't include mkstemp.h.
88520         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
88521         (Depends-on): Add stdlib.
88522         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
88523         (Includes): Use <stdlib.h> instead of mkdtemp.h.
88524         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
88525         HAVE_MKDTEMP.
88526         * lib/mkdtemp.c: Don't include mkdtemp.h.
88527         * lib/clean-temp.c: Don't include mkdtemp.h.
88529         * modules/exit (Files): Remove lib/exit.h.
88530         (Depends-on): Add stdlib.
88531         (Makefile.am): Remove lib_SOURCES.
88532         (Include): Use <stdlib.h> instead of exit.h.
88533         * lib/argmatch.c: Don't include exit.h.
88534         * lib/execute.c: Likewise.
88535         * lib/pagealign_alloc.c: Likewise.
88536         * lib/pipe.c: Likewise.
88537         * lib/wait-process.c: Likewise.
88538         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
88539         * lib/exitfail.c: Likewise.
88540         * lib/savewd.c: Likewise.
88541         * lib/xsetenv.c: Likewise.
88543         * modules/stdlib: New file.
88544         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
88545         and extra comments about mkstemp().
88546         * lib/exit.h: Remove file.
88547         * lib/mkdtemp.h: Remove file.
88548         * lib/mkstemp.h: Remove file.
88549         * m4/stdlib_h.m4: New file.
88550         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
88552 2007-02-18  Bruno Haible  <bruno@clisp.org>
88554         * modules/math-tests: New file.
88555         * tests/test-math.c: New file.
88557         * modules/math: New file.
88558         * modules/mathl (Files): Remove lib/mathl.h.
88559         (Depends-on): Add math.
88560         (Makefile.am): Don't mention mathl.h.
88561         (Include): Use <math.h> instead of mathl.h.
88562         * lib/math_.h: New file.
88563         * lib/mathl.h: Remove file.
88564         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
88565         mathl.h.
88566         * lib/asinl.c: Likewise.
88567         * lib/atanl.c: Likewise.
88568         * lib/ceill.c: Likewise.
88569         * lib/cosl.c: Likewise.
88570         * lib/expl.c: Likewise.
88571         * lib/floorl.c: Likewise.
88572         * lib/frexpl.c: Likewise.
88573         * lib/ldexpl.c: Likewise.
88574         * lib/logl.c: Likewise.
88575         * lib/sincosl.c: Likewise.
88576         * lib/sinl.c: Likewise.
88577         * lib/sqrtl.c: Likewise.
88578         * lib/tanl.c: Likewise.
88579         * lib/trigl.c: Likewise.
88580         * m4/math_h.m4: New file.
88581         * MODULES.html.sh (Mathematics): Add math.
88583 2007-02-17  Bruno Haible  <bruno@clisp.org>
88585         * modules/wctype-tests: New file.
88586         * tests/test-wctype.c: New file.
88588         * modules/wchar-tests: New file.
88589         * tests/test-wchar.c: New file.
88591         * modules/unistd-tests: New file.
88592         * tests/test-unistd.c: New file.
88594         * modules/time-tests: New file.
88595         * tests/test-time.c: New file.
88597         * modules/sysexits-tests: New file.
88598         * tests/test-sysexits.c: New file.
88600         * modules/sys_time-tests: New file.
88601         * tests/test-sys_time.c: New file.
88603         * modules/sys_stat-tests: New file.
88604         * tests/test-sys_stat.c: New file.
88606         * modules/sys_socket-tests: New file.
88607         * tests/test-sys_socket.c: New file.
88609         * modules/sys_select-tests: New file.
88610         * tests/test-sys_select.c: New file.
88612         * modules/string-tests: New file.
88613         * tests/test-string.c: New file.
88615         * modules/stdbool-tests: New file.
88616         * tests/test-stdbool.c: New file.
88618         * modules/netinet_in-tests: New file.
88619         * tests/test-netinet_in.c: New file.
88621         * modules/inttypes-tests: New file.
88622         * tests/test-inttypes.c: New file.
88624         * modules/fcntl-tests: New file.
88625         * tests/test-fcntl.c: New file.
88627         * modules/byteswap-tests: New file.
88628         * tests/test-byteswap.c: New file.
88630         * modules/arpa_inet-tests: New file.
88631         * tests/test-arpa_inet.c: New file.
88633 2007-02-17  Bruno Haible  <bruno@clisp.org>
88635         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
88636         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
88637         if the corresponding module is not enabled. Emit link warnings if
88638         the function is used nevertheless.
88639         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
88640         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
88641         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
88642         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
88643         * modules/inttypes (Depends-on): Add link-warning.
88644         (Makefile.am): Copy the contents of build-aux/link-warning.h into
88645         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
88646         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
88647         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
88648         * modules/imaxdiv (configure.ac): Likewise.
88649         * modules/strtoimax (configure.ac): Likewise.
88650         * modules/strtoumax (configure.ac): Likewise.
88652 2007-02-17  Bruno Haible  <bruno@clisp.org>
88654         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
88655         gl_STRING_MODULE_INDICATOR_DEFAULTS.
88656         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
88657         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
88659 2007-02-17  Bruno Haible  <bruno@clisp.org>
88661         * modules/link-warning: New file.
88662         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
88663         * lib/string_.h (GL_LINK_WARNING): Remove definition.
88664         * modules/string (Depends-on): Add link-warning.
88665         (Makefile.am): Copy the contents of build-aux/link-warning.h into
88666         string.h.
88667         * MODULES.html.sh (Support for building libraries and executables): Add
88668         link-warning.
88670 2007-02-17  Bruno Haible  <bruno@clisp.org>
88672         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
88673         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
88674         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
88675         long lines.
88677 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
88678             Bruno Haible  <bruno@clisp.org>
88680         * modules/tmpfile: New file.
88681         * lib/tmpfile.c: New file.
88682         * m4/tmpfile.m4: New file.
88683         * MODULES.html.sh (func_all_modules): New section "Input/output".
88685 2007-02-15  Bruno Haible  <bruno@clisp.org>
88687         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
88688         (supports_delete_on_close): New function.
88689         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
88691 2007-02-14  Bruno Haible  <bruno@clisp.org>
88693         * modules/mbspcasecmp-tests: New file.
88694         * tests/test-mbspcasecmp.sh: New file.
88695         * tests/test-mbspcasecmp.c: New file.
88697         New module mbspcasecmp.
88698         * modules/mbspcasecmp: New file.
88699         * lib/mbspcasecmp.c: New file.
88700         * lib/string_.h (strncasecmp): Change warning message.
88701         (mbspcasecmp): New declaration.
88702         * m4/mbspcasecmp.m4: New file.
88703         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
88704         GNULIB_MBSPCASECMP.
88705         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
88706         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
88708 2007-02-14  Bruno Haible  <bruno@clisp.org>
88710         * modules/mbsncasecmp-tests: New file.
88711         * tests/test-mbsncasecmp.sh: New file.
88712         * tests/test-mbsncasecmp.c: New file.
88714         New module mbsncasecmp.
88715         * modules/mbsncasecmp: New file.
88716         * lib/mbsncasecmp.c: New file.
88717         * lib/string_.h (mbsncasecmp): New declaration.
88718         * m4/mbsncasecmp.m4: New file.
88719         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
88720         GNULIB_MBSNCASECMP.
88721         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
88722         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
88724 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
88726         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
88727         Verify that it doesn't overlap with our flags.
88728         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
88729         do not have the desired effect in multibyte locales; instead, use
88730         mbscasecmp.
88731         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
88732         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
88733         we don't require GNU fnmatch ourselves (if our users require it, they
88734         should do so explicitly).
88736         Fix regex code so it doesn't rely on strcasecmp.
88737         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
88738         Otherwise, include gnulib's langinfo.h.
88739         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
88740         undesirable behavior in non-C locales.  Instead, rely on localecharset.
88741         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
88742         * modules/regex (FILES): Remove m4/codeset.m4.
88743         (Depends-on): Add localcharset.  Remove strcase.
88745 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88747         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
88748         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
88750 2007-02-13  Bruno Haible  <bruno@clisp.org>
88752         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
88753         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
88755 2007-02-12  Bruno Haible  <bruno@clisp.org>
88757         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
88758         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
88759         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
88760         time warning rather than a link error.
88762 2007-02-12  Bruno Haible  <bruno@clisp.org>
88764         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
88765         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
88766         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
88768 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
88770         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
88771         args, not 2.
88773 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
88775         New module 'time', so that apps can include <time.h> as per
88776         POSIX and GNU instead of separate include files like time_r.h
88777         and timegm.h.  This implementation tries out a simpler approach
88778         for replacing decls in standard include files (as compared to
88779         the string module), somewhat as an experiment.
88781         * config/srclist.txt: Comment out mktime.c for now.
88782         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
88783         since it doesn't apply any more.  Use generic wording instead.
88784         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
88785         'time'.
88786         * lib/time_.h, m4/time_h.m4, modules/time: New files.
88787         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
88788         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
88789         Don't include <sys/types.h>; no longer needed since we assume C89.
88790         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
88791         * lib/strftime.c: Likewise.
88792         * lib/time_r.c: Likewise.
88793         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
88794         * lib/nanosleep.c: Include <time.h> first, to check interface.
88795         * lib/strptime.c: Likewise.
88796         * lib/time_r.c: Likewise.
88797         * lib/timegm.c: Likewise.
88798         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
88799         needed.
88800         * lib/timegm.c: Don't include timegm.h; no longer needed.
88801         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
88802         time.h now handles any problems in that area.
88803         (struct timespec, nanosleep): Remove; time.h now arranges for these.
88804         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
88805         that time.h defines struct timespec.
88806         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
88807         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
88808         handles that.
88809         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
88810         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
88811         needed.  Set REPLACE_LOCALTIME.
88812         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
88813         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
88814         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
88815         nanosleep; time_h.m4 now does that.  Don't require
88816         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
88817         module handles this now.
88818         * modules/getdate (Depends-on): Remove timespec.  Add time.
88819         * modules/nanosleep (Depends-on): Likewise.
88820         * modules/stat-time (Depends-on): Likewise.
88821         * modules/nanosleep (Include): Include time.h, not timespec.h.
88822         * modules/strptime (Files): Remove lib/strptime.h.
88823         (Depends-on): Add extensions, time.
88824         (Include): Include time.h, not strptime.h.
88825         * modules/time_r (Files): Remove lib/time_r.h.
88826         (Depends-on): Add time.
88827         (Include): Include time.h, not time_r.h.
88828         * modules/timegm: Likewise.
88829         * modules/timespec (Description): Now does timespec-related decls
88830         of our own, instead of struct timespec itself.
88831         (Depends-on): Add time; remove extensions.
88832         (Maintainer): Add self.
88833         * modules/utimecmp (Depends-on): Add time; remove timespec.
88834         * modules/utimens (Depends-on): Likewise.
88835         * modules/xnanosleep (Depends-on): Likewise.
88837 2007-02-11  Bruno Haible  <bruno@clisp.org>
88839         * lib/c-strstr.c: Include allocsa.h.
88840         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
88841         * lib/c-strcasestr.c: Include allocsa.h.
88842         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
88843         * lib/strcasestr.c: Include allocsa.h.
88844         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
88845         * lib/mbsstr.c: Include allocsa.h.
88846         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
88847         allocsa/freesa instead of malloc/free.
88848         * lib/mbscasestr.c: Include allocsa.h.
88849         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
88850         allocsa/freesa instead of malloc/free.
88851         * modules/c-strstr (Depends-on): Add allocsa.
88852         * modules/c-strcasestr (Depends-on): Likewise.
88853         * modules/strcasestr (Depends-on): Likewise.
88854         * modules/mbsstr (Depends-on): Likewise.
88855         * modules/mbscasestr (Depends-on): Likewise.
88857 2007-02-11  Bruno Haible  <bruno@clisp.org>
88859         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
88861         * modules/mbsspn-tests: New file.
88862         * tests/test-mbsspn.sh: New file.
88863         * tests/test-mbsspn.c: New file.
88865 2007-02-11  Bruno Haible  <bruno@clisp.org>
88867         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
88869         * modules/mbspbrk-tests: New file.
88870         * tests/test-mbspbrk.sh: New file.
88871         * tests/test-mbspbrk.c: New file.
88873 2007-02-11  Bruno Haible  <bruno@clisp.org>
88875         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
88876         unneeded cast.
88878         * modules/mbscspn-tests: New file.
88879         * tests/test-mbscspn.sh: New file.
88880         * tests/test-mbscspn.c: New file.
88882 2007-02-11  Bruno Haible  <bruno@clisp.org>
88884         * modules/mbscasecmp-tests: New file.
88885         * tests/test-mbscasecmp.sh: New file.
88886         * tests/test-mbscasecmp.c: New file.
88888 2007-02-11  Bruno Haible  <bruno@clisp.org>
88890         Ensure O(n) worst-case complexity of mbscasestr.
88891         * lib/mbscasestr.c: Include stdbool.h.
88892         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
88893         functions.
88894         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
88895         the bookkeeping indicates that it's worth it.
88896         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
88898         * modules/mbscasestr-tests: New file.
88899         * tests/test-mbscasestr1.c: New file.
88900         * tests/test-mbscasestr2.sh: New file.
88901         * tests/test-mbscasestr2.c: New file.
88902         * tests/test-mbscasestr3.sh: New file.
88903         * tests/test-mbscasestr3.c: New file.
88904         * tests/test-mbscasestr4.sh: New file.
88905         * tests/test-mbscasestr4.c: New file.
88906         * m4/locale-tr.m4: New file.
88908 2007-02-11  Bruno Haible  <bruno@clisp.org>
88910         Ensure O(n) worst-case complexity of mbsstr.
88911         * lib/mbsstr.c: Include stdbool.h.
88912         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
88913         functions.
88914         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
88915         bookkeeping indicates that it's worth it.
88916         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
88918         * modules/mbsstr-tests: New file.
88919         * tests/test-mbsstr1.c: New file.
88920         * tests/test-mbsstr2.sh: New file.
88921         * tests/test-mbsstr2.c: New file.
88922         * tests/test-mbsstr3.sh: New file.
88923         * tests/test-mbsstr3.c: New file.
88924         * m4/locale-fr.m4: New file.
88926 2007-02-11  Bruno Haible  <bruno@clisp.org>
88928         * lib/mbsrchr.c (mbsrchr): Fix bug.
88930         * modules/mbsrchr-tests: New file.
88931         * tests/test-mbsrchr.sh: New file.
88932         * tests/test-mbsrchr.c: New file.
88934 2007-02-11  Bruno Haible  <bruno@clisp.org>
88936         * lib/mbschr.c (mbschr): Fix bug.
88938         * modules/mbschr-tests: New file.
88939         * tests/test-mbschr.sh: New file.
88940         * tests/test-mbschr.c: New file.
88941         * m4/locale-zh.m4: New file.
88943 2007-02-11  Bruno Haible  <bruno@clisp.org>
88945         Support for copying multibyte string iterators.
88946         * lib/mbiter.h: Include <string.h>.
88947         (mbiter_multi_copy): New function.
88948         (mbi_copy): New macro.
88949         * lib/mbuiter.h: Include <string.h>.
88950         (mbuiter_multi_copy): New function.
88951         (mbui_copy): New macro.
88953 2007-02-11  Bruno Haible  <bruno@clisp.org>
88955         New module mbslen.
88956         * modules/mbslen: New file.
88957         * lib/mbslen.c: New file.
88958         * lib/string_.h (mbslen): New declaration.
88959         * m4/mbslen.m4: New file.
88960         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
88961         GNULIB_MBSLEN.
88962         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
88963         * MODULES.html.sh (Internationalization functions): Add mbslen.
88965 2007-02-11  Bruno Haible  <bruno@clisp.org>
88967         Ensure O(n) worst-case complexity of strcasestr substitute.
88968         * lib/strcasestr.c: Include stdbool.h.
88969         (knuth_morris_pratt): New function.
88970         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
88971         bookkeeping indicates that it's worth it.
88972         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
88974         * modules/strcasestr-tests: New file.
88975         * tests/test-strcasestr.c: New file.
88977 2007-02-11  Bruno Haible  <bruno@clisp.org>
88979         Ensure O(n) worst-case complexity of c_strcasestr.
88980         * lib/c-strcasestr.c: Include stdbool.h, string.h.
88981         (knuth_morris_pratt): New function.
88982         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
88983         the bookkeeping indicates that it's worth it.
88984         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
88986         * modules/c-strcasestr-tests: New file.
88987         * tests/test-c-strcasestr.c: New file.
88989 2007-02-11  Bruno Haible  <bruno@clisp.org>
88991         Ensure O(n) worst-case complexity of c_strstr.
88992         * lib/c-strstr.c: Include stdbool.h, string.h.
88993         (knuth_morris_pratt): New function.
88994         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
88995         bookkeeping indicates that it's worth it.
88996         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
88998         * lib/c-strstr.c: Complete rewrite for maintainability.
89000         * modules/c-strstr-tests: New file.
89001         * tests/test-c-strstr.c: New file.
89003 2007-02-11  Bruno Haible  <bruno@clisp.org>
89005         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
89006         5.2.1 and earlier, whereby \055 was treated just like the range
89007         delimiter '-'.
89008         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
89010 2007-02-08  Bruno Haible  <bruno@clisp.org>
89012         * modules/regex (Depends-on): Add stdbool.
89013         Reported by Dalibor Topic <robilad@kaffe.org>.
89015 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
89017         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
89018         Prefer returning from main to exiting from it.
89019         Remove unnecessary parens after sizeof.
89021 2007-02-05  Bruno Haible  <bruno@clisp.org>
89023         New module mbssep.
89024         * modules/mbssep: New file.
89025         * lib/mbssep.c: New file.
89026         * lib/string_.h (strsep): Add a conditional link warning.
89027         (mbssep): New declaration.
89028         * m4/mbssep.m4: New file.
89029         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
89030         GNULIB_MBSSEP.
89031         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
89032         * MODULES.html.sh (Internationalization functions): Add mbssep.
89034 2007-02-05  Bruno Haible  <bruno@clisp.org>
89036         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
89037         Optimize search in case of 1 delimiter.
89039 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
89041         * lib/acl.h: Include sys/types.h before sys/acl.h.
89043 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
89045         Merge upstream fix for glibc bugzilla #3957:
89047         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
89049         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
89050         bit for RE_HAT_LISTS_NOT_NEWLINE.
89051         (build_charclass_op): Remove bogus comment.
89053 2007-02-05  Simon Josefsson  <simon@josefsson.org>
89055         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
89057 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
89059         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
89060         * lib/memmem.c [!defined _LIBC]: Include config.h.
89062 2007-02-04  Bruno Haible  <bruno@clisp.org>
89064         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
89065         warning message.
89067 2007-02-04  Bruno Haible  <bruno@clisp.org>
89069         New module mbstok_r.
89070         * modules/mbstok_r: New file.
89071         * lib/mbstok_r.c: New file.
89072         * lib/string_.h (strtok_r): Change argument names to match the
89073         comments. Add a conditional link warning.
89074         (mbstok_r): New declaration.
89075         * m4/mbstok_r.m4: New file.
89076         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
89077         GNULIB_MBSTOK_R.
89078         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
89079         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
89081 2007-02-04  Bruno Haible  <bruno@clisp.org>
89083         New module mbsspn.
89084         * modules/mbsspn: New file.
89085         * lib/mbsspn.c: New file.
89086         * lib/string_.h (strspn): Add a conditional link warning.
89087         (mbsspn): New declaration.
89088         * m4/mbsspn.m4: New file.
89089         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
89090         GNULIB_MBSSPN.
89091         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
89092         * MODULES.html.sh (Internationalization functions): Add mbsspn.
89094 2007-02-04  Bruno Haible  <bruno@clisp.org>
89096         New module mbspbrk.
89097         * modules/mbspbrk: New file.
89098         * lib/mbspbrk.c: New file.
89099         * lib/string_.h (strpbrk): Add a conditional link warning.
89100         (mbspbrk): New declaration.
89101         * m4/mbspbrk.m4: New file.
89102         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
89103         GNULIB_MBSPBRK.
89104         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
89105         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
89107 2007-02-04  Bruno Haible  <bruno@clisp.org>
89109         New module mbscspn.
89110         * modules/mbscspn: New file.
89111         * lib/mbscspn.c: New file.
89112         * lib/string_.h (strcspn): Add a conditional link warning.
89113         (mbscspn): New declaration.
89114         * m4/mbscspn.m4: New file.
89115         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
89116         GNULIB_MBSCSPN.
89117         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
89118         * MODULES.html.sh (Internationalization functions): Add mbscspn.
89120 2007-02-04  Bruno Haible  <bruno@clisp.org>
89122         New module mbscasestr, reduced goal of strcasestr.
89123         * modules/mbscasestr: New file.
89124         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
89125         (mbscasestr): Renamed from strcasestr.
89126         * lib/strcasestr.c: Don't include mbuiter.h.
89127         (strcasestr): Remove support for multibyte locales.
89128         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
89129         Change the conditional link warning.
89130         (mbscasestr): New declaration.
89131         * m4/mbscasestr.m4: New file.
89132         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
89133         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
89134         REPLACE_STRCASESTR.
89135         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
89136         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
89137         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
89138         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
89139         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
89140         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
89141         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
89142         (Depends-on): Remove mbuiter.
89143         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
89145 2007-02-04  Bruno Haible  <bruno@clisp.org>
89147         Simplify handling of strncasecmp.
89148         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
89149         the conditional link warning.
89150         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
89151         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
89152         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
89153         * modules/strcase (configure.ac): Don't invoke
89154         gl_STRING_MODULE_INDICATOR.
89155         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
89157 2007-02-04  Bruno Haible  <bruno@clisp.org>
89159         New module mbscasecmp, reduced goal of strcasecmp.
89160         * modules/mbscasecmp: New file.
89161         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
89162         (mbscasecmp): Renamed from strcasecmp.
89163         * lib/strcasecmp.c: Don't include mbuiter.h.
89164         (strcasecmp): Remove support for multibyte locales.
89165         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
89166         Change the conditional link warning.
89167         (mbscasecmp): New declaration.
89168         * m4/mbscasecmp.m4: New file.
89169         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
89170         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
89171         REPLACE_STRCASECMP.
89172         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
89173         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
89174         GNULIB_MBSCASECMP.
89175         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
89176         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
89177         * modules/strcase (Files): Remove m4/mbrtowc.m4.
89178         (Depends-on): Remove mbuiter.
89179         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
89181 2007-02-04  Bruno Haible  <bruno@clisp.org>
89183         New module mbsstr. Remove module strstr.
89184         * modules/mbsstr: New file.
89185         * modules/strstr: Remove file.
89186         * lib/mbsstr.c: Renamed from lib/strstr.c.
89187         (mbsstr): Renamed from strstr.
89188         * lib/string_.h (strstr): Remove declaration. Change the conditional
89189         link warning.
89190         (mbsstr): New declaration.
89191         * m4/mbsstr.m4: New file.
89192         * m4/strstr.m4: Remove file.
89193         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
89194         REPLACE_STRSTR.
89195         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
89196         Don't initialize GNULIB_STRSTR.
89197         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
89198         substitute GNULIB_STRSTR and REPLACE_STRSTR.
89199         * MODULES.html.sh (Internationalization functions): Add mbsstr.
89200         (Support for systems lacking ANSI C 89): Remove strstr.
89202 2007-02-04  Bruno Haible  <bruno@clisp.org>
89204         New module mbsrchr.
89205         * modules/mbsrchr: New file.
89206         * lib/mbsrchr.c: New file.
89207         * lib/string_.h (strrchr): Add a conditional link warning.
89208         (mbsrchr): New declaration.
89209         * m4/mbsrchr.m4: New file.
89210         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
89211         GNULIB_MBSRCHR.
89212         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
89213         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
89215 2007-02-04  Bruno Haible  <bruno@clisp.org>
89217         New module mbschr.
89218         * modules/mbschr: New file.
89219         * lib/mbschr.c: New file.
89220         * lib/string_.h (strchr): Add a conditional link warning.
89221         (mbschr): New declaration.
89222         * m4/mbschr.m4: New file.
89223         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
89224         GNULIB_MBSCHR.
89225         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
89226         * MODULES.html.sh (Internationalization functions): Add mbschr.
89228 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
89230         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
89232         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
89234 2007-02-04  Bruno Haible  <bruno@clisp.org>
89236         New module description section 'configure.ac-early'.
89237         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
89238         (func_get_autoconf_early_snippet): New function.
89239         (func_import, func_create_testdir): Use it. Remove special cases for
89240         modules 'extensions' and 'lock'.
89241         * modules/extensions (configure.ac-early): Require
89242         gl_USE_SYSTEM_EXTENSIONS.
89243         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
89245 2007-02-04  Bruno Haible  <bruno@clisp.org>
89247         Make use of gcj-4.3's -fsource and -ftarget option.
89248         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
89249         and if so try the options -fsource and -ftarget.
89250         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
89251         source_version, ftarget_option, target_version arguments.
89252         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
89253         (is_envjavac_oldgcj_14_14_usable): Renamed from
89254         is_envjavac_gcj_14_14_usable.
89255         (is_envjavac_oldgcj_14_13_usable): Renamed from
89256         is_envjavac_gcj_14_13_usable.
89257         (is_gcj_present): Update.
89258         (is_gcj_43, is_gcj43_usable): New functions.
89259         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
89260         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
89261         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
89262         try the options -fsource and -ftarget.
89264 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
89266         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
89267         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
89268         larger value.
89270 2007-02-03  Jim Meyering  <jim@meyering.net>
89272         Give tools a better chance to allocate space for very large buffers.
89273         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
89275         Make pwd and readlink work also when run with an unreadable parent dir
89276         on systems with openat support.
89277         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
89278         provided getcwd function, even when we have openat support.
89279         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
89281 2007-02-02  Bruno Haible  <bruno@clisp.org>
89283         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
89284         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
89285         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
89286         portability problems if one of these functions is only used on specific
89287         platforms.
89288         Reported by Paul Eggert.
89290 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
89292         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
89293         is causing more trouble than it's curing.
89294         * lib/regex_internal.h (__mempcpy): Remove.
89295         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
89296         (and make the code a tad smaller to boot).
89297         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
89299 2007-02-02  Jim Meyering  <jim@meyering.net>
89301         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
89302         section, not in the Makefile.am: one.
89304 2007-02-02  Eric Blake  <ebb9@byu.net>
89306         * lib/strchrnul.c: Always include config.h first.
89308         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
89309         gnulib strstr is not necessary here.
89311 2007-02-02  Simon Josefsson  <simon@josefsson.org>
89313         * m4/socklen.m4: Fix typo.
89315 2007-02-02  Eric Blake  <ebb9@byu.net>
89317         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
89318         * modules/netinet_in (Makefile.am): Likewise.
89320 2007-02-01  Bruno Haible  <bruno@clisp.org>
89322         * lib/string_.h (GL_LINK_WARNING): New macro.
89323         (strcasecmp, strstr, strcasestr): If provided by the system,
89324         conditionally define as a macro that leads to a warning instead of to
89325         an error.
89326         (strncasecmp): Conditionally define as a macro that leads to a warning.
89328 2007-02-01  Karl Berry  <karl@gnu.org>
89330         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
89332 2007-02-01  Bruno Haible  <bruno@clisp.org>
89334         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
89335         renamings.
89337 2007-02-01  Eric Blake  <ebb9@byu.net>
89339         * modules/regex (Depends-on): Revert dependence on mempcpy.
89340         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
89341         module's definition of mempcpy.
89342         Reported by Paul Eggert.
89344 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
89346         * lib/string_.h: If the gnulib module XYZ is not present, undefine
89347         the symbol XYZ before redefining it.  This fixes a problem with
89348         programs that don't use XYZ, when compiled on systems that define
89349         XYZ to something else.
89351 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
89353         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
89354         occurs when "mkdir -m foo" creates a setgid directory that is (1)
89355         writeable to group or other and (2) is intended to have a special
89356         mode bit that is set or cleared.  In such a case, the directory
89357         should be neither group- nor other-writeable until the special
89358         mode bits are right.
89360 2007-01-31  Eric Blake  <ebb9@byu.net>
89362         * modules/mountlist (Depends-on): Add strstr.
89364         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
89365         bug.
89366         * modules/string (Makefile.am): Remove redundant replacement.
89367         * modules/regex (Depends-on): Add mempcpy.
89369 2007-01-31  Bruno Haible  <bruno@clisp.org>
89371         New module description field 'Link'.
89372         * gnulib-tool (func_usage): Document --extract-link-directive.
89373         (sed_extract_prog): Recognize 'Link' directive.
89374         (func_get_link_directive): New function.
89375         (func_import): Show summary of link directives.
89376         Handle --extract-link-directive option.
89377         * modules/acl (Link): New section.
89378         * modules/clock-time (Link): New section.
89379         * modules/euidaccess (Link): New section.
89380         * modules/gettext (Link): New section.
89381         * modules/iconv (Link): New section.
89382         * modules/lock (Link): New section.
89383         * modules/nanosleep (Link): New section.
89384         * modules/readline (Link): New section.
89386 2007-01-27  Bruno Haible  <bruno@clisp.org>
89388         Enforce the use of gnulib modules for unportable <string.h> functions.
89389         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
89390         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
89391         (gl_HEADER_STRING_H_BODY): Require it.
89392         * lib/string_.h: If the gnulib module XYZ is not present, redefine
89393         the symbol XYZ to one that gives a link error.
89394         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
89395         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
89396         * modules/mempcpy (configure.ac): Likewise.
89397         * modules/memrchr (configure.ac): Likewise.
89398         * modules/stpcpy (configure.ac): Likewise.
89399         * modules/stpncpy (configure.ac): Likewise.
89400         * modules/strcase (configure.ac): Likewise.
89401         * modules/strcasestr (configure.ac): Likewise.
89402         * modules/strchrnul (configure.ac): Likewise.
89403         * modules/strdup (configure.ac): Likewise.
89404         * modules/strndup (configure.ac): Likewise.
89405         * modules/strnlen (configure.ac): Likewise.
89406         * modules/strpbrk (configure.ac): Likewise.
89407         * modules/strsep (configure.ac): Likewise.
89408         * modules/strstr (configure.ac): Likewise.
89409         * modules/strtok_r (configure.ac): Likewise.
89411 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
89413         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
89415 2007-01-30  Jim Meyering  <jim@meyering.net>
89417         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
89419 2007-01-29  Bruno Haible  <bruno@clisp.org>
89421         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
89422         * lib/execute.c: Likewise.
89423         * lib/pipe.c: Likewise.
89424         * lib/printf-args.h: Likewise.
89425         * lib/printf-args.c: Likewise.
89426         * lib/printf-parse.c: Likewise.
89427         * lib/vasnprintf.c: Likewise.
89429 2007-01-29  Eric Blake  <ebb9@byu.net>
89431         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
89432         declaration.
89434 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
89436         * lib/strptime.h (strptime): Use 'restrict' for args where
89437         POSIX requires this.
89438         * lib/strptime.c (strptime): Likewise.
89439         Change license notice from LGPL to GPL, since gnulib-tool will
89440         change this as needed.
89441         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
89442         defined.
89443         Include "strptime.h" first, to check interface.
89444         Do not #undef _LIBC and _NL_CURRENT.
89445         Do not include <stdlib.h>; no longer needed.
89446         Include "time_r.h" and declare ptime_locale_status
89447         only if _LIBC is not defined.
89448         (__P): Remove unused macro.
89449         (match_string): Bring back glibc version, but use it only if _LIBC
89450         is defined.
89451         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
89452         Remove unnecessary assertion and abort() call.
89453         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
89454         * m4/strptime.m4: Fix serial number comment.
89455         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
89456         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
89457         (Depends-on): Add time_r.
89459 2007-01-29  Bruno Haible  <bruno@clisp.org>
89461         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89462         strptime.
89463         * modules/strptime (Depends-on): Add stdbool.
89464         * lib/strptime.h: Include <time.h> always. Add comments.
89466 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89468         * modules/strptime: New file.
89469         * lib/strptime.h: New file.
89470         * lib/strptime.c: New file.
89471         * m4/strptime.m4: New file.
89473 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
89475         * MODULES.html.sh: New module mpsort.
89476         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
89478         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
89479         a circularity problem with HP-UX ia64 reported by Bob Proulx in
89480         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
89481         All uses changed.
89482         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
89483         All uses changed.
89484         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
89485         to _Restrict_.
89486         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
89487         the parameter matches the prototype.
89489 2007-01-28  Jim Meyering  <jim@meyering.net>
89491         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
89492         sys/time.h here, reverting that part of the previous patch:
89493         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
89495 2007-01-28  Bruno Haible  <bruno@clisp.org>
89497         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
89498         value of $(SYS_TIME_H).
89499         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
89500         remove it conditionally, too. [added by Jim Meyering]
89501         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
89502         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
89503         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
89504         GETTIMEOFDAY_REPLACEMENT to 1.
89506 2007-01-28  Bruno Haible  <bruno@clisp.org>
89508         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
89509         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
89510         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
89511         Set UNISTD_H instead of UNISTD_H2.
89512         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
89514 2007-01-28  Bruno Haible  <bruno@clisp.org>
89516         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
89517         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
89519 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89521         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
89522         (func_create_testdir): Ensure C locale for `grep' and `tr'
89523         character ranges.
89524         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
89525         ACLOCAL_AMFLAGS parsing state machine.
89527 2007-01-27  Bruno Haible  <bruno@clisp.org>
89529         * modules/unistr/base: Update.
89531 2007-01-27  Bruno Haible  <bruno@clisp.org>
89533         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
89534         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
89535         * modules/unistr/u32-mbtouc-unsafe: Renamed from
89536         modules/unistr/u32-mbtouc.
89537         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
89538         * lib/unistr.h: Update.
89539         * lib/linebreak.c: Update.
89540         * modules/unistr/u32-mbtouc: Renamed from
89541         modules/unistr/u32-mbtouc-safe.
89542         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
89543         * lib/unistr.h: Update.
89544         * lib/unistr/u32-to-u8.c: Update.
89545         * lib/unistr/u32-to-u16.c: Update.
89547 2007-01-27  Bruno Haible  <bruno@clisp.org>
89549         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
89550         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
89551         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
89552         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
89553         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
89554         * modules/unistr/u16-mbtouc-unsafe: Renamed from
89555         modules/unistr/u16-mbtouc.
89556         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
89557         * lib/unistr.h: Update.
89558         * lib/linebreak.c: Update.
89559         * modules/linebreak: Update.
89560         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
89561         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
89562         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
89563         * modules/unistr/u16-mbtouc: Renamed from
89564         modules/unistr/u16-mbtouc-safe.
89565         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
89566         * lib/unistr.h: Update.
89567         * lib/unistr/u16-to-u8.c: Update.
89568         * modules/unistr/u16-to-u8: Update.
89569         * lib/unistr/u16-to-u32.c: Update.
89570         * modules/unistr/u16-to-u32: Update.
89572 2007-01-27  Bruno Haible  <bruno@clisp.org>
89574         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
89575         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
89576         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
89577         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
89578         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
89579         * modules/unistr/u8-mbtouc-unsafe: Renamed from
89580         modules/unistr/u8-mbtouc.
89581         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
89582         * lib/unistr.h: Update.
89583         * lib/striconveh.c: Update.
89584         * modules/striconveh: Update.
89585         * lib/linebreak.c: Update.
89586         * modules/linebreak: Update.
89587         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
89588         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
89589         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
89590         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
89591         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
89592         * lib/unistr.h: Update.
89593         * lib/striconveh.c: Update.
89594         * modules/striconveh: Update.
89595         * lib/unistr/u8-to-u16.c: Update.
89596         * modules/unistr/u8-to-u16: Update.
89597         * lib/unistr/u8-to-u32.c: Update.
89598         * modules/unistr/u8-to-u32: Update.
89600 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89602         Sync from Libtool.
89603         * lib/argz.c: Do not include strings.h nor memory.h, include
89604         string.h unconditionally.  Patch by Simon Josefsson.
89606 2007-01-27  Bruno Haible  <bruno@clisp.org>
89608         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
89609         from gl_HEADER_STRING_H_BODY.
89610         (gl_HEADER_STRING_H_BODY): Require it.
89611         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
89612         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
89613         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
89614         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
89615         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
89616         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
89617         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
89618         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
89619         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
89620         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
89621         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
89622         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
89623         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
89624         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
89625         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
89627 2007-01-27  Bruno Haible  <bruno@clisp.org>
89629         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
89630         check_PROGRAMS into noinst_PROGRAMS.
89631         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
89632         check_PROGRAMS in this case.
89633         (func_import): Set for_test to false.
89634         (func_create_testdir): Set for_test to true.
89636 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89637             Bruno Haible  <bruno@clisp.org>
89639         * modules/strcasestr (Files): Remove lib/strcasestr.h.
89640         (Depends-on): Add string.
89641         (Includes): Use <string.h> instead of strcasestr.h.
89642         * modules/string (Makefile.am): Also substitute the value of
89643         REPLACE_STRCASESTR.
89644         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
89645         assume strcasestr is declared in <string.h> not <strings.h>. Also
89646         set REPLACE_STRCASESTR.
89647         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
89648         REPLACE_STRCASESTR.
89649         * lib/strcasestr.h: Remove file.
89650         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
89651         * lib/string_.h (strcasestr): New declaration.
89653 2007-01-27  Bruno Haible  <bruno@clisp.org>
89655         * lib/string_.h: Use 'extern'.
89657 2007-01-27  Jim Meyering  <jim@meyering.net>
89659         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
89660         of set-but-not-used local, "q".
89662         * lib/mempcpy.c: Include <config.h> before <string.h>.
89663         This fixes a compilation error on HP-UX, due to the system's
89664         "restrict"-using mempcpy prototype.
89666 2007-01-26  Bruno Haible  <bruno@clisp.org>
89668         Small optimization.
89669         * lib/javacomp.c: Include c-strstr.h.
89670          (is_envjavac_gcj): Use c_strstr instead of strstr.
89671         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
89673 2007-01-26  Bruno Haible  <bruno@clisp.org>
89675         * MODULES.html.sh (Unicode string functions): Add the new modules.
89677         * modules/uniconv/u32-strconv-to-locale: New file.
89678         * lib/uniconv/u32-strconv-to-locale.c: New file.
89680         * modules/uniconv/u16-strconv-to-locale: New file.
89681         * lib/uniconv/u16-strconv-to-locale.c: New file.
89683         * modules/uniconv/u8-strconv-to-locale: New file.
89684         * lib/uniconv/u8-strconv-to-locale.c: New file.
89686         * modules/uniconv/u32-strconv-from-locale: New file.
89687         * lib/uniconv/u32-strconv-from-locale.c: New file.
89689         * modules/uniconv/u16-strconv-from-locale: New file.
89690         * lib/uniconv/u16-strconv-from-locale.c: New file.
89692         * modules/uniconv/u8-strconv-from-locale: New file.
89693         * lib/uniconv/u8-strconv-from-locale.c: New file.
89695         * modules/uniconv/u32-strconv-to-enc: New file.
89696         * lib/uniconv/u32-strconv-to-enc.c: New file.
89697         * modules/uniconv/u32-strconv-to-enc-tests: New file.
89698         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
89700         * modules/uniconv/u16-strconv-to-enc: New file.
89701         * lib/uniconv/u16-strconv-to-enc.c: New file.
89702         * lib/uniconv/u-strconv-to-enc.h: New file.
89703         * modules/uniconv/u16-strconv-to-enc-tests: New file.
89704         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
89706         * modules/uniconv/u8-strconv-to-enc: New file.
89707         * lib/uniconv/u8-strconv-to-enc.c: New file.
89708         * modules/uniconv/u8-strconv-to-enc-tests: New file.
89709         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
89711         * modules/uniconv/u32-strconv-from-enc: New file.
89712         * lib/uniconv/u32-strconv-from-enc.c: New file.
89713         * modules/uniconv/u32-strconv-from-enc-tests: New file.
89714         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
89716         * modules/uniconv/u16-strconv-from-enc: New file.
89717         * lib/uniconv/u16-strconv-from-enc.c: New file.
89718         * modules/uniconv/u16-strconv-from-enc-tests: New file.
89719         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
89721         * modules/uniconv/u8-strconv-from-enc: New file.
89722         * lib/uniconv/u8-strconv-from-enc.c: New file.
89723         * lib/uniconv/u-strconv-from-enc.h: New file.
89724         * modules/uniconv/u8-strconv-from-enc-tests: New file.
89725         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
89727         * modules/uniconv/u32-conv-from-enc: New file.
89728         * lib/uniconv/u32-conv-from-enc.c: New file.
89729         * modules/uniconv/u32-conv-from-enc-tests: New file.
89730         * tests/uniconv/test-u32-conv-from-enc.c: New file.
89732         * modules/uniconv/u16-conv-from-enc: New file.
89733         * lib/uniconv/u16-conv-from-enc.c: New file.
89734         * lib/uniconv/u-conv-from-enc.h: New file.
89735         * modules/uniconv/u16-conv-from-enc-tests: New file.
89736         * tests/uniconv/test-u16-conv-from-enc.c: New file.
89738         * modules/uniconv/u8-conv-from-enc: New file.
89739         * lib/uniconv/u8-conv-from-enc.c: New file.
89740         * modules/uniconv/u8-conv-from-enc-tests: New file.
89741         * tests/uniconv/test-u8-conv-from-enc.c: New file.
89743         * modules/uniconv/base: New file.
89744         * lib/uniconv.h: New file.
89746 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
89748         * doc/gnulib-tool.texi (Initial import): Update to match current
89749         behavior with strdup module.
89750         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
89751         * lib/memmem.h: Remove; all uses removed.  This is now done
89752         by <string.h>.
89753         * lib/mempcpy.h: Likewise.
89754         * lib/memrchr.h: Likewise.
89755         * lib/stpcpy.h: Likewise.
89756         * lib/stpncpy.h: Likewise.
89757         * lib/strcase.h: Likewise.
89758         * lib/strchrnul.h: Likewise.
89759         * lib/strdup.h: Likewise.
89760         * lib/strndup.h: Likewise.
89761         * lib/strnlen.h: Likewise.
89762         * lib/strpbrk.h: Likewise.
89763         * lib/strsep.h: Likewise.
89764         * lib/strstr.h: Likewise.
89765         * lib/strtok_r.h: Likewise.
89766         * lib/string_.h: New file.
89767         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
89768         Rely on <string.h> instead.
89769         * lib/canon-host.c: Likewise.
89770         * lib/chdir-long.c: Likewise.
89771         * lib/concatpath.c: Likewise.
89772         * lib/exclude.c: Likewise.
89773         * lib/fchdir.c: Likewise.
89774         * lib/getaddrinfo.c: Likewise.
89775         * lib/getcwd.c: Likewise.
89776         * lib/getsubopt.c: Likewise.
89777         * lib/glob.c: Likewise.
89778         * lib/hard-locale.c: Likewise.
89779         * lib/iconvme.c: Likewise.
89780         * lib/javacomp.c: Likewise.
89781         * lib/mempcpy.c: Likewise.
89782         * lib/memrchr.c: Likewise.
89783         * lib/regex_internal.h: Likewise.
89784         * lib/stpncpy.c: Likewise.
89785         * lib/strcasecmp.c: Likewise.
89786         * lib/strchrnul.c: Likewise.
89787         * lib/strdup.c: Likewise.
89788         * lib/striconv.c: Likewise.
89789         * lib/striconveh.c: Likewise.
89790         * lib/striconveha.c: Likewise.
89791         * lib/strncasecmp.c: Likewise.
89792         * lib/strndup.c: Likewise.
89793         * lib/strnlen.c: Likewise.
89794         * lib/strsep.c: Likewise.
89795         * lib/strstr.c: Likewise.
89796         * lib/strtok_r.c: Likewise.
89797         * lib/userspec.c: Likewise.
89798         * lib/w32spawn.h: Likewise.
89799         * lib/xstrndup.c: Likewise.
89800         * lib/mountlist.c (strstr): Remove decl.
89801         * m4/string_h.m4: New file.
89802         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
89803         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
89804         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
89805         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
89806         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
89807         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
89808         Set REPLACE_STRCASECMP if necessary.
89809         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
89810         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
89811         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
89812         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
89813         HAVE_DECL_STRDUP if necessary.
89814         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
89815         since gl_FUNC_STRNDUP does that now.
89816         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
89817         Check for decl here...
89818         (gl_PREREQ_STRNLEN): ... not here.
89819         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
89820         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
89821         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
89822         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
89823         necessary.
89824         * modules/string: New file.
89825         * modules/memmem (Files): Remove special-purpose include file.
89826         (Depends-on): Add string.
89827         (Include): Include <string.h>, not the removed file.
89828         * modules/mempcpy: Likewise.
89829         * modules/memrchr: Likewise.
89830         * modules/stpcpy: Likewise.
89831         * modules/stpncpy: Likewise.
89832         * modules/strcase: Likewise.
89833         * modules/strchrnul: Likewise.
89834         * modules/strdup: Likewise.
89835         * modules/strndup: Likewise.
89836         * modules/strnlen: Likewise.
89837         * modules/strpbrk: Likewise.
89838         * modules/strsep: Likewise.
89839         * modules/strstr: Likewise.
89840         * modules/strtok_r: Likewise.
89841         * tests/test-dirname.c: Don't include "strdup.h", since
89842         <string.h> now suffices.
89843         * tests/test-memmem.c: Don't include "memmem.h", since
89844         <string.h> now suffices.
89846 2007-01-25  Bruno Haible  <bruno@clisp.org>
89848         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
89849         *resultp is 0.
89851         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
89852         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
89853         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
89854         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
89856         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
89857         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
89858         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
89859         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
89860         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
89861         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
89863 2007-01-24  Bruno Haible  <bruno@clisp.org>
89865         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
89866         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
89867         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
89868         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
89869         gl_FUNC_FTS_CORE.
89870         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
89871         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
89872         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89873         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
89874         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
89875         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
89876         gl_FUNC_FCHOWNAT.
89877         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
89878         gl_FUNC_STRFTIME.
89879         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
89880         Reported by Ralf Wildenhues.
89882 2007-01-24  Bruno Haible  <bruno@clisp.org>
89884         Drop AC_REQUIRE calls that are redundant with the module dependencies.
89885         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
89886         gl_GETADDRINFO.
89887         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
89888         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
89889         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
89891 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
89893         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
89894         Don't use 'exit'; just return from 'main'.
89895         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
89897         * lib/fnmatch_.h: Readjust white space and comments to match
89898         glibc, to avoid spurious diffs.
89900 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
89902         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
89903         2004-12-01 change by Jakub Jelinek, since this code won't compile
89904         if !LIBC.  Problem reported by Bob Proulx.
89906 2007-01-23  Bruno Haible  <bruno@clisp.org>
89908         * lib/striconveh.c: Include c-strcaseeq.h.
89909         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
89910         * modules/striconveh (Depends-on): Add c-strcaseeq.
89912 2007-01-23  Bruno Haible  <bruno@clisp.org>
89914         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
89916         * modules/c-strcaseeq: New file.
89917         * lib/c-strcaseeq.h: New file.
89919         * modules/streq: New file.
89920         * lib/streq.h: New file.
89922 2007-01-23  Bruno Haible  <bruno@clisp.org>
89924         * modules/striconveha-tests: New file.
89925         * tests/test-striconveha.c: New file.
89927         * lib/striconveha.h: Include <stdbool.h>.
89928         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
89929         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
89930         (mem_iconveha_notranslit): Renamed from mem_iconveha.
89931         (mem_iconveha): New function.
89932         (str_iconveha_notranslit): Renamed from str_iconveha.
89933         (str_iconveha): New function.
89934         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
89935         c-strcase.
89937 2007-01-23  Bruno Haible  <bruno@clisp.org>
89939         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
89940         encodings without forgiving before trying any encoding with handler.
89941         (str_iconveha): Try all encodings without forgiving before trying any
89942         encoding with handler.
89944 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
89946         Import the following changes from libc.
89948         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
89950         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
89952         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
89954         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
89955         normal_bracket label.
89957         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
89959         [BZ #361]
89960         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
89961         to normal_bracket after fetching the next character.
89963 2007-01-22  Bruno Haible  <bruno@clisp.org>
89965         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
89966         argument.
89967         * lib/striconveh.c (iconv_carefully_1): New function.
89968         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
89969         argument.
89970         (str_cd_iconveh): Update.
89971         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
89972         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
89973         * tests/test-striconveh.c (MAGIC): New macro.
89974         (new_offsets): New function.
89975         (main): Test call with and without offsets.
89977 2007-01-22  Bruno Haible  <bruno@clisp.org>
89979         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
89980         * modules/sys_select (Makefile.am): Likewise.
89981         * modules/sys_socket (Makefile.am): Likewise.
89982         * modules/sys_time (Makefile.am): Likewise.
89984 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
89986         * modules/gettimeofday (License): Change from GPL to LGPL, since
89987         gettimeofday is a library function.
89989 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89991         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
89993 2007-01-21  Bruno Haible  <bruno@clisp.org>
89995         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
89997 2007-01-21  Bruno Haible  <bruno@clisp.org>
89999         * modules/striconveha: New file.
90000         * lib/striconveha.h: New file.
90001         * lib/striconveha.c: New file.
90002         * MODULES.html.sh (Internationalization functions): Add striconveha.
90003         * lib/striconv.c (str_iconv): Optimize the case of an empty input
90004         string.
90005         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
90007 2007-01-21  Bruno Haible  <bruno@clisp.org>
90009         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
90010         * lib/striconveh.c (str_iconveh): Likewise.
90012 2007-01-21  Bruno Haible  <bruno@clisp.org>
90014         * lib/striconveh.h (mem_iconveh): New declaration.
90015         * lib/striconveh.c (mem_iconveh): New function.
90016         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
90018 2007-01-21  Bruno Haible  <bruno@clisp.org>
90020         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
90022         * lib/striconveh.h (mem_cd_iconveh): Change specification.
90023         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
90024         original result buffer.
90025         (str_cd_iconveh): Update.
90026         * tests/test-striconveh.c (main): Update.
90028         * lib/striconv.h (mem_cd_iconv): Change specification.
90029         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
90030         result buffer.
90031         (str_cd_iconv): Update.
90032         * tests/test-striconv.c (main): Update.
90034 2007-01-21  Bruno Haible  <bruno@clisp.org>
90036         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
90038 2007-01-20  Jim Meyering  <jim@meyering.net>
90040         * lib/userspec.c (parse_with_separator): If a user or group string
90041         starts with "+", skip the corresponding name-to-ID look-up, since
90042         such a look-up must fail: user and group names may not include "+".
90044 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
90046         * lib/poll.c: Include sys/time.h and time.h unconditionally,
90047         since we now assume the sys_time module.
90048         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
90049         check for sys/time.h; no longer needed.
90050         * modules/poll (Depends-on): Depend on sys_time.
90052 2007-01-18  Bruno Haible  <bruno@clisp.org>
90054         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
90055         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
90057         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
90058         gettimeofday.
90060         * tests/test-gettimeofday.c: Include <time.h>.
90061         (dummy): Remove variable.
90063         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
90064         gl_HEADER_SYS_TIME_H.
90065         (gl_HEADER_SYS_TIME_H): New macro.
90067         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
90068         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
90069         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
90070         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
90071         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
90072         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
90073         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
90074         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
90075         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
90076         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
90077         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
90079         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
90080         last change; it caused a compilation error when cross-compiling to
90081         Cygwin.
90083 2007-01-18  Jim Meyering  <jim@meyering.net>
90085         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
90086         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
90087         than the race-prone "test -d sys || mkdir sys".
90088         (configure.ac): Use AC_PROG_MKDIR_P.
90089         * modules/sys_select: Likewise.
90090         * modules/sys_socket: Likewise.
90091         * modules/sys_time: Likewise.
90093 2007-01-18  Eric Blake  <ebb9@byu.net>
90095         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
90096         replace gettimeofday.
90097         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
90098         name, to avoid infinite recursion.
90100 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
90102         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
90103         module sys_time.
90104         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
90105         assume timespec.h defines struct timeval.
90106         * lib/settime.c: Likewise.
90107         * lib/utimens.c: Likewise.
90108         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
90109         since we now assume the gettimeofday module.
90110         * lib/tempname.c (__gen_tempname): Likewise.
90111         * lib/gettimeofday.h: Remove.
90112         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
90113         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
90114         Include <time.h>, for 'time()'.
90115         (localtime_buffer_addr): Also use this workaround if
90116         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
90117         to simplify the uses.  All uses changed.
90118         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
90119         that #undef is inside {}, and 'const' follows type name consistently.
90120         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
90121         (gettimeofday): Do not use the maximum possible value for
90122         tv->tv_usec, since that might break usages other than ls.c.
90123         Instead, we'll leave ls.c alone.  This undoes today's patch
90124         by Bruno.  Add a compile-time warning for 1s-clock resolution;
90125         we've never observed the problem but might as well keep the
90126         canary.
90127         * lib/nanosleep.c: Include timespec.h first, for interface check.
90128         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
90129         now assume the sys_time module.
90130         * lib/tempname.c: Likewise.
90131         * lib/timespec.h: Likewise.
90132         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
90133         needed.
90134         * lib/strftime.c: Likewise.
90135         * lib/timespec.h: Likewise.
90136         * lib/posixtm.c: Include posixtm.h first, for interface check.
90137         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
90138         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
90139         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
90140         * lib/sys_time_.h: New file.
90141         * lib/timespec.h (struct timespec): Use long int, not long.
90142         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
90143         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
90144         Remove obsolescent call to AC_HEADER_TIME.
90145         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
90146         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
90147         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
90148         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
90149         Likewise.
90150         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
90151         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
90152         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
90153         into the sys_time module.  Check for gettimeofday just once.
90154         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
90155         for gettimeofday signature to just check the signature.  Merely
90156         compile it, since linking doesn't test signature.  Improve test for
90157         whether gettimeofday.o is actually needed.
90158         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
90159         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
90160         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
90161         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
90162         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
90163         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
90164         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
90165         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
90166         than worrying about sys/time.h.
90167         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
90168         Don't bother worrying about TIME_WITH_SYS_TIME.
90169         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
90170         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
90171         * m4/sys_time_h.m4: New file.
90172         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
90173         Don't include sys/time.h.  Return from main rather than exiting.
90174         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
90175         all uses changed.
90176         * modules/gethrxtime (Depends-on): Add sys_time.
90177         * modules/gettime (Depends-on): Likewise.
90178         * modules/gettimeofday (Depends-on): Likewise.
90179         * modules/nanosleep (Depends-on): Likewise.
90180         * modules/settime (Depends-on): Likewise.
90181         * modules/tempname (Depends-on): Likewise.
90182         * modules/utimens (Depends-on): Likewise.
90183         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
90184         (Include): Change back to <sys/time.h>.
90185         (Maintainer): Add self.
90186         * modules/sys_time: New file.
90187         * modules/tempname (Depends-on): Add gettimeofday.
90188         * tests/test-gettimeofday.c: Include <sys/time.h>
90189         rather than gettimeofday.h.
90191 2007-01-17  Bruno Haible  <bruno@clisp.org>
90193         * gnulib-tool (func_get_license): Revert last patch. Instead, let
90194         the license default to GPL.
90195         (func_create_testdir): Don't complain if a module is LGPL and its
90196         tests module depends on GPLed modules.
90198 2007-01-17  Bruno Haible  <bruno@clisp.org>
90200         * lib/gettimeofday.c (gettimeofday): Add code for the case
90201         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
90202         maximum possible value for tv->tv_usec, rather than the minimum one.
90204 2005-10-08  Martin Lambers  <marlam@marlam.de>
90205 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
90206 2007-01-16  Bruno Haible  <bruno@clisp.org>
90208         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
90209         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
90210         gl_FUNC_GETTIMEOFDAY.
90211         (Include): Add gettimeofday.h.
90212         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
90213         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
90214         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
90215         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
90216         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
90217         * lib/gettimeofday.h: New file.
90218         * lib/gettimeofday.c: Include <sys/timeb.h>.
90219         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
90220         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
90221         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
90222         fall back on time().
90224         * tests/test-gettimeofday.c: New file.
90225         * modules/gettimeofday-tests: New file.
90227 2007-01-16  Eric Blake  <ebb9@byu.net>
90229         * modules/fnmatch (Depends-on): Depend on wchar.
90230         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
90231         * m4/fnmatch.m4: Likewise.
90232         * modules/mbchar (Makefile.am): Assume <wchar.h>.
90233         * m4/mbchar.m4: Likewise.
90234         * modules/mbswidth (Depends-on): Depend on wchar.
90235         * lib/mbswidth.c: Assume <wchar.h>.
90236         * m4/mbswidth.m4: Likewise.
90237         * modules/quotearg (Depends-on): Depend on wchar.
90238         * lib/quotearg.c: Assume <wchar.h>.
90239         * m4/quotearg.m4: Likewise.
90240         * modules/regex (Depends-on): Depend on wchar.
90241         * lib/regex_internal.h: Assume <wchar.h>.
90242         * m4/regex.m4: Likewise.
90243         * modules/stdint (Depends-on): Depend on wchar.
90244         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
90245         * m4/stdint.m4: Likewise.
90246         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
90247         * modules/strftime (Depends-on): Depend on wchar.
90248         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
90249         * modules/strtol (Depends-on): Depend on wchar.
90250         * lib/strtol.c: Assume <wchar.h>.
90251         * modules/wcwidth (Depends-on): Depend on wchar.
90252         * lib/wcwidth.h: Assume <wchar.h>.
90253         * m4/wcwidth.m4: Likewise.
90255 2007-01-16  Bruno Haible  <bruno@clisp.org>
90257         * modules/csharpexec-script: New, created from...
90258         * modules/csharpexec: ... this.
90260 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
90262         * modules/javaexec-script: New, created from...
90263         * modules/javaexec: ... this.
90265 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90267         * modules/poll (Dependencies): Add sys_select.
90269 2007-01-15  Jim Meyering  <jim@meyering.net>
90271         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
90272         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
90273         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
90274         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
90276 2007-01-15  Bruno Haible  <bruno@clisp.org>
90278         * modules/striconveh: New file.
90279         * lib/striconveh.h: New file.
90280         * lib/striconveh.c: New file.
90281         * MODULES.html.sh (Internationalization functions): Add striconveh.
90283         * modules/striconveh-tests: New file.
90284         * tests/test-striconveh.c: New file.
90286 2007-01-15  Bruno Haible  <bruno@clisp.org>
90288         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
90289         not from GNU libiconv or GNU libc.
90291 2007-01-15  Bruno Haible  <bruno@clisp.org>
90293         * doc/gnulib-intro.texi (Copyright): Explain the different license
90294         terms for module descriptions, autoconf macros, tests, documentation.
90296 2007-01-14  Bruno Haible  <bruno@clisp.org>
90298         * modules/striconv-tests: New file.
90299         * tests/test-striconv.c: New file.
90301 2007-01-14  Bruno Haible  <bruno@clisp.org>
90303         * modules/iconv-tests: New file.
90304         * tests/test-iconv.c: New file.
90306 2007-01-14  Bruno Haible  <bruno@clisp.org>
90308         * gnulib-tool (func_get_license): For test modules, use the license of
90309         the main module.
90311 2007-01-14  Bruno Haible  <bruno@clisp.org>
90313         * modules/iconv (Include): Clarify that <iconv.h> can only be included
90314         if iconv is found to exist.
90316 2007-01-14  Bruno Haible  <bruno@clisp.org>
90318         * modules/c-ctype-tests: New file.
90319         * tests/test-c-ctype.c: New file.
90321 2007-01-14  Bruno Haible  <bruno@clisp.org>
90323         * modules/binary-io-tests: New file.
90324         * tests/test-binary-io.sh: New file.
90325         * tests/test-binary-io.c: New file.
90327 2007-01-14  Bruno Haible  <bruno@clisp.org>
90329         * modules/array-oset-tests: New file.
90330         * tests/test-array_oset.c: New file.
90332 2007-01-14  Bruno Haible  <bruno@clisp.org>
90334         * modules/array-list-tests: New file.
90335         * tests/test-array_list.c: New file.
90337 2007-01-14  Bruno Haible  <bruno@clisp.org>
90339         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
90340         and make.
90341         Reported by Simon Josefsson in
90342         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
90344 2007-01-14  Bruno Haible  <bruno@clisp.org>
90346         * modules/allocsa-tests: New file.
90347         * tests/test-allocsa.c: New file.
90349 2007-01-14  Bruno Haible  <bruno@clisp.org>
90351         * modules/fchdir (Depends-on): Add absolute-header.
90352         * modules/unistd (Depends-on): Likewise.
90354 2006-12-30  Bruno Haible  <bruno@clisp.org>
90356         * modules/fchdir: New file.
90357         * modules/unistd (Files): Add lib/unistd_.h.
90358         (Makefile.am): Generate unistd.h from unistd_.h.
90359         * lib/fchdir.c: New file.
90360         * lib/dirent_.h: New file.
90361         * lib/unistd_.h: New file.
90362         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
90363         * m4/fchdir.m4: New file.
90364         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
90365         (gl_HEADER_UNISTD): Invoke it.
90366         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
90367         function.
90368         * lib/backupfile.c (opendir, closedir): Undefine.
90369         * lib/chown.c (open, close): Undefine.
90370         * lib/clean-temp.c (open, close): Undefine.
90371         * lib/copy-file.c (open, close): Undefine.
90372         * lib/execute.c (open, close): Undefine.
90373         * lib/fsusage.c (open, close): Undefine.
90374         * lib/gc-gnulib.c (open, close): Undefine.
90375         * lib/getcwd.c (opendir, closedir): Undefine.
90376         * lib/glob.c (opendir, closedir): Undefine.
90377         * lib/javacomp.c (open, close): Undefine.
90378         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
90379         * lib/openat-proc.c (open, close): Undefine.
90380         * lib/pagealign_alloc.c (open, close): Undefine.
90381         * lib/pipe.c (open, close): Undefine.
90382         * lib/progreloc.c (open, close): Undefine.
90383         * lib/savedir.c (opendir, closedir): Undefine.
90384         * lib/utime.c (open, close): Undefine.
90385         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
90387 2007-01-10  Bruno Haible  <bruno@clisp.org>
90389         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
90391 2007-01-12  Eric Blake  <ebb9@byu.net>
90393         Provide a robust <wchar.h>.  Further simplifications are now
90394         possible in other modules, but not included here.
90395         * modules/wchar: New module.
90396         * m4/wchar.m4: New file.
90397         * lib/wchar_.h: Likewise.
90398         * modules/mbchar (Depends-on): Depend on wchar, as the first use
90399         of the new module.
90400         * MODULES.html.sh (Extended multibyte and wide character utilities):
90401         New section.
90403 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
90405         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
90406         to a reasonable default for memory allocation.
90407         (xreadlink): Don't allocate a huge buffer, to work around a buggy
90408         file system that reports garbage st_size values for symlinks.
90409         Problem reported by Liyang Hu.
90411 2007-01-11  Simon Josefsson  <simon@josefsson.org>
90413         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
90414         Emacs .#* auto-save files).
90416 2007-01-11  Bruno Haible  <bruno@clisp.org>
90418         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
90419         directory.
90421 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
90423         Use @...@ consistently in lib/wctype_.h.
90424         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
90425         on it being set to 1 or 0.
90426         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
90427         go back to AC_SUBSTing it.
90428         * modules/wctype (Makefile.am): Undo previous change.
90430 2007-01-10  Eric Blake  <ebb9@byu.net>
90432         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
90433         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
90434         * modules/wctype (Makefile.am): Likewise.
90435         Reported by Chris McGuire.
90437 2007-01-10  Jim Meyering  <jim@meyering.net>
90439         fts.c: a small readability/maintainability improvement
90440         * lib/fts.c (fts_read): Make this code slightly more readable and
90441         maintainable by hoisting the "sp->fts_cur = p" assignments to
90442         immediately follow the statements that set P.  Derived from
90443         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
90445 2007-01-10  Eric Blake  <ebb9@byu.net>
90447         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
90448         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
90449         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
90450         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
90451         Reported by Chris McGuire.
90453 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90455         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
90456         in sed script.
90458 2007-01-09  Bruno Haible  <bruno@clisp.org>
90460         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
90461         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
90462         variables.
90463         (func_module): Use them.
90465 2007-01-09  Bruno Haible  <bruno@clisp.org>
90467         * modules/unistr/base: New file.
90468         * lib/unistr.h: New file.
90470         * modules/unistr/u8-to-u16: New file.
90471         * lib/unistr/u8-to-u16.c: New file.
90473         * modules/unistr/u8-to-u32: New file.
90474         * lib/unistr/u8-to-u32.c: New file.
90476         * modules/unistr/u16-to-u8: New file.
90477         * lib/unistr/u16-to-u8.c: New file.
90479         * modules/unistr/u16-to-u32: New file.
90480         * lib/unistr/u16-to-u32.c: New file.
90482         * modules/unistr/u32-to-u8: New file.
90483         * lib/unistr/u32-to-u8.c: New file.
90485         * modules/unistr/u32-to-u16: New file.
90486         * lib/unistr/u32-to-u16.c: New file.
90488         * modules/unistr/u8-check: New file.
90489         * modules/unistr/u16-check: New file.
90490         * modules/unistr/u32-check: New file.
90491         * lib/unistr/u8-check.c: New file.
90492         * lib/unistr/u16-check.c: New file.
90493         * lib/unistr/u32-check.c: New file.
90495         * modules/unistr/u8-chr: New file.
90496         * modules/unistr/u16-chr: New file.
90497         * modules/unistr/u32-chr: New file.
90498         * lib/unistr/u8-chr.c: New file.
90499         * lib/unistr/u16-chr.c: New file.
90500         * lib/unistr/u32-chr.c: New file.
90502         * modules/unistr/u8-cmp: New file.
90503         * modules/unistr/u16-cmp: New file.
90504         * modules/unistr/u32-cmp: New file.
90505         * lib/unistr/u8-cmp.c: New file.
90506         * lib/unistr/u16-cmp.c: New file.
90507         * lib/unistr/u32-cmp.c: New file.
90509         * modules/unistr/u8-cpy: New file.
90510         * modules/unistr/u16-cpy: New file.
90511         * modules/unistr/u32-cpy: New file.
90512         * lib/unistr/u8-cpy.c: New file.
90513         * lib/unistr/u16-cpy.c: New file.
90514         * lib/unistr/u32-cpy.c: New file.
90515         * lib/unistr/u-cpy.h: New file.
90517         * modules/unistr/u8-cpy-alloc: New file.
90518         * modules/unistr/u16-cpy-alloc: New file.
90519         * modules/unistr/u32-cpy-alloc: New file.
90520         * lib/unistr/u8-cpy-alloc.c: New file.
90521         * lib/unistr/u16-cpy-alloc.c: New file.
90522         * lib/unistr/u32-cpy-alloc.c: New file.
90523         * lib/unistr/u-cpy-alloc.h: New file.
90525         * modules/unistr/u8-endswith: New file.
90526         * modules/unistr/u16-endswith: New file.
90527         * modules/unistr/u32-endswith: New file.
90528         * lib/unistr/u8-endswith.c: New file.
90529         * lib/unistr/u16-endswith.c: New file.
90530         * lib/unistr/u32-endswith.c: New file.
90531         * lib/unistr/u-endswith.h: New file.
90533         * modules/unistr/u8-mblen: New file.
90534         * modules/unistr/u16-mblen: New file.
90535         * modules/unistr/u32-mblen: New file.
90536         * lib/unistr/u8-mblen.c: New file.
90537         * lib/unistr/u16-mblen.c: New file.
90538         * lib/unistr/u32-mblen.c: New file.
90540         * modules/unistr/u8-mbtouc: New file.
90541         * modules/unistr/u16-mbtouc: New file.
90542         * modules/unistr/u32-mbtouc: New file.
90543         * lib/unistr/u8-mbtouc.c: New file.
90544         * lib/unistr/u16-mbtouc.c: New file.
90545         * lib/unistr/u32-mbtouc.c: New file.
90547         * modules/unistr/u8-mbtouc-safe: New file.
90548         * modules/unistr/u16-mbtouc-safe: New file.
90549         * modules/unistr/u32-mbtouc-safe: New file.
90550         * lib/unistr/u8-mbtouc-safe.c: New file.
90551         * lib/unistr/u16-mbtouc-safe.c: New file.
90552         * lib/unistr/u32-mbtouc-safe.c: New file.
90554         * modules/unistr/u8-move: New file.
90555         * modules/unistr/u16-move: New file.
90556         * modules/unistr/u32-move: New file.
90557         * lib/unistr/u8-move.c: New file.
90558         * lib/unistr/u16-move.c: New file.
90559         * lib/unistr/u32-move.c: New file.
90560         * lib/unistr/u-move.h: New file.
90562         * modules/unistr/u8-next: New file.
90563         * modules/unistr/u16-next: New file.
90564         * modules/unistr/u32-next: New file.
90565         * lib/unistr/u8-next.c: New file.
90566         * lib/unistr/u16-next.c: New file.
90567         * lib/unistr/u32-next.c: New file.
90569         * modules/unistr/u8-prev: New file.
90570         * modules/unistr/u16-prev: New file.
90571         * modules/unistr/u32-prev: New file.
90572         * lib/unistr/u8-prev.c: New file.
90573         * lib/unistr/u16-prev.c: New file.
90574         * lib/unistr/u32-prev.c: New file.
90576         * modules/unistr/u8-set: New file.
90577         * modules/unistr/u16-set: New file.
90578         * modules/unistr/u32-set: New file.
90579         * lib/unistr/u8-set.c: New file.
90580         * lib/unistr/u16-set.c: New file.
90581         * lib/unistr/u32-set.c: New file.
90582         * lib/unistr/u-set.h: New file.
90584         * modules/unistr/u8-startswith: New file.
90585         * modules/unistr/u16-startswith: New file.
90586         * modules/unistr/u32-startswith: New file.
90587         * lib/unistr/u8-startswith.c: New file.
90588         * lib/unistr/u16-startswith.c: New file.
90589         * lib/unistr/u32-startswith.c: New file.
90590         * lib/unistr/u-startswith.h: New file.
90592         * modules/unistr/u8-stpcpy: New file.
90593         * modules/unistr/u16-stpcpy: New file.
90594         * modules/unistr/u32-stpcpy: New file.
90595         * lib/unistr/u8-stpcpy.c: New file.
90596         * lib/unistr/u16-stpcpy.c: New file.
90597         * lib/unistr/u32-stpcpy.c: New file.
90598         * lib/unistr/u-stpcpy.h: New file.
90600         * modules/unistr/u8-stpncpy: New file.
90601         * modules/unistr/u16-stpncpy: New file.
90602         * modules/unistr/u32-stpncpy: New file.
90603         * lib/unistr/u8-stpncpy.c: New file.
90604         * lib/unistr/u16-stpncpy.c: New file.
90605         * lib/unistr/u32-stpncpy.c: New file.
90606         * lib/unistr/u-stpncpy.h: New file.
90608         * modules/unistr/u8-strcat: New file.
90609         * modules/unistr/u16-strcat: New file.
90610         * modules/unistr/u32-strcat: New file.
90611         * lib/unistr/u8-strcat.c: New file.
90612         * lib/unistr/u16-strcat.c: New file.
90613         * lib/unistr/u32-strcat.c: New file.
90614         * lib/unistr/u-strcat.h: New file.
90616         * modules/unistr/u8-strchr: New file.
90617         * modules/unistr/u16-strchr: New file.
90618         * modules/unistr/u32-strchr: New file.
90619         * lib/unistr/u8-strchr.c: New file.
90620         * lib/unistr/u16-strchr.c: New file.
90621         * lib/unistr/u32-strchr.c: New file.
90623         * modules/unistr/u8-strcmp: New file.
90624         * modules/unistr/u16-strcmp: New file.
90625         * modules/unistr/u32-strcmp: New file.
90626         * lib/unistr/u8-strcmp.c: New file.
90627         * lib/unistr/u16-strcmp.c: New file.
90628         * lib/unistr/u32-strcmp.c: New file.
90630         * modules/unistr/u8-strcpy: New file.
90631         * modules/unistr/u16-strcpy: New file.
90632         * modules/unistr/u32-strcpy: New file.
90633         * lib/unistr/u8-strcpy.c: New file.
90634         * lib/unistr/u16-strcpy.c: New file.
90635         * lib/unistr/u32-strcpy.c: New file.
90636         * lib/unistr/u-strcpy.h: New file.
90638         * modules/unistr/u8-strcspn: New file.
90639         * modules/unistr/u16-strcspn: New file.
90640         * modules/unistr/u32-strcspn: New file.
90641         * lib/unistr/u8-strcspn.c: New file.
90642         * lib/unistr/u16-strcspn.c: New file.
90643         * lib/unistr/u32-strcspn.c: New file.
90644         * lib/unistr/u-strcspn.h: New file.
90646         * modules/unistr/u8-strdup: New file.
90647         * modules/unistr/u16-strdup: New file.
90648         * modules/unistr/u32-strdup: New file.
90649         * lib/unistr/u8-strdup.c: New file.
90650         * lib/unistr/u16-strdup.c: New file.
90651         * lib/unistr/u32-strdup.c: New file.
90652         * lib/unistr/u-strdup.h: New file.
90654         * modules/unistr/u8-strlen: New file.
90655         * modules/unistr/u16-strlen: New file.
90656         * modules/unistr/u32-strlen: New file.
90657         * lib/unistr/u8-strlen.c: New file.
90658         * lib/unistr/u16-strlen.c: New file.
90659         * lib/unistr/u32-strlen.c: New file.
90660         * lib/unistr/u-strlen.h: New file.
90662         * modules/unistr/u8-strmblen: New file.
90663         * modules/unistr/u16-strmblen: New file.
90664         * modules/unistr/u32-strmblen: New file.
90665         * lib/unistr/u8-strmblen.c: New file.
90666         * lib/unistr/u16-strmblen.c: New file.
90667         * lib/unistr/u32-strmblen.c: New file.
90669         * modules/unistr/u8-strmbtouc: New file.
90670         * modules/unistr/u16-strmbtouc: New file.
90671         * modules/unistr/u32-strmbtouc: New file.
90672         * lib/unistr/u8-strmbtouc.c: New file.
90673         * lib/unistr/u16-strmbtouc.c: New file.
90674         * lib/unistr/u32-strmbtouc.c: New file.
90676         * modules/unistr/u8-strncat: New file.
90677         * modules/unistr/u16-strncat: New file.
90678         * modules/unistr/u32-strncat: New file.
90679         * lib/unistr/u8-strncat.c: New file.
90680         * lib/unistr/u16-strncat.c: New file.
90681         * lib/unistr/u32-strncat.c: New file.
90682         * lib/unistr/u-strncat.h: New file.
90684         * modules/unistr/u8-strncmp: New file.
90685         * modules/unistr/u16-strncmp: New file.
90686         * modules/unistr/u32-strncmp: New file.
90687         * lib/unistr/u8-strncmp.c: New file.
90688         * lib/unistr/u16-strncmp.c: New file.
90689         * lib/unistr/u32-strncmp.c: New file.
90691         * modules/unistr/u8-strncpy: New file.
90692         * modules/unistr/u16-strncpy: New file.
90693         * modules/unistr/u32-strncpy: New file.
90694         * lib/unistr/u8-strncpy.c: New file.
90695         * lib/unistr/u16-strncpy.c: New file.
90696         * lib/unistr/u32-strncpy.c: New file.
90697         * lib/unistr/u-strncpy.h: New file.
90699         * modules/unistr/u8-strnlen: New file.
90700         * modules/unistr/u16-strnlen: New file.
90701         * modules/unistr/u32-strnlen: New file.
90702         * lib/unistr/u8-strnlen.c: New file.
90703         * lib/unistr/u16-strnlen.c: New file.
90704         * lib/unistr/u32-strnlen.c: New file.
90705         * lib/unistr/u-strnlen.h: New file.
90707         * modules/unistr/u8-strpbrk: New file.
90708         * modules/unistr/u16-strpbrk: New file.
90709         * modules/unistr/u32-strpbrk: New file.
90710         * lib/unistr/u8-strpbrk.c: New file.
90711         * lib/unistr/u16-strpbrk.c: New file.
90712         * lib/unistr/u32-strpbrk.c: New file.
90713         * lib/unistr/u-strpbrk.h: New file.
90715         * modules/unistr/u8-strrchr: New file.
90716         * modules/unistr/u16-strrchr: New file.
90717         * modules/unistr/u32-strrchr: New file.
90718         * lib/unistr/u8-strrchr.c: New file.
90719         * lib/unistr/u16-strrchr.c: New file.
90720         * lib/unistr/u32-strrchr.c: New file.
90722         * modules/unistr/u8-strspn: New file.
90723         * modules/unistr/u16-strspn: New file.
90724         * modules/unistr/u32-strspn: New file.
90725         * lib/unistr/u8-strspn.c: New file.
90726         * lib/unistr/u16-strspn.c: New file.
90727         * lib/unistr/u32-strspn.c: New file.
90728         * lib/unistr/u-strspn.h: New file.
90730         * modules/unistr/u8-strstr: New file.
90731         * modules/unistr/u16-strstr: New file.
90732         * modules/unistr/u32-strstr: New file.
90733         * lib/unistr/u8-strstr.c: New file.
90734         * lib/unistr/u16-strstr.c: New file.
90735         * lib/unistr/u32-strstr.c: New file.
90736         * lib/unistr/u-strstr.h: New file.
90738         * modules/unistr/u8-strtok: New file.
90739         * modules/unistr/u16-strtok: New file.
90740         * modules/unistr/u32-strtok: New file.
90741         * lib/unistr/u8-strtok.c: New file.
90742         * lib/unistr/u16-strtok.c: New file.
90743         * lib/unistr/u32-strtok.c: New file.
90744         * lib/unistr/u-strtok.h: New file.
90746         * modules/unistr/u8-uctomb: New file.
90747         * modules/unistr/u16-uctomb: New file.
90748         * modules/unistr/u32-uctomb: New file.
90749         * lib/unistr/u8-uctomb.c: New file.
90750         * lib/unistr/u16-uctomb.c: New file.
90751         * lib/unistr/u32-uctomb.c: New file.
90753         * MODULES.html.sh (Unicode string functions): Add the new modules.
90755 2007-01-08  Bruno Haible  <bruno@clisp.org>
90757         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
90758         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
90759         subdirectories.
90761 2007-01-08  Karl Berry  <karl@gnu.org>
90763         * doc/error.texi: mention that main() fns must set program_name
90764         when progname is used.
90766 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
90768         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
90769         WCTYPE_H is empty, for the benefit of builds from non-distclean
90770         directories.  Problem reported by Eric Blake in
90771         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
90773 2007-01-08  Bruno Haible  <bruno@clisp.org>
90775         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
90776         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
90777         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
90778         PROVIDE_CANONICALIZE_FILENAME_MODE.
90779         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
90781 2007-01-08  Bruno Haible  <bruno@clisp.org>
90783         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
90784         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
90785         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
90786         * lib/fts.c: Likewise.
90787         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
90789 2006-12-25  Bruno Haible  <bruno@clisp.org>
90791         * modules/utf8-ucs4-safe: New file.
90792         * lib/utf8-ucs4-safe.h: New file.
90793         * lib/unistr/utf8-ucs4-safe.c: New file.
90795         * modules/utf16-ucs4-safe: New file.
90796         * lib/utf16-ucs4-safe.h: New file.
90797         * lib/unistr/utf16-ucs4-safe.c: New file.
90799         * MODULES.html.sh (Unicode string functions): Add the new modules.
90801 2007-01-08  Bruno Haible  <bruno@clisp.org>
90803         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
90804         (Depends-on): Add unitypes.
90805         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
90806         (u8_mbtouc_aux): Move out to separate file.
90807         (u8_mbtouc): Use ucs4_t, uint8_t types.
90808         * lib/unistr/utf8-ucs4.c: New file.
90810         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
90811         (Depends-on): Add unitypes.
90812         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
90813         (u16_mbtouc_aux): Move out to separate file.
90814         (u16_mbtouc): Use ucs4_t, uint16_t types.
90815         * lib/unistr/utf16-ucs4.c: New file.
90817         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
90818         (Depends-on): Add unitypes.
90819         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
90820         (u8_uctomb_aux): Move out to separate file.
90821         (u8_uctomb): Use ucs4_t, uint8_t types.
90822         * lib/unistr/ucs4-utf8.c: New file.
90824         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
90825         (Depends-on): Add unitypes.
90826         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
90827         (u16_uctomb_aux): Move out to separate file.
90828         (u16_uctomb): Use ucs4_t, uint16_t types.
90829         * lib/unistr/ucs4-utf16.c: New file.
90831 2006-12-25  Bruno Haible  <bruno@clisp.org>
90833         * modules/unitypes: New file.
90834         * lib/unitypes.h: New file.
90835         * MODULES.html.sh (func_all_modules): New section "Unicode string
90836         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
90837         this section. Add unitypes.
90839 2007-01-08  Bruno Haible  <bruno@clisp.org>
90841         Avoid variable names that conflict with those from libtool.
90842         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
90843         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
90844         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
90845         library_names_spec to acl_library_names_spec, hardcode_* to
90846         acl_hardcode_*.
90847         Reported by Ralf Wildenhues.
90849 2007-01-08  Bruno Haible  <bruno@clisp.org>
90851         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
90852         definition.
90853         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
90854         definition.
90855         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
90856         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
90857         definition.
90858         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
90859         definition.
90860         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
90861         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
90862         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
90863         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
90864         definition.
90865         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
90866         definition.
90867         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
90868         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
90869         GC_USE_<algorithm>.
90870         * lib/gc-libgcrypt.c: Likewise.
90871         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
90872         * modules/gc-arctwo (configure.ac): Likewise.
90873         * modules/gc-des (configure.ac): Likewise.
90874         * modules/gc-hmac-md5 (configure.ac): Likewise.
90875         * modules/gc-hmac-sha1 (configure.ac): Likewise.
90876         * modules/gc-md2 (configure.ac): Likewise.
90877         * modules/gc-md4 (configure.ac): Likewise.
90878         * modules/gc-md5 (configure.ac): Likewise.
90879         * modules/gc-random (configure.ac): Likewise.
90880         * modules/gc-rijndael (configure.ac): Likewise.
90881         * modules/gc-sha1 (configure.ac): Likewise.
90883 2007-01-08  Bruno Haible  <bruno@clisp.org>
90885         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
90886         macro definition.
90887         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
90888         definition.
90889         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
90890         definition.
90891         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
90892         * modules/fcntl-safer (configure.ac): Likewise.
90893         * modules/fopen-safer (configure.ac): Likewise.
90894         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
90895         GNULIB_FWRITEERROR macro definition.
90897 2007-01-08  Bruno Haible  <bruno@clisp.org>
90899         * m4/gnulib-common.m4: New file.
90900         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
90901         (func_get_filelist): Add m4/gnulib-common.m4.
90903 2007-01-08  Bruno Haible  <bruno@clisp.org>
90905         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
90906         command.
90908 2007-01-08  Jim Meyering  <jim@meyering.net>
90910         Use a more robust test for a "can't happen" condition.
90911         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
90912         narrowed the st_size value.  Presuming the "can't happen" condition
90913         is true, that narrowing could conceivably convert an invalid st_size
90914         value into a valid one.  Instead, use a change based on Matthew
90915         Woehlke's original patch.
90917         Slight readability improvement: use an assert-like macro
90918         in place of literal "abort ()" uses.
90919         * lib/fts.c (fts_assert): Define.
90920         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
90921         Use this macro instead of a bare 'abort'.
90923 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
90925         Don't worry about using IRIX 5.3's wctype.h broken definitions;
90926         simply work around them.
90927         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
90928         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
90929         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
90930         declaring.
90931         Don't bother to define as macros, since the standard doesn't require it.
90932         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
90933         longer worry about IRIX 5.3.
90934         (HAVE_WCTYPE_CTMP_BUG): Remove.
90936 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
90938         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
90939         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
90940         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
90941         Problems reported by Georg Schwarz for IRIX 5.3.
90943         * gnulib-tool (autoconf_minversion): Take the maximum version number
90944         found, not the minimum.  Problem reported by James Youngman.
90946 2007-01-03  Karl Berry  <karl@gnu.org>
90948         * doc/error.texi: new file, explaining interaction with progname.
90949         * doc/gnulib.texi: include it.  Update copyright.
90951 2007-01-03  Simon Josefsson  <simon@josefsson.org>
90953         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
90954         AC_CANONICAL_HOST, to improve autobuild outputs.
90956 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
90957             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
90959         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
90960         sockets, server sockets, and other file descriptors.  Count errors
90961         to compute the return value.  Reorder the code a bit to be easier
90962         to follow.  Don't set event bits that were not requested (except
90963         POLLERR and POLLHUP).
90965 2007-01-01  Bruno Haible  <bruno@clisp.org>
90967         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
90969 2007-01-03  Jim Meyering  <jim@meyering.net>
90971         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
90973 2007-01-02  Bruno Haible  <bruno@clisp.org>
90975         * modules/settime (Include): Require timespec.h.
90976         * modules/nanosleep (Include): Likewise.
90978 2007-01-01  Bruno Haible  <bruno@clisp.org>
90980         * gnulib-tool (func_emit_copyright_notice): Bump year.
90981         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
90983 2007-01-01  Bruno Haible  <bruno@clisp.org>
90985         Improve support for OpenBSD.
90986         * build-aux/config.rpath (libname_spec): Export.
90987         (library_names_spec): New variable. Export.
90988         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
90989         library_names_spec from the config.rpath output. Locate shared library
90990         through the name pattern in library_names_spec.
90992 2007-01-01  Eric Blake  <ebb9@byu.net>
90994         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
90996 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
90998         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
90999         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
91000         assume the C locale, and avoid an "eval" that could cause trouble.
91001         Problem with SORT reported by Bob Proulx.
91003         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
91004         Define.  Trivial patch from Henning Nielsen Lund, originally
91005         sent to bug-grep@gnu.org today.
91007 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
91009         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
91010         struct stat.  Problem reported by Henning Nielsen Lund.
91011         * lib/acl.c: Include acl.h first, to check interface.  Don't
91012         bother to include sys/types.h and sys/stat.h again.
91014 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
91016         Import the following change from libc; problem reported by
91017         Sven Verdoolaege.
91019         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
91021         [BZ #1373]
91022         * lib/argp.h: Remove __NTH for __argp_usage inline function.
91024 2006-12-28  Jim Meyering  <jim@meyering.net>
91026         * build-aux/announce-gen: Do not assume that the package
91027         builds any of tar.gz, tar.bz2, and .xdelta files.
91028         Suggestion from Simon Josefsson.
91030 2006-12-28  Simon Josefsson  <simon@josefsson.org>
91032         * modules/announce-gen: New file.
91034 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
91036         * lib/mbchar.h: Just include <wctype.h>; the wctype module
91037         handles its gotchas now.
91038         * lib/mbswidth.c: Likewise.
91039         * lib/wcwidth.h: Likewise.
91040         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
91041         and iswcntrl; the wctype module does this stuff now.
91042         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
91043         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
91044         * modules/mbchar (Depends-on): Add wctype.
91045         * modules/mbswidth (Depends-on): Likewise.
91046         * modules/wcwidth (Depends-on): Likewise.
91048 2006-12-27  Eric Blake  <ebb9@byu.net>
91050         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
91051         module uses more than what <wctype.h> is required to provide.
91053 2006-12-26  Eric Blake  <ebb9@byu.net>
91055         * gnulib-tool (sed_extract_prog): Avoid space-tab.
91057 2006-12-26  Eric Blake  <ebb9@byu.net>
91059         * modules/absolute-header: New module.
91060         * modules/fcntl (Depends-on): Depend on it.
91061         * modules/inttypes (Depends-on): Likewise.
91062         * modules/stdint (Depends-on): Likewise.
91063         * modules/sys_stat (Depends-on): Likewise.
91064         * modules/wctype (Depends-on): Likewise.
91065         * MODULES.html.sh (Support for building libraries and
91066         executables): Document it.
91068 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
91070         * gnulib-tool (SED): Remove, undoing previous change.
91071         The problem was that it broke coreutils on Solaris, because
91072         "sed --posix" leaked into a makefile.
91073         (sed): New alias, if 'alias' and GNU sed.
91075 2006-12-24  Jim Meyering  <jim@meyering.net>
91077         Work around an fchownat bug in glibc-2.4:
91078         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
91079         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
91080         in spite of the -P option.
91081         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
91082         New macros.
91083         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
91084         * modules/openat (Files): Add lib/fchownat.c.
91085         * lib/openat.c (fchownat): Don't define here.  Move to...
91086         * lib/fchownat.c: ...this new file.
91088 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
91090         Fix bug reported by Bruno Haible in
91091         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
91092         where quotearg.c didn't compile on Mac OS X 10.2 because it
91093         lacks <wchar.h> and wint_t.
91094         * lib/wctype_.h (__wctype_wint_t): New type.
91095         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
91096         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
91097         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
91098         Arg is now of type __wctype_wint_t, not wint_t.
91099         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
91100         substitute HAVE_WINT_T.
91101         * modules/wctype (Files): Add m4/wint_t.m4.
91102         (wctype.h): Substitute HAVE_WINT_T.
91104 2006-12-23  Bruno Haible  <bruno@clisp.org>
91106         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
91108 2006-12-23  Bruno Haible  <bruno@clisp.org>
91110         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
91111         S_ISLNK.
91112         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
91113         mingw.
91115 2006-12-22  Bruno Haible  <bruno@clisp.org>
91117         * lib/copy-file.c: Include acl.h.
91118         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
91119         Close the file descriptors only after being done with copy_acl.
91120         * modules/copy-file (Depends-on): Add acl.
91122 2006-12-22  Bruno Haible  <bruno@clisp.org>
91124         * gnulib-tool (SED): New variable.
91125         Use $SED instead of sed everywhere.
91127 2006-12-22  Bruno Haible  <bruno@clisp.org>
91129         * modules/no-c++: New file.
91130         * m4/no-c++.m4: New file.
91131         * MODULES.html.sh (Support for building libraries and executables):
91132         Add no-c++.
91134 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
91136         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
91137         Include <limits.h>, and use its INT_MAX to rewrite the
91138         j loop so that it does not overflow 'int'.  Problem reported by
91139         Ralf Wildenhues in
91140         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
91141         Play it safe by shifting left by 1 rather than multiplying by 2,
91142         as GCC is less likely to optimize this away when the value
91143         is signed (when it assumes overflow leads to undefined behavior).
91144         Also, don't assume time_t uses two's complement.
91146 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
91148         * MODULES.html.sh: New module wctype.
91149         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
91150         * lib/fnmatch.c: Don't bother to include <wchar.h> before
91151         <wctype.h>, since the new wctype module should fix this.
91152         * lib/quotearg.c: Include <wctype.h> unconditionally, since
91153         the wctype module should arrange for it.
91154         * lib/regex_internal.h: Likewise.
91155         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
91156         since the wctype module should handle this now.
91157         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
91158         * modules/fnmatch (Depends-on): Add wctype.
91159         * modules/quotearg (Depends-on): Likewise.
91160         * modules/regex (Depends-on): Likewise.
91162 2006-12-19  Bruno Haible  <bruno@clisp.org>
91164         * lib/strdup.h [C++]: Wrap definitions in extern "C".
91165         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
91167 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91169         * modules/savewd (Depends-on): Fix dependency on fcntl.
91171 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
91173         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
91174         conforms to C99, rather than relying on the user's environment
91175         setting of STDINT_H.
91177 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
91178         and Eric Blake  <ebb9@byu.net>
91180         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
91181         This is more consistent with the other defines here.
91182         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
91183         Port to z/OS.  Problem reported by Paul Gilmartin.
91184         Change local vars to use gl_ prefix rather than ac_.
91185         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
91186         with other defines.
91187         * modules/double-slash-root: New module.
91188         * modules/dirname (Files): Remove m4/double-slash-root.m4.
91189         (Depends-on): Add double-slash-root.
91190         * MODULES.html.sh (File system functions): Mention new module.
91192 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
91194         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
91195         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
91196         This is for the benefit of gzip, which doesn't do i18n.
91198 2006-12-12  Jim Meyering  <jim@meyering.net>
91200         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
91201         Reported by Andreas Schwab <schwab@suse.de>.
91203 2006-12-12  Bruno Haible  <bruno@clisp.org>
91205         Merge these changes.
91206         2006-09-05  Bruno Haible  <bruno@clisp.org>
91207         * lib/iconvme.c (iconv_string): No need to save and restore errno when
91208         iconv_alloc succeeded.
91209         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
91210         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
91211         test for " && dest " at the end - dest is always != NULL there. Call
91212         iconv with 4xNULL arguments initially, to reset the state. Call iconv
91213         with 2xNULL arguments, also to flush the state storage. Handle the
91214         IRIX iconv behaviour. Realloc the final result, to throw away unused
91215         memory.
91217 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
91219         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
91220         and fchmodat unconditionally, since glibc 2.4 has them.
91221         Problem reported by Arkadiusz Miskiewicz.
91223 2006-12-10  Bruno Haible  <bruno@clisp.org>
91225         * gnulib-tool (func_import): Show the include files only for those
91226         modules that are copied and specified.
91227         Reported by Karl Berry.
91229 2006-12-08  Jim Meyering  <jim@meyering.net>
91231         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
91232         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
91234         * build-aux/announce-gen: Add two new options, both optional:
91235         --bootstrap-tools=TOOL_LIST
91236               a comma-separated list of tools, e.g.,
91237               autoconf,automake,bison,gnulib
91238         --gnulib-snapshot-date=DATE
91239               if gnulib is in the bootstrap tool list,
91240               then report this as the snapshot date.
91241               If not specified, use the current date/time.
91242               If you specify a date here, be sure it's UTC.
91244 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91246         * tests/test-argp-2.sh: Fix test to match actual output.
91247         (func_compare): Fix sed script to be portable.
91249 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
91251         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
91252         workaround for this case.  It is not autoconfigured now; offhand
91253         it's hard to see how to autoconfigure it.
91255 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
91257         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
91258         a directory that is about to be chowned.  Such a directory's
91259         initial file permissions should permit the owner only and this
91260         should not be changed until after the chown, since the group and
91261         other bits would be incorrect if they granted permission before
91262         the chown.
91264         Fix porting problem for iswctype reported by Georg Schwarz in:
91265         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
91266         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
91267         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
91268         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
91269         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
91271 2006-12-03  Jim Meyering  <jim@meyering.net>
91273         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
91274         p->fts_statp may not yet be defined.
91275         (fts_read): Instead, set it in the caller, once p->fts_statp is
91276         sure to be defined, and corresponds to a top-level directory.
91277         This bug made du -x fail.  Here's the coreutils test case:
91278         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
91279         Reported by Mike Frysinger.
91281 2006-12-01  Jim Meyering  <jim@meyering.net>
91283         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
91284         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
91285         Reported by Simon Josefsson.
91287 2006-11-30  Jim Meyering  <jim@meyering.net>
91289         * m4/warning.m4: Use the all-permissive copyright notice
91290         recommended by RMS (rather than LGPL).
91291         * m4/vararrays.m4: Likewise.
91292         * m4/flexmember.m4: Likewise.
91294 2006-11-29  Bruno Haible  <bruno@clisp.org>
91296         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
91297         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
91298         using +=.
91299         Reported by Simon Josefsson <simon@josefsson.org>.
91301 2006-11-28  James Youngman  <jay@gnu.org>
91303         * README: Advise users that they might find the bug-gnulib@gnu.org
91304         and autotools-announce@gnu.org mailing lists useful.
91306 2006-11-28  Bruno Haible  <bruno@clisp.org>
91308         * m4/ptrdiff_max.m4: Remove file.
91310 2006-11-21  Bruno Haible  <bruno@clisp.org>
91312         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
91313         _AC_COMPUTE_INT.
91314         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
91315         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
91316         _AC_COMPUTE_INT.
91317         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
91318         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
91319         _AC_COMPUTE_INT.
91320         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
91322 2006-11-28  Jim Meyering  <jim@meyering.net>
91324         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
91325         warning from "gcc -Wshadow" about shadowing the builtin.
91327 2006-11-27  Bruno Haible  <bruno@clisp.org>
91329         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
91330         _AC_COMPUTE_INT.
91331         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
91333 2006-11-27  Bruno Haible  <bruno@clisp.org>
91334             Paul Eggert  <eggert@cs.ucla.edu>
91336         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
91338 2006-11-26  Bruno Haible  <bruno@clisp.org>
91340         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
91341         noinst_LTLIBRARIES.
91343 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
91344             Bruno Haible  <bruno@clisp.org>
91346         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
91347         if compiling with "gcc -ansi".
91349 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
91351         Fix some incompatibilities with gcc -ansi -pedantic.
91352         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
91353         if compiling pedantically with GCC, unless it's C99 or later.
91354         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
91355         it mishandles gcc -ansi -pedantic as well.
91356         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
91357         if gcc -pedantic.
91358         * lib/regexec.c (check_node_accept_bytes): Don't use auto
91359         initializers for struct if -pedantic, unless it's C99 or later.
91361 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
91363         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
91364         Don't close an fd more than once. Identical atimes indicate
91365         success, not failure.
91367 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
91369         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
91371 2006-11-23  Jim Meyering  <jim@meyering.net>
91373         * build-aux/announce-gen: New file.  From coreutils.
91375 2006-11-22  Jim Meyering  <jim@meyering.net>
91377         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
91378         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
91379         (fts_read): Use a temporary to narrow the overused st_size member
91380         before using it in a switch statement.  Reported by Matthew Woehlke.
91382         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
91383         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
91385 2006-11-20  Bruno Haible  <bruno@clisp.org>
91387         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
91388         changequote instead of pairs of brackets.
91389         Reported by Andreas Schwab <schwab@suse.de>.
91391 2006-11-21  Jim Meyering  <jim@meyering.net>
91393         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
91394         so as to remain compatible with older compilers.
91395         Patch from Michael Deutschmann.
91397 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
91399         * MODULES.html.sh (File system functions): Add openat.
91401         * lib/openat.h (rpl_fstatat): New macro, if
91402         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
91403         (fstatat): Define to rpl_fstatat under the same conditions,
91404         unless COMPILING_FSTATAT.
91405         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
91406         seems to have the bug.
91407         * lib/fstatat.c: New file.
91408         * modules/openat (Files): Add it.
91410 2006-11-20  Bruno Haible  <bruno@clisp.org>
91412         * Makefile: New file.
91414 2006-11-20  Jim Meyering  <jim@meyering.net>
91416         The beginnings of syntax-related checks for gnulib.
91417         * lib/Makefile: New file.
91418         * lib/t-idcache: New script.  Ensure that the two halves of
91419         idcache.c stay in sync.
91421         * lib/idcache.c: Adjust comments in user- and group- portions to
91422         be more accurate, and to be consistent with one another.
91424 2006-11-20  Jim Meyering  <jim@meyering.net>
91426         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
91427         continue using the flexible array member (thus, this module performs
91428         half as many malloc calls), with the addition that...
91429         (getgroup, getuser): Consistently record a non-match via an empty
91430         "name" string, and map an empty string match to a NULL return value.
91431         * modules/idcache (Depends-on): Re-add flexmember.
91433         * lib/idcache.c (getuser): Remove all uses of the register keyword.
91434         (getuidbyname, getgroup, getgidbyname): Likewise.
91436         Use cleaner syntax: NULL rather than 0.
91437         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
91439 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
91441         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
91442         It mishandled the case where the group was missing.
91443         Problem reported by Greg Schafer.
91444         * modules/idcache: Likewise.
91446 2006-11-18  Jim Meyering  <jim@meyering.net>
91448         * check-module (%exempt_header): Add exception for some
91449         conditionally-included headers.
91451         * modules/i-ring (Depends-on): Add verify.
91452         (License): Change to LGPL.
91454 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
91456         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
91457         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
91458         and inttostr.h.  Use snprintf rather than uinttostr, so that
91459         LGPLed code doesn't depend on GPLed.
91461 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
91463         * modules/inline (License): Change from GPL to LGPL.
91465 2006-11-17  Jim Meyering  <jim@meyering.net>
91467         * modules/d-type (License): Switch to LGPL.
91469 2006-11-15  Bruno Haible  <bruno@clisp.org>
91471         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
91473 2006-11-15  Eric Blake  <ebb9@byu.net>
91475         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
91476         the module dependency.
91478 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91479             Bruno Haible  <bruno@clisp.org>
91481         * gnulib-tool (func_create_testdir): Add license consistency check.
91483 2006-11-15  Eric Blake  <ebb9@byu.net>
91485         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
91486         random "(cached)" in configure output.
91488 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91490         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
91491         test for conforming inttypes.h is both announced and cached.
91493         * MODULES.html.sh (seen_modules, seen_files): New variables.
91494         (func_module): Rewrite to use a few less gnulib-tool and sed
91495         invocations.  Avoid a couple of quadratic algorithms for ...
91496         (missed_modules, missed_files): ... these, with ...
91497         (func_append, func_tmpdir): ... these new functions, from
91498         gnulib-tool.  Analogously, install traps for cleanup.
91500         * tests/test-gc.c (main): Remove unused variables.
91501         * tests/test-read-file.c: Include stdlib.h, for 'free'.
91503 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
91505         * modules/inttostr (License): Change to LGPL.
91507 2006-11-14  Eric Blake  <ebb9@byu.net>
91509         * modules/tempname (License): Change to LGPL.
91511 2006-11-14  Eric Blake  <ebb9@byu.net>
91513         * doc/functions.texi (Function Portability): *printf functions on
91514         Cygwin now understand all POSIX size specifiers.
91516 2006-11-14  Bruno Haible  <bruno@clisp.org>
91518         * modules/c-ctype (License): Change to LGPL.
91520 2006-11-12  Bruno Haible  <bruno@clisp.org>
91522         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
91523         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
91524         for GNOME libraries, for which the include files are installed in
91525         subdirectories of $prefix/include.
91527 2006-11-12  Bruno Haible  <bruno@clisp.org>
91529         * m4/lib-link.m4: Require at least autoconf-2.54.
91530         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
91531         name to underscores for the --with option.
91533 2006-11-13  Bruno Haible  <bruno@clisp.org>
91535         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
91536         the tests directory.
91537         Reported by Ralf Wildenhues.
91539 2006-11-13  Bruno Haible  <bruno@clisp.org>
91541         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
91542         (func_emit_initmacro_end): Undo the override here.
91543         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
91544         Works around the famous automake error in coreutils.
91546 2006-11-13  Eric Blake  <ebb9@byu.net>
91548         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
91549         element, not its node.
91551 2006-11-12  Bruno Haible  <bruno@clisp.org>
91553         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
91554         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
91556 2006-11-12  Bruno Haible  <bruno@clisp.org>
91558         * gnulib-tool: New option --local-symlink.
91559         (func_usage): Document it.
91560         (lsymbolic): New variable.
91561         (func_import, func_create_testdir): If --symlink was not specified,
91562         test whether --local-symlink was specified and the file comes from
91563         the local_gnulib_dir.
91565 2006-11-12  Bruno Haible  <bruno@clisp.org>
91567         * gnulib-tool (func_ln): New function.
91568         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
91570 2006-11-12  Bruno Haible  <bruno@clisp.org>
91572         Finish support for source files in subdirectories.
91573         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
91574         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
91575         AUTOMAKE_OPTIONS.
91576         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
91578 2006-11-12  Bruno Haible  <bruno@clisp.org>
91580         * gnulib-tool (func_get_automake_snippet): Synthesize also an
91581         EXTRA_lib_SOURCES augmentation.
91582         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
91584 2006-11-12  Jim Meyering  <jim@meyering.net>
91586         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
91587         file descriptors.  This also averts a failure on systems with
91588         native openat support when a traversed directory lacks "x" access.
91589         * lib/fts_.h: Include "i-ring.h"
91590         (struct FTS) [fts_fd_ring]: New member.
91591         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
91592         (FCHDIR): Add parentheses.
91593         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
91594         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
91595         When descending, rather than simply closing the previous
91596         fts_cwd_fd value, push that file descriptor onto the ring.
91597         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
91598         (fts_open): Initialize the new fd_ring member.
91599         (fts_close): Clear the ring.
91600         (fts_safe_changedir): When possible, use our new fd_ring to skip
91601         the diropen and fstat and dev/ino comparison that would normally
91602         accompany a virtual `chdir ("..")'.
91604         * modules/fts (Depends-on): Add i-ring.
91605         * modules/i-ring: New module.
91606         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
91607         * m4/i-ring.m4: New file.
91609 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91611         * gnulib-tool (func_create_testdir): Fix replacement of
91612         `build-aux' in configure.ac.  Run autotools in gltests
91613         subdirectory.
91614         (func_create_testdir, func_create_megatestdir, test): There is
91615         no need for '--force' in most autotool invocations in a new
91616         tree.  Actually fail the whole test if any of the tools, or the
91617         configure or make stages fail.
91619         Sync from Automake.
91620         * build-aux/gnupload: Revert last change.  Add pointer to upload
91621         instructions of the GNU Maintenance Instructions.
91622         Suggestion by Karl Berry.
91624 2006-11-10  Jim Meyering  <jim@meyering.net>
91626         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
91628 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
91630         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
91631         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
91632         (bind_textdomain_codeset) [! ENABLE_NLS]:
91633         Evaluate all the arguments.  That way, callers get compatible behavior
91634         if the arguments have side effects.  Also, it avoids some GCC
91635         diagnostics in some cases; Joel E. Denny reported problems when Bison
91636         was configured with --enable-gcc-warnigs.
91638 2006-11-10  Jim Meyering  <jim@meyering.net>
91640         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
91641         relevant options in CFLAGS (like -O, -fno-inline) are taken into
91642         account.
91644 2006-11-10  Jim Meyering  <jim@meyering.net>
91646         * modules/inline: New file/module.
91647         * modules/xalloc (Files): Remove m4/inline.m4.
91648         (Depends-on): Add inline, instead.
91649         * modules/oset: Likewise.
91650         * modules/list: Likewise.
91652 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
91654         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
91655         Problem reported by Matthew Woehlke.
91657 2006-11-09  Bruno Haible  <bruno@clisp.org>
91659         * lib/tempname.c (gen_tempname): Remove variant that invokes
91660         __gen_tempname.
91661         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
91662         __gen_tempname.
91664 2006-11-08  Bruno Haible  <bruno@clisp.org>
91666         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
91667         to 'yes' instead of 'cross-compiling'.
91669 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
91671         * lib/quotearg.h (quotearg_free): New decl.
91672         * lib/quotearg.c (quotearg_free): New function.
91673         (slot0, nslots, slotvec0, slotvec):
91674         Now file-scope so that quotearg_free can get at them.
91676 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91678         Sync from Automake.
91679         * build-aux/gnupload: Add missing 'gnu' to example URL.
91680         Report by Karl Berry.
91682 2006-11-08  Bruno Haible  <bruno@clisp.org>
91684         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
91685         Suggested by Paul Eggert.
91687 2006-11-08  Jim Meyering  <jim@meyering.net>
91689         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
91690         It's already included if !_LIBC.
91691         (fts_safe_changedir): Add a comment.
91693 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
91695         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
91696         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
91697         Matthew Woehlke.
91699         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
91700         definitions up, to avoid colliding with change below.
91701         (static_inline) [HAVE_INLINE]: New macro.
91702         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
91703         Provide extern decls when !HAVE_INLINE.  Do not define unless
91704         static_inline is defined, either by us or by xmalloc.c.  Use
91705         static_inline rather than static inline.
91706         (XCALLOC): Optimize sizeof(T) = 1 case.
91707         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
91709 2006-11-07  Bruno Haible  <bruno@clisp.org>
91711         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
91712         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
91713         AC_C_INLINE.
91714         * modules/xalloc (Files): Add m4/inline.m4.
91716 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91718         * README: Fix typo.
91719         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
91720         (Miscellanous Notes): ...from this.
91722 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
91724         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
91725         Mention that offsetof should be used instead of sizeof.
91726         From Bruno Haible.
91728 2006-11-07  Bruno Haible  <bruno@clisp.org>
91730         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
91732 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
91734         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
91735         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
91736         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
91737         (gl_tree_add_before, gl_tree_add_after):
91738         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
91739         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
91740         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
91741         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
91742         (gl_linked_add_after, gl_linked_add_at): Likewise.
91743         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
91744         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
91745         (gl_tree_add_before, gl_tree_add_after): Likewise.
91746         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
91747         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
91748         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
91750 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91752         * lib/gl_oset.h: Use C comment style, not C++ comment style.
91754 2006-11-06  Bruno Haible  <bruno@clisp.org>
91756         * m4/inline.m4: New file.
91757         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
91758         * modules/list (Files): Add m4/inline.m4.
91759         * modules/oset (Files): Likewise.
91761 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
91763         * lib/idcache.c: Include <stddef.h>, for offsetof.
91764         (struct userid.name): Change from char * to a flexible array member.
91765         All uses changed.
91766         * modules/idcache (Depends-on): Add flexmember.
91768         * MODULES.html.sh (Core language properties): New module flexmember.
91769         * modules/flexmember, m4/flexmember.m4: New files.
91771         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
91772         inline functions that are identical with the old xnmalloc_inline,
91773         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
91774         that we can avoid some unnecessary integer multiplications and
91775         divisions in the common case where the element size is known at
91776         compile time.
91777         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
91778         needed.
91779         (xnboundedmalloc): Remove.
91780         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
91781         arguments, for consistency with rest of this header.
91782         (xcharalloc): Rewrite using XNMALLOC.
91783         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
91784         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
91785         versions have been moved to lib/xalloc.h and renamed to be the
91786         non-*_inline versions.
91787         (xmalloc, xrealloc): Implement without reference to the xnmalloc
91788         and xnrealloc functions, since those functions are now inline and
91789         now call us.
91790         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
91791         renaming described above.
91792         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
91793         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
91794         captures the dependency in AC_C_INLINE.
91796         New module canonicalize-lgpl, proposed by Charles Wilson in
91797         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
91798         with a few small changes afterwards.
91799         * MODULES.html.sh (File system functions): New module
91800         canonicalize-lgpl.
91801         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
91802         and canonicalize_file_name.
91803         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
91804         * modules/canonicalize-lgpl: New files.
91806 2006-11-05  Bruno Haible  <bruno@clisp.org>
91808         * gnulib-tool (func_import, func_create_testdir): Create directories
91809         also for files in subdirectories of lib/.
91811 2006-11-05  Bruno Haible  <bruno@clisp.org>
91813         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
91814         ANSI C compliant.
91816 2006-11-03  Bruno Haible  <bruno@clisp.org>
91818         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
91819         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
91820         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
91821         (xnboundedmalloc): New inline function.
91822         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
91823         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
91824         xmalloc.
91825         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
91826         xmalloc.
91827         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
91828         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
91829         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
91830         xmalloc.
91831         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
91832         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
91833         xmalloc.
91834         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
91835         gl_tree_add_after): Use XMALLOC instead of xmalloc.
91836         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
91837         xmalloc.
91838         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
91839         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
91840         gl_tree_add_after): Use XMALLOC instead of xmalloc.
91841         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
91842         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
91843         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
91844         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
91846 2006-11-03  Bruno Haible  <bruno@clisp.org>
91848         * lib/c-ctype.h [C++]: Define functions without name mangling.
91849         * lib/fwriteerror.h [C++]: Likewise.
91850         * lib/gcd.h [C++]: Likewise.
91851         * lib/linebreak.h [C++]: Likewise.
91853 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
91855         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
91856         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
91857         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
91858         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
91859         Check for functions and headers just once.
91860         Check for declaration of canonicalize_file_name.
91861         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
91863 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
91865         * gnulib-tool (func_import): Fix typo in actioncmd.
91867 2006-11-02  Bruno Haible  <bruno@clisp.org>
91869         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
91870         newline sequence in the Makefile.am snippet as a space, like "make"
91871         does.
91872         Reported by Roger Persson <perrog@gmail.com>.
91874 2006-11-01  Bruno Haible  <bruno@clisp.org>
91876         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
91877         already declared in <string.h>.
91878         * lib/strcase.h (strncasecmp): Don't declare it if yes.
91880 2006-11-01  Bruno Haible  <bruno@clisp.org>
91882         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
91883         * lib/strcase.h: Include <string.h>.
91884         (strcasecmp): Define to rpl_strcasecmp here.
91886 2006-11-01  Bruno Haible  <bruno@clisp.org>
91888         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
91890 2006-11-01  Eric Blake  <ebb9@byu.net>
91892         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
91894         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
91896 2006-10-29  Bruno Haible  <bruno@clisp.org>
91898         Make it compile in C++ mode.
91899         * lib/full-write.c (full_rw): Add a cast.
91901 2006-11-01  Bruno Haible  <bruno@clisp.org>
91903         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
91904         be POSIX compliant.
91905         Reported by Roger Persson <perrog@gmail.com>.
91907 2006-11-01  Eric Blake  <ebb9@byu.net>
91909         * lib/getopt_.h: Fix comments.
91911 2006-10-31  Eric Blake  <ebb9@byu.net>
91913         * modules/tmpdir (Depends-on): Add sys_stat.
91914         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
91915         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
91916         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
91917         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
91918         tempname.
91920 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
91922         Avoid some C++ diagnostics reported by Bruno Haible.
91923         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
91924         xmalloc.
91925         (quotearg_alloc): Use xcharalloc rather than xmalloc.
91926         (struct slotvec): Move to top level.
91927         (quotearg_n_options): Rewrite to avoid xmalloc.
91928         * lib/xalloc.h (xcharalloc): New function.
91929         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
91930         [defined __cplusplus]: Add function template that provides result
91931         type propagation.  This part of the change is from Bruno Haible.
91933 2006-10-29  Bruno Haible  <bruno@clisp.org>
91935         Make it compile in C++ mode.
91936         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
91937         * lib/strnlen1.c (strnlen1): Cast memchr result.
91938         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
91939         * lib/clean-temp.c (string_equals, string_hash): Add casts.
91940         (create_temp_dir): Rename local variable 'template'.
91941         (compile_csharp_using_sscli): Add cast.
91942         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
91943         * lib/findprog.c (find_in_path): Likewise.
91944         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
91945         * lib/wait-process.c (register_slave_subprocess): Likewise.
91947 2006-10-22  Bruno Haible  <bruno@clisp.org>
91949         * modules/tsearch: New file.
91950         * lib/tsearch.h: New file.
91951         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
91952         * m4/tsearch.m4: New file.
91953         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
91955 2006-10-29  Eric Blake  <ebb9@byu.net>
91957         * lib/arcfour.c: Assume config.h.
91958         * lib/arctwo.c: Likewise.
91959         * lib/base64.c: Likewise.
91960         * lib/check-version.c: Likewise.
91961         * lib/crc.c: Likewise.
91962         * lib/des.c: Likewise.
91963         * lib/gc-gnulib.c: Likewise.
91964         * lib/gc-libgcrypt.c: Likewise.
91965         * lib/gc-pbkdf2-sha1.c: Likewise.
91966         * lib/getaddrinfo.c: Likewise.
91967         * lib/getdelim.c: Likewise.
91968         * lib/getline.c: Likewise.
91969         * lib/hmac-md5.c: Likewise.
91970         * lib/hmac-sha1.c: Likewise.
91971         * lib/iconvme.c: Likewise.
91972         * lib/md2.c: Likewise.
91973         * lib/md4.c: Likewise.
91974         * lib/memxor.c: Likewise.
91975         * lib/read-file.c: Likewise.
91976         * lib/readline.c: Likewise.
91977         * lib/rijndael-alg-fst.c: Likewise.
91978         * lib/rijndael-api-fst.c: Likewise.
91979         * lib/xgetdomainname.c: Likewise.
91981 2006-10-28  Eric Blake  <ebb9@byu.net>
91983         * lib/xstrndup.c: Assume config.h.
91985 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
91987         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
91988         stat-macros.h is now for our own macros, whereas stat_h is for
91989         macros in the <sys/stat.h> name space.
91990         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
91991         (STAT_MACROS_H): Remove.
91992         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
91993         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
91994         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
91995         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
91996         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
91997         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
91998         Move these macros to ...
91999         * lib/stat_.h: here.  Don't include stat-macros.h.
92000         * lib/canonicalize.c: Don't include stat-macros.h.
92001         * lib/chown.c: Likewise.
92002         * lib/euidaccess.c: Likewise.
92003         * lib/file-type.c: Likewise.
92004         * lib/filemode.c: Likewise.
92005         * lib/glob.c: Likewise.
92006         * lib/isapipe.c: Likewise.
92007         * lib/lchown.c: Likewise.
92008         * lib/lstat.c: Likewise.
92009         * lib/mkdir-p.c: Likewise.
92010         * lib/rmdir.c: Likewise.
92011         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
92012         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
92013         unless mkdir isn't declared, to speed up 'configure'.
92014         Always create sys/stat.h, since it's unlikely any real sys/stat.h
92015         would define all the S_* symbols.
92016         * modules/canonicalize (Depends-on):
92017         Depend on sys_stat, not stat-macros.
92018         * modules/chown: Likewise.
92019         * modules/euidaccess: Likewise.
92020         * modules/filemode: Likewise.
92021         * modules/file-type: Likewise.
92022         * modules/glob: Likewise.
92023         * modules/isapipe: Likewise.
92024         * modules/lchown: Likewise.
92025         * modules/lstat: Likewise.
92026         * modules/mkancesdirs: Likewise.
92027         * modules/rmdir: Likewise.
92028         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
92029         * modules/modechange: Likewise.
92030         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
92031         (configure.ac): Remove gl_STAT_MACROS.
92032         * modules/sys_stat (Depends-on): Remove stat-macros.
92034 2006-10-27  Bruno Haible  <bruno@clisp.org>
92036         * m4/signed.m4: Remove file.
92037         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
92038         invocation.
92039         * modules/vasnprintf (Files): Remove m4/signed.m4.
92041 2006-10-27  Bruno Haible  <bruno@clisp.org>
92043         Update to GNU gettext 0.16.
92044         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
92045         m4/inttypes-h.m4, m4/signed.m4.
92046         * m4/gettext.m4: Update to GNU gettext 0.16.
92047         * m4/intl.m4: New file, from GNU gettext.
92048         * m4/intldir.m4: New file, from GNU gettext.
92049         * config/srclist.txt: Update
92051 2006-10-27  Eric Blake  <ebb9@byu.net>
92053         * MODULES.html.sh: Document tempname.
92054         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
92055         dependencies.
92056         (Files): Move lib/tempname.c...
92057         * modules/tempname: ...to this new module.
92058         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
92059         (gl_PREREQ_TEMPNAME): Move...
92060         * m4/tempname.m4: ...to this new file.
92061         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
92062         * modules/sys_stat (Depends-on): Add stat-macros.
92063         * lib/stat_.h (includes): Pick up stat macros.
92064         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
92065         if stat macros are broken.
92066         * lib/tempname.c (includes): No need to include "stat-macros.h".
92067         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
92068         (direxists, __path_search) [!_LIBC]: Don't compile these in
92069         gnulib; the tmpdir module covers that.
92070         * lib/tempname.h: New file.
92072 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
92074         * COPYING: Explain how gnulib-tool converts licence headers.
92075         Almost all wording by Eric Blake.
92077 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
92079         * lib/mbchar.h (is_basic_table): Make read-only.
92080         * lib/mbchar.c (is_basic_table): Likewise.
92081         Reported by John Darrington.
92083 2006-10-25  Bruno Haible  <bruno@clisp.org>
92085         * lib/progname.h (set_program_name): Undefine before defining.
92087 2006-10-25  Bruno Haible  <bruno@clisp.org>
92089         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
92090         false for non-gcc C++ compilers.
92091         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
92093 2006-10-24  Bruno Haible  <bruno@clisp.org>
92095         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
92096         iconv implementations like Irix iconv.
92098 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
92100         * modules/vararrays: New file.
92101         * m4/vararrays.m4: New file, taken from diffutils.
92102         * MODULES.html.sh: New module vararrays.
92104 2006-10-24  Karl Berry  <karl@gnu.org>
92106         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
92107         Don't call GNU Unix.
92109 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92111         * users.txt: Add Libtool.
92113         Sync from Libtool:
92115         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
92117         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
92118         to gnulib's policy of including config.h unconditionally.
92120 2006-10-24  Bruno Haible  <bruno@clisp.org>
92122         * modules/wcwidth (Files): Add m4/wint_t.m4.
92123         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
92124         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
92126 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
92128         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
92129         to pacify GCC with some -W flags enabled.  Problem reported by
92130         Bruno Haible.
92132 2006-10-24  Jim Meyering  <jim@meyering.net>
92134         * MODULES.html.sh: Remove uinttostr.  It's not a module.
92135         Reported by Karl Berry.
92137 2006-10-23  Bruno Haible  <bruno@clisp.org>
92139         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
92141 2006-10-24  Bruno Haible  <bruno@clisp.org>
92143         * lib/gl_list.h: Use C comment style, not C++ comment style.
92145 2006-10-23  Eric Blake  <ebb9@byu.net>
92147         * lib/getaddrinfo.c (includes): Add missing include.
92149 2006-10-23  Bruno Haible  <bruno@clisp.org>
92150             Paul Eggert  <eggert@cs.ucla.edu>
92152         Ability to rename obstack_free.
92153         * lib/obstack.h (__obstack_free): New macro. Declare instead of
92154         obstack_free.
92155         (obstack_free): Invoke the __obstack_free macro.
92156         * lib/obstack.c (obstack_free): Use __obstack_free macro.
92158 2006-10-23  Bruno Haible  <bruno@clisp.org>
92159             Paul Eggert  <eggert@cs.ucla.edu>
92161         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
92162         __argc, __argv from the declaration. (They are defined as macros on
92163         mingw.)
92165 2006-10-22  Bruno Haible  <bruno@clisp.org>
92167         * doc/gnulib-intro.texi: New file.
92168         * doc/gnulib.texi: Include it.
92170 2006-10-21  Bruno Haible  <bruno@clisp.org>
92172         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
92173         "Introduction", "Miscellanous Notes", "Particular Modules".
92175 2006-10-21  Bruno Haible  <bruno@clisp.org>
92177         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
92178         Change mostlyclean-local rule to avoid sh syntax error from bash
92179         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
92181 2006-10-23  Jim Meyering  <jim@meyering.net>
92183         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
92184         in place of snprintf.
92186         * modules/inttostr (Files): Add lib/uinttostr.c.
92187         * lib/uinttostr.c (inttostr): New file/function.
92188         * lib/inttostr.h (uinttostr): Declare.
92189         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
92190         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
92191         Add uinttostr.
92192         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
92194 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
92196         * lib/canonicalize.c (ELOOP): Define if not already defined.
92197         Problem reported by Bruno Haible in
92198         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
92200 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
92202         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
92203         Problem reported by Perry Smith and Ville Laurikari.
92205         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
92206         uses.
92208 2006-10-19  Bruno Haible  <bruno@clisp.org>
92210         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
92211         for mingw.
92213 2006-10-19  Bruno Haible  <bruno@clisp.org>
92215         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
92216         Needed for mingw.
92218 2006-10-19  Bruno Haible  <bruno@clisp.org>
92220         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
92222 2006-10-19  Bruno Haible  <bruno@clisp.org>
92224         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
92225         it.
92227 2006-10-19  Bruno Haible  <bruno@clisp.org>
92229         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
92230         invocation.
92232 2006-10-19  Bruno Haible  <bruno@clisp.org>
92234         * gnulib-tool (func_create_testdir): Don't include ftruncate and
92235         mountlist by default.
92237 2006-10-16  Bruno Haible  <bruno@clisp.org>
92239         * lib/c-strstr.c: Include c-strstr.h.
92241 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
92243         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
92244         in a slash.
92246 2006-10-18  Bruno Haible  <bruno@clisp.org>
92248         * lib/lock.h [C++]: Wrap definitions in extern "C".
92250 2006-10-18  Bruno Haible  <bruno@clisp.org>
92252         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
92253         gl_LIBOBJS list.
92255 2006-10-18  Bruno Haible  <bruno@clisp.org>
92257         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
92259 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
92261         * lib/xstrtol.h: Include gettext.h.
92262         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
92263         Problem reported by Eric Blake.
92264         * modules/xstrtol (Depends-on): Add gettext-h.
92266 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
92268         * lib/strftime.c (advance): New macro.
92269         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
92270         incomplete type, so you can't add 0 to it.  Problem and patch
92271         reported by Eelco Dolstra for dietlibc.
92273 2006-10-18  Jim Meyering  <jim@meyering.net>
92275         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
92276         type for a local, and rename it: s/up/user_proc/.
92278 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
92280         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
92281         READ_UTMP_USER_PROCESS.
92282         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
92284 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
92286         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
92287         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
92289 2006-10-17  Eric Blake  <ebb9@byu.net>
92291         * lib/sigprocmask.c (sigprocmask): Fix typo.
92293         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
92295         * modules/clean-temp (Makefile.am): Don't add to make output...
92296         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
92297         config.h.
92299 2006-10-17  Bruno Haible  <bruno@clisp.org>
92301         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
92302         differently if DEFAULT_TEXT_DOMAIN is set.
92304 2006-10-16  Bruno Haible  <bruno@clisp.org>
92306         * lib/clean-temp.c: Include fwriteerror.h.
92308 2006-10-16  Bruno Haible  <bruno@clisp.org>
92310         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
92312 2006-10-16  Bruno Haible  <bruno@clisp.org>
92314         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
92315         * lib/sigprocmask.h: Include <sys/types.h>.
92316         (sigset_t): Use the system's definition if present.
92318 2006-10-17  Eric Blake  <ebb9@byu.net>
92320         * lib/xvasprintf.c (includes): Assume config.h.
92321         * lib/xasprintf.c (includes): Likewise.
92323 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
92325         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
92326         at least as wide as intmax_t.
92328 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
92330         (Imported from Automake.)
92331         * build-aux/gnupload: Update to version 1.1 of directive file.
92333 2006-10-16  Eric Blake  <ebb9@byu.net>
92335         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
92336         match Automake 1.10a.
92338 2006-10-14  Bruno Haible  <bruno@clisp.org>
92340         * modules/sigprocmask: New file.
92341         * lib/sigprocmask.h: New file.
92342         * lib/sigprocmask.c: New file.
92343         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
92344         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
92345         request sigprocmask.o.
92346         (gl_PREREQ_SIGPROCMASK): New macro.
92347         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
92348         (Depends-on): Add sigprocmask.
92349         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
92350         gt_SIGNALBLOCKING. Test for 'raise' only once.
92351         * lib/fatal-signal.c: Include sigprocmask.h.
92352         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
92353         unblock_fatal_signals): Define always.
92354         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
92355         sigprocmask.
92357 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
92359         Sync from Automake.
92360         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
92361         which incorrectly sets the mode of an existing destination
92362         directory.  In some cases the unpatched install-sh could do the
92363         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
92364         system.  We hope this is rare in practice, but it's clearly worth
92365         fixing.  Problem reported by Alex Unleashed in
92366         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
92367         Also, don't bother to check for -m bugs unless we're using -m;
92368         suggested by Stepan Kasal.
92370 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92372         Sync from Automake.
92373         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
92374         `-c' flag, so they appear at the same position as in %FASTDEP%
92375         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
92376         which ignores unknown options only after the first non-option.
92377         Bug report against M4 by Nelson H. F. Beebe.
92379 2006-10-13  Jim Meyering  <jim@meyering.net>
92381         Fix a bug in yesterday's change.
92382         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
92383         p->fts_statp->st_dev would be used uninitialized.
92384         Ensures that we always call fts_stat on the very first entry.
92385         Miklos Szeredi reported that find -xdev stopped working.
92387 2006-10-12  Bruno Haible  <bruno@clisp.org>
92389         * gnulib-tool (func_get_automake_snippet): Append an automatically
92390         computed EXTRA_DIST augmentation.
92391         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
92392         * modules/alloca-opt (Makefile.am): Likewise.
92393         * modules/allocsa (Makefile.am): Likewise.
92394         * modules/arcfour (Makefile.am): Likewise.
92395         * modules/arctwo (Makefile.am): Likewise.
92396         * modules/argmatch (Makefile.am): Likewise.
92397         * modules/argz (Makefile.am): Likewise.
92398         * modules/atexit (Makefile.am): Likewise.
92399         * modules/backupfile (Makefile.am): Likewise.
92400         * modules/byteswap (Makefile.am): Likewise.
92401         * modules/c-strtod (Makefile.am): Likewise.
92402         * modules/c-strtold (Makefile.am): Likewise.
92403         * modules/calloc (Makefile.am): Likewise.
92404         * modules/canon-host (Makefile.am): Likewise.
92405         * modules/canonicalize (Makefile.am): Likewise.
92406         * modules/chdir-long (Makefile.am): Likewise.
92407         * modules/chdir-safer (Makefile.am): Likewise.
92408         * modules/check-version (Makefile.am): Likewise.
92409         * modules/chown (Makefile.am): Likewise.
92410         * modules/cloexec (Makefile.am): Likewise.
92411         * modules/close-stream (Makefile.am): Likewise.
92412         * modules/closeout (Makefile.am): Likewise.
92413         * modules/crc (Makefile.am): Likewise.
92414         * modules/csharpexec (Makefile.am): Likewise.
92415         * modules/cycle-check (Makefile.am): Likewise.
92416         * modules/des (Makefile.am): Likewise.
92417         * modules/dev-ino (Makefile.am): Likewise.
92418         * modules/dirfd (Makefile.am): Likewise.
92419         * modules/dirname (Makefile.am): Likewise.
92420         * modules/dup2 (Makefile.am): Likewise.
92421         * modules/eealloc (Makefile.am): Likewise.
92422         * modules/error (Makefile.am): Likewise.
92423         * modules/euidaccess (Makefile.am): Likewise.
92424         * modules/exclude (Makefile.am): Likewise.
92425         * modules/exitfail (Makefile.am): Likewise.
92426         * modules/fcntl-safer (Makefile.am): Likewise.
92427         * modules/fcntl (Makefile.am): Likewise.
92428         * modules/file-type (Makefile.am): Likewise.
92429         * modules/fileblocks (Makefile.am): Likewise.
92430         * modules/filemode (Makefile.am): Likewise.
92431         * modules/filenamecat (Makefile.am): Likewise.
92432         * modules/fnmatch (Makefile.am): Likewise.
92433         * modules/fopen-safer (Makefile.am): Likewise.
92434         * modules/fpending (Makefile.am): Likewise.
92435         * modules/fprintftime (Makefile.am): Likewise.
92436         * modules/free (Makefile.am): Likewise.
92437         * modules/fsusage (Makefile.am): Likewise.
92438         * modules/ftruncate (Makefile.am): Likewise.
92439         * modules/fts (Makefile.am): Likewise.
92440         * modules/gc-arcfour (Makefile.am): Likewise.
92441         * modules/gc-des (Makefile.am): Likewise.
92442         * modules/gc-hmac-md5 (Makefile.am): Likewise.
92443         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
92444         * modules/gc-md4 (Makefile.am): Likewise.
92445         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
92446         * modules/gc-sha1 (Makefile.am): Likewise.
92447         * modules/gc (Makefile.am): Likewise.
92448         * modules/getaddrinfo (Makefile.am): Likewise.
92449         * modules/getcwd (Makefile.am): Likewise.
92450         * modules/getdelim (Makefile.am): Likewise.
92451         * modules/getdomainname (Makefile.am): Likewise.
92452         * modules/getgroups (Makefile.am): Likewise.
92453         * modules/gethostname (Makefile.am): Likewise.
92454         * modules/gethrxtime (Makefile.am): Likewise.
92455         * modules/getline (Makefile.am): Likewise.
92456         * modules/getloadavg (Makefile.am): Likewise.
92457         * modules/getlogin_r (Makefile.am): Likewise.
92458         * modules/getndelim2 (Makefile.am): Likewise.
92459         * modules/getopt (Makefile.am): Likewise.
92460         * modules/getpagesize (Makefile.am): Likewise.
92461         * modules/getpass-gnu (Makefile.am): Likewise.
92462         * modules/getpass (Makefile.am): Likewise.
92463         * modules/getsubopt (Makefile.am): Likewise.
92464         * modules/gettime (Makefile.am): Likewise.
92465         * modules/gettimeofday (Makefile.am): Likewise.
92466         * modules/getugroups (Makefile.am): Likewise.
92467         * modules/getusershell (Makefile.am): Likewise.
92468         * modules/glob (Makefile.am): Likewise.
92469         * modules/group-member (Makefile.am): Likewise.
92470         * modules/hard-locale (Makefile.am): Likewise.
92471         * modules/hash (Makefile.am): Likewise.
92472         * modules/hmac-md5 (Makefile.am): Likewise.
92473         * modules/hmac-sha1 (Makefile.am): Likewise.
92474         * modules/human (Makefile.am): Likewise.
92475         * modules/idcache (Makefile.am): Likewise.
92476         * modules/imaxabs (Makefile.am): Likewise.
92477         * modules/imaxdiv (Makefile.am): Likewise.
92478         * modules/inet_ntop (Makefile.am): Likewise.
92479         * modules/inet_pton (Makefile.am): Likewise.
92480         * modules/intprops (Makefile.am): Likewise.
92481         * modules/inttostr (Makefile.am): Likewise.
92482         * modules/inttypes (Makefile.am): Likewise.
92483         * modules/isapipe (Makefile.am): Likewise.
92484         * modules/javaversion (Makefile.am): Likewise.
92485         * modules/lchmod (Makefile.am): Likewise.
92486         * modules/lchown (Makefile.am): Likewise.
92487         * modules/localcharset (Makefile.am): Likewise.
92488         * modules/long-options (Makefile.am): Likewise.
92489         * modules/lstat (Makefile.am): Likewise.
92490         * modules/malloc (Makefile.am): Likewise.
92491         * modules/mathl (Makefile.am): Likewise.
92492         * modules/mbchar (Makefile.am): Likewise.
92493         * modules/md2 (Makefile.am): Likewise.
92494         * modules/md4 (Makefile.am): Likewise.
92495         * modules/md5 (Makefile.am): Likewise.
92496         * modules/memcasecmp (Makefile.am): Likewise.
92497         * modules/memchr (Makefile.am): Likewise.
92498         * modules/memcmp (Makefile.am): Likewise.
92499         * modules/memcoll (Makefile.am): Likewise.
92500         * modules/memcpy (Makefile.am): Likewise.
92501         * modules/memmem (Makefile.am): Likewise.
92502         * modules/memmove (Makefile.am): Likewise.
92503         * modules/mempcpy (Makefile.am): Likewise.
92504         * modules/memrchr (Makefile.am): Likewise.
92505         * modules/memset (Makefile.am): Likewise.
92506         * modules/memxor (Makefile.am): Likewise.
92507         * modules/mkancesdirs (Makefile.am): Likewise.
92508         * modules/mkdir-p (Makefile.am): Likewise.
92509         * modules/mkdir (Makefile.am): Likewise.
92510         * modules/mkdtemp (Makefile.am): Likewise.
92511         * modules/mkstemp (Makefile.am): Likewise.
92512         * modules/mktime (Makefile.am): Likewise.
92513         * modules/modechange (Makefile.am): Likewise.
92514         * modules/mountlist (Makefile.am): Likewise.
92515         * modules/nanosleep (Makefile.am): Likewise.
92516         * modules/obstack (Makefile.am): Likewise.
92517         * modules/openat (Makefile.am): Likewise.
92518         * modules/pagealign_alloc (Makefile.am): Likewise.
92519         * modules/pathmax (Makefile.am): Likewise.
92520         * modules/physmem (Makefile.am): Likewise.
92521         * modules/poll (Makefile.am): Likewise.
92522         * modules/posixtm (Makefile.am): Likewise.
92523         * modules/posixver (Makefile.am): Likewise.
92524         * modules/putenv (Makefile.am): Likewise.
92525         * modules/quote (Makefile.am): Likewise.
92526         * modules/quotearg (Makefile.am): Likewise.
92527         * modules/raise (Makefile.am): Likewise.
92528         * modules/read-file (Makefile.am): Likewise.
92529         * modules/readline (Makefile.am): Likewise.
92530         * modules/readlink (Makefile.am): Likewise.
92531         * modules/readtokens (Makefile.am): Likewise.
92532         * modules/readutmp (Makefile.am): Likewise.
92533         * modules/realloc (Makefile.am): Likewise.
92534         * modules/regex (Makefile.am): Likewise.
92535         * modules/rename-dest-slash (Makefile.am): Likewise.
92536         * modules/rename (Makefile.am): Likewise.
92537         * modules/rijndael (Makefile.am): Likewise.
92538         * modules/rmdir (Makefile.am): Likewise.
92539         * modules/rpmatch (Makefile.am): Likewise.
92540         * modules/safe-read (Makefile.am): Likewise.
92541         * modules/safe-write (Makefile.am): Likewise.
92542         * modules/same-inode (Makefile.am): Likewise.
92543         * modules/same (Makefile.am): Likewise.
92544         * modules/save-cwd (Makefile.am): Likewise.
92545         * modules/savedir (Makefile.am): Likewise.
92546         * modules/setenv (Makefile.am): Likewise.
92547         * modules/settime (Makefile.am): Likewise.
92548         * modules/sha1 (Makefile.am): Likewise.
92549         * modules/sig2str (Makefile.am): Likewise.
92550         * modules/snprintf (Makefile.am): Likewise.
92551         * modules/stat-macros (Makefile.am): Likewise.
92552         * modules/stat-time (Makefile.am): Likewise.
92553         * modules/stdbool (Makefile.am): Likewise.
92554         * modules/stdint (Makefile.am): Likewise.
92555         * modules/stdlib-safer (Makefile.am): Likewise.
92556         * modules/stpcpy (Makefile.am): Likewise.
92557         * modules/stpncpy (Makefile.am): Likewise.
92558         * modules/strcase (Makefile.am): Likewise.
92559         * modules/strcasestr (Makefile.am): Likewise.
92560         * modules/strchrnul (Makefile.am): Likewise.
92561         * modules/strcspn (Makefile.am): Likewise.
92562         * modules/strdup (Makefile.am): Likewise.
92563         * modules/strerror (Makefile.am): Likewise.
92564         * modules/strftime (Makefile.am): Likewise.
92565         * modules/strndup (Makefile.am): Likewise.
92566         * modules/strnlen (Makefile.am): Likewise.
92567         * modules/strpbrk (Makefile.am): Likewise.
92568         * modules/strsep (Makefile.am): Likewise.
92569         * modules/strstr (Makefile.am): Likewise.
92570         * modules/strtod (Makefile.am): Likewise.
92571         * modules/strtoimax (Makefile.am): Likewise.
92572         * modules/strtok_r (Makefile.am): Likewise.
92573         * modules/strtol (Makefile.am): Likewise.
92574         * modules/strtoll (Makefile.am): Likewise.
92575         * modules/strtoul (Makefile.am): Likewise.
92576         * modules/strtoull (Makefile.am): Likewise.
92577         * modules/strtoumax (Makefile.am): Likewise.
92578         * modules/strverscmp (Makefile.am): Likewise.
92579         * modules/sys_socket (Makefile.am): Likewise.
92580         * modules/sys_stat (Makefile.am): Likewise.
92581         * modules/sysexits (Makefile.am): Likewise.
92582         * modules/time_r (Makefile.am): Likewise.
92583         * modules/timegm (Makefile.am): Likewise.
92584         * modules/timespec (Makefile.am): Likewise.
92585         * modules/tmpfile-safer (Makefile.am): Likewise.
92586         * modules/trim (Makefile.am): Likewise.
92587         * modules/unistd-safer (Makefile.am): Likewise.
92588         * modules/unlinkdir (Makefile.am): Likewise.
92589         * modules/unlocked-io (Makefile.am): Likewise.
92590         * modules/userspec (Makefile.am): Likewise.
92591         * modules/utime (Makefile.am): Likewise.
92592         * modules/utimecmp (Makefile.am): Likewise.
92593         * modules/utimens (Makefile.am): Likewise.
92594         * modules/vasnprintf (Makefile.am): Likewise.
92595         * modules/vasprintf (Makefile.am): Likewise.
92596         * modules/vsnprintf (Makefile.am): Likewise.
92597         * modules/xalloc (Makefile.am): Likewise.
92598         * modules/xgetcwd (Makefile.am): Likewise.
92599         * modules/xnanosleep (Makefile.am): Likewise.
92600         * modules/xreadlink (Makefile.am): Likewise.
92601         * modules/xstrtod (Makefile.am): Likewise.
92602         * modules/xstrtol (Makefile.am): Likewise.
92603         * modules/xstrtold (Makefile.am): Likewise.
92604         * modules/yesno (Makefile.am): Likewise.
92605         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
92607 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
92609         * modules/error (Makefile.am): Distribute files through
92610         EXTRA_DIST, not lib_SOURCES.
92612 2006-10-12  Eric Blake  <ebb9@byu.net>
92614         * modules/error (Makefile.am): Distribute files in /lib.
92615         * modules/obstack (Makefile.am): Likewise.
92617 2006-10-12  Bruno Haible  <bruno@clisp.org>
92619         * modules/acl (Makefile.am): Distribute all files in lib/ through
92620         EXTRA_DIST.
92621         * modules/arcfour (Makefile.am): Likewise.
92622         * modules/arctwo (Makefile.am): Likewise.
92623         * modules/argmatch (Makefile.am): Likewise.
92624         * modules/argz (Makefile.am): Likewise.
92625         * modules/atexit (Makefile.am): Likewise.
92626         * modules/backupfile (Makefile.am): Likewise.
92627         * modules/c-strtod (Makefile.am): Likewise.
92628         * modules/c-strtold (Makefile.am): Likewise.
92629         * modules/calloc (Makefile.am): Likewise.
92630         * modules/canon-host (Makefile.am): Likewise.
92631         * modules/canonicalize (Makefile.am): Likewise.
92632         * modules/chdir-long (Makefile.am): Likewise.
92633         * modules/chdir-safer (Makefile.am): Likewise.
92634         * modules/check-version (Makefile.am): Likewise.
92635         * modules/chown (Makefile.am): Likewise.
92636         * modules/cloexec (Makefile.am): Likewise.
92637         * modules/close-stream (Makefile.am): Likewise.
92638         * modules/closeout (Makefile.am): Likewise.
92639         * modules/crc (Makefile.am): Likewise.
92640         * modules/cycle-check (Makefile.am): Likewise.
92641         * modules/des (Makefile.am): Likewise.
92642         * modules/dirfd (Makefile.am): Likewise.
92643         * modules/dirname (Makefile.am): Likewise.
92644         * modules/dup2 (Makefile.am): Likewise.
92645         * modules/euidaccess (Makefile.am): Likewise.
92646         * modules/exclude (Makefile.am): Likewise.
92647         * modules/exitfail (Makefile.am): Likewise.
92648         * modules/fcntl-safer (Makefile.am): Likewise.
92649         * modules/file-type (Makefile.am): Likewise.
92650         * modules/fileblocks (Makefile.am): Likewise.
92651         * modules/filemode (Makefile.am): Likewise.
92652         * modules/filenamecat (Makefile.am): Likewise.
92653         * modules/fnmatch (Makefile.am): Likewise.
92654         * modules/fopen-safer (Makefile.am): Likewise.
92655         * modules/fpending (Makefile.am): Likewise.
92656         * modules/fprintftime (Makefile.am): Likewise.
92657         * modules/free (Makefile.am): Likewise.
92658         * modules/fsusage (Makefile.am): Likewise.
92659         * modules/ftruncate (Makefile.am): Likewise.
92660         * modules/fts (Makefile.am): Likewise.
92661         * modules/gc (Makefile.am): Likewise.
92662         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
92663         * modules/getaddrinfo (Makefile.am): Likewise.
92664         * modules/getcwd (Makefile.am): Likewise.
92665         * modules/getdelim (Makefile.am): Likewise.
92666         * modules/getdomainname (Makefile.am): Likewise.
92667         * modules/getgroups (Makefile.am): Likewise.
92668         * modules/gethostname (Makefile.am): Likewise.
92669         * modules/gethrxtime (Makefile.am): Likewise.
92670         * modules/getline (Makefile.am): Likewise.
92671         * modules/getloadavg (Makefile.am): Likewise.
92672         * modules/getlogin_r (Makefile.am): Likewise.
92673         * modules/getopt (Makefile.am): Likewise.
92674         * modules/getpass (Makefile.am): Likewise.
92675         * modules/getpass-gnu (Makefile.am): Likewise.
92676         * modules/getsubopt (Makefile.am): Likewise.
92677         * modules/gettime (Makefile.am): Likewise.
92678         * modules/gettimeofday (Makefile.am): Likewise.
92679         * modules/getugroups (Makefile.am): Likewise.
92680         * modules/getusershell (Makefile.am): Likewise.
92681         * modules/glob (Makefile.am): Likewise.
92682         * modules/group-member (Makefile.am): Likewise.
92683         * modules/hard-locale (Makefile.am): Likewise.
92684         * modules/hash (Makefile.am): Likewise.
92685         * modules/hmac-md5 (Makefile.am): Likewise.
92686         * modules/hmac-sha1 (Makefile.am): Likewise.
92687         * modules/human (Makefile.am): Likewise.
92688         * modules/idcache (Makefile.am): Likewise.
92689         * modules/imaxabs (Makefile.am): Likewise.
92690         * modules/imaxdiv (Makefile.am): Likewise.
92691         * modules/inet_ntop (Makefile.am): Likewise.
92692         * modules/inet_pton (Makefile.am): Likewise.
92693         * modules/inttostr (Makefile.am): Likewise.
92694         * modules/isapipe (Makefile.am): Likewise.
92695         * modules/lchown (Makefile.am): Likewise.
92696         * modules/long-options (Makefile.am): Likewise.
92697         * modules/lstat (Makefile.am): Likewise.
92698         * modules/malloc (Makefile.am): Likewise.
92699         * modules/mathl (Makefile.am): Likewise.
92700         * modules/mbchar (Makefile.am): Likewise.
92701         * modules/md2 (Makefile.am): Likewise.
92702         * modules/md4 (Makefile.am): Likewise.
92703         * modules/md5 (Makefile.am): Likewise.
92704         * modules/memcasecmp (Makefile.am): Likewise.
92705         * modules/memchr (Makefile.am): Likewise.
92706         * modules/memcmp (Makefile.am): Likewise.
92707         * modules/memcoll (Makefile.am): Likewise.
92708         * modules/memcpy (Makefile.am): Likewise.
92709         * modules/memmem (Makefile.am): Likewise.
92710         * modules/memmove (Makefile.am): Likewise.
92711         * modules/mempcpy (Makefile.am): Likewise.
92712         * modules/memrchr (Makefile.am): Likewise.
92713         * modules/memset (Makefile.am): Likewise.
92714         * modules/memxor (Makefile.am): Likewise.
92715         * modules/mkancesdirs (Makefile.am): Likewise.
92716         * modules/mkdir (Makefile.am): Likewise.
92717         * modules/mkdir-p (Makefile.am): Likewise.
92718         * modules/mkdtemp (Makefile.am): Likewise.
92719         * modules/mkstemp (Makefile.am): Likewise.
92720         * modules/mktime (Makefile.am): Likewise.
92721         * modules/modechange (Makefile.am): Likewise.
92722         * modules/mountlist (Makefile.am): Likewise.
92723         * modules/nanosleep (Makefile.am): Likewise.
92724         * modules/openat (Makefile.am): Likewise.
92725         * modules/pagealign_alloc (Makefile.am): Likewise.
92726         * modules/physmem (Makefile.am): Likewise.
92727         * modules/poll (Makefile.am): Likewise.
92728         * modules/posixtm (Makefile.am): Likewise.
92729         * modules/posixver (Makefile.am): Likewise.
92730         * modules/putenv (Makefile.am): Likewise.
92731         * modules/quote (Makefile.am): Likewise.
92732         * modules/quotearg (Makefile.am): Likewise.
92733         * modules/raise (Makefile.am): Likewise.
92734         * modules/read-file (Makefile.am): Likewise.
92735         * modules/readline (Makefile.am): Likewise.
92736         * modules/readlink (Makefile.am): Likewise.
92737         * modules/readtokens (Makefile.am): Likewise.
92738         * modules/readutmp (Makefile.am): Likewise.
92739         * modules/realloc (Makefile.am): Likewise.
92740         * modules/regex (Makefile.am): Likewise.
92741         * modules/rename (Makefile.am): Likewise.
92742         * modules/rename-dest-slash (Makefile.am): Likewise.
92743         * modules/rijndael (Makefile.am): Likewise.
92744         * modules/rmdir (Makefile.am): Likewise.
92745         * modules/rpmatch (Makefile.am): Likewise.
92746         * modules/safe-read (Makefile.am): Likewise.
92747         * modules/safe-write (Makefile.am): Likewise.
92748         * modules/same (Makefile.am): Likewise.
92749         * modules/save-cwd (Makefile.am): Likewise.
92750         * modules/savedir (Makefile.am): Likewise.
92751         * modules/setenv (Makefile.am): Likewise.
92752         * modules/settime (Makefile.am): Likewise.
92753         * modules/sha1 (Makefile.am): Likewise.
92754         * modules/sig2str (Makefile.am): Likewise.
92755         * modules/snprintf (Makefile.am): Likewise.
92756         * modules/stdlib-safer (Makefile.am): Likewise.
92757         * modules/stpcpy (Makefile.am): Likewise.
92758         * modules/stpncpy (Makefile.am): Likewise.
92759         * modules/strcase (Makefile.am): Likewise.
92760         * modules/strcasestr (Makefile.am): Likewise.
92761         * modules/strchrnul (Makefile.am): Likewise.
92762         * modules/strcspn (Makefile.am): Likewise.
92763         * modules/strdup (Makefile.am): Likewise.
92764         * modules/strerror (Makefile.am): Likewise.
92765         * modules/strftime (Makefile.am): Likewise.
92766         * modules/strndup (Makefile.am): Likewise.
92767         * modules/strnlen (Makefile.am): Likewise.
92768         * modules/strpbrk (Makefile.am): Likewise.
92769         * modules/strsep (Makefile.am): Likewise.
92770         * modules/strstr (Makefile.am): Likewise.
92771         * modules/strtod (Makefile.am): Likewise.
92772         * modules/strtoimax (Makefile.am): Likewise.
92773         * modules/strtok_r (Makefile.am): Likewise.
92774         * modules/strtol (Makefile.am): Likewise.
92775         * modules/strtoll (Makefile.am): Likewise.
92776         * modules/strtoul (Makefile.am): Likewise.
92777         * modules/strtoull (Makefile.am): Likewise.
92778         * modules/strtoumax (Makefile.am): Likewise.
92779         * modules/strverscmp (Makefile.am): Likewise.
92780         * modules/time_r (Makefile.am): Likewise.
92781         * modules/timegm (Makefile.am): Likewise.
92782         * modules/tmpfile-safer (Makefile.am): Likewise.
92783         * modules/unistd-safer (Makefile.am): Likewise.
92784         * modules/unlinkdir (Makefile.am): Likewise.
92785         * modules/userspec (Makefile.am): Likewise.
92786         * modules/utime (Makefile.am): Likewise.
92787         * modules/utimecmp (Makefile.am): Likewise.
92788         * modules/utimens (Makefile.am): Likewise.
92789         * modules/vasnprintf (Makefile.am): Likewise.
92790         * modules/vasprintf (Makefile.am): Likewise.
92791         * modules/vsnprintf (Makefile.am): Likewise.
92792         * modules/xalloc (Makefile.am): Likewise.
92793         * modules/xgetcwd (Makefile.am): Likewise.
92794         * modules/xnanosleep (Makefile.am): Likewise.
92795         * modules/xreadlink (Makefile.am): Likewise.
92796         * modules/xstrtod (Makefile.am): Likewise.
92797         * modules/xstrtol (Makefile.am): Likewise.
92798         * modules/xstrtold (Makefile.am): Likewise.
92799         * modules/yesno (Makefile.am): Likewise.
92801 2006-10-12  Jim Meyering  <jim@meyering.net>
92803         * m4/getloadavg.m4: Revert the change below.
92805         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
92806         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
92807         fail with a symlink, which is what coreutils' ./bootstrap now
92808         creates by default.
92810 2006-10-12  Bruno Haible  <bruno@clisp.org>
92812         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
92813         mingw.
92814         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
92815         MSVC and mingw explicitly.
92817 2006-10-11  Simon Josefsson  <jas@extundo.com>
92818             Bruno Haible  <bruno@clisp.org>
92820         Add support for multiple gnulib-tool invocations in the scope of a
92821         single configure.ac file.
92822         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
92823         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
92824         with the same contents as the _LIBADD variable.
92825         (func_emit_initmacro_start, func_emit_initmacro_end,
92826         func_emit_initmacro_done): New functions.
92827         (func_import, func_create_testdir): Invoke them. Allow the identifiers
92828         gl_LIBOBJS and gl_LTLIBOBJS.
92830 2006-10-11  Bruno Haible  <bruno@clisp.org>
92832         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
92833         (func_create_testdir): Don't create po/Makefile.am, don't invoke
92834         autoreconf. Instead, invoke autopoint explicitly but move back the
92835         *.m4 files from gnulib.
92837 2006-10-11  Bruno Haible  <bruno@clisp.org>
92839         * gnulib-tool (func_usage): Make module names after --create-testdir
92840         optional.
92841         (func_create_testdir): If no module was specified, use nearly all
92842         modules.
92844 2006-10-12  Jim Meyering  <jim@meyering.net>
92846         Big performance improvement for fts-based tools that use FTS_NOSTAT.
92847         Avoid spurious inode-mismatch problems on non-POSIX file systems.
92848         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
92849         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
92850         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
92851         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
92852         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
92853         (fts_set_stat_required): New function.
92854         (fts_open): Defer the calls to fts_stat, if possible or requested.
92855         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
92856         into fts_stat itself.
92857         (fts_read): Perform any required (deferred) fts_stat call.
92858         (fts_build): Likewise, for the directory we're about to open and read.
92859         In the readdir loop, carefully decide whether each entry will require
92860         an eventual call to fts_stat, using dirent.d_type info if available.
92861         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
92862         a command line argument into this function.  Update all callers.
92863         Map a return value of FTS_DOT to FTS_D for a command line argument.
92864         * modules/fts (Depends-on): Add d-type.  Alphabetize.
92865         Thanks to Miklos Szeredi for his tenacity and for the initial
92866         bug report about "find" failing on a FUSE-based file system.
92868         * lib/fts.c (fts_open): Use consistent indentation.
92870 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
92872         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
92873         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
92874         reported by Jim Meyering.  All uses of cache variables renamed
92875         to match Autoconf's.
92876         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
92877         the other one.
92879         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
92880         Fix misspelling in diagnostic.
92882 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
92884         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
92885         defined.  Problem reported by Matthew Woehlke.
92887         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
92888         Add support for Tandem NonStop R series.
92889         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
92890         Use new macro.
92892         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
92893         (has_trailing_slash): Omit size arg; all callers changed.
92894         Omit 'inline', since it doesn't help performance and we'd
92895         need to configure it.
92896         Don't count //, ///, etc. as having a trailing slash.
92897         As a side effect, this removes a C99ism reported by Matthew Woehlke.
92898         (rpl_rename_dest_slash): On failure, use rename's errno rather
92899         than (in some cases) an incorrect or junk errno.
92900         Simplify code by removing need to compute length; this does
92901         cause it to make two passes instead of one over the file name,
92902         but it's worth it.
92904         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
92905         change, since Autoconf's version may no longer be appropriate now
92906         that we are using CVS Autoconf's version.  Add support for Tandem.
92908 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
92909             Bruno Haible  <bruno@clisp.org>
92911         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
92912         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
92913         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
92914         gl_AC_TYPE_LONG_LONG.
92916         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
92917         instead of HAVE_LONG_LONG.
92918         * lib/printf-args.c (printf_fetchargs): Likewise.
92919         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
92920         * lib/vasnprintf.c (VASNPRINTF): Likewise.
92921         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
92922         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
92923         gl_AC_TYPE_LONG_LONG.
92925 2006-10-11  Bruno Haible  <bruno@clisp.org>
92927         * m4/longlong.m4: Add comments.
92928         * m4/ulonglong.m4: Likewise.
92930 2006-10-10  Bruno Haible  <bruno@clisp.org>
92932         Make it possible to #define stpcpy, strdup to aliases.
92933         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
92934         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
92936 2006-10-10  Bruno Haible  <bruno@clisp.org>
92938         Make it possible to #define gcd to an alias.
92939         * lib/gcd.c: Include config.h.
92941 2006-10-10  Bruno Haible  <bruno@clisp.org>
92943         Make it possible to #define c_isascii to an alias.
92944         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
92945         defined. Undefine the macros before defining them, to avoid gcc
92946         warnings.
92947         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
92948         define NO_C_CTYPE_MACROS early.
92950 2006-10-10  Bruno Haible  <bruno@clisp.org>
92952         Make it possible to #define set_program_name to an alias.
92953         * lib/progname.c: Don't undefine set_program_name; instead, undefine
92954         ENABLE_RELOCATABLE early.
92956 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
92958         Port to Tandem NSK OSS, which has 64-bit signed int but at most
92959         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
92960         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
92961         More generally, don't assume that 64-bit signed int is available
92962         if unsigned int is, and vice versa.
92963         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
92964         unsigned symbols, not on their signed counterparts.
92965         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
92966         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
92967         (UINT64_C, UINTMAX_C):
92968         Likewise.
92969         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
92970         unsigned counterparts.
92971         (Have_long_long, Unsigned): New macros.
92972         (Int): Renamed from INT.
92973         (strtoimax): Use the new macros.
92974         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
92975         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
92976         * modules/inttypes (inttypes.h): Substitute
92977         HAVE_UNSIGNED_LONG_LONG_INT.
92978         * modules/stdint (stdint.h): Likewise.
92979         (Files): Add m4/ulonglong.m4.
92981 2006-10-10  Bruno Haible  <bruno@clisp.org>
92983         Fix a gcc -Wshadow warning.
92984         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
92985         to 'bucket'.
92986         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
92987         gl_linked_indexof_from_to): Likewise.
92988         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
92989         Likewise.
92990         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
92991         Likewise.
92992         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
92993         Reported by Eric Blake.
92995 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
92997         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
92998         for NetBSD.  Problem reported by Bruno Haible.
93000 2006-10-09  Jim Meyering  <jim@meyering.net>
93002         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
93003         Patch from Bruno Haible.
93005 2006-10-09  Jim Meyering  <jim@meyering.net>
93007         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
93008         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
93009         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
93011 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
93013         Don't include <config.h> twice; this doesn't work in some cases,
93014         e.g., when config.h has "#define intmax_t long long int" and
93015         we include <config.h>, <inttypes.h>, <config.h> in that order.
93016         Problem reported by Matthew Woehlke in:
93017         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
93018         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
93019         * lib/fts-cycle.c: Don't include config.h.
93020         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
93021         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
93022         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
93023         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
93024         inttypes.h.
93025         * lib/xstrtoumax.c: Likewise.
93026         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
93027         __strtol and the like, so that this module is more like its siblings.
93028         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
93029         Remove; no longer needed now that we assume gnulib inttypes.h.
93031 2006-10-08  Bruno Haible  <bruno@clisp.org>
93033         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
93034         option.
93036 2006-10-07  Jim Meyering  <jim@meyering.net>
93038         * modules/inttypes (inttypes.h): Revert what seems to have been
93039         an inadvertent part of today's change: use "|", not "/" in the
93040         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
93042 2006-10-07  Bruno Haible  <bruno@clisp.org>
93044         * modules/sublist: New file.
93046 2006-10-07  Bruno Haible  <bruno@clisp.org>
93048         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
93049         * modules/argz (argz.h): Likewise.
93050         * modules/arpa_inet (arpa/inet.h): Likewise.
93051         * modules/byteswap (byteswap.h): Likewise.
93052         * modules/configmake (configmake.h): Likewise.
93053         * modules/fcntl (fcntl.h): Likewise.
93054         * modules/fnmatch (fnmatch.h): Likewise.
93055         * modules/getopt (getopt.h): Likewise.
93056         * modules/glob (glob.h): Likewise.
93057         * modules/inttypes (inttypes.h): Likewise.
93058         * modules/netinet_in (netinet/in.h): Likewise.
93059         * modules/poll (poll.h): Likewise.
93060         * modules/stdbool (stdbool.h): Likewise.
93061         * modules/stdint (stdint.h): Likewise.
93062         * modules/sys_select (sys/select.h): Likewise.
93063         * modules/sys_socket (sys/socket.h): Likewise.
93064         * modules/sys_stat (sys/stat.h): Likewise.
93065         * modules/sysexits (sysexits.h): Likewise.
93066         * modules/unistd (unistd.h): Likewise.
93067         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
93068         Add a "DO NOT EDIT" comment to the generated file.
93069         (func_import): Likewise for gnulib-comp.m4.
93071 2006-10-07  Bruno Haible  <bruno@clisp.org>
93073         * lib/gl_sublist.h: New file.
93074         * lib/gl_sublist.c: New file.
93076 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
93078         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
93079         name (relative to the original working directory) and the file
93080         name component (relative to the temporary working directory).  All
93081         callers changed.
93082         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
93083         * lib/mkdir-p.c (make_dir_parents): Likewise.
93084         * lib/mkdir-p.h (make_dir_parents): Likewise.
93086 2006-10-06  Eric Blake  <ebb9@byu.net>
93088         Define several macros for use by the clean-temp module.
93089         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
93090         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
93091         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
93093         * lib/clean-temp.h (close_stream_temp): New declaration.
93094         * lib/clean-temp.c (includes): Pull in headers according to what
93095         other modules are in use.
93096         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
93098 2006-10-06  Bruno Haible  <bruno@clisp.org>
93100         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
93101         instead of fopen, fwriteerror.
93103 2006-10-06  Bruno Haible  <bruno@clisp.org>
93105         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
93106         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
93107         int.
93108         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
93109         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
93110         Return an error indicator.
93111         Suggested by Eric Blake.
93113 2006-10-06  Bruno Haible  <bruno@clisp.org>
93115         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
93116         Reported by Eric Blake.
93118 2006-10-06  Bruno Haible  <bruno@clisp.org>
93120         * modules/closeout (Description): Mention stderr too.
93122 2006-10-06  Bruno Haible  <bruno@clisp.org>
93123         and Paul Eggert  <eggert@cs.ucla.edu>
93125         * lib/closeout.c (close_stdout): Also close stderr.
93126         * lib/closeout.h: Update comment.
93128 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
93130         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
93131         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
93132         * lib/dirchownmod.c: Include lchown.h.
93133         * lib/lchown.c: Don't include files that lchown.h now includes.
93134         Don't declare chown, since lchown.h now does that.
93135         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
93136         (lchown): Define to rpl_chown if lchown is declared but
93137         does not exist.  Declare using a prototype if lchown is not
93138         declared.  Add a copyright notice.
93139         * lib/mkstemp.h: Include <unistd.h>.
93140         * lib/openat.c: Include lchown.h.
93142         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
93143         we now test for that separately.
93144         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
93145         rather than O_NOFOLLOW, when testing whether it's possible to
93146         avoid a race condition reliably.
93147         * lib/savewd.c (savewd_chdir): Likewise.
93149         Remove macros that are no longer needed now that stdint.h is
93150         reliable.
93151         * lib/fsusage.c (UINTMAX_MAX): Remove.
93152         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
93153         * lib/utimecmp.c (SIZE_MAX): Remove.
93155         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
93157         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
93158         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
93159         O_NOATIME works.
93161 2006-10-05  Bruno Haible  <bruno@clisp.org>
93163         * lib/gl_list.h (gl_sortedlist_search_from_to,
93164         gl_sortedlist_indexof_from_to): New declarations.
93165         (gl_list_implementation): New fields sortedlist_search_from_to,
93166         sortedlist_indexof_from_to.
93167         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
93168         inline functions.
93169         * lib/gl_list.c (gl_sortedlist_search_from_to,
93170         gl_sortedlist_indexof_from_to): New functions.
93171         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
93172         function.
93173         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
93174         (gl_array_sortedlist_search_from_to): New function.
93175         (gl_array_list_implementation): Update.
93176         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
93177         function.
93178         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
93179         (gl_carray_sortedlist_search_from_to): New function.
93180         (gl_carray_list_implementation): Update.
93181         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
93182         gl_linked_sortedlist_indexof_from_to): New functions.
93183         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
93184         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
93185         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
93186         gl_tree_sortedlist_indexof_from_to): New functions.
93187         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
93188         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
93189         Update.
93190         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
93191         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
93192         Update.
93194 2006-10-05  Bruno Haible  <bruno@clisp.org>
93196         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
93197         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
93198         (struct gl_list_implementation): Add fields search_from_to,
93199         indexof_from_to. Remove fields search, indexof.
93200         (gl_list_search): Use the search_from_to method.
93201         (gl_list_search_from, gl_list_search_from_to): New functions.
93202         (gl_list_indexof): Use the indexof_from_to method.
93203         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
93204         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
93205         (gl_list_search_from, gl_list_search_from_to): New functions.
93206         (gl_list_indexof): Use the indexof_from_to method.
93207         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
93208         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
93209         gl_array_indexof. Add start_index, end_index arguments.
93210         (gl_array_search_from_to): Renamed from gl_array_search. Add
93211         start_index, end_index arguments.
93212         (gl_array_remove, gl_array_list_implementation): Update.
93213         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
93214         gl_carray_indexof. Add start_index, end_index arguments.
93215         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
93216         start_index, end_index arguments.
93217         (gl_carray_remove, gl_carray_list_implementation): Update.
93218         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
93219         gl_linked_search. Add start_index, end_index arguments.
93220         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
93221         start_index, end_index arguments.
93222         (gl_linked_remove): Update.
93223         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
93224         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
93225         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
93226         field to 'size_t'.
93227         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
93228         gl_tree_search. Add start_index, end_index arguments.
93229         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
93230         start_index, end_index arguments.
93231         (gl_tree_remove): Update.
93232         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
93233         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
93234         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
93235         function.
93236         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
93237         gl_tree_search. Add start_index, end_index arguments.
93238         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
93239         start_index, end_index arguments.
93240         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
93241         Update.
93242         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
93244 2006-10-05  Bruno Haible  <bruno@clisp.org>
93246         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
93248         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
93249         fwriteerror_temp): New declarations.
93250         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
93251         (descriptors): New variable.
93252         (cleanup): First, close the descriptors.
93253         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
93254         fclose_temp, fwriteerror_temp): New functions.
93256 2006-10-04  Jim Meyering  <jim@meyering.net>
93258         * lib/fts.c (fts_open): Tiny comment change.
93260 2006-10-04  Bruno Haible  <bruno@clisp.org>
93262         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
93263         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
93264         gl_LOCK_BODY.
93265         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
93266         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
93267         gl_LOCK_EARLY_BODY.
93268         (gl_LOCK): Require gl_LOCK_BODY.
93270 2006-10-04  Bruno Haible  <bruno@clisp.org>
93272         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
93273         (gl_oset_search_atleast): New declaration.
93274         (struct gl_oset_implementation): Add field 'search_atleast'.
93275         (gl_oset_search_atleast): New inline function.
93276         * lib/gl_oset.c (gl_oset_search_atleast): New function.
93277         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
93278         (gl_array_oset_implementation): Update.
93279         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
93280         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
93281         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
93283 2006-10-04  Bruno Haible  <bruno@clisp.org>
93285         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
93287 2006-10-03  Bruno Haible  <bruno@clisp.org>
93289         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
93290         from gl_avltreehash_list_implementation.
93292 2006-10-03  Bruno Haible  <bruno@clisp.org>
93294         * lib/gl_oset.c (gl_oset_add): Fix return type.
93296 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
93298         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
93300 2006-10-02  Eric Blake  <ebb9@byu.net>
93302         * modules/strnlen (Depends-on): Add extensions.
93304 2006-10-02  Eric Blake  <ebb9@byu.net>
93306         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
93307         definition in 2.60+.
93309 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
93311         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
93312         checks.
93314 2006-10-02  Bruno Haible  <bruno@clisp.org>
93316         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
93317         to the AUTOMAKE_OPTIONS.
93318         Reported by Jim Meyering.
93320 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
93322         Work around bug in Solaris 10 /proc file system:
93323         /proc/self/fd/NNN/.. isn't the parent directory of
93324         the directory whose file descriptor is NNN.  This needs to
93325         be worked around at run time, not compile time, since a
93326         program might be built on Solaris 8, where things work, and
93327         run on Solaris 10.
93328         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
93329         to use the following interface instead:
93330         (OPENAT_BUFFER_SIZE): New macro.
93331         (openat_proc_name): New function.
93332         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
93333         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
93334         Likewise.
93335         * lib/openat-proc.c: New file.
93336         * modules/openat (Files): Add lib/openat-proc.c.
93337         (Depends-on): Add same-inode, stdbool.
93338         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
93340 2006-09-29  Bruno Haible  <bruno@clisp.org>
93342         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
93343         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
93344         argument. Set stdout_closed before testing for ferror, not after.
93345         (fwriteerror, fwriteerror_no_ebadf): New functions.
93347 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93349         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
93351 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
93353         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
93354         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
93356 2006-09-28  Jim Meyering  <jim@meyering.net>
93358         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
93359         Include <unistd.h>.
93361 2006-09-28  Bruno Haible  <bruno@clisp.org>
93363         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
93364         * modules/linkedhash-list (Depends-on): Likewise.
93365         * modules/rbtreehash-list (Depends-on): Likewise.
93367 2006-09-28  Bruno Haible  <bruno@clisp.org>
93369         * lib/strndup.h: Simplify the redefinition of strndup.
93370         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
93371         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
93373 2006-09-28  Bruno Haible  <bruno@clisp.org>
93375         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
93376         * lib/gl_linkedhash_list.c: Likewise.
93377         * lib/gl_rbtreehash_list.c: Likewise.
93379 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
93381         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
93382         getaddrinfo.
93384         * lib/__fpending.h: Don't include <stdio_ext.h> unless
93385         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
93386         it causes <stdio_ext.h> to cause a compile-time error.
93387         Problem reported by Nelson H. F. Beebe.
93388         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
93389         of HAVE_DECL___PENDING.
93391         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
93392         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
93393         declaration.
93395 2006-09-27  Jim Meyering  <jim@meyering.net>
93397         This file could end up with a definition for a function
93398         named __strndup, rather than rpl_strndup on a system with
93399         incomplete weak_alias support.
93400         * lib/strndup.c (strndup): Rename from __strndup.
93401         Remove #defines that used to map __strndup to strndup.
93402         Don't use K&R prototypes.
93403         Remove LIBC-related code, since this file is not sync'd with glibc.
93404         * lib/strndup.h: Revamp, accordingly.
93405         * m4/strndup.m4: Modernize.
93407 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
93409         * modules/savewd (Depends-on): Add 'raise'.
93410         * lib/savewd.c: Include <signal.h>, for 'raise'.
93412 2006-09-26  Jim Meyering  <jim@meyering.net>
93414         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
93415         when we detect Darwin 8.7.0's acl_get_file bug.
93416         Rearrange to perform the new (below) run-test while $LIBS
93417         contains any acl-related library.  Set USE_ACL at the end.
93418         (gl_ACL_GET_FILE): New function.
93420 2006-09-26  Eric Blake  <ebb9@byu.net>
93422         * lib/verror.c: Include <config.h> unconditionally.
93424 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
93426         * modules/clock-time (Maintainer): Add self.
93427         * modules/getlogin_r (Depends-on): Add extensions.
93429 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93431         * modules/clock-time: New module.
93432         * modules/nanosleep (Depends-on): Add clock-time.
93433         * modules/gethrxtime (Depends-on): Likewise.
93434         * modules/gettime (Depends-on): Likewise.
93435         * modules/settime (Depends-on): Likewise.
93437         * modules/fts-lgpl: Depend on openat.
93438         * modules/mkancesdirs: Depend on savewd.
93439         * modules/mkdir-p: Likewise.
93441 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93443         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
93445         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
93446         `gl_have_arbitrary_file_name_length_limit' to
93447         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
93448         actually works between configure runs.
93450 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93451             Bruno Haible  <bruno@clisp.org>
93453         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
93455 2006-09-25  Jim Meyering  <jim@meyering.net>
93457         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
93458         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
93460 2006-09-25  Eric Blake  <ebb9@byu.net>
93462         * gnulib-tool (func_import, func_create_testdir): Fix typos in
93463         exec's in 2006-09-18 patch when shuffling fds.
93465 2006-09-25  Bruno Haible  <bruno@clisp.org>
93467         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
93468         Reported by Jim Meyering.
93470 2006-09-24  Jim Meyering  <jim@meyering.net>
93472         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
93473         compare a pointer against a literal "0".  That caused failures with
93474         at least HP-UX's hpcc.
93476 2006-09-22  Simon Josefsson  <jas@extundo.com>
93478         * modules/gc-sha1:
93479         * modules/gc-md4:
93480         * modules/gc-hmac-sha1:
93481         * modules/gc-hmac-md5:
93482         * modules/gc-des:
93483         * modules/gc-arcfour: Distribute more files.
93485 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93487         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
93488         (gl_linked_iterator_from_to): Initialize struct completely.
93489         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
93490         (gl_tree_iterator_from_to): Likewise
93491         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
93492         * lib/gl_array_list.c [lint] (gl_array_iterator)
93493         (gl_array_iterator_from_to): Likewise.
93494         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
93495         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
93496         (gl_carray_iterator_from_to): Likewise.
93498         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
93499         * lib/md4.c (md4_process_block): Remove unused variable.
93500         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
93501         parentheses for clarity.
93503 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93505         * modules/bison-i18n (Depends-on): Add gettext.
93507 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93509         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
93510         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
93511         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
93512         also add missing comma that caused broken test.
93513         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
93514         stdlib.h, for `abort'.
93515         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
93516         variables.
93517         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
93518         include unistd.h if present, for `rmdir'.
93519         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
93520         variables.
93521         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
93522         in the process include standard headers for prototypes.
93523         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
93524         gets declared on GNU/Linux.
93525         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
93526         unistd.h, for `rmdir'.
93527         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
93529         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
93530         always true.
93531         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
93533         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
93535 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93537         * gnulib-tool (func_version): Create output all at once.  This
93538         may help avoid triggering unnecessary SIGPIPEs, and at any
93539         rate it doesn't hurt.
93541 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93542             Bruno Haible  <bruno@clisp.org>
93544         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
93545         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
93546         * m4/signed.m4 (bh_C_SIGNED): Likewise.
93548         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
93549         (gl_FUNC_VASPRINTF): Invoke it.
93551 2006-09-22  Bruno Haible  <bruno@clisp.org>
93553         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
93554         getloadavg.c as first argument.
93556 2006-09-22  Bruno Haible  <bruno@clisp.org>
93558         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
93559         at the beginning of the gl_INIT macro.
93560         * modules/getloadavg (configure.ac): Pass $gl_source_base to
93561         gl_GETLOADAVG.
93563 2006-09-22  Bruno Haible  <bruno@clisp.org>
93565         * gnulib-tool (func_create_megatestdir): Don't include the config-h
93566         module.
93567         Suggested by Ralf Wildenhues.
93569 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
93571         Import this patch from libc:
93573         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
93575         * lib/regex_internal.c (re_string_reconstruct): Handle
93576         offset < pstr->valid_raw_len && pstr->offsets_needed case.
93577         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
93578         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
93579         re_string_context_at.
93581         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
93582         now requires it.
93583         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
93584         gl_REGEX now does it for us.
93585         (gl_REGEX): Add test taken from
93586         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
93588         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
93589         Check that large offsets work.  Modernize Autoconf usages.
93590         Prefer "yes" to mean a good thing rather than a bad.
93591         Don't put "#define mkstemp" in config.h, as this might interfere
93592         with standard system headers that "#define mkstemp mkstemp64".
93594         * modules/mkstemp (Depends-on): Add extensions, so that
93595         mkstemp is visible on some platforms.
93596         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
93597         (Include): Change to "mkstemp.h" from <stdlib.h>.
93598         (Files): Add mkstemp.h.
93600         * lib/mkstemp.h: New file, since some standard headers
93601         #define mkstemp.
93602         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
93603         Include "mkstemp.h".
93604         Make the _LIBC code resemble glibc original more,
93605         e.g., use K&R style.
93606         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
93607         (mkstemp): Remove, since mkstemp.h does this for us.
93608         * lib/stdlib--.h: Include mkstemp.h.
93610         Import this patch from libc:
93612         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
93614         * lib/tempname.c (__gen_tempname): Change attempts_min
93615         into a macro.  Use preprocessor to decide how to initialize
93616         attempts [Coverity CID 67].
93618 2006-09-20  Bruno Haible  <bruno@clisp.org>
93620         * lib/mkdtemp.c: Import from libc.
93621         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
93622                 * sysdeps/posix/tempname.c (__gen_tempname): Change
93623                 attempts_min into a macro.  Use preprocessor to decide how to
93624                 initialize attempts [Coverity CID 67].
93625         2001-11-27  Paul Eggert  <eggert@twinsun.com>
93626                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
93627                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
93629 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93631         * gnulib-tool (func_exit): New function, to allow to pass the
93632         exit status portably through the trap.  Use everywhere.
93633         (--help, --version): Signal a write error.
93634         (trap): catch SIGPIPE, for write errors.
93635         Exit at the end of the trap, with the correct exit status.
93637 2006-09-19  Karl Berry  <karl@gnu.org>
93639         * doc/gnulib.texi: note about the license texinfo files.
93641 2006-09-19  Eric Blake  <ebb9@byu.net>
93643         * gnulib-tool: Avoid space-tab.
93645 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
93647         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
93648         that prevented coreutils 6.1 from building.  Problem reported
93649         by Petter Reinholdtsen.
93651 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
93653         * gnulib-tool (avoidlist): Fix typo that broke options like
93654         --avoid=lock that are used by coreutils bootstrap.
93656 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
93658         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
93659         more systematically.
93661 2006-09-18  Jim Meyering  <jim@meyering.net>
93663         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
93665 2006-09-18  Bruno Haible  <bruno@clisp.org>
93667         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
93669 2006-09-18  Bruno Haible  <bruno@clisp.org>
93671         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
93672         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
93673         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
93674         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
93675         * m4/gettext.m4: Require autoconf >= 2.52.
93676         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
93677         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
93678         of gl_cv_header_inttypes_h.
93680 2006-09-18  Bruno Haible  <bruno@clisp.org>
93682         * lib/javaversion.c: Include configmake.h.
93684 2006-09-18  Bruno Haible  <bruno@clisp.org>
93686         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
93687         avoid that the while loops be executed in a subshell.
93689 2006-09-18  Bruno Haible  <bruno@clisp.org>
93691         * MODULES.html.sh (func_module): Break long lines.
93692         Suggested by Bruce Korb <bkorb@gnu.org>.
93694 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93696         Speed up by a factor of 1.12.
93697         * gnulib-tool (nl): New variable.
93698         (func_import): Rewrite include directive extraction to only read each
93699         directive once.
93701 2006-09-17  Bruno Haible  <bruno@clisp.org>
93703         * modules/javaversion (Makefile.am): Remove DEFS setting.
93704         (Depends-on): Add configmake, for PKGDATADIR definition.
93706 2006-09-17  Bruno Haible  <bruno@clisp.org>
93708         * gnulib-tool (func_create_testdir): Rewrite all files at once.
93710 2006-09-17  Bruno Haible  <bruno@clisp.org>
93712         * gnulib-tool (func_append): New function, stolen from libtool.m4.
93713         (func_modules_transitive_closure, func_modules_add_dummy,
93714         func_modules_to_filelist, func_import, func_create_testdir,
93715         func_create_megatestdir, ...): Use it wherever possible.
93716         Suggested by Ralf Wildenhues.
93718 2006-09-16  Karl Berry  <karl@gnu.org>
93720         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
93721         to avoid sectioning errors.
93722         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
93723         [ifinfo]: blank line after @center-ed titles.
93724         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
93725         Spell FSF address consistently with others.
93726         (These changes approved by rms.)
93728 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93730         Speed up by a factor of 1.61.
93731         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
93732         already checked module names again.
93734 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93736         Speed up by a factor of 1.13.
93737         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
93738         for new_files, and the input to func_add_or_update.
93740 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93742         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
93743         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
93745 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
93747         * modules/mkancesdirs (Depends-on): Add fcntl.
93748         * modules/savewd: New file.
93749         * MODULES.html.sh (File system functions): Add savewd.
93751         * modules/configmake (Makefile.am): Add support for the
93752         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
93754 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
93756         * m4/savewd.m4: New file.
93758 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
93760         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
93761         (dirchownmod): New arg FD.  All callers changed.
93762         Use FD rather than opening the directory ourself, as opening is
93763         now the caller's responsibility.
93764         * lib/dirchownmod.h: Likewise.
93765         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
93766         hosts that require <sys/types.h> before <sys/stat.h>.  Include
93767         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
93768         (test_dir): Remove.
93769         (mkancesdirs): Return length of prefix of FILE that has already
93770         been made, or -2 if there is a child doing the work.  Redo
93771         algorithm so that it is O(N) rather than O(N**2).  Optimize away
93772         ".", and treat ".." specially since it might stray back into
93773         already-created areas.  Use a subprocess if necessary.  New arg
93774         WD; all users changed.  MAKE_DIR function should now return 1
93775         if it creates a directory that is not readable.  Return -2 if
93776         a child process is spun off.
93777         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
93778         Adjust signature to match code.
93779         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
93780         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
93781         all users changed.
93782         * lib/savewd.c, lib/savewd.h: New files.
93784 2006-09-15  Jim Meyering  <jim@meyering.net>
93786         * modules/rename-dest-slash: New module.
93787         * MODULES.html.sh (posix_compat): Add it here.
93789         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
93791 2006-09-15  Jim Meyering  <jim@meyering.net>
93793         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
93794         file.
93796         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
93798 2006-09-15  Jim Meyering  <jim@meyering.net>
93800         * lib/rename-dest-slash.c (has_trailing_slash): Use
93801         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
93802         (rpl_rename_dest_slash): Perform the cheaper trailing slash
93803         test before testing whether SRC is a directory.
93804         Suggestions from Bruno Haible.
93806         Avoid a warning about an unused variable.
93807         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
93808         into the #ifdef block where it's used.
93810         * lib/rename-dest-slash.c: New file.
93812 2006-09-14  Bruno Haible  <bruno@clisp.org>
93814         * lib/allocsa.c: Include <config.h> unconditionally.
93815         * lib/asnprintf.c: Likewise.
93816         * lib/asprintf.c: Likewise.
93817         * lib/c-strcasecmp.c: Likewise.
93818         * lib/c-strcasestr.c: Likewise.
93819         * lib/c-strncasecmp.c: Likewise.
93820         * lib/c-strstr.c: Likewise.
93821         * lib/classpath.c: Likewise.
93822         * lib/clean-temp.c: Likewise.
93823         * lib/concatpath.c: Likewise.
93824         * lib/copy-file.c: Likewise.
93825         * lib/csharpcomp.c: Likewise.
93826         * lib/csharpexec.c: Likewise.
93827         * lib/execute.c: Likewise.
93828         * lib/fatal-signal.c: Likewise.
93829         * lib/findprog.c: Likewise.
93830         * lib/fwriteerror.c: Likewise.
93831         * lib/gl_array_list.c: Likewise.
93832         * lib/gl_array_oset.c: Likewise.
93833         * lib/gl_avltree_list.c: Likewise.
93834         * lib/gl_avltree_oset.c: Likewise.
93835         * lib/gl_avltreehash_list.c: Likewise.
93836         * lib/gl_carray_list.c: Likewise.
93837         * lib/gl_linked_list.c: Likewise.
93838         * lib/gl_linkedhash_list.c: Likewise.
93839         * lib/gl_list.c: Likewise.
93840         * lib/gl_oset.c: Likewise.
93841         * lib/gl_rbtree_list.c: Likewise.
93842         * lib/gl_rbtree_oset.c: Likewise.
93843         * lib/gl_rbtreehash_list.c: Likewise.
93844         * lib/imaxabs.c: Likewise.
93845         * lib/imaxdiv.c: Likewise.
93846         * lib/javacomp.c: Likewise.
93847         * lib/javaexec.c: Likewise.
93848         * lib/javaversion.c: Likewise.
93849         * lib/linebreak.c: Likewise.
93850         * lib/localcharset.c: Likewise.
93851         * lib/lock.c: Likewise.
93852         * lib/mbchar.c: Likewise.
93853         * lib/mbswidth.c: Likewise.
93854         * lib/mkdtemp.c: Likewise.
93855         * lib/pipe.c: Likewise.
93856         * lib/printf-args.c: Likewise.
93857         * lib/printf-parse.c: Likewise.
93858         * lib/progname.c: Likewise.
93859         * lib/progreloc.c: Likewise.
93860         * lib/readlink.c: Likewise.
93861         * lib/sh-quote.c: Likewise.
93862         * lib/stpcpy.c: Likewise.
93863         * lib/stpncpy.c: Likewise.
93864         * lib/strcasecmp.c: Likewise.
93865         * lib/strcasestr.c: Likewise.
93866         * lib/strcspn.c: Likewise.
93867         * lib/striconv.c: Likewise.
93868         * lib/strncasecmp.c: Likewise.
93869         * lib/strnlen1.c: Likewise.
93870         * lib/strstr.c: Likewise.
93871         * lib/strtok_r.c: Likewise.
93872         * lib/tls.c: Likewise.
93873         * lib/tmpdir.c: Likewise.
93874         * lib/unicodeio.c: Likewise.
93875         * lib/unsetenv.c: Likewise.
93876         * lib/vasnprintf.c: Likewise.
93877         * lib/vasprintf.c: Likewise.
93878         * lib/wait-process.c: Likewise.
93879         * lib/xallocsa.c: Likewise.
93880         * lib/xsetenv.c: Likewise.
93881         * lib/xstriconv.c: Likewise.
93883 2006-09-13  Simon Josefsson  <jas@extundo.com>
93885         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
93886         that internally, suggested by Ralf Wildenhues
93887         <Ralf.Wildenhues@gmx.de>.
93889 2006-09-13  Simon Josefsson  <jas@extundo.com>
93891         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
93892         @LIBOBJS@.
93893         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
93895 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
93897         * lib/_fpending.c: Include <config.h> unconditionally, since we no
93898         longer worry about uses that don't define HAVE_CONFIG_H.
93899         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
93900         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
93901         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
93902         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
93903         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
93904         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
93905         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
93906         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
93907         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
93908         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
93909         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
93910         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
93911         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
93912         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
93913         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
93914         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
93915         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
93916         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
93917         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
93918         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
93919         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
93920         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
93921         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
93922         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
93923         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
93924         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
93925         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
93926         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
93927         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
93928         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
93929         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
93930         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
93931         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
93932         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
93933         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
93934         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
93935         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
93936         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
93937         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
93938         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
93939         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
93940         Likewise.
93942 2006-09-13  Eric Blake  <ebb9@byu.net>
93944         * lib/getopt.c: Fix typo in last commit.
93946 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
93948         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
93949         dgettext.
93951 2006-09-12  Jim Meyering  <jim@meyering.net>
93953         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
93954         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
93955         Reported by Nelson H. F. Beebe.
93957 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
93959         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
93960         program_invocation_name and program_invocation_short_name are
93961         initialized.
93962         * lib/argp-namefrob.h: Move declarations of program_invocation_name
93963         and program_invocation_short_name to argp.h, so they are visible
93964         to user programs.
93965         * lib/argp.h: Likewise
93967 2006-09-10  Bruno Haible  <bruno@clisp.org>
93969         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
93970         m4/inttypes_h.m4, m4/uintmax_t.m4.
93972 2006-09-10  Bruno Haible  <bruno@clisp.org>
93974         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
93975         gl_AC_TYPE_UINTMAX_T.
93977 2006-09-10  Bruno Haible  <bruno@clisp.org>
93979         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
93981 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
93983         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
93984         convention.  Text proposed by Bruno Haible.
93985         (struct argp_option): Document the use of N_() wrappers.
93987         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
93988         '\v', and translate the two parts separately, instead of feeding
93989         the whole string to gettext.  This allows to exclude
93990         '\v' from the strings visible to the translator by writing doc
93991         strings as N_("..") "\v" N_("..").
93993 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
93995         * config/srclist.txt: Undo latest change; the bug was fixed.
93997 2006-09-09  Bruno Haible  <bruno@clisp.org>
93999         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
94000         assignments if building a library without libtool.
94001         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
94002         in func_emit_lib_Makefile_am.
94003         (func_import): When building a static library libfoo.a, arrange to
94004         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
94005         (func_create_testdir): Likewise.
94006         * modules/gc (configure.ac, Makefile.am): If building statically,
94007         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
94008         * modules/iconvme (configure.ac, Makefile.am): Likewise.
94009         * modules/striconv (configure.ac, Makefile.am): Likewise.
94010         Based on a suggestion by Ralf Wildenhues.
94012 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
94014         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
94015         Check for unistd.h too, since Autoconf doesn't assume POSIX.
94016         Also:
94018         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
94019         Add year_2050_test to catch glibc bug 2821
94020         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
94022         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
94023         Prefer #ifdef to #if.
94025         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
94026         Return from 'main' instead of calling 'exit'.
94028 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
94030         * lib/mktime.c (guess_time_tm): Fix bug where mktime
94031         returned the maximum time_t value rather than (time_t) -1.
94032         Problem originally reported by William Bardwell
94033         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
94035         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
94036         Moved to here ...
94037         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
94038         ... from here.
94040 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
94042         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
94043         2821 is fixed.
94045 2006-09-08  Jim Meyering  <jim@meyering.net>
94047         Don't make generated files read-only.  That would bother too many
94048         people.  However, do retain the ability to work when targets are
94049         read-only: remove the destination and temporary files before writing
94050         them (when generated via sed or echo), or by using the -f option for
94051         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
94052         * modules/alloca-opt, modules/argz, modules/arpa_inet:
94053         * modules/byteswap, modules/configmake, modules/fcntl:
94054         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
94055         * modules/localcharset, modules/netinet_in, modules/poll:
94056         * modules/stdbool, modules/stdint, modules/sys_select:
94057         * modules/sys_socket, modules/sys_stat, modules/sysexits:
94059 2006-09-08  Jim Meyering  <jim@meyering.net>
94061         Avoid new build failure on FreeBSD 6.0.
94062         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
94063         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
94064         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
94066 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94068         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
94070 2006-09-07  Jim Meyering  <jim@meyering.net>
94072         Fix global typo in last change: use chmod u-w, not chmod u-x.
94073         Spotted by Paul Eggert and Bruce Korb.
94074         * modules/alloca-opt, modules/argz, modules/arpa_inet:
94075         * modules/byteswap, modules/configmake, modules/fcntl:
94076         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
94077         * modules/localcharset, modules/netinet_in, modules/poll:
94078         * modules/stdbool, modules/stdint, modules/sys_select:
94079         * modules/sys_socket, modules/sys_stat, modules/sysexits:
94081 2006-09-06  Jim Meyering  <jim@meyering.net>
94083         Make generated files be read-only.
94084         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
94085         Ensure that each generated file is now read-only.
94086         * modules/argz: Likewise.
94087         * modules/arpa_inet: Likewise.
94088         * modules/byteswap: Likewise.
94089         * modules/configmake: Likewise.
94090         * modules/fcntl: Likewise.
94091         * modules/fnmatch: Likewise.
94092         * modules/getopt: Likewise.
94093         * modules/glob: Likewise.
94094         * modules/inttypes: Likewise.
94095         * modules/netinet_in: Likewise.
94096         * modules/poll: Likewise.
94097         * modules/stdbool: Likewise.
94098         * modules/stdint: Likewise.
94099         * modules/sys_select: Likewise.
94100         * modules/sys_socket: Likewise.
94101         * modules/sys_stat: Likewise.
94102         * modules/sysexits: Likewise.
94103         * modules/localcharset: Same as above, but continue using temporary
94104         file named "t-$@" (why different?) rather than the "$@-t" used
94105         everywhere else.
94107         * modules/sysexits (Makefile.am): Replace literal occurrences
94108         of "sysexit.h" more readable, and more consistent, "$@".
94110 2006-09-06  Bruno Haible  <bruno@clisp.org>
94112         * modules/striconv: New file.
94113         * modules/xstriconv: New file.
94114         * MODULES.html.sh (Internationalization functions): Add striconv,
94115         xstriconv.
94117 2006-09-06  Bruno Haible  <bruno@clisp.org>
94119         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
94120         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
94121         not using libtool correctly.
94123 2006-09-06  Bruno Haible  <bruno@clisp.org>
94125         * lib/striconv.h: New file.
94126         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
94127         iconvstring.c.
94128         * lib/xstriconv.h: New file.
94129         * lib/xstriconv.c: New file.
94131 2006-09-06  Bruno Haible  <bruno@clisp.org>
94133         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
94134         lib_..._LDFLAGS.
94136 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94138         * lib/argz_.h: Sync from Libtool.
94140         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
94141                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
94143         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
94145 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
94147         * modules/trim: New file.
94149 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
94151         * lib/trim.h: New file.
94152         * lib/trim.c: New file.
94154 2006-09-05  Bruno Haible  <bruno@clisp.org>
94156         * MODULES.html.sh (String handling): Add trim.
94158 2006-09-04  Karl Berry  <karl@gnu.org>
94160         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
94161         until next release.
94163 2006-09-03  Bruno Haible  <bruno@clisp.org>
94165         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
94166         correctly.
94168 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
94170         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
94171         not gl_GETLOADAVG.  Omit unneeded semicolons.
94172         Problems reported by Ralf Wildenhues in
94173         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
94174         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
94175         at the end, which is the usual gnulib style.
94177         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
94178         of doing all the work ourselves.
94179         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
94180         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
94182 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
94184         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
94185         Problem reported by Ralf Wildenhues in
94186         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
94188         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
94189         HAVE_STRUCT_STATFS_F_FSTYPENAME.
94191 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
94193         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
94194         yesterday's patch by changing test -n to test -z.
94196 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
94198         * modules/getloadavg (Files): Add m4/getloadavg.m4.
94199         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
94200         the former is now obsolescent.
94202         * modules/chdir-long (Depends-on): Add fcntl.
94204 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
94206         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
94207         obsolescent, and programs should use gnulib instead.
94208         * m4/getloadavg.m4: New file, with contents taken from Autoconf
94209         but with prefixes changed.
94211 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
94213         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
94214         or stdbool.h, because they might not exist while configuring.
94216         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
94217         Don't include unistd.h or limits.h; not needed, since chdir-long.h
94218         does that for us.
94219         (O_DIRECTORY): Remove.
94221 2006-08-31  Eric Blake  <ebb9@byu.net>
94223         * gnulib-tool: Don't let emacs change spaces to TAB.
94225 2006-08-31  Bruno Haible  <bruno@clisp.org>
94227         * gnulib-tool: When calling func_import more than once, do it in a
94228         subshell.
94229         Reported by Eric Blake <ebb9@byu.net>.
94231 2006-08-31  Bruno Haible  <bruno@clisp.org>
94233         * gnulib-tool (nl): Remove variable.
94234         (sed_transform_lib_file): Use more robust test for config-h module.
94235         (func_import): Fix typo in 2006-08-25 patch.
94237 2006-08-31  Bruno Haible  <bruno@clisp.org>
94239         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
94240         specified, augment Makefile.am variables instead of assigning them.
94242 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
94244         Work around a bug in both the Linux and SunOS 64-bit kernels:
94245         nanosleep mishandles sleeps for longer than 2**31 seconds.
94246         Problem reported by Frank v Waveren in
94247         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
94248         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
94249         Check for nanosleep bug.
94250         (LIB_NANOSLEEP): Append clock_gettime library if needed.
94252 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
94254         Work around a bug in both the Linux and SunOS 64-bit kernels:
94255         nanosleep mishandles sleeps for longer than 2**31 seconds.
94256         Problem reported by Frank v Waveren in
94257         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
94258         * lib/nanosleep.c (BILLION): New constant.
94259         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
94260         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
94261         implementation.
94263 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
94265         * modules/nanosleep (Depends-on): Add gettime.
94267 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
94268         and Simon Josefsson  <jas@extundo.com>
94269         and Oskar Liljeblad  <oskar@osk.mine.nu>
94271         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
94272         * gnulib-tool (func_import): New license type 'unmodifiable license
94273         text'.
94274         * modules/fdl: Use it.  Longer description.
94275         * module/gpl, module/lgpl: New files.
94277 2006-08-30  Jim Meyering  <jim@meyering.net>
94279         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
94280         shadowing the parameter.
94282 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94284         Sync from Libtool:
94286         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94288         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
94289         sharing with gnulib.  Report by Eric Blake.
94291 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
94293         * modules/isapipe: New file.
94294         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
94296 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
94298         * modules/configmake (Makefile.am): Add a comment, and omit
94299         the CONFIGMAKE_ prefix from generated macro names.  Suggested
94300         by Bruno Haible.
94302 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
94304         * m4/isapipe.m4: New file.
94306 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
94308         * lib/isapipe.c, lib/isapipe.h: New files.
94310 2006-08-29  Jim Meyering  <jim@meyering.net>
94312         * modules/configmake (Makefile.am): Make configmake.h depend on
94313         Makefile.  Otherwise, a stale configmake.h could hang around.
94315 2006-08-29  Eric Blake  <ebb9@byu.net>
94317         * lib/error.c (error_at_line, print_errno_message): Match libc, after
94318         resolution of upstream bug 3044.
94320 2006-08-29  Bruno Haible  <bruno@clisp.org>
94322         * modules/localcharset (Depends-on): Add configmake.
94323         (Makefile.am): Remove setting of LIBDIR through DEFS.
94325 2006-08-29  Bruno Haible  <bruno@clisp.org>
94327         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
94328         defined.
94330 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
94332         * modules/fcntl: New file.
94333         * modules/chdir-safer (Depends-on): Add fcntl.
94334         * modules/fts: Likewise.
94335         * modules/mkdir-p: Likewise.
94337         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
94338         This undoes the most recent change, since we're now addressing the
94339         problem in a different way.
94341         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
94342         into output, since the output might be called Makefile.am even
94343         if $makefile_name is something different.
94344         (func_import): Use $makefile_am rather than
94345         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
94346         empty.
94348         * modules/inttypes (Files): Add m4/inttypes-h.m4.
94350 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
94352         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
94353         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
94354         recent change to stdint.m4, since we're now addressing the problem in a
94355         different way.
94357 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
94359         * m4/fcntl_h.m4: New file.
94361 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
94363         * lib/fcntl_.h: New file.
94364         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
94365         the fcntl module.
94366         * lib/dirchownmod.c: Likewise.
94367         * lib/fts.c: Likewise.
94369         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
94370         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
94371         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
94372         just before including <inttypes.h>, to avoid circular inclusion.
94374 2006-08-28  Jim Meyering  <jim@meyering.net>
94376         * doc/visibility.texi: Actually read and correct the grammar of the
94377         sentence affected by yesterday's change.
94379 2006-08-28  Eric Blake  <ebb9@byu.net>
94381         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
94382         needs wrapper.
94384 2006-08-28  Eric Blake  <ebb9@byu.net>
94386         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
94388 2006-08-28  Eric Blake  <ebb9@byu.net>
94390         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
94392 2006-08-28  Bruno Haible  <bruno@clisp.org>
94394         * modules/c-strstr: New file, from GNU gettext.
94395         * MODULES.html.sh (String handling): Add c-strstr.
94397 2006-08-28  Bruno Haible  <bruno@clisp.org>
94399         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
94400         macros.
94401         Reported by Eric Blake.
94403 2006-08-28  Bruno Haible  <bruno@clisp.org>
94405         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
94406         (VASNPRINTF): Return a string of length > INT_MAX without failing.
94407         * lib/vasprintf.c: Include errno.h, limits.h.
94408         (EOVERFLOW): New fallback definition.
94409         (vasprintf): Test here whether the string length is > INT_MAX.
94410         * lib/vsnprintf.c: Include errno.h, limits.h.
94411         (EOVERFLOW): New fallback definition.
94412         (vsnprintf): Fix bug when generated string was too long for the buffer.
94413         Test here whether the string length is > INT_MAX.
94415 2006-08-28  Bruno Haible  <bruno@clisp.org>
94417         * lib/inttypes_.h (SCNX*): Remove definitions.
94418         Reported by Eric Blake.
94420 2006-08-28  Bruno Haible  <bruno@clisp.org>
94422         * lib/c-strstr.h: New file, from GNU gettext.
94423         * lib/c-strstr.c: New file, from GNU gettext.
94425 2006-08-28  Bruno Haible  <bruno@clisp.org>
94427         * gnulib-tool: Reorder some statements.
94429 2006-08-28  Bruno Haible  <bruno@clisp.org>
94431         * gnulib-tool: New option --makefile-name.
94432         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
94433         $makefile_name.
94434         (func_import): Write $makefile_name to the cache file, and read it from
94435         there unless explicitly specified. Use $makefile_name as file name
94436         instead of Makefile.am. Adjust the recommendations accordingly.
94438 2006-08-28  Bruno Haible  <bruno@clisp.org>
94440         * gnulib-tool (func_verify_module): Check against misapplying patch.
94442 2006-08-28  Bruno Haible  <bruno@clisp.org>
94444         * gnulib-tool (func_relativize, func_relconcat): New functions.
94445         Give an error if --local-dir is given with --update.
94446         Remove trailing slashes from $local_gnulib_dir.
94447         (func_import): Store the relativized $local_gnulib_dir in
94448         gnulib-cache.m4, and read it from there if not specified explicitly.
94450 2006-08-28  Bruno Haible  <bruno@clisp.org>
94452         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
94453         is the current directory. Respect also $local_gnulib_dir.
94455 2006-08-28  Bruno Haible  <bruno@clisp.org>
94456             Simon Josefsson  <jas@extundo.com>
94458         BeOS portability.
94459         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
94461 2006-08-27  Jim Meyering  <jim@meyering.net>
94463         * doc/visibility.texi: Remove duplicate word: "pointer".
94465 2006-08-26  Bruno Haible  <bruno@clisp.org>
94467         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
94468         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
94469         (Makefile.am): Create inttypes.h from inttypes_.h.
94470         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
94472         * modules/imaxabs: New file.
94474         * modules/imaxdiv: New file.
94476 2006-08-26  Bruno Haible  <bruno@clisp.org>
94478         * m4/inttypes.m4: New file.
94479         * m4/_inttypes_h.m4: Remove file.
94480         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
94481         PRI_MACROS_BROKEN.
94482         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
94484         * m4/imaxabs.m4: New file.
94486         * m4/imaxdiv.m4: New file.
94488 2006-08-26  Bruno Haible  <bruno@clisp.org>
94490         * lib/inttypes_.h: New file.
94491         * lib/inttypes.h: Remove file.
94492         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
94494         * lib/imaxabs.c: New file.
94496         * lib/imaxdiv.c: New file.
94498 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
94500         New config-h module, so that "make" output needn't be cluttered
94501         by -DHAVE_CONFIG_H.
94502         * MODULES.html.sh (Support for building libraries and executables):
94503         Add config-h.
94504         * modules/config-h: New file.
94505         * gnulib-tool (nl, sed_transform_lib_file): New vars.
94506         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
94507         the config-h module is used.
94509         New configmake module, so that "make" output needn't be cluttered
94510         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
94511         * MODULES.html.sh (Support for building libraries and executables):
94512         Add configmake.
94513         * modules/configmake: New file.
94515 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
94517         * m4/config-h.m4: New file.
94519 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
94521         * config/srclist.txt: Add elisp-comp.
94523 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
94525         * MODULES.html.sh (Support for building libraries and executables):
94526         Add elisp-comp.
94527         * build-aux/elisp-comp: New file.
94528         * modules/elisp-comp: New file.
94530 2006-08-24  Bruno Haible  <bruno@clisp.org>
94532         * gnulib-tool (func_create_testdir): Use non-default values of
94533         sourcebase and m4base.
94535 2006-08-24  Bruno Haible  <bruno@clisp.org>
94537         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
94538         HTML structure.
94540 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
94542         * modules/openat (Depends-on): Add lchown.
94544 2006-08-23  Bruno Haible  <bruno@clisp.org>
94546         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
94547         of gl_LOCK_EARLY instead of gl_LOCK.
94549 2006-08-23  Bruno Haible  <bruno@clisp.org>
94551         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
94552         on OSF/1 to no.
94553         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
94555 2006-08-23  Bruno Haible  <bruno@clisp.org>
94557         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
94558         as unusable.
94560         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
94561         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
94562         (gl_LOCK): New macro.
94564 2006-08-22  Simon Josefsson  <jas@extundo.com>
94566         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
94567         to md5 module.
94569 2006-08-22  Simon Josefsson  <jas@extundo.com>
94571         * MODULES.html.sh: Add "Support for maintaining and release
94572         projects".
94574         * build-aux/gnupload: New file, from coreutils.
94576 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
94578         Avoid the need for AC_LIBSOURCES in m4 macros.
94579         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
94580         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
94581         * modules/check-version (EXTRA_DIST): Add check-version.h.
94582         * modules/crc (EXTRA_DIST): Add crc.h.
94583         * modules/des (EXTRA_DIST): Add des.h.
94584         * modules/gc (EXTRA_DIST): Add gc.h.
94585         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
94586         * modules/getline (EXTRA_DIST): Add getline.h.
94587         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
94588         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
94589         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
94590         * modules/md2 (EXTRA_DIST): Add md2.h.
94591         * modules/md4 (EXTRA_DIST): Add md4.h.
94592         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
94593         * modules/read-file (EXTRA_DIST): Add read-file.h.
94594         * modules/readline (EXTRA_DIST): Add readline.h.
94595         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
94596         rijndael-api-fst.h.
94598 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
94600         * m4/rijndael.m4 (gl_ARCFOUR):
94601         * m4/arctwo.m4 (gl_ARCTWO):
94602         * m4/check-version.m4 (gl_CHECK_VERSION):
94603         * m4/crc.m4 (gl_CRC):
94604         * m4/des.m4 (gl_DES):
94605         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
94606         * m4/gc.m4 (gl_GC):
94607         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
94608         * m4/getline.m4 (gl_FUNC_GETLINE):
94609         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
94610         * m4/hmac-md5.m4 (gl_HMAC_MD5):
94611         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
94612         * m4/md2.m4 (gl_MD2):
94613         * m4/md4.m4 (gl_MD4):
94614         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
94615         * m4/read-file.m4 (gl_FUNC_READ_FILE):
94616         * m4/readline.m4 (gl_FUNC_READLINE):
94617         * m4/rijndael.m4 (gl_RIJNDAEL):
94618         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
94619         to get the necessary .h files and whatnot.
94621 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
94623         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
94624         gnulib rather than the other way around.
94625         * config/srclistvars.sh (COREUTILS): Remove.
94627 2006-08-22  Jim Meyering  <jim@meyering.net>
94629         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
94631         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
94633 2006-08-22  Eric Blake  <ebb9@byu.net>
94635         * modules/regexprops-generic: New file.
94636         * MODULES.html.sh (Support for building documentation): List it.
94638 2006-08-22  Eric Blake  <ebb9@byu.net>
94640         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
94641         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
94642         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
94643         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
94645 2006-08-22  Bruno Haible  <bruno@clisp.org>
94647         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
94648         and lib_LTLIBRARIES like the other lib_* variables.
94650 2006-08-22  Bruno Haible  <bruno@clisp.org>
94652         * build-aux/x-to-1.in: New file, from GNU gettext.
94654 2006-08-22  Bruno Haible  <bruno@clisp.org>
94656         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
94657         <utmpx.h> exists.
94659 2006-08-22  Bruno Haible  <bruno@clisp.org>
94661         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
94662         <utmpx.h> exists.
94664 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
94666         BeOS portability.
94667         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
94668         exist.
94669         Problem reported by Bruno Haible.
94671 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
94673         Avoid the need for AC_LIBSOURCES in m4 macros.
94674         * modules/acl (EXTRA_DIST): Add acl.h.
94675         * modules/argmatch (Files): Add m4/argmatch.m4.
94676         (configure.ac): Add gl_ARGMATCH.
94677         (EXTRA_DIST): Renamed from lib_SOURCES, for
94678         consistency with the other modules.  Remove argmatch.c.
94679         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
94680         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
94681         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
94682         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
94683         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
94684         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
94685         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
94686         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
94687         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
94688         * modules/closeout (EXTRA_DIST): Add closeout.h.
94689         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
94690         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
94691         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
94692         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
94693         dirname.h; remove basename.c and stripslash.c.
94694         * modules/exclude (EXTRA_DIST): Add exclude.h.
94695         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
94696         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
94697         * modules/file-type (EXTRA_DIST): Add file-type.h.
94698         * modules/filemode (EXTRA_DIST): Add filemode.h.
94699         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
94700         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
94701         * modules/fpending (EXTRA_DIST): Add __fpending.h.
94702         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
94703         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
94704         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
94705         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
94706         * modules/getdate (EXTRA_DIST): Add getdate.c.
94707         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
94708         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
94709         * modules/getpass (EXTRA_DIST): Add getpass.h.
94710         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
94711         * modules/group-member (EXTRA_DIST): Add group-member.h.
94712         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
94713         * modules/hash (EXTRA_DIST): Add hash.h.
94714         * modules/human (EXTRA_DIST): Add human.h.
94715         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
94716         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
94717         * modules/lchown (EXTRA_DIST): Add lchown.h.
94718         * modules/long-options (EXTRA_DIST): Add long-options.h.
94719         * modules/lstat (EXTRA_DIST): Add lstat.h.
94720         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
94721         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
94722         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
94723         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
94724         * modules/memxor (EXTRA_DIST): Add memxor.h.
94725         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
94726         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
94727         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
94728         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
94729         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
94730         * modules/physmem (EXTRA_DIST): Add physmem.h.
94731         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
94732         * modules/posixver (EXTRA_DIST): Add posixver.h.
94733         * modules/quote (EXTRA_DIST): Add quote.h.
94734         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
94735         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
94736         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
94737         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
94738         regex_internal.h regexec.c.
94739         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
94740         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
94741         * modules/same (EXTRA_DIST): Add same.h.
94742         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
94743         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
94744         * modules/savedir (EXTRA_DIST): Add savedir.h.
94745         * modules/sha1 (EXTRA_DIST): Add sha1.h.
94746         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
94747         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
94748         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
94749         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
94750         * modules/strdup (EXTRA_DIST): Add strdup.h.
94751         * modules/strftime (EXTRA_DIST): Add strftime.h.
94752         * modules/strndup (EXTRA_DIST): Add strndup.h.
94753         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
94754         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
94755         * modules/time_r (EXTRA_DIST): Add time_r.h.
94756         * modules/timespec (EXTRA_DIST): Add timespec.h.
94757         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
94758         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
94759         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
94760         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
94761         * modules/userspec (EXTRA_DIST): Add userspec.h.
94762         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
94763         * modules/utimens (EXTRA_DIST): Add utimens.h.
94764         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
94765         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
94766         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
94767         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
94768         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
94769         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
94770         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
94771         * modules/yesno (EXTRA_DIST): Add yesno.h.
94773 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
94775         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
94777         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
94778         * m4/dev-ino.m4, same-inode.m4: Remove.
94780         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
94781         * m4/acl.m4 (AC_FUNC_ACL):
94782         * m4/backupfile.m4 (gl_BACKUPFILE):
94783         * m4/c-strtod.m4 (gl_C99_STRTOLD):
94784         * m4/canon-host.m4 (gl_CANON_HOST):
94785         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
94786         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
94787         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
94788         * m4/cloexec.m4 (gl_CLOEXEC):
94789         * m4/close-stream.m4 (gl_CLOSE_STREAM):
94790         * m4/closeout.m4 (gl_CLOSEOUT):
94791         * m4/dirfd.m4 (gl_FUNC_DIRFD):
94792         * m4/dirname.m4 (gl_DIRNAME):
94793         * m4/exclude.m4 (gl_EXCLUDE):
94794         * m4/exitfail.m4 (gl_EXITFAIL):
94795         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
94796         * m4/file-type.m4 (gl_FILE_TYPE):
94797         * m4/filemode.m4 (gl_FILEMODE):
94798         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
94799         * m4/fpending.m4 (gl_FUNC_FPENDING):
94800         * m4/fprintftime.m4 (gl_FPRINTFTIME):
94801         * m4/fts.m4 (gl_FUNC_FTS):
94802         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
94803         * m4/getdate.m4 (gl_GETDATE):
94804         * m4/gethrxtime.m4 (gl_GETHRXTIME):
94805         * m4/getpagesize.m4 (gl_GETPAGESIZE):
94806         * m4/getpass.m4 (gl_FUNC_GETPASS):
94807         * m4/gettime.m4 (gl_GETTIME):
94808         * m4/getugroups.m4 (gl_GETUGROUPS):
94809         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
94810         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
94811         * m4/hard-locale.m4 (gl_HARD_LOCALE):
94812         * m4/hash.m4 (gl_HASH):
94813         * m4/idcache.m4 (gl_IDCACHE):
94814         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
94815         * m4/lchown.m4 (gl_FUNC_LCHOWN):
94816         * m4/long-options.m4 (gl_LONG_OPTIONS):
94817         * m4/lstat.m4 (gl_FUNC_LSTAT):
94818         * m4/md5.m4 (gl_MD5):
94819         * m4/memcasecmp.m4 (gl_MEMCASECMP):
94820         * m4/memcoll.m4 (gl_MEMCOLL):
94821         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
94822         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
94823         * m4/memxor.m4 (gl_MEMXOR):
94824         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
94825         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
94826         * m4/modechange.m4 (gl_MODECHANGE):
94827         * m4/mountlist.m4 (gl_MOUNTLIST):
94828         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
94829         * m4/openat.m4 (gl_FUNC_OPENAT):
94830         * m4/pathmax.m4 (gl_PATHMAX):
94831         * m4/physmem.m4 (gl_PHYSMEM):
94832         * m4/posixtm.m4 (gl_POSIXTM):
94833         * m4/posixver.m4 (gl_POSIXVER):
94834         * m4/quote.m4 (gl_QUOTE):
94835         * m4/quotearg.m4 (gl_QUOTEARG):
94836         * m4/readtokens.m4 (gl_READTOKENS):
94837         * m4/readutmp.m4 (gl_READUTMP):
94838         * m4/regex.m4 (gl_REGEX):
94839         * m4/safe-read.m4 (gl_SAFE_READ):
94840         * m4/safe-write.m4 (gl_SAFE_WRITE):
94841         * m4/same.m4 (gl_SAME):
94842         * m4/save-cwd.m4 (gl_SAVE_CWD):
94843         * m4/savedir.m4 (gl_SAVEDIR):
94844         * m4/settime.m4 (gl_SETTIME):
94845         * m4/sha1.m4 (gl_SHA1):
94846         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
94847         * m4/stat-macros.m4 (gl_STAT_MACROS):
94848         * m4/stat-time.m4 (gl_STAT_TIME):
94849         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
94850         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
94851         * m4/strdup.m4 (gl_FUNC_STRDUP):
94852         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
94853         * m4/strndup.m4 (gl_FUNC_STRNDUP):
94854         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
94855         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
94856         * m4/time_r.m4 (gl_TIME_R):
94857         * m4/timespec.m4 (gl_TIMESPEC):
94858         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
94859         * m4/unlinkdir.m4 (gl_UNLINKDIR):
94860         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
94861         * m4/userspec.m4 (gl_USERSPEC):
94862         * m4/utimecmp.m4 (gl_UTIMECMP):
94863         * m4/utimens.m4 (gl_UTIMENS):
94864         * m4/xalloc.m4 (gl_XALLOC):
94865         * m4/xgetcwd.m4 (gl_XGETCWD):
94866         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
94867         * m4/xreadlink.m4 (gl_XREADLINK):
94868         * m4/xstrtod.m4 (gl_XSTRTOD):
94869         * m4/yesno.m4 (gl_YESNO):
94870         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
94871         to get the necessary .h files and whatnot.
94873 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
94874             Bruno Haible  <bruno@clisp.org>
94876         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
94877         /bin/sh understanding of '!' conditional negation.
94879 2006-08-21  Jim Meyering  <jim@meyering.net>
94881         * modules/openat (Depends-on): Really alphabetize.
94883         * modules/acl (Depends-on): Add error and quote.
94885         * check-module (find_included_lib_files): Add at-func.c to the
94886         ok-to-include-more-than-once white list.
94888         * modules/openat (Depends-on): Add lstat.  Alphabetize.
94890 2006-08-21  Bruno Haible  <bruno@clisp.org>
94892         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
94893         Emit a pkgdata_DATA variable only if some snippets add contents to it.
94894         Reported by Martin Lambers <marlam@marlam.de>.
94896 2006-08-21  Bruno Haible  <bruno@clisp.org>
94898         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
94899         specify an installation location, don't emit a noinst_LIBRARIES or
94900         noinst_LTLIBRARIES assignment.
94902 2006-08-21  Bruno Haible  <bruno@clisp.org>
94904         BeOS portability.
94905         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
94906         BeOS has mbrtowc() but no <wctype.h>.
94908 2006-08-21  Bruno Haible  <bruno@clisp.org>
94910         BeOS portability.
94911         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
94912         exist.
94914 2006-08-21  Bruno Haible  <bruno@clisp.org>
94916         BeOS portability.
94917         * lib/mbchar.h: Include <wctype.h> only if it exists.
94919 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
94921         Remove files that are no longer needed by their respective modules.
94922         * m4/obstack.m4: Remove.
94923         * m4/strerror_r.m4: Remove.
94924         * m4/uint32_t.m4: Remove.
94925         * m4/uintptr_t.m4: Remove.
94926         * m4/ullong_max.m4: Remove.
94927         * m4/xstrtoimax.m4: Remove.
94928         * m4/xstrtoumax.m4: Remove.
94930         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
94931         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
94932         dependencies now capture this.
94934         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
94935         Do not use AC_LIBSOURCES, since gnulib modules now do this.
94936         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
94937         * m4/human.m4 (gl_HUMAN): Likewise.
94938         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
94939         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
94941         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
94943         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
94944         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
94945         stdint.
94946         * m4/human.m4 (gl_HUMAN): Likewise.
94947         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
94948         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
94949         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
94950         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
94951         * m4/xstrtol (gl_XSTRTOL): Likewise.
94953         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
94954         AC_TYPE_LONG_LONG_INT.
94955         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
94956         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
94957         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
94958         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
94960         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
94961         on stdbool.
94963         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
94964         (gl_PREREQ_XSTRTOUL): Remove.
94966         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
94968         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
94969         mode.
94971 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
94973         Add and change modules to make it easier for coreutils to use
94974         gnulib-tool.
94975         * modules/backupfile (Files): Remove m4/d-ino.m4.
94976         (Depends-on): Add d-ino.
94977         * modules/cycle-check (Depends-on): Add stdint.
94978         (lib_SOURCES): Add cycle-check.h.
94979         * modules/d-ino: New module.
94980         * modules/d-type: New module.
94981         * modules/error (Files): Remove m4/strerror_r.m4.
94982         * modules/filemode (Files): Add m4/st_dm_mode.m4.
94983         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
94984         m4/inttypes_h.m4, m4/uintmax_t.m4.
94985         (Depends-on): Add stdint.
94986         (lib_SOURCES): Add fsusage.h.
94987         * modules/getcwd (Files): Remove d-ino.m4.
94988         (Depends-on): Add d-ino.
94989         * modules/getndelim2 (Depends-on): Add stdint.
94990         * modules/glob (Files): Remove m4/d-type.m4.
94991         (Depends-on): Add d-type.
94992         * modules/host-os: New module.
94993         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
94994         m4/inttypes_h.m4, m4/uintmax_t.m4.
94995         * Depends-on: Add stdint.
94996         (lib_SOURCES): Add human.h.
94997         * modules/inttostr (Files): Remove m4/intmax_t.m4,
94998         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
94999         m4/uintmax_t.m4, m4/ulonglong.m4.
95000         (Depends-on): Add stdint.
95001         (EXTRA_DIST): Add inttostr.h.
95002         * modules/lchmod: New module.
95003         * modules/link-follow: New module.
95004         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
95005         (Depends-on): Add lchmod.
95006         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
95007         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
95008         (Depends-on): Add stdint.
95009         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
95010         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
95011         (Depends-on): Add stdint.
95012         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
95013         * modules/perl: New module.
95014         * modules/regex (Depends-on): Add stdint.
95015         * modules/rmdir-errno: New module.
95016         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
95017         m4/intmax_t.m4.
95018         (Depends-on): Add stdint.
95019         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
95020         m4/uintmax_t.m4.
95021         (Depends-on): Add stdint.
95022         * modules/unlink-busy: New module.
95023         * modules/utimecmp (Depends-on): Add stdint.
95024         * modules/uptime: New module.
95025         * modules/winsz-ioctl: New module.
95026         * modules/winsz-termios: New module.
95027         * modules/xnanosleep (Depends-on): Add nanosleep.
95028         * modules/ullong_max: Remove.
95029         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
95030         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
95031         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
95032         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
95033         (Depends-on): Add inttypes.
95034         (lib_SOURCES): Add xstrtol.h.
95035         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
95036         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
95037         * MODULES.html.sh: Move 'assert' into the assert section.
95038         Move 'dummy' into the linking section.
95039         Remove ullong_max.
95040         Add section for compatibility checks for POSIX:2001 functions,
95041         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
95042         winsz-ioctl, and winsz-termios into it.
95043         Add lchmod.
95044         Add top-level Misc section and put host-os, perl, and uptime
95045         into it.
95047 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
95049         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
95050         now assume the stdint module.  Do not include inttypes.h.
95051         * lib/fsusage.h: Likewise.
95052         * lib/getndelim2.c: Likewise.
95053         * lib/human.h: Likewise.
95054         * lib/inttostr.h: Likewise.
95055         * lib/obstack.c: Likewise.
95056         * lib/regex_internal.h: Likewise.
95057         * lib/tempname.c: Likewise.
95058         * lib/utimecmp.c: Likewise.
95059         * lib/xstrtol.h: Likewise.
95061         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
95063         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
95064         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
95065         * lib/xtime.h: Likewise.
95067 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
95069         * modules/openat (Files): Add lib/fchmodat.c.
95070         Fixes problem reported by Jay Youngman.
95072 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
95074         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
95075         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
95077 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
95078             Bruno Haible  <bruno@clisp.org>
95080         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
95081         and is a script that invokes bison. Tighten the code. Add comments.
95083 2006-08-18  Jim Meyering  <jim@meyering.net>
95085         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
95086         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
95087         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
95088         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
95090 2006-08-18  Bruno Haible  <bruno@clisp.org>
95092         * modules/bison-i18n: New file.
95093         * MODULES.html.sh (Internationalization functions): Add it.
95095 2006-08-18  Bruno Haible  <bruno@clisp.org>
95097         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
95098         sys/statvfs.h. When getmntinfo was found, check its declaration and
95099         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
95101 2006-08-18  Bruno Haible  <bruno@clisp.org>
95103         * m4/bison-i18n.m4: New file, from bison.
95105 2006-08-18  Bruno Haible  <bruno@clisp.org>
95107         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
95108         (ME_DUMMY): Treat "kernfs" as a dummy.
95109         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
95111 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
95113         Update from coreutils.
95115         2006-08-15  Jim Meyering  <jim@meyering.net>
95117         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
95119         2006-01-17  Jim Meyering  <jim@meyering.net>
95121         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
95123         2006-01-11  Jim Meyering  <jim@meyering.net>
95125         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
95126         Check for the lchmod function.
95128 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
95130         Update from coreutils.
95132         * lib/__fpending.h: Add copyright notice.
95133         * lib/fprintftime.h: Likewise.
95134         * lib/savedir.c: Use (C) in copyright notice.
95135         * lib/savedir.h: Likewise.
95137         2006-08-15  Jim Meyering  <jim@meyering.net>
95139         * lib/at-func.c: New file, with the logic of all emulated at-functions.
95140         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
95141         in support of the EXPECTED_ERRNO macro.
95142         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
95143         definitions.  Instead, define the appropriate symbols and include
95144         "at-func.c".
95145         * lib/mkdirat.c (mkdirat): Likewise.
95146         * lib/fchmodat.c (fchmodat): Likewise.
95147         (ENOSYS): Remove definition.
95148         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
95149         it.  Don't include "unistd--.h" -- it wasn't ever used.
95151         2006-01-17  Jim Meyering  <jim@meyering.net>
95153         Rewrite fts.c not to change the current working directory,
95154         by using openat, fstatat, fdopendir, etc..
95156         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
95157         (HAVE_OPENAT_SUPPORT): Define.
95158         [_LIBC] (fchdir): Don't undef or define; no longer used.
95159         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
95160         Now, this `function' always succeeds, and consumes its file descriptor
95161         parameter -- so callers must not close such FDs.  Update callers.
95162         (diropen_fd, opendirat, cwd_advance_fd): New functions.
95163         (diropen): Add parameter, SP.  Adjust all callers.
95164         Implement using diropen_fd, rather than open.
95165         (fts_open): Initialize new member, fts_cwd_fd.
95166         Remove fts_rft-setting code.
95167         (fts_close): Close fts_cwd_fd, if necessary.
95168         (__opendir2): Define in terms of opendir or opendirat,
95169         depending on whether the FST_NOCHDIR flag is set.
95170         (fts_build): Since fts_safe_changedir consumes its FD, and since
95171         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
95172         and close the dup'd file descriptor upon failure.
95173         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
95174         (fts_safe_changedir): Tweak semantics to reflect that this function
95175         now calls cwd_advance_fd and hence consumes its FD argument.
95176         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
95177         [struct FTS] (fts_rft): Remove now-unused member.
95178         [struct FTS] (fts_cycle.state): Improve comment.
95180         * lib/openat.c (openat_needs_fchdir): New function.
95181         * lib/openat.h (openat_needs_fchdir): Declare it.
95183 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
95185         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
95186         Problem and fix reported by Pádraig Brady in
95187         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
95189 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
95191         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
95193 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
95195         * lib/memcoll.c (memcoll): Optimize for the common case where the
95196         arguments are bytewise equal.
95198 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
95200         * doc/regexprops-generic.texi: Add a copyright notice.
95202 2006-08-15  Bruno Haible  <bruno@clisp.org>
95204         * modules/tmpdir (License): Change to LGPL.
95206 2006-08-15  Bruno Haible  <bruno@clisp.org>
95208         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
95209         module.
95211 2006-08-14  Simon Josefsson  <jas@extundo.com>
95213         * config/srclist.txt: Add gnupload.
95215 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
95217         Change copyright notice from LGPL 2 to GPL 2, since that's the
95218         standard form used in the gnulib repository.
95219         * tests/test-lock.c: Likewise.
95220         * tests/test-stdint.c: Likewise.
95221         * tests/test-tls.c: Likewise.
95223         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
95224         prelude-manager.  User shorter URLs for GNU projects, without '?'.
95225         Add copyright notice.
95227         * check-module: Add copyright notice.  Output a copyright
95228         notice if "--version" is specified.
95229         * modules/COPYING: New file.
95230         * tests/test-getaddrinfo.c: Add copyright notice.
95231         * tests/test-verify.c: Likewise.
95233 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
95235         Change copyright notice from LGPL 2 to GPL 2, since that's the
95236         standard form used in the gnulib repository.
95237         * lib/lock.c: LGPL -> GPL.
95238         * lib/lock.h: Likewise.
95239         * lib/strnlen1.c: Likewise.
95240         * lib/strnlen1.h: Likewise.
95241         * lib/tls.c: Likewise.
95242         * lib/tls.h: Likewise.
95243         * lib/tmpdir.c: Likewise.
95245         * lib/TODO: Remove; this belongs only in coreutils.
95247 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
95249         Add copyright notices to long-enough files that lack them, since
95250         otherwise the files aren't clearly free.  Use the same notice that
95251         getdate.texi already uses.
95252         * doc/alloca-opt.texi: Add copyright notice.
95253         * doc/alloca.texi: Likewise.
95254         * doc/ctime.texi: Likewise.
95255         * doc/functions.texi: Likewise.
95256         * doc/gcd.texi: Likewise.
95257         * doc/gnulib-tool.texi: Likewise.
95258         * doc/inet_ntoa.texi: Likewise.
95259         * doc/visibility.texi: Likewise.
95261         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
95262         * doc/quote.texi: Add copyright notice.
95264         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
95265         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
95266         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
95267         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
95268         is now obsolete, and give a pointer to the Sun list.
95269         Add copyright notice.
95271 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
95273         * config/srclistvars.sh: Add copyright notice.
95275 2006-08-14  Eric Blake  <ebb9@byu.net>
95277         Import the following change from libc:
95279         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
95281         Upstream bug 2997.
95282         * lib/misc/error.c: Add space between program name and message if file
95283         name is missing.
95285 2006-08-12  Karl Berry  <karl@gnu.org>
95287         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
95288         remove, these originate in gnulib now.
95290 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95292         * doc/Makefile (standards.info standards.html standards.dvi):
95293         Also depend on make-stds.texi.
95295 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
95297         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
95298         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
95300         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
95301         in wchar_t.  Problem reported by Eric Blake.
95303         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
95304         LEN is smaller than SIZE.  Suggested by Bruno Haible.
95305         Also, help the compiler to keep LEN in a register.
95307 2006-08-11  Eric Blake  <ebb9@byu.net>
95309         * users.txt: Sort.  Add tar.
95311 2006-08-11  Bruno Haible  <bruno@clisp.org>
95313         * users.txt: New file.
95315 2006-08-11  Bruno Haible  <bruno@clisp.org>
95317         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
95318         before <wchar.h>. Needed for OSF/1 and BSD/OS.
95320 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
95322         * modules/snprintf (Depends-on): Remove minmax.
95323         (Maintainer): Add self and Bruno.
95325 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
95327         * lib/.cppi-disable: Add snprintf.h, socket_.h.
95328         * lib/snprintf.c: Include <errno.h> and <limits.h>.
95329         (EOVERFLOW): Define if the system does not.
95330         Do not include "minmax.h"; it wasn't used.
95331         (snprintf): Don't assume size_t promotes to an unsigned type.
95332         Fix bug when generated string was too long for the buffer: the
95333         buffer's contents are supposed to be the initial prefix of the
95334         output.  Don't assume vasnprintf returns EOVERFLOW if the size
95335         exceeds INT_MAX; do the check ourselves.
95337         Import the following changes from libc:
95339         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
95341         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
95342         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
95343         set wc to the byte which couldn't be converted.
95344         (re_string_reconstruct): Don't clear valid_raw_len before calling
95345         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
95346         tip_context using re_string_context_at.
95348         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
95350         * lib/posix/regex.h: g++ still cannot handled [restrict].
95352         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
95354         * lib/posix/regex.h: Remove special handling for VMS.
95356 2006-08-10  Jim Meyering  <jim@meyering.net>
95358         * modules/same-inode: New module.
95359         * modules/dev-ino: New module.
95360         * modules/cycle-check: Depend on these modules, rather than simply
95361         including their .h files.
95362         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
95363         required via m4/cycle-check.m4.
95364         * modules/same: Depend on new same-inode module, rather than
95365         including same-inode.h.
95366         * modules/chdir-safer: New file.
95368         * modules/chown (Depends-on): Add stat-macros.
95370 2006-08-10  Jim Meyering  <jim@meyering.net>
95372         * m4/cycle-check.m4: New file.
95373         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
95374         * m4/dev-ino.m4, m4/same-inode.m4: New files.
95376 2006-08-10  Eric Blake  <ebb9@byu.net>
95378         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
95379         in from original proposal.
95381 2006-08-10  Eric Blake  <ebb9@byu.net>
95382         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
95384         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
95385         namespace.
95387 2006-08-10  Bruno Haible  <bruno@clisp.org>
95389         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
95390         as well.
95392 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
95394         Sync from coreutils.
95396         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
95398         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
95399         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
95401 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
95403         * modules/restrict: Remove; no longer needed now that we assume
95404         Autoconf 2.59 or later.
95405         * MODULES.html.sh: Remove 'restrict'.
95406         * modules/argp (Depends-on): Remove 'restrict'.
95407         * modules/base64 (Depends-on): Likewise.
95408         * modules/gc (Depends-on): Likewise.
95409         * modules/getaddrinfo (Depends-on): Likewise.
95410         * modules/glob (Depends-on): Likewise.
95411         * modules/inet_ntop (Depends-on): Likewise.
95412         * modules/inet_pton (Depends-on): Likewise.
95413         * modules/memxor (Depends-on): Likewise.
95414         * modules/regex (Depends-on): Likewise.
95415         * modules/strtok_r (Depends-on): Likewise.
95416         * modules/time_r (Depends-on): Likewise.
95418 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
95420         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
95421         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
95422         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
95423         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
95424         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
95425         * m4/memxor.m4 (gl_MEMXOR): Likewise.
95426         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
95427         gl_C_RESTRICT replaced by AC_C_RESTRICT.
95429         Merge from coreutils.
95430         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
95431         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
95432         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
95433         * m4/time_r.m4 (gl_TIME_R): Likewise.
95435 2006-08-09  Karl Berry  <karl@gnu.org>
95437         * config/srclist.txt: no more gettext-tools, per Bruno.
95439 2006-08-08  Eric Blake  <ebb9@byu.net>
95441         * modules/verror: New module.
95442         * MODULES.html.sh: Document it.
95444 2006-08-08  Eric Blake  <ebb9@byu.net>
95446         * lib/verror.h, lib/verror.c: New files.
95448 2006-08-08  Eric Blake  <ebb9@byu.net>
95450         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
95451         verror_at_line output complies with GNU Coding Standards even when
95452         file is NULL.
95454 2006-08-07  Bruno Haible  <bruno@clisp.org>
95456         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
95457         versions of AIX.
95458         Reported by Ralf Wildenhues.
95460 2006-08-07  Bruno Haible  <bruno@clisp.org>
95462         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
95463         in an AC_DEFUN. Needed so that the autoconf snippets can use
95464         AC_REQUIRE.
95466 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95468         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
95469         Initialize pkgdata_DATA.
95470         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
95471         overriding it.
95473 2006-08-06  Eric Blake  <ebb9@byu.net>
95475         * lib/error.h: Fold in some upstream changes from glibc.
95476         * lib/error.c: Likewise.
95478 2006-08-04  Bruno Haible  <bruno@clisp.org>
95480         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
95481         Make the mostlyclean-local rule depend on mostlyclean-generic.
95482         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
95484 2006-07-31  Bruno Haible  <bruno@clisp.org>
95486         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
95487         <stdlib.h>, <string.h>.
95489 2006-07-30  Bruno Haible  <bruno@clisp.org>
95491         * modules/readlink (License): Change to LGPL.
95493 2006-07-30  Bruno Haible  <bruno@clisp.org>
95495         * modules/javaversion (Makefile.am): Distribute javaversion.java and
95496         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
95497         set PKGDATADIR to point to it.
95499 2006-07-30  Bruno Haible  <bruno@clisp.org>
95501         * modules/csharpexec (configure.ac): Comment out macro invocation.
95502         * modules/javaexec (configure.ac): Likewise.
95503         * modules/javacomp-script (configure.ac): Likewise.
95505         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
95507 2006-07-30  Bruno Haible  <bruno@clisp.org>
95509         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
95510         linked-list.
95512 2006-07-30  Bruno Haible  <bruno@clisp.org>
95514         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
95516 2006-07-30  Bruno Haible  <bruno@clisp.org>
95518         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
95519         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
95520         get removed.
95522 2006-07-29  Bruno Haible  <bruno@clisp.org>
95524         Make it possible for gnulib-tool to work with locally modified or
95525         augmented gnulib repositories.
95526         * gnulib-tool (func_usage): Document --local-dir option.
95527         (local_gnulib_dir): New variable.
95528         Handle --local-dir option.
95529         (func_lookup_file): New function.
95530         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
95531         (func_get_description, func_get_filelist, func_get_description,
95532         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
95533         func_get_automake_snippet, func_get_include_directive,
95534         func_get_license, func_get_maintainer): Use func_lookup_file.
95535         (func_import, func_create_testdir): Use func_lookup_file.
95537 2006-07-29  Bruno Haible  <bruno@clisp.org>
95539         * modules/setenv (Depends-on): Add unistd.
95541 2006-07-29  Bruno Haible  <bruno@clisp.org>
95543         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
95545 2006-07-29  Bruno Haible  <bruno@clisp.org>
95547         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
95549 2006-07-29  Bruno Haible  <bruno@clisp.org>
95551         * gnulib-tool (import, update): If there is no Makefile.am, look at
95552         aclocal.m4, instead of bailing out.
95554 2006-07-29  Bruno Haible  <bruno@clisp.org>
95556         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
95557         Categorize the options by when they are useful.
95559 2006-07-29  Bruno Haible  <bruno@clisp.org>
95561         * gnulib-tool (func_usage): Document option --no-libtool.
95562         Handle option --no-libtool.
95563         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
95564         for changed semantics of $libtool variable.
95565         (func_import): Likewise. If libtool is not used, show this through
95566         an option --no-libtool.
95567         (func_create_testdir): Update.
95569 2006-07-29  Bruno Haible  <bruno@clisp.org>
95571         * gnulib-tool (func_import): Extend error message about missing
95572         --doc-base.
95574 2006-07-29  Bruno Haible  <bruno@clisp.org>
95576         * gnulib-tool (func_import): Don't create the $docbase directory if
95577         there is no file to store there.
95579 2006-07-29  Bruno Haible  <bruno@clisp.org>
95581         * gnulib-tool (autoconf_minversion): If a --dir option is given and
95582         relevant, look for configure.ac there, not in the current directory.
95583         Also use a simple search for AC_PREREQ, not "autoconf --trace".
95585 2006-07-29  Bruno Haible  <bruno@clisp.org>
95587         * gnulib-tool (SORT): New variable.
95588         (func_usage): Undocument --assume-autoconf option.
95589         Remove --assume-autoconf option handling.
95590         (autoconf_minversion): Determine from the contents of configure.ac.
95591         (func_import): Remove autoconf_minversion handling.
95592         Suggested by Eric Blake.
95594 2006-07-29  Bruno Haible  <bruno@clisp.org>
95596         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
95598 2006-07-29  Bruno Haible  <bruno@clisp.org>
95600         * config/srclist.txt (*setenv.[ch]): Remove rules.
95602 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
95604         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
95606 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
95608         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
95609         arpa/inet.h.
95611 2006-07-28  Simon Josefsson  <jas@extundo.com>
95613         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
95614         * modules/inet_pton (Depends-on): Likewise.
95616 2006-07-28  Simon Josefsson  <jas@extundo.com>
95618         * m4/netinet_in_h.m4: New file.
95620 2006-07-28  Simon Josefsson  <jas@extundo.com>
95622         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
95623         #include's.
95625 2006-07-28  Simon Josefsson  <jas@extundo.com>
95627         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
95628         #include's.
95630 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
95632         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
95633         setgid on directories only if they set these bits.
95634         * lib/modechange.h: Remove obsolete comment about masks.
95636 2006-07-28  Eric Blake  <ebb9@byu.net>
95638         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
95639         macro expansion.
95641 2006-07-28  Bruno Haible  <bruno@clisp.org>
95643         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
95645 2006-07-28  Bruno Haible  <bruno@clisp.org>
95647         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
95649 2006-07-28  Bruno Haible  <bruno@clisp.org>
95651         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
95652         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
95653         Define fallbacks.
95654         Avoids link error on FreeBSD 4.x.
95655         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
95657         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
95658         encoding.
95659         * lib/mbswidth.c (iswcntrl): Likewise.
95661 2006-07-27  Bruno Haible  <bruno@clisp.org>
95663         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
95664         test.
95666 2006-07-27  Bruno Haible  <bruno@clisp.org>
95668         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
95669         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
95670         defined.
95672 2006-07-26  Eric Blake  <ebb9@byu.net>
95674         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
95676 2006-07-26  Eric Blake  <ebb9@byu.net>
95678         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
95679         like mingw that lack mkstemp.
95680         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
95681         avoid compilation warning on mingw.
95683 2006-07-26  Bruno Haible  <bruno@clisp.org>
95685         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
95686         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
95687         INT_FAST*_MIN, INTPTR_MIN.
95689 2006-07-25  Bruno Haible  <bruno@clisp.org>
95691         * modules/version-etc (Depends-on): Add stdarg.
95693 2006-07-25  Bruno Haible  <bruno@clisp.org>
95695         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
95696         complex commands.
95698 2006-07-25  Bruno Haible  <bruno@clisp.org>
95700         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
95701         defined in <stdarg.h> or config.h.
95703 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
95705         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
95706         (gl_STDIO_SAFER): Remove.
95708 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
95710         * MODULES.html.sh (File stream based Input/Output):
95711         Add fopen-safer, tmpfile-safer; remove stdio-safer.
95712         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
95713         * modules/fopen-safer, modules/tmpfile-safer: New files.
95714         * modules/stdio-safer: Remove.
95716 2006-07-24  Bruno Haible  <bruno@clisp.org>
95718         * modules/tmpdir: New file.
95719         * MODULES.html.sh (File system functions): Add it.
95721 2006-07-24  Bruno Haible  <bruno@clisp.org>
95723         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
95724         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
95726 2006-07-24  Bruno Haible  <bruno@clisp.org>
95728         * modules/clean-temp: New file.
95730 2006-07-24  Bruno Haible  <bruno@clisp.org>
95732         * m4/tmpdir.m4: New file, from GNU gettext.
95734 2006-07-24  Bruno Haible  <bruno@clisp.org>
95736         * lib/tmpdir.h: New file, from GNU gettext.
95737         * lib/tmpdir.c: New file, from GNU gettext.
95739 2006-07-24  Bruno Haible  <bruno@clisp.org>
95741         * lib/clean-temp.h: New file, from GNU gettext.
95742         * lib/clean-temp.c: New file, from GNU gettext.
95744 2006-07-23  Eric Blake  <ebb9@byu.net>
95746         * modules/stdio-safer (Files): Add tmpfile-safer.c.
95747         (Depends-on): Add binary-io.
95749 2006-07-23  Eric Blake  <ebb9@byu.net>
95751         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
95753 2006-07-23  Eric Blake  <ebb9@byu.net>
95755         * lib/tmpfile-safer.c: New file.
95756         * lib/stdio-safer.h (fopen_safer): Add prototype.
95757         * lib/stdio--.h (tmpfile): Make safer.
95759 2006-07-23  Bruno Haible  <bruno@clisp.org>
95761         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
95762         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
95763         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
95764         gl_linked_remove_at): Use it.
95766 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
95767         and Simon Josefsson <jas@extundo.com>
95769         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
95771         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
95773 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
95775         * modules/close-stream: New file.
95776         * modules/closeout (Description): Make it clear that it exits
95777         with a diagnostic on error.
95778         (Depends-on): Add close-stream.  Remove fpending, stdbool.
95779         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
95781 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
95783         * m4/close-stream.m4: New file.
95785 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
95787         * lib/close-stream.c, lib/close-stream.h: New files.
95789 2006-07-22  Bruno Haible  <bruno@clisp.org>
95791         Merge from GNU gettext 0.15.
95793         2006-05-01  Bruno Haible  <bruno@clisp.org>
95795                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
95797         2006-07-22  Bruno Haible  <bruno@clisp.org>
95799                 * modules/javaversion: New file.
95800                 * MODULES.html.sh (Java): Add javaversion.
95802         2006-03-12  Bruno Haible  <bruno@clisp.org>
95804                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
95806         2005-12-04  Bruno Haible  <bruno@clisp.org>
95808                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
95809                 (untested).
95811         2006-06-21  Bruno Haible  <bruno@clisp.org>
95813                 Avoid warnings from recent versions of mcs.
95814                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
95815                 -o, -L, -r any more. Use options documented since mcs-1.0
95816                 instead. Similarly for -g.
95818         2005-12-04  Bruno Haible  <bruno@clisp.org>
95820                 * build-aux/csharpcomp.sh.in: Suffix for resources is
95821                 .resources, not .resource.
95823         2005-07-09  Bruno Haible  <bruno@clisp.org>
95825                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
95826                 add a .dll suffix.
95827                 Reported by Mark Junker <mjscod@gmx.de>.
95829         2006-07-22  Bruno Haible  <bruno@clisp.org>
95831                 * modules/gettext: Upgrade to gettext-0.15.
95832                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
95833                 m4/visibility.m4.
95834                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
95836 2006-07-22  Bruno Haible  <bruno@clisp.org>
95838         Merge from GNU gettext 0.15.
95840         2006-03-25  Bruno Haible  <bruno@clisp.org>
95842                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
95844         2006-07-21  Bruno Haible  <bruno@clisp.org>
95846                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
95847                 "1.1".
95849         2006-05-09  Bruno Haible  <bruno@clisp.org>
95851                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
95852                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
95853                 for the conftestver execution.
95855         2006-05-01  Bruno Haible  <bruno@clisp.org>
95857                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
95858                 optional target-version argument. Verify that the compiler
95859                 groks source of the specified source-version, or add -source
95860                 option as necessary. Verify that the compiler produces
95861                 bytecode in the specified target-version, or add -target and
95862                 -source options as necessary. Make the result of the test
95863                 available as variable CONF_JAVAC. Also log error output in
95864                 config.log.
95866         2006-03-11  Bruno Haible  <bruno@clisp.org>
95868                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
95870         2006-05-09  Bruno Haible  <bruno@clisp.org>
95872                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
95873                 CLASSPATH_SEPARATOR to a semicolon.
95875         2006-03-12  Bruno Haible  <bruno@clisp.org>
95877                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
95878                 available as variable CONF_JAVA, for subsequent autoconf
95879                 tests. Also log error output in config.log.
95881         2006-07-19  Bruno Haible  <bruno@clisp.org>
95883                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
95884                 that getline works on glibc2 systems. Needed to avoid trouble
95885                 in relocatable.c.
95886                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
95888         2005-12-04  Bruno Haible  <bruno@clisp.org>
95890                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
95891                 launcher (untested).
95893         2005-12-04  Bruno Haible  <bruno@clisp.org>
95895                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
95897         2006-07-22  Bruno Haible  <bruno@clisp.org>
95899                 * gettext.m4: Update from GNU gettext-0.15.
95900                 * nls.m4: Likewise.
95901                 * po.m4: Likewise.
95902                 * inttypes-pri.m4: Likewise.
95903                 * inttypes-h.m4: Renamed from inttypes.m4.
95904                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
95906 2006-07-22  Bruno Haible  <bruno@clisp.org>
95908         Merge from GNU gettext 0.15.
95910         2005-07-05  Bruno Haible  <bruno@clisp.org>
95912                 * printf-args.c (printf_fetchargs): Work around broken
95913                 definition of wint_t on mingw.
95915         2005-02-12  Bruno Haible  <bruno@clisp.org>
95917                 * xallocsa.h: Add extern "C" for C++.
95919         2006-05-17  Bruno Haible  <bruno@clisp.org>
95921                 Cygwin portability.
95922                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
95924         2006-04-30  Bruno Haible  <bruno@clisp.org>
95926                 * progreloc.c: Include <mach-o/dyld.h> if available.
95927                 (find_executable): Use _NSGetExecutablePath when possible.
95929         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
95931                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
95932                 function.
95934         2005-12-29  Bruno Haible  <bruno@clisp.org>
95936                 * progreloc.c (set_program_name_and_installdir): Fix
95937                 compilation error.
95939         2005-12-04  Bruno Haible  <bruno@clisp.org>
95941                 Cygwin portability.
95942                 * progreloc.c: Include <windows.h> also on Cygwin.
95943                 (find_executable): Add support for Cygwin.
95944                 (set_program_name_and_installdir): Handle also platforms with
95945                 nonempty EXEEXT.
95947         2006-07-11  Bruno Haible  <bruno@clisp.org>
95949                 * javacomp.c: Fix a comment.
95950                 Reported by Jim Meyering.
95952         2006-04-30  Bruno Haible  <bruno@clisp.org>
95954                 * javacomp.h (compile_java_class): Add source_version,
95955                 target_version arguments.
95956                 * javacomp.c: Rewritten to choose only a compiler that
95957                 respects the specified source_version and target_version.
95959         2006-06-27  Bruno Haible  <bruno@clisp.org>
95961                 Assume correct S_ISDIR macro.
95962                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
95964         2006-07-22  Bruno Haible  <bruno@clisp.org>
95966                 * javaversion.h: New file, from GNU gettext.
95967                 * javaversion.c: New file, from GNU gettext.
95968                 * javaversion.java: New file, from GNU gettext.
95969                 * javaversion.class: New file, from GNU gettext.
95971         2006-05-17  Bruno Haible  <bruno@clisp.org>
95973                 Cygwin portability.
95974                 * javaexec.c (execute_java_class): Test for jview program
95975                 also on Cygwin.
95977         2006-04-09  Bruno Haible  <bruno@clisp.org>
95979                 * fatal-signal.c: Don't include string.h.
95980                 (at_fatal_signal): Use a copying loop instead of memcpy.
95982         2005-12-04  Bruno Haible  <bruno@clisp.org>
95984                 * csharpexec.c: Add support for 'clix' launcher (untested).
95985                 (execute_csharp_using_sscli): New function.
95986                 (execute_csharp_program): Call it.
95988         2006-06-21  Bruno Haible  <bruno@clisp.org>
95990                 Avoid warnings from recent versions of mcs.
95991                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
95992                 -o, -L, -r any more. Use options documented since mcs-1.0
95993                 instead. Similarly for -g.
95995         2005-07-09  Bruno Haible  <bruno@clisp.org>
95997                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
95998                 add a .dll suffix.
95999                 Reported by Mark Junker <mjscod@gmx.de>.
96001         2006-06-17  Bruno Haible  <bruno@clisp.org>
96003                 * config.charset: Update for NetBSD 3.0.
96005         2006-05-17  Bruno Haible  <bruno@clisp.org>
96007                 Cygwin portability.
96008                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
96010         2006-05-16  Bruno Haible  <bruno@clisp.org>
96012                 * localcharset.c [CYGWIN]: Include <windows.h>.
96013                 (get_charset_aliases): For Cygwin, return the same CPxxx
96014                 aliases list as under WIN32.
96015                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
96016                 the environment variables. Fall back to GetACP().
96018         2006-04-05  Bruno Haible  <bruno@clisp.org>
96020                 * config.charset: Update Juan Manuel Guerrero's address.
96022         2005-02-12  Bruno Haible  <bruno@clisp.org>
96024                 * allocsa.h: Add extern "C" for C++.
96026         2005-02-10  Bruno Haible  <bruno@clisp.org>
96028                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
96029                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
96031         2006-07-22  Bruno Haible  <bruno@clisp.org>
96033                 * gettext.h: Update to GNU gettext-0.15.
96035 2006-07-22  Bruno Haible  <bruno@clisp.org>
96037         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
96038         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
96039         lib-prefix.m4, longdouble.m4, ssize_t.m4.
96041 2006-07-21  Eric Blake  <ebb9@byu.net>
96043         * modules/stdlib-safer: New file.
96044         * MODULES.html.sh (File stream based Input/Output): Add
96045         stdlib-safer.
96047 2006-07-21  Eric Blake  <ebb9@byu.net>
96049         * lib/stdlib-safer.h: New file from coreutils, required by
96050         stdlib--.h.
96052 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
96054         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
96056 2006-07-20  Bruno Haible  <bruno@clisp.org>
96058         * gnulib-tool: Recognize new option --assume-autoconf.
96059         (autoconf_minversion): New variable.
96060         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
96062 2006-07-20  Bruno Haible  <bruno@clisp.org>
96064         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
96066 2006-07-19  Derek R. Price  <derek@ximbiot.com>
96068         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
96069         Reindent and repaginate.
96071 2006-07-19  Derek Price  <derek@ximbiot.com>
96073         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
96074         Correct grammar.
96076 2006-07-17  Bruno Haible  <bruno@clisp.org>
96078         * modules/list: New file.
96079         * modules/array-list: New file.
96080         * modules/carray-list, modules/carray-list-tests: New files.
96081         * modules/linked-list, modules/linked-list-tests: New files.
96082         * modules/avltree-list, modules/avltree-list-tests: New files.
96083         * modules/rbtree-list, modules/rbtree-list-tests: New files.
96084         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
96085         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
96086         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
96087         * modules/oset: New file.
96088         * modules/array-oset: New file.
96089         * modules/avltree-oset, modules/avltree-oset-tests: New files.
96090         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
96091         * tests/test-carray_list.c: New file.
96092         * tests/test-linked_list.c: New file.
96093         * tests/test-avltree_list.c: New file.
96094         * tests/test-rbtree_list.c: New file.
96095         * tests/test-linkedhash_list.c: New file.
96096         * tests/test-avltreehash_list.c: New file.
96097         * tests/test-rbtreehash_list.c: New file.
96098         * tests/test-avltree_oset.c: New file.
96099         * tests/test-rbtree_oset.c: New file.
96100         * MODULES.html.sh (Container data structures): New section.
96102 2006-07-17  Bruno Haible  <bruno@clisp.org>
96104         * m4/gl_list.m4: New file.
96106 2006-07-17  Bruno Haible  <bruno@clisp.org>
96108         * lib/gl_list.h: New file.
96109         * lib/gl_list.c: New file.
96110         * lib/gl_array_list.h: New file.
96111         * lib/gl_array_list.c: New file.
96112         * lib/gl_carray_list.h: New file.
96113         * lib/gl_carray_list.c: New file.
96114         * lib/gl_linked_list.h: New file.
96115         * lib/gl_linked_list.c: New file.
96116         * lib/gl_anylinked_list1.h: New file.
96117         * lib/gl_anylinked_list2.h: New file.
96118         * lib/gl_avltree_list.h: New file.
96119         * lib/gl_avltree_list.c: New file.
96120         * lib/gl_anyavltree_list1.h: New file.
96121         * lib/gl_anyavltree_list2.h: New file.
96122         * lib/gl_rbtree_list.h: New file.
96123         * lib/gl_rbtree_list.c: New file.
96124         * lib/gl_anyrbtree_list1.h: New file.
96125         * lib/gl_anyrbtree_list2.h: New file.
96126         * lib/gl_anytree_list1.h: New file.
96127         * lib/gl_anytree_list2.h: New file.
96128         * lib/gl_linkedhash_list.h: New file.
96129         * lib/gl_linkedhash_list.c: New file.
96130         * lib/gl_anyhash_list1.h: New file.
96131         * lib/gl_anyhash_list2.h: New file.
96132         * lib/gl_avltreehash_list.h: New file.
96133         * lib/gl_avltreehash_list.c: New file.
96134         * lib/gl_rbtreehash_list.h: New file.
96135         * lib/gl_rbtreehash_list.c: New file.
96136         * lib/gl_anytreehash_list1.h: New file.
96137         * lib/gl_anytreehash_list2.h: New file.
96139         * lib/gl_oset.h: New file.
96140         * lib/gl_oset.c: New file.
96141         * lib/gl_array_oset.h: New file.
96142         * lib/gl_array_oset.c: New file.
96143         * lib/gl_avltree_oset.h: New file.
96144         * lib/gl_avltree_oset.c: New file.
96145         * lib/gl_rbtree_oset.h: New file.
96146         * lib/gl_rbtree_oset.c: New file.
96147         * lib/gl_anytree_oset.h: New file.
96149 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
96151         * m4/mkancesdirs.m4: New file.
96152         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
96153         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
96154         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
96155         it.
96157 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
96159         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
96160         * lib/mkancesdirs.h: New files.
96161         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
96162         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
96163         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
96164         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
96165         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
96166         callers changed.  Revamp internals significantly, by not
96167         attempting to create directories that are temporarily more
96168         permissive than the final results.  Do not attempt to use
96169         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
96170         This removes some race conditions, fixes some bugs, and simplifies
96171         things.  Use new dirchownmod function to do owner and mode changes.
96172         * lib/mkdir-p.h: Likewise.
96173         * lib/modechange.c (octal_to_mode): New function.
96174         (struct mode_change): New member mentioned.
96175         (make_node_op_equals): New arg mentioned.  All callers changed.
96176         (mode_compile): Keep track of which mode bits the user has explicitly
96177         mentioned.
96178         (mode_adjust): New arg DIR, so that we implement the X op correctly.
96179         New arg PMODE_BITS, to keep track of which mode bits the user
96180         mentioned; it treats S_ISUID and S_ISGID speciall.
96181         All callers changed.
96182         * lib/modechange.h: Likewise.
96184 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
96186         * MODULES.html.sh: Add mkancestors.
96187         * modules/mkancesdirs: New module.
96188         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
96189         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
96190         The chdir-safer and afs files are now orphans; I'll remove them
96191         unless someone speaks up.
96192         Add lib/dirchownmod.c, lib/dirchownmod.h.
96193         (Depends-on): Remove alloca, chown, save-cwd, dirname.
96194         Add lchown, mkancesdirs.
96195         (Maintainer): Add self.
96197 2006-07-15  Karl Berry  <karl@gnu.org>
96199         * gnulib-tool: help message wording/arrangement.
96201 2006-07-14  Simon Josefsson  <jas@extundo.com>
96203         * doc/gnulib.texi (Libtool and Windows): New section.
96205 2006-07-12  Simon Josefsson  <jas@extundo.com>
96207         * modules/gendocs (License): Fix license, approved by Karl.
96209 2006-07-12  Eric Blake  <ebb9@byu.net>
96211         * MODULES.html.sh: Add gendocs.
96213 2006-07-11  Eric Blake  <ebb9@byu.net>
96215         * modules/fdl: New module, to install doc/fdl.texi.
96216         * MODULES.html.sh: Add new section for documentation modules.
96217         * gnulib-tool: Avoid space-tab.
96218         (--doc-base): New option, to manage files from doc.
96220 2006-07-11  Eric Blake  <ebb9@byu.net>
96222         * m4/absolute-header.m4: Fix comments to match recent change.
96224 2006-07-11  Eric Blake  <ebb9@byu.net>
96226         * gnulib-tool: List --doc-base before --tests-base.
96228 2006-07-11  Derek R. Price  <derek@ximbiot.com>
96230         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
96232 2006-07-11  Bruno Haible  <bruno@clisp.org>
96234         * README: Mention where to put documentation.
96236 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96238         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
96240 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
96242         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
96243         to stdint.m4.
96245 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
96247         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
96248         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
96249         "no/such/file/stdint.h" when there is no such file, so that
96250         the resulting C code can be parsed by dodgy compilers.
96251         Problems reported by Bob Proulx.
96253 2006-07-10  Derek R. Price  <derek@ximbiot.com>
96255         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
96256         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
96257         macros into the GNU _D_EXACT_NAMLEN.
96258         * lib/savedir.c:  Likewise.
96259         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
96261 2006-07-10  Derek R. Price  <derek@ximbiot.com>
96262         and Paul Eggert  <eggert@cs.ucla.edu>
96264         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
96265         * m4/savedir.m4:
96266         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
96267         macros into the GNU _D_EXACT_NAMLEN.
96269 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
96271         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
96272         around the absolute name, to work around a problem with the HP-UX
96273         11.23 native C compiler, reported by Bob Proulx.
96275 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
96277         * doc/maintain.texi, make-stds.texi: Sync from
96278         <http://savannah.gnu.org/projects/gnustandards>.
96280 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
96282         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
96284 2006-07-09  Jim Meyering  <jim@meyering.net>
96286         * m4/glob.m4: Remove a doubled word in a comment.
96288 2006-07-09  Jim Meyering  <jim@meyering.net>
96290         * lib/argp-pv.c: Remove a doubled word in a comment.
96291         * lib/check-version.c (check_version): Likewise.
96292         * lib/javacomp.c (compile_java_class): Likewise.
96294 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
96296         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
96297         for the benefit of people using Autoconf 2.60.  If you want to
96298         support older Autoconf versions you can copy m4/onceonly_2_57.m4
96299         (or m4/onceonly.m4, if pre-2.57) manually.
96301 2006-07-08  Jim Meyering  <jim@meyering.net>
96303         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
96304         comment.
96305         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
96306         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
96307         comment.
96309 2006-07-08  Jim Meyering  <jim@meyering.net>
96311         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
96313 2006-07-07  Simon Josefsson  <jas@extundo.com>
96315         * tests/test-crc.c: Change expected crc value, the test vector
96316         were probably computed using the old broken crc.c?
96318 2006-07-06  Simon Josefsson  <jas@extundo.com>
96320         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
96321         now the canonical place for the M4 file).
96323         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
96324         from the sys_socket dependency now.
96326         * modules/inet_pton (Files): Ditto.
96328         * modules/inet_ntop (Files): Ditto.
96330 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
96332         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
96333         not gl_PREREQ_GETUSERSHELL.
96335 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96337         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
96338         with only one argument, for Autoconf 2.60.
96339         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
96340         expand to nothing, so add a shell command to avoid syntax error.
96341         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
96343 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96345         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
96347 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
96349         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
96350         no longer needed.  Check for isblank decl.
96351         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
96352         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
96353         of existence.
96355 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
96357         * lib/getloadavg.c: Use __VMS, not VMS.
96358         * lib/getopt.c: Likewise.
96359         * lib/getpagesize.h: Likewise.
96360         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
96361         and probably does not work.
96363 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
96365         * lib/.cppi-disable: Add wcwidth.
96366         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
96367         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
96368         (ISGRAPH): Remove.  All uses changed to isgraph.
96369         (FOLD) [!defined _LIBC]: Remove special case.
96370         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
96371         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
96372         HAVE_ISBLANK.
96373         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
96374         case.
96376 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
96378         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
96379         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
96380         brackets.  Other minor changes to suppress some compiler
96381         warnings.
96383 2006-07-06  Derek R. Price  <derek@ximbiot.com>
96384         and Paul Eggert  <eggert@cs.ucla.edu>
96386         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
96387         of invoking obsolescent AC_HEADER_DIRENT macro.
96388         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
96389         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
96390         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
96391         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
96392         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
96393         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
96394         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
96395         * m4/readdir.m4: Remove; no longer needed.
96397 2006-07-06  Derek R. Price  <derek@ximbiot.com>
96398         and Paul Eggert  <eggert@cs.ucla.edu>
96400         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
96401         Don't worry about this obsolete case any more.
96402         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
96403         directories.
96404         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
96405         worry about this obsolete case any more.
96406         * lib/fts.c: Likewise.
96407         * lib/getcwd.c: Likewise.
96408         * lib/glob.h: Likewise.
96409         * lib/savedir.c: Likewise.
96411 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
96413         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
96414         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
96415         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
96416         needed.
96417         All uses removed.
96418         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
96419         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
96420         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
96421         needed.
96422         * m4/getdate.m4 (gl_GETDATE): Likewise.
96423         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
96424         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
96425         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
96426         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
96427         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
96428         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
96429         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
96430         needed.
96432 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
96434         * lib/memcasecmp.c: Include <limits.h>.
96435         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
96436         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
96437         Don't assume isdigit succeeds only on '0' through '9'.
96439 2006-07-05  Eric Blake  <ebb9@byu.net>
96441         * modules/getaddrinfo (Depends-on): Add snprintf.
96443 2006-07-05  Eric Blake  <ebb9@byu.net>
96445         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
96446         to avoid 'header present but could not be compiled' on cygwin.
96448 2006-07-05  Eric Blake  <ebb9@byu.net>
96450         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
96451         missing from netdb.h.
96452         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
96454 2006-07-05  Derek R. Price  <derek@ximbiot.com>
96456         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
96457         no longer needed.
96458         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
96459         * m4/getdate.m4 (gl_GETDATE): Likewise.
96460         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
96461         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
96462         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
96463         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
96464         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
96466 2006-07-05  Derek R. Price  <derek@ximbiot.com>
96468         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
96469         All uses of is_space replaced by isspace.
96470         * lib/exit.h: Don't talk about STDC_HEADERS.
96471         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
96472         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
96473         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
96474         replaced by isprint etc.
96475         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
96476         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
96477         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
96478         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
96479         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
96480         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
96482 2006-07-05  Bruno Haible  <bruno@clisp.org>
96484         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
96485         the function exists, before testing against AIX.
96486         Reported by Martin Lambers <marlam@marlam.de>.
96488 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
96490         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
96491         From Mark D. Baushke.
96493 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
96495         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
96496         to the absolute name, not just one, to bypass Sun C 5.8's
96497         "warning: #include of /usr/include/... may be non-portable".
96499 2006-07-04  Eric Blake  <ebb9@byu.net>
96501         * modules/dirname-tests: New test module.
96502         * tests/test-dirname.c: New file, replacing dirname.c
96503         TEST_DIRNAME section that was recently deleted.
96505 2006-07-04  Bruno Haible  <bruno@clisp.org>
96507         Assume ANSI C header files and <ctype.h> functions.
96508         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
96509         (mbsnwidth): Use isprint, iscntrl instead.
96511 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
96513         Merge from coreutils.
96514         * MODULES.html.sh: Add xstrtold.
96515         * modules/xstrtold: New file.
96516         * modules/cycle-check (Files): Add lib/same-inode.h.
96517         * modules/dirname (Files): Add m4/double-slash-root.m4.
96518         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
96519         * modules/mkdir-p (Files): Add lib/same-inode.h.
96520         * modules/same (Files): Add lib/same-inode.h.
96522 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
96524         * m4/absolute-header.m4: Renamed from full-header-path.m4.
96525         This is to keep the terminology clean; POSIX talks about
96526         "absolute pathnames", not "full pathnames", but the GNU
96527         Coding Standards say to use "path" for something else;
96528         so use "absolute" to keep both sides happy.
96529         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
96530         Set gl_absolute_header, not gl_full_header_path.
96531         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
96532         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
96533         All uses changed.
96535         Merge from coreutils.
96537         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
96539         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
96540         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
96541         want to require the building of c-strtod.o.
96542         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
96543         needs -lm directly.
96544         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
96546         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
96548         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
96549         --as-needed option if available.  Problem reported by Albert Chin in
96550         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
96551         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
96552         cc merely issues a bunch of annoying warnings for --as-needed
96553         (this problem was reported by Bob Proulx).  Also, try linking with
96554         -lm to detect a bug in binutils 2.16 (this problem was reported
96555         by Ralf Wildenhues).
96557         2006-06-18  Jim Meyering  <jim@meyering.net>
96559         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
96560         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
96561         macro.
96562         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
96563         also check for glibc-2.4's abort-inducing bug.
96565         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
96566         Low-probability clean-up should be to use rmdir to get rid of
96567         the just-created directory, not unlink.
96569         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
96570         configure fail, and request a bug report to inform us about it.
96571         Add a comment that, barring reports to the contrary, in 2007 we'll
96572         assume ftruncate is universally available.
96574         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
96576         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
96578         2006-03-12  Jim Meyering  <jim@meyering.net>
96580         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
96581         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
96582         * m4/same.m4 (gl_SAME): Likewise.
96583         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
96585         2006-03-11  Eric Blake  <ebb9@byu.net>
96587         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
96588         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
96589         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
96590         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
96592 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
96594         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
96595         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
96596         reported by Mark D. Baushke, one in
96597         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
96599         Merge from coreutils.
96601         * lib/.cppi-disable: Add stdint_.h.
96602         * lib/.cvsignore: Add stdint.h.
96604         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
96606         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
96607         both double and long double versions.
96608         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
96609         * lib/xstrtold.c: New file.
96610         * lib/xstrtod.h (xstrtold): New decl.
96612         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
96614         * lib/filemode.c (setst): Remove.
96615         (strmode): Rewrite to avoid setst.  This makes the code shorter,
96616         (arguably) clearer, and the generated code is a bit smaller on my
96617         Debian GNU/Linux stable x86 host.
96619         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
96621         * lib/filemode.c: Include "filemode.h" first, to test the interface.
96622         Assume that filemode.h includes sys/types.h and sys/stat.h.
96623         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
96624         (ftypelet): Reorder to put common cases first, for efficiency.
96625         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
96626         to do 'M'.
96627         (strmode): Renamed from mode_string, and now stores 12 bytes instead
96628         of 10, for compatibility with FreeBSD.  All callers changed.
96629         (filemodestring): Now stores 12 bytes instead of 10, and sets file
96630         types that can't be deduced solely from st_mode.  First arg is now a
96631         const pointer.
96632         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
96633         (strmode): Renamed from mode_string.
96634         (filemodestring): New decl.
96635         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
96636         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
96637         needed.
96638         (S_ISPORT, S_ISWHT): New macros, if not already defined.
96640         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
96642         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
96643         fsusage.h now does that.  Include fsusage.h first, to test interface.
96644         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
96645         at most one method (the old code could have generated decls that
96646         didn't conform to C89, not that this was ever exercised).
96647         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
96649         2006-03-19  Jim Meyering  <jim@meyering.net>
96651         Work even in a chroot where d_ino values for entries in "/"
96652         don't match the stat.st_ino values for the same names.
96653         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
96654         number, iterate through all entries again, using lstat instead.
96655         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
96656         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
96658         * lib/getcwd.c (__getcwd): Clarify a comment.
96659         Use memcpy in place of a call to strcpy.
96661         2006-03-12  Jim Meyering  <jim@meyering.net>
96663         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
96664         matches that of the current directory (which we're about to chdir ".."
96665         out of), then save the dev-ino of the parent, instead.
96667         * lib/same-inode.h (SAME_INODE): New file/macro.
96668         * lib/chdir-safer.c (SAME_INODE): Remove definition.
96669         Include "same-inode.h", instead.
96670         * lib/same.c: Likewise.
96671         * lib/cycle-check.h: Include "same-inode.h".
96672         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
96673         * lib/cycle-check.c (SAME_INODE): Remove definition.
96674         * lib/root-dev-ino.h: Include "same-inode.h".
96676         2006-03-11  Eric Blake  <ebb9@byu.net>
96678         * lib/same.c (same_name): s/base_name/last_component/
96679         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
96680         * lib/filenamecat.c (file_name_concat): Likewise.
96682         2006-03-11  Eric Blake  <ebb9@byu.net>,
96683                     Paul Eggert  <eggert@cs.ucla.edu>
96685         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
96686         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
96687         drive prefix.
96688         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
96689         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
96690         (last_component): New method.
96691         * lib/dirname.c (dir_len): Determine when drive letters need a
96692         subsequent slash.  Preserve // when it is special.
96693         (dir_name): Don't append dot when drive letter is absolute.
96694         [TEST_DIRNAME]: Move into a full-blown gnulib test.
96695         * lib/basename.c (base_name): New semantics - malloc the result.
96696         Preserve // when it is special.  Preserve relative files that look
96697         like drive letters.
96698         (base_len): Preserve // when it is special.
96699         (last_component): New method, similar to old base_name semantics.
96700         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
96701         base_name.  Strip redundant slashes from ///.
96703 2006-07-03  Jim Meyering  <jim@meyering.net>
96705         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
96706         macro is used before the first cycle_check call.
96708 2006-07-03  Eric Blake  <ebb9@byu.net>
96710         * modules/dirname (Depends-on): Add xstrndup.
96712 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
96714         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
96715         test cases, so that config.log is a bit easier to follow.
96717 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
96719         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
96720         both are 64 bits, since this seems to be the tradition, and this
96721         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
96722         we ever run into a host that prefers long long to long in this
96723         case, we'll need another configure-time test.  Problem reported by
96724         Jim Meyering.
96726 2006-07-02  Eric Blake  <ebb9@byu.net>
96728         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
96730 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
96732         * modules/inttypes (Depends-on): No longer depends on stdint.
96733         * modules/stdint (Description): Say more about assumptions.
96734         Say that the fast types might differ.  Say macros are used.
96735         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
96736         (Makefile.am): Revise list of substituted symbols to match
96737         new stdint.m4.
96738         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
96739         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
96740         * tests/test-stdint.c (verify_same_types)
96741         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
96742         the code conforms to C99/C89.
96743         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
96744         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
96746 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
96748         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
96749         but fix a bug, by requiring at least 64 bits.
96750         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
96751         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
96752         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
96753         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
96755         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
96756         changes.  Make 2.59 a prerequisite.  Check and substitute for
96757         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
96758         inttypes.h.  Do not use special include files; just use the
96759         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
96760         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
96761         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
96762         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
96763         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
96764         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
96765         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
96766         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
96767         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
96768         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
96769         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
96770         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
96771         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
96772         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
96773         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
96774         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
96775         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
96776         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
96777         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
96778         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
96779         WINT_MAX.  Check for C99 conformance more strictly, by detecting
96780         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
96781         not check for things that C99 does not require, e.g., int8_t.  If
96782         a test isn't needed unless <stdint.h> isn't working, and is
96783         unlikely to be needed for any other reason, then don't do it
96784         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
96785         size_t, since we assume C89 freestanding at least.  Do not check
96786         for sig_atomic_t, wchar_t, or wint_t, since the code now does
96787         the right thing even if the types are not defined.  Instead use:
96788         (gl_STDINT_TYPE_PROPERTIES): New macro.
96789         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
96790         testing whether <sys/types.h> clashes, as Autoconf does this for
96791         us now.  All uses removed.
96792         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
96793         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
96794         (gl_CHECK_TYPE_SAME):
96795         Remove; no longer needed.
96796         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
96797         exists, since we'll return 0 anyway in that case.
96798         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
96800 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
96802         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
96803         possible collision with system files.
96804         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
96805         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
96806         WCHAR_MIN and WCHAR_MAX in this case.
96807         (<stddef.h>): Do not include; no longer needed.
96808         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
96809         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
96810         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
96811         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
96812         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
96813         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
96814         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
96815         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
96816         !defined(__c99))]: Include in this case too, since it's harmless
96817         now.
96818         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
96819         dangerous to do so.
96820         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
96821         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
96822         (_STDINT_MIN, _STDINT_MAX): New macros.
96823         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
96824         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
96825         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
96826         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
96827         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
96828         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
96829         macros, not typedefs; this simplifies things quite a bit.
96830         Use long int for all types narrower than int64_t.
96831         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
96832         Define in terms of long long int or int64_t or long int,
96833         not int64_t or int32_t.  This saves some compile-time testing.
96834         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
96835         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
96836         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
96837         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
96838         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
96839         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
96840         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
96841         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
96842         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
96843         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
96844         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
96845         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
96846         undef any previous version and define our own version, for
96847         simplicity and consistency with the new macros for types.
96848         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
96849         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
96850         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
96851         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
96852         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
96853         @WINT_T_SUFFIX@ to keep things simple here.
96854         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
96855         Simplify by assuming typical 8/16/32/64 host, since we're
96856         already doing that elsewhere anyway.
96857         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
96858         and assume long long int is 64 bits if available.  This
96859         speeds up 'configure'.
96861 2006-07-01  Eric Blake  <ebb9@byu.net>
96863         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
96864         Reported by Andreas Buening.
96866 2006-07-01  Eric Blake  <ebb9@byu.net>
96868         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
96870 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
96872         * lib/getaddrinfo.c: fixed typo
96874 2006-06-29  Jim Meyering  <jim@meyering.net>
96876         * modules/strftime (Maintainer): Add my name, since with the
96877         FPRINTFTIME changes strftime.c has forked from glibc.
96879 2006-06-29  Eric Blake  <ebb9@byu.net>
96881         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
96883 2006-06-29  Eric Blake  <ebb9@byu.net>
96885         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
96887 2006-06-29  Eric Blake  <ebb9@byu.net>
96889         * lib/stat_.h: New file.
96891 2006-06-29  Eric Blake  <ebb9@byu.net>
96893         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
96894         unused static function.
96896 2006-06-29  Eric Blake  <ebb9@byu.net>
96898         * doc/functions.texi (Function Portability): Document missing lstat
96899         on mingw.
96901 2006-06-29  Eric Blake  <ebb9@byu.net>
96903         * MODULES.html.sh: Add sys_stat.
96904         * modules/sys_stat: New module.
96905         * modules/mkstemp (Depends-on): Add sys_stat.
96907 2006-06-29  Derek R. Price  <derek@ximbiot.com>
96909         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
96911 2006-06-29  Derek R. Price  <derek@ximbiot.com>
96913         * m4/c-bs-a.m4: Removed.
96915 2006-06-29  Derek R. Price  <derek@ximbiot.com>
96917         * lib/strftime.c: Assume strftime() exists.
96919 2006-06-29  Derek Price  <derek@ximbiot.com>
96921         * modules/c-bs-a: Removed - \a is C89.
96922         * MODULES.html.sh: Remove c-bs-a.
96924 2006-06-29  Bruno Haible  <bruno@clisp.org>
96926         * modules/wcwidth (License): Change to LGPL.
96928 2006-06-28  Simon Josefsson  <jas@extundo.com>
96930         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
96931         on _WIN32.
96933         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
96934         getnameinfo.
96936 2006-06-28  Simon Josefsson  <jas@extundo.com>
96938         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
96940 2006-06-28  Simon Josefsson  <jas@extundo.com>
96942         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
96943         functions there.  It will succeed on Windows XP, but on Windows
96944         2000 and (presumably) earlier, it will fail, and use the internal
96945         re-implementation.
96946         (use_win32_p): New function.
96947         (getaddrinfo): Use strtoul on servname, to support numeric ports.
96948         Support AI_NUMERICSERV to disable getservbyname.
96949         (getnameinfo): New function, only supports
96950         NI_NUMERICHOST|NI_NUMERICSERV for now.
96952         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
96953         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
96954         getnameinfo.
96956 2006-06-28  Eric Blake  <ebb9@byu.net>
96958         * modules/wcwidth: New file.
96959         * modules/mbchar (Depends-on): Add wcwidth.
96960         * modules/mbswidth (Depends-on): Add wcwidth.
96961         * MODULES.html.sh: Add wcwidth.
96963 2006-06-28  Eric Blake  <ebb9@byu.net>
96965         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
96966         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
96968 2006-06-28  Eric Blake  <ebb9@byu.net>
96970         * lib/xvasprintf.h: Fix comments.
96972 2006-06-28  Eric Blake  <ebb9@byu.net>
96974         * lib/mbchar.h (wcwidth): Include wcwidth.h.
96975         * lib/mbswidth.c (wcwidth): Move from here...
96976         * lib/wcwidth.h: ...to this new file.
96978 2006-06-28  Derek R. Price  <derek@ximbiot.com>
96980         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
96982         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
96983         it's obsolete.
96984         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
96986 2006-06-28  Derek R. Price  <derek@ximbiot.com>
96988         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
96989         Autoconf 2.60 says this stuff was obsolete.
96991 2006-06-28  Bruno Haible  <bruno@clisp.org>
96993         * modules/wcwidth (Files): Add m4/wchar_t.m4.
96995 2006-06-28  Bruno Haible  <bruno@clisp.org>
96997         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
96998         gt_TYPE_WCHAR_T.
97000 2006-06-28  Bruno Haible  <bruno@clisp.org>
97002         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
97003         declaration for wcwidth.
97004         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
97006 2006-06-28  Bruno Haible  <bruno@clisp.org>
97008         * lib/mkdtemp.c [MINGW]: Include <io.h>.
97009         (mkdir): Define using _mkdir.
97011 2006-06-28  Bruno Haible  <bruno@clisp.org>
97013         * lib/getaddrinfo.h: Fix POSIX URL.
97014         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
97015         _WIN32.
97016         (use_win32_p): Make static.
97017         (getaddrinfo): Reject service name if it is empty or does not consist
97018         solely of decimal digits, or if its value is > 65535.
97019         (getnameinfo): Remove useless casts.
97021 2006-06-27  Simon Josefsson  <jas@extundo.com>
97023         * modules/sys_select: New file, suggested by Bruno Haible, Paul
97024         Eggert and Martin Lambers.
97026 2006-06-27  Simon Josefsson  <jas@extundo.com>
97028         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
97029         Eggert and Martin Lambers.
97031 2006-06-27  Bruno Haible  <bruno@clisp.org>
97033         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
97034         result to 0, not to empty.
97035         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
97037 2006-06-27  Bruno Haible  <bruno@clisp.org>
97039         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
97041 2006-06-26  Simon Josefsson  <jas@extundo.com>
97043         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
97044         present.
97046 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
97048         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
97049         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
97050         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
97052 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
97054         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
97056 2006-06-26  Bruno Haible  <bruno@clisp.org>
97058         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
97060 2006-06-26  Bruno Haible  <bruno@clisp.org>
97062         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
97064 2006-06-26  Bruno Haible  <bruno@clisp.org>
97066         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
97067         SGI C compiler in pre-C99 mode.
97068         Suggested by Mark D. Baushke and Larry Jones.
97070 2006-06-26  Bruno Haible  <bruno@clisp.org>
97072         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
97073         WCHAR_MAX.
97074         Reported by Mark D. Baushke and Larry Jones.
97076 2006-06-26  Bruno Haible  <bruno@clisp.org>
97078         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
97079         in pre-C99 mode.
97080         Suggested by Mark D. Baushke and Larry Jones.
97082 2006-06-23  Simon Josefsson  <jas@extundo.com>
97083             Bruno Haible  <bruno@clisp.org>
97085         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
97086         Emit mostlyclean-local rule.
97087         (func_emit_tests_Makefile_am): Likewise.
97088         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
97090 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
97092         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
97094 2006-06-23  Bruno Haible  <bruno@clisp.org>
97096         * tests/test-stdint.c: Update to match ISO C 99 Technical
97097         Corrigendum 1.
97099 2006-06-23  Bruno Haible  <bruno@clisp.org>
97101         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
97103 2006-06-23  Bruno Haible  <bruno@clisp.org>
97105         * lib/stdint_.h: Treat IRIX like OpenBSD.
97107 2006-06-23  Bruno Haible  <bruno@clisp.org>
97109         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
97110         ISO C 99 Technical Corrigendum 1.
97112 2006-06-22  Simon Josefsson  <jas@extundo.com>
97114         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
97115         MinGW.
97117 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
97119         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
97120         needed.  Some compiler complained about some of them.  Problem reported
97121         by Larry Jones in
97122         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
97124 2006-06-21  Simon Josefsson  <jas@extundo.com>
97126         * tests/test-getaddrinfo.c: New file.
97128         * modules/getaddrinfo-tests: New file.
97130         * MODULES.html.sh: Add inet_pton.
97132         * modules/inet_pton: New file.
97134 2006-06-21  Simon Josefsson  <jas@extundo.com>
97136         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
97137         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
97138         of using the (limited) gnulib implementation on Windows XP.
97140         * m4/inet_pton.m4: New file.
97142 2006-06-21  Simon Josefsson  <jas@extundo.com>
97144         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
97145         variable.
97147         * lib/socket_.h: Don't define WINVER.
97149         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
97150         slightly modified to work in gnulib.
97152 2006-06-21  Simon Josefsson  <jas@extundo.com>
97154         * doc/gnulib.texi (Windows sockets): Add.
97156 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
97158         * lib/read-file.c (fread_file): Start with buffer allocation of
97159         0 bytes rather than 1 byte; this simplifies the code.
97160         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
97161         code to free buffer and save/restore errno.
97162         (internal_read_file): Remove unused local.
97164 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
97166         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
97167         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
97168         Problem reported by Denis Excoffier in
97169         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
97171 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
97173         * modules/sys_socket, modules/socklen: Include sys/types since
97174         FreeBSD 4.x's sys/socket.h needs it.
97176 2006-06-19  Simon Josefsson  <jas@extundo.com>
97178         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
97180 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
97182         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
97184 2006-06-19  Bruno Haible  <bruno@clisp.org>
97186         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
97187         and FULL_PATH_INTTYPES_H in angle brackets.
97188         Reported by Mark D. Baushke <mdb@gnu.org>.
97190 2006-06-17  Eric Blake  <ebb9@byu.net>
97192         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
97193         errno.
97195 2006-06-17  Bruno Haible  <bruno@clisp.org>
97197         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
97198         <sys/inttypes.h>.
97200 2006-06-17  Bruno Haible  <bruno@clisp.org>
97202         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
97203         whether errno is declared. Assume <errno.h> declares errno.
97205 2006-06-17  Bruno Haible  <bruno@clisp.org>
97207         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
97209 2006-06-17  Bruno Haible  <bruno@clisp.org>
97211         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
97212         problem on Solaris 2.5.1.
97214 2006-06-16  Eric Blake  <ebb9@byu.net>
97216         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
97217         * lib/unicodeio.c [!defined errno]: Likewise.
97218         * lib/strtol.c [!defined errno]: Likewise.
97219         * lib/strtod.c [!defined errno]: Likewise.
97221 2006-06-15  Eric Blake  <ebb9@byu.net>
97223         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
97225 2006-06-15  Eric Blake  <ebb9@byu.net>
97227         * config/srclist.txt (ssize_t.m4): Lose sync.
97229 2006-06-15  Bruno Haible  <bruno@clisp.org>
97231         * modules/stdint (Files): Include m4/full-header-path.m4,
97232         m4/size_max.m4, m4/wchar_t.m4.
97233         (Makefile.am): Many more substitutions.
97234         * modules/stdint-tests: New file.
97235         * tests/test-stdint.c: New file.
97237 2006-06-15  Bruno Haible  <bruno@clisp.org>
97239         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
97240         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
97241         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
97242         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
97243         gl_CHECK_TYPE_SAME): New macros.
97245 2006-06-15  Bruno Haible  <bruno@clisp.org>
97247         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
97249 2006-06-15  Bruno Haible  <bruno@clisp.org>
97251         * lib/stdint_.h: Rewritten to be fully auto-configured.
97252         Fixes bug on HP-UX/IA64.
97254 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
97256         * lib/getdate.y (__attribute__): Don't define if already defined.
97257         Problem reported by Larry Jones.
97258         * lib/utimens.c (__attribute__): Likewise.
97260 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
97262         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
97263         reported by Andreas Schwab.
97265 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97266             Bruno Haible  <bruno@clisp.org>
97268         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
97269         check for the declaration of strnlen and a run test that exposes the
97270         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
97271         rpl_strndup.
97273 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97274             Bruno Haible  <bruno@clisp.org>
97276         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
97278 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97280         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
97281         compile test, for Tru64 4.0D.
97283 2006-05-28  Karl Berry  <karl@gnu.org>
97285         * config/srclist.txt (printf-args.c): lose sync.
97287 2006-05-26  Martin Lambers  <marlam@marlam.de>
97289         * lib/getpass.c: Updates the test for the native W32 API, and adds
97290         missing includes, thus fixing compilation warnings.
97292 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
97294         * lib/exclude.c (exclude_fnmatch): New function.
97295         (excluded_file_name): Call exclude_fnmatch.
97296         * lib/exclude.h (excluded_file_name): New prototype
97298 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
97300         * lib/tempname.c (small_open, large_open): New macros.
97301         (__open, __open64) [!_LIBC]: Remove.
97302         (__gen_tempname): Use small_open and large_open instead of __open
97303         and __open64.  This fixes a portability bug on HP-UX 11.11i
97304         reported by Simon Wing-Tang in
97305         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
97307 2006-05-24  Bruno Haible  <bruno@clisp.org>
97309         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
97310         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
97311         Reported by Thorsten Maerz <torte@netztorte.de> via
97312         Aaron Stone <aaron@serendipity.cx>.
97314 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
97316         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
97317         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
97318         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
97319         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
97320         not really conditional on the cache.
97321         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
97323 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
97325         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
97326         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
97327         (my_usleep): Don't mishandle maximum value.
97329 2006-05-19  Jim Meyering  <jim@meyering.net>
97331         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
97333 2006-05-17  Bruno Haible  <bruno@clisp.org>
97335         Cygwin portability.
97336         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
97338 2006-05-17  Bruno Haible  <bruno@clisp.org>
97340         * lib/stdint_.h: Fix recognition of Cygwin.
97342 2006-05-15  Bruno Haible  <bruno@clisp.org>
97344         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
97345         on libtool patch by Ralf Wildenhues.
97347 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
97349         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
97350         test for C99 conformance; (bool) 0.5 is an integer constant
97351         expression, but (bool) -0.5 is not.  Problem reported by Fedor
97352         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
97354 2006-05-11  Simon Josefsson  <jas@extundo.com>
97356         * m4/xvasprintf.m4: Fix obvious typo.
97358 2006-05-11  Jim Meyering  <jim@meyering.net>
97360         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
97361         James Lemley.
97363 2006-05-10  Simon Josefsson  <jas@extundo.com>
97365         * lib/md4.c: Typo fix, update copyright years.
97366         (K1, K2): Don't use L because it turn computations into 64-bit on
97367         64-bit platforms.
97369 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
97371         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
97372         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
97373         unwanted sign propagation, e.g., on hosts with 64-bit int.
97374         There still are some problems with reeelly weird theoretical hosts
97375         (e.g., 33-bit int) but it's not worth worrying about now.
97376         * lib/sha1.c (rol): Likewise.
97377         (K1, K2, K3, K4): Remove unnecessary L suffix.
97379 2006-05-10  Bruno Haible  <bruno@clisp.org>
97381         * lib/des.c: Cast to avoid warnings.
97383 2006-05-09  Bruno Haible  <bruno@clisp.org>
97385         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
97386         (Depends-on): Depend also on xsize, stdarg.
97387         (configure.ac): Add gl_XVASPRINTF.
97389 2006-05-09  Bruno Haible  <bruno@clisp.org>
97391         * m4/xvasprintf.m4: New file.
97393 2006-05-09  Bruno Haible  <bruno@clisp.org>
97395         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
97396         (EOVERFLOW): Define fallback value.
97397         (xstrcat): New function.
97398         (xvasprintf): Recognize the special case of a string concatenation.
97400 2006-05-08  Eric Blake  <ebb9@byu.net>
97402         * gnulib-tool (func_version): Base copyright year on CVS date.
97403         (func_emit_copyright_notice): New function.
97404         (func_emit_lib_Makefile_am): Use it.
97405         (func_emit_tests_Makefile_am): Likewise.
97406         (func_import): Likewise.
97408 2006-05-08  Bruno Haible  <bruno@clisp.org>
97410         * modules/stdarg: New file.
97411         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
97413 2006-05-08  Bruno Haible  <bruno@clisp.org>
97415         * m4/stdarg.m4: New file, from GNU gettext.
97417 2006-05-08  Bruno Haible  <bruno@clisp.org>
97419         * config/srclist.txt (build-aux/config.rpath): different from latest
97420         release.
97422 2006-05-08  Bruno Haible  <bruno@clisp.org>
97424         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
97426 2006-05-05  Jim Meyering  <jim@meyering.net>
97428         * m4/warning.m4: New file, derived from bison's file by the same name.
97430 2006-05-03  Bruno Haible  <bruno@clisp.org>
97432         * lib/stdint_.h: Shorter URL.
97433         * lib/inttypes.h: Likewise.
97435 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
97437         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
97439 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
97441         * lib/verify.h: Document the internals better.  Most of this change
97442         was written by Bruno Haible.
97444 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
97446         * doc/verify.texi: New file, partly based on a proposal by
97447         Bruno Haible.
97449 2006-05-02  Bruno Haible  <bruno@clisp.org>
97451         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
97452         test from here...
97453         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
97455 2006-04-29  Bruno Haible  <bruno@clisp.org>
97457         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
97458         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
97460 2006-04-29  Bruno Haible  <bruno@clisp.org>
97462         * gnulib-tool: Make --update option actually work.
97464 2006-04-29  Bruno Haible  <bruno@clisp.org>
97466         * doc/gcd.texi: New file.
97467         * doc/gnulib.texi: Include it.
97469 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
97471         * lib/getdate.y (get_date): When adding relative date, start with the
97472         initial time, not with the result of the first mktime call.
97474 2006-04-25  Bruno Haible  <bruno@clisp.org>
97476         * gnulib-tool (func_import): Output the include directives in three
97477         blocks, sorted separately.
97478         Reported by Ben Pfaff <blp@cs.stanford.edu>.
97480 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
97482         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
97483         to define main with arguments, for C++.  Reported by Eric Blake.
97484         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
97485         Prefer 'int main ()' to 'int main (void)', for C++.
97486         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
97487         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
97488         for 'main', for C99 and C++.
97490 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
97492         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
97493         Don't assume that exit status -1 is valid.
97494         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
97495         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
97496         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
97497         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
97498         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
97499         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
97500         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
97501         functions can be used without declaring them, or that you can
97502         exit with status -1.
97503         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
97505 2006-04-24  Karl Berry  <karl@gnu.org>
97507         * config/srclist.txt (longdouble.m4): sync lost.
97509 2006-04-24  Eric Blake  <ebb9@byu.net>
97511         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
97513 2006-04-24  Bruno Haible  <bruno@clisp.org>
97515         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
97516         poll() implementation in AIX.
97517         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
97519 2006-04-24  Bruno Haible  <bruno@clisp.org>
97521         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
97522         assigned exactly once.
97524 2006-04-23  Claudio Fontana  <claudio@gnu.org>
97525             Bruno Haible  <bruno@clisp.org>
97527         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
97528         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
97529         for AM_CPPFLAGS.
97531 2006-04-23  Bruno Haible  <bruno@clisp.org>
97533         * modules/copy-file: Depend on unistd.
97534         * modules/execute: Likewise.
97535         * modules/fatal-signal: Likewise.
97536         * modules/findprog: Likewise.
97537         * modules/mkdtemp : Likewise.
97538         * modules/pipe: Likewise.
97539         * modules/wait-process: Likewise.
97541 2006-04-23  Bruno Haible  <bruno@clisp.org>
97543         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
97544         condition was already detected.
97545         Reported by Ben Pfaff <blp@cs.stanford.edu>.
97547 2006-04-23  Bruno Haible  <bruno@clisp.org>
97549         * lib/copy-file.c: Include <unistd.h> unconditionally.
97550         * lib/execute.c: Likewise.
97551         * lib/fatal-signal.c: Likewise.
97552         * lib/findprog.c: Likewise.
97553         * lib/mkdtemp.c: Likewise.
97554         * lib/pipe.h: Likewise.
97555         * lib/pipe.c: Likewise.
97556         * lib/wait-process.h: Likewise.
97558 2006-04-23  Bruno Haible  <bruno@clisp.org>
97560         * gnulib-tool (func_usage): Fix --import description. Document
97561         --update.
97562         (func_import): Create temporary file in a temporary directory, if
97563         --dry-run is specified. Silence errors from 'grep' when there are no
97564         m4 files in $m4dir.
97565         (func_create_testdir): Silence errors from 'grep' when there are no
97566         m4 files in $m4dir.
97567         Reported by Karl Berry <karl@freefriends.org>.
97569 2006-04-20  Bruno Haible  <bruno@clisp.org>
97571         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
97572         one argument, so that the code will be portable to Autoconf 2.60.
97573         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
97574         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
97575         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
97577 2006-04-19  Derek Price  <derek@ximbiot.com>
97578             Eric Blake  <ebb9@byu.net>
97580         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
97581         rather than "/full/path.h".  Update comment to match.  Shorten &
97582         generalize m4_translit call via AS_TR_CPP.
97584 2006-04-19  Derek Price  <derek@ximbiot.com>
97585             Eric Blake  <ebb9@byu.net>
97587         * lib/inttypes.h: Correct grammar in comment.
97589 2006-04-18  Derek Price  <derek@ximbiot.com>
97590             Paul Eggert  <eggert@cs.ucla.edu>
97592         * modules/inttypes: New file.
97593         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
97595 2006-04-18  Derek Price  <derek@ximbiot.com>
97596             Paul Eggert  <eggert@cs.ucla.edu>
97598         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
97599         New files.
97601 2006-04-18  Derek Price  <derek@ximbiot.com>
97602             Paul Eggert  <eggert@cs.ucla.edu>
97604         * lib/inttypes.h: New file.
97605         * lib/strtoimax.c: Assume <inttypes.h>.
97607 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
97609         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
97610         isn't mounted.  Problem reported by Kir Kolyshkin.
97612 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
97614         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
97615         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
97616         Derek R. Price.
97617         * lib/regex.h (RE_DUP_MAX): Update comment to match current
97618         implementation.
97620 2006-04-12  Eric Blake  <ebb9@byu.net>
97622         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
97623         is now done automatically by the corresponding Autoconf macro.
97625 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
97627         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
97628         time_r.h.
97630 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
97632         Merge regex changes from libc, removing some of our
97633         POSIX-conformance changes that were rejected and redoing them in a
97634         less-intrusive way.
97636         * lib/regcomp.c (re_compile_internal, init_dfa):
97637         Length arg is now size_t, not Idx.  All uses changed.
97638         (peek_token): Forward decl now says internal_function.
97639         (__re_error_msgid, __re_error_msgid_idx):
97640         Now static rather than extern with attribute_hidden.
97641         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
97642         For some reason libc prefers K&R style defns for external functions.
97643         (regerror) [!defined _LIBC]: Likewise.
97644         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
97645         (seek_collating_symbol_entry, lookup_collation_sequence_value):
97646         (build_range_exp, build_collating_symbol):
97647         Use K&R-style defn.
97648         (re_compile_fastmap): Use '\0' to memset, not 0.
97649         (utf8_sb_map): Make the calculations more obvious.
97650         (init_dfa, parse_bracket_exp, build_charclass_op):
97651         Call calloc and cast result, as glibc does.
97652         (init_word_char, fetch_token, peek_token, peek_token_bracket):
97653         (build_range_exp, build_collating_symbol):
97654         Now internal functions.
97656         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
97658         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
97659         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
97660         Don't depend on VMS; depend on __VMS instead, for POSIX
97661         namespace cleanness.
97662         (regoff_t): Define to ssize_t, not long int.
97664         Remove the REG_ macros named below.  Instead, make the old names
97665         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
97666         __USE_GNU_REGEX.
97667         (REG_BACKSLASH_ESCAPE_IN_LISTS):
97668         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
97669         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
97670         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
97671         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
97672         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
97673         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
97674         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
97675         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
97676         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
97677         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
97678         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
97679         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
97680         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
97681         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
97682         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
97683         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
97684         (REG_NREGS):
97685         Remove.  All uses replaced by the old RE_* names.
97686         (RE_BACKSLASH_ESCAPE_IN_LISTS):
97687         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
97688         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
97689         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
97690         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
97691         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
97692         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
97693         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
97694         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
97695         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
97696         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
97697         Don't bother having these macros be independent of each others'
97698         values, since they no longer exist in the POSIX name space.
97700         Rename the following member names back to their old names,
97701         unless !__USE_GNU_REGEX.  All uses changed back.
97702         (buffer): Renamed from re_buffer.
97703         (allocated): Renamed from re_allocated.
97704         (used): Renamed from re_used.
97705         (syntax): Renamed from re_syntax.
97706         (fastmap): Renamed from re_fastmap.
97707         (translate): Renamed from re_translate.
97708         (can_be_null): Renamed from re_can_be_null.
97709         (regs_allocated): Renamed from re_regs_allocated.
97710         (fastmap_accurate): Renamed from re_fastmap_accurate.
97711         (no_sub): Renamed from re_no_sub.
97712         (not_bol): Renamed from re_not_bol.
97713         (not_eol): Renamed from re_not_eol.
97714         (newline_anchor): Renamed from re_newline_anchor.
97715         (num_regs): Renamed from rm_num_regs.
97716         (start): Renamed from rm_start.
97717         (end): Renamed from rm_end.
97719         (free_state): Move up a bit.
97721         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
97722         #define to be empty.
97723         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
97724         when that is what is intended.
97725         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
97726         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
97727         (MAX): New macro.
97728         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
97729         All uses changed back to re_malloc, etc.  It's now the caller's
97730         responsibility to check for overflow; all callers changed.
97731         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
97732         (re_x2nrealloc): Remove.
97733         (free_state): Remove decl.
97735         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
97736         (re_set_registers, re_exec):
97737         Use K&R-style defn.
97739         2006-01-31  Roland McGrath  <roland@redhat.com>
97741         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
97742         Reported by Mike Frysinger <vapier@gentoo.org>.
97744         2006-01-15  Andreas Jaeger  <aj@suse.de>
97746         [BZ #1950]
97747         * lib/regex_internal.c (re_string_reconstruct): Adjust for
97748         build_wcs_upper_buffer change.
97749         (build_wcs_upper_buffer): Change return type.
97751         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
97753         * lib/regex_internal.h: Include <stdint.h> if available.
97755         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
97757         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
97759         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
97761         * lib/regcomp.c: Adjust for changed secondary hash function.
97763         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
97765         * lib/regex.h: Pretty printing.
97766         Clean up namespace a bit.
97768         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
97770         * lib/regexec.c (update_cur_sifted_state, check_arrival,
97771         check_arrival_add_next_nodes): Avoid using uninitialized variable.
97773         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
97774                     Ulrich Drepper  <drepper@redhat.com>
97776         [BZ #1302]
97777         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
97778         changed.
97779         (bitset_word_t): Renamed from bitset_word.  All uses changed.
97781         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
97783         [BZ #281]
97784         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
97785         * lib/regcomp.c: Remove unnecessary uses of
97786         unsigned RE_TRANSLATE_TYPE.
97787         * lib/regex_internal.h: Likewise.
97788         * lib/regex_internal.c: Likewise.
97789         * lib/regexec.c: Likewise.
97790         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
97792         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
97794         * lib/regexec.c (find_recover_state): Remove unnecessary
97795         initialization.
97796         (transit_state_bkref): Make DFA a const pointer.
97797         (get_subexp): Likewise.
97798         (check_arrival): Likewise.
97799         (update_cur_sifted_state): Likewise.
97800         (re_search_internal): Likewise.
97801         (prune_impossible_nodes): Likewise.
97802         (acquire_init_state_context): Likewise.
97803         (proceed_next_node): Likewise.
97804         (set_regs): Likewise.
97805         (free_fail_stack_return): Likewise.
97806         (check_arrival_expand_ecl): Mark DFA parameter as const.
97807         (check_arrival_expand_ecl_sub): Likewise.
97808         (check_subexp_limits): Likewise.
97809         (sub_epsilon_src_nodes):  Likewise.
97810         (add_epsilon_src_nodes):  Likewise.
97811         (merge_state_array): Likewise.
97812         (update_regs): Likewise.
97813         (build_trtable): Likewise.
97814         (sift_states_backward): Mark MCTX parameter as const.
97815         (build_sifted_states): Likewise.
97816         (update_cur_sifted_state): Likewise.
97817         (sift_states_mkref): Likewise.
97818         (check_arrival_expand_ecl): Mark eclosure as const.
97819         (check_dst_limits_calc_pos_1): Likewise.
97820         * lib/regex_internal.h (re_match_context_t): Make dfa a const
97821         pointer.
97823         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
97825         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
97826         (transit_state_sb): Likewise.
97827         (transit_state_mb): Likewise.
97828         (sift_states_iter_mb): Likewise.
97829         (check_arrival_add_next_nodes): Likewise.
97830         (check_node_accept_bytes): Change first parameter to pointer-to-const.
97831         [_LIBC] (re_search_2_stub): Use mempcpy.
97833         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
97834         mbrtowc for very simple UTF-8 case.
97836         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
97837         a pointer-to-const.
97838         (re_acquire_state_context): Likewise.
97839         * lib/regex_internal.h: Adjust prototypes.
97841         * lib/regex.c: Prevent using C++ compilers.
97843         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
97844         (re_acquire_state_context): Likewise.
97846 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
97848         * modules/regex (Depends-on): Add ssize_t.
97850 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
97852         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
97853         translation table.
97855 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
97857         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
97859 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
97860             Bruno Haible  <bruno@clisp.org>
97862         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
97863         <sys/types.h> and <inttypes.h>.
97865 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97867         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
97868         `__error_t_defined', so argp.h will not typedef the former.
97870 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
97872         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
97873         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
97874         glibc names.  Even if glibc is changed to conform to POSIX, the
97875         traditional names will be available anyway, since regex depends on
97876         the extensions module.  Also, fix a longstanding typo in the
97877         implementation of Spencer ERE test #75 from grep 2.3.  Problems
97878         reported by Emanuele Giaquinta.  Also, change sense of cached
97879         variable, so that the message makes sense.
97881 2006-03-24  Simon Josefsson  <jas@extundo.com>
97883         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
97884         including some doc fixes.
97885         (base64_encode_alloc): Fix +1 bug on allocation failures.
97887 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97889         * lib/base64.c (base64_encode): Do not read past end of array with
97890         unsanitized input on systems with CHAR_BIT > 8.
97892 2006-03-24  Eric Blake  <ebb9@byu.net>
97894         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
97896 2006-03-22  Karl Berry  <karl@gnu.org>
97898         * config/srclist.txt (*setenv.[ch]): get from coreutils.
97899         * config/srclistvars.sh (COREUTILS): new var.
97901 2006-03-17  Jim Meyering  <jim@meyering.net>
97903         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
97904         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
97906 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
97908         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
97909         no longer needs it.  Instead, check that regoff_t is as least
97910         as wide as ptrdiff_t.
97912         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
97913         so that our regex.h stays compatible with the installed regex.
97914         This is helpful for installers who configure --without-included-regex.
97915         Problem reported by Emanuele Giaquinta.
97917 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
97919         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
97920         Typedef to long int, not to off_, as POSIX will likely change
97921         in that direction.
97923 2006-03-15  Eric Blake  <ebb9@byu.net>
97925         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
97927 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
97929         * lib/argp-help.c (validate_uparams): Fix typo
97930         * lib/argp-parse.c (argp_default_options): Consistently begin help
97931         messages with a lowercase letter.
97933 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
97935         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
97936         overrun buffers and shouldn't be used (much as gets shouldn't be
97937         used).
97938         * lib/time_r.c (asctime_r, ctime_r): Likewise.
97940 2006-03-08  Simon Josefsson  <jas@extundo.com>
97942         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
97943         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
97945 2006-03-08  Simon Josefsson  <jas@extundo.com>
97947         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
97948         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
97950 2006-03-08  Simon Josefsson  <jas@extundo.com>
97952         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
97953         signal that configure disabled the device.
97955 2006-03-08  Simon Josefsson  <jas@extundo.com>
97957         * build-aux/maint.mk: Fix refresh-po, to handle no translated
97958         languages.
97960 2006-03-07  Simon Josefsson  <jas@extundo.com>
97962         * modules/getopt (Depends-on): Add unistd.
97964         * modules/unistd: New file.
97966 2006-03-07  Simon Josefsson  <jas@extundo.com>
97968         * modules/gc-random: New file.
97970 2006-03-07  Simon Josefsson  <jas@extundo.com>
97972         * m4/unistd_h.m4: New file.
97974 2006-03-07  Simon Josefsson  <jas@extundo.com>
97976         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
97977         test to be side-effect free by storing the result in the cache
97978         variable gl_cv_lib_readline, and moving the assignment of
97979         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
97980         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
97982 2006-03-07  Simon Josefsson  <jas@extundo.com>
97984         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
97985         error on missing devices (the functions will return an error).
97987         * m4/gc.m4: Move random stuff to gc-random.m4
97989 2006-03-07  Simon Josefsson  <jas@extundo.com>
97991         * lib/unistd_.h: New file.
97993 2006-03-07  Simon Josefsson  <jas@extundo.com>
97995         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
97997 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
97999         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
98000         Problem reported by Juan Manuel Guerrero.
98002 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
98004         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
98005         the unistd module.
98006         * lib/getlogin_r.c: Likewise.
98007         * lib/getlogin_r.h: Likewise.
98008         * lib/glob.c: Likewise.
98009         * lib/pagealign_alloc.c: Likewise.
98010         * lib/unistd_.h: Remove; no longer needed.
98012 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
98014         * MODULES.html.sh (Support for systems lacking POSIX:2001):
98015         Add unistd.
98016         * modules/c-stack (Depends-on): Add unistd.
98017         * modules/getlogin_r: Likewise.
98018         * modules/glob: Likewise.
98019         * modules/pagealign_alloc: Likewise.
98020         * modules/unistd (Files): Remove lib/unistd_.h.
98021         (EXTRA_DIST): Remove.
98022         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
98023         need unistd_.h.
98024         (MOSTLYCLEANFILES): Remove unistd.h-t.
98026 2006-03-03  Simon Josefsson  <jas@extundo.com>
98028         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
98030 2006-03-03  Simon Josefsson  <jas@extundo.com>
98032         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
98033         libidn and bison.
98035 2006-03-03  Simon Josefsson  <jas@extundo.com>
98037         * build-aux/maint.mk: Add indent target.
98039 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
98041         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
98042         our replacement poll.h in any case, to avoid a differing
98043         declaration from a system header.  Seen on AIX.
98045 2006-03-01  Simon Josefsson  <jas@extundo.com>
98047         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
98048         <kasal@ucw.cz>.
98050 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
98052         * modules/gettime (Depends-on): Add extensions module.
98053         * modules/nanosleep (Depends-on): Likewise.
98054         * modules/settime (Depends-on): Likewise.
98056 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
98058         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
98059         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
98060         pedantically.
98061         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
98062         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
98064         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
98065         not "==".  Reported by Ralf Wildenhues.
98067 2006-03-01  Karl Berry  <karl@gnu.org>
98069         * doc/Copyright/request-*: new files, synced from gnuorg.
98071 2006-03-01  Karl Berry  <karl@gnu.org>
98073         * config/srclist.txt (Copyright/*): new entries.
98075 2006-02-28  Simon Josefsson  <jas@extundo.com>
98077         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
98079 2006-02-27  Simon Josefsson  <jas@extundo.com>
98081         * lib/base64.h: Indent #define's.  From Jim Meyering
98082         <jim@meyering.net>.
98084 2006-02-27  Jim Meyering  <jim@meyering.net>
98086         Revert the change of 2006-02-24, so these files can continue
98087         to be sync'd from gettext.
98088         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
98089         of `config.h'.
98091 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
98093         * modules/intprops: New file.
98094         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
98095         Add intprops.
98096         * modules/getloadavg (Files): Remove lib/intprops.h.
98097         (Depends-on): Add intprops.
98098         * modules/human: Likewise.
98099         * modules/inttostr: Likewise.
98100         * modules/openat: Likewise.
98101         * modules/sig2str: Likewise.
98102         * modules/userspec: Likewise.
98103         * modules/utimecmp: Likewise.
98104         * modules/xnanosleep: Likewise.
98105         * modules/xstrtol: Likewise.
98107 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
98109         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
98110         * modules/lock-tests (TESTS): Use $(EXEEXT).
98111         * modules/tls-tests: Likewise.
98112         * modules/argp-tests: Likewise.
98113         (check_PROGRAMS): New var, replacing...
98114         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
98116 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98118         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
98119         `config.h'.
98121 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
98123         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
98125 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98127         Sync from coreutils.
98128         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
98129         gl_CHDIR_SAFER.
98131 2006-02-22  Jim Meyering  <jim@meyering.net>
98133         Sync from coreutils.
98134         * m4/chdir-safer.m4: New file.
98136 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
98138         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
98139         AT_FDCWD exceeds INT_MAX.
98140         * lib/openat.h (AT_FDCWD): Likewise.
98142 2006-02-17  Eric Blake  <address@hidden>
98144         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
98146 2006-02-16  Simon Josefsson  <jas@extundo.com>
98148         * modules/getaddrinfo (Depends-on): Add sys_socket.
98150 2006-02-15  Simon Josefsson  <jas@extundo.com>
98152         * build-aux/maint.mk: Add dsyntax-check rule.
98154 2006-02-15  Eric Blake  <ebb9@byu.net>
98156         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
98157         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
98158         'present but cannot compile' warnings on cygwin.
98159         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
98160         use ws2tcpip.h if sys/socket.h works.
98161         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
98162         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
98164 2006-02-14  Simon Josefsson  <jas@extundo.com>
98166         * modules/maintainer-makefile (Files): Rename.
98168         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
98169         and (the local) Makefile.cfg to maint-cfg.mk.
98171         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
98172         to the latter.
98174         * modules/maintainer-makefile: New module.
98176         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
98177         severaly stripped to make it possible to build it up from scratch
98178         with reliable tests.
98180         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
98181         fixes to permit overriding the default actions when configure and
98182         makefile are not available.
98184 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
98186         Sync from coreutils.
98187         * modules/lstat (Depends-on): Don't depend on xalloc.
98188         (License): Change from GPL to LGPL, since this is now simply a
98189         replacement for a libc function.
98191 2006-02-14  Jim Meyering  <jim@meyering.net>
98193         Sync from coreutils.
98195         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
98196         failure on deficient systems, and simplify gnulib lgpl dependencies.
98197         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
98198         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
98200         * lib/xalloc-die.c: Remove unused definition of N_.
98202 2006-02-14  Jim Meyering  <jim@meyering.net>
98204         Sync from coreutils.
98205         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
98206         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
98207         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
98208         double-quote uses of that variable, to accommodate the rare case in
98209         which getmntent is available in none of the libraries checked.  This
98210         happens at least on FreeBSD 5.0.
98212 2006-02-13  Simon Josefsson  <jas@extundo.com>
98214         * gnulib-tool (Usage): Fix --import, from
98215         karl@freefriends.org (Karl Berry).
98217 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
98219         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
98221 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
98223         * lib/argp-namefrob.h: Restore changes accidentally lost during the
98224         "autoupdate" on 2005-12-12.
98226 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
98228         * modules/closeout (Depends-on): Remove atexit.
98230 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
98232         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
98233         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
98235 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
98237         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
98238         __EXTENSIONS__ if this causes compilation to fail.  Problem
98239         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
98240         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
98242 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
98244         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
98245         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
98246         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
98247         All uses changed.
98249 2006-01-26  Simon Josefsson  <jas@extundo.com>
98251         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
98252         prototype is visible on mingw32.
98254         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
98255         for mingw32.
98257         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
98258         mingw32).
98260 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
98262         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
98263         attempt to open for write; this always fails, at least on POSIX
98264         hosts.  This reinstates the 2006-01-09 change, which was
98265         inadvertently removed.
98267 2006-01-26  Bruno Haible  <bruno@clisp.org>
98269         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
98270         Reported by Paul Eggert.
98272 2006-01-26  Bruno Haible  <bruno@clisp.org>
98273             Paul Eggert  <eggert@cs.ucla.edu>
98275         * lib/stdbool_.h (_Bool)
98276         [(! (defined __cplusplus || defined __BEOS__)
98277           && !defined __GNUC__
98278           && !(defined __HP_cc || defined __xlc__
98279                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
98280                || defined __sgi))]:
98281         #define to signed char in these cases too; this simplifies
98282         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
98283         etc., separately) and makes it more conservative.
98285 2006-01-25  Simon Josefsson  <jas@extundo.com>
98287         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
98288         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
98289         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
98291 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
98293         * lib/argp-namefrob.h: Bugfix. Remove stray #
98295 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
98297         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
98298         so that we test the test.
98299         Check for yet another HP-UX cc bug involving *bool |= bool.
98301 2006-01-25  Karl Berry  <karl@gnu.org>
98303         * config/srclist.txt (vasnprintf.c): sync lost.
98305 2006-01-25  Jim Meyering  <jim@meyering.net>
98307         Sync from the stable (b5) branch of coreutils:
98309         * lib/fts.c (fts_children): Don't let close() clobber errno from
98310         failed fchdir().
98312         * lib/fts.c (fts_stat): When following a symlink-to-directory,
98313         don't necessarily interpret stat-fails+lstat-succeeds as indicating
98314         a dangling symlink.  That can also happen at least for ELOOP.
98315         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
98316         FYI, this bug predates the inclusion of fts.c in coreutils.
98318         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
98319         in their own block, so pre-c99 compilers don't object.
98321         Avoid the double-free (first in fts_read, second in fts_close) that
98322         would occur when an `active' directory is made inaccessible (e.g.,
98323         via chmod a-x) during a traversal.
98324         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
98325         before returning.  Reproduce this failure by
98326         mkdir -p a/b; cd a; chmod a-x . b
98327         Reported by Stavros Passas.
98329 2006-01-25  Jim Meyering  <jim@meyering.net>
98331         * lib/fileblocks.c: Remove more useless parentheses.
98332         * lib/readutmp.h: Likewise.
98334 2006-01-25  Bruno Haible  <bruno@clisp.org>
98336         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
98337         warnings.
98338         Reported by Paul Eggert.
98340 2006-01-25  Bruno Haible  <bruno@clisp.org>
98342         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
98343         rid of a trap command. For Solaris sh.
98344         Reported by Mark D. Baushke <mdb@gnu.org>.
98346 2006-01-24  Simon Josefsson  <jas@extundo.com>
98348         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
98349         Bruno.
98351 2006-01-24  Karl Berry  <karl@gnu.org>
98353         * config/srclist.txt (argp-namefrob.h): sync lost.
98355 2006-01-24  Jim Meyering  <jim@meyering.net>
98357         * modules/openat (Files): Add lib/intprops.h.
98358         From Mark D. Baushke.
98360 2006-01-24  Jim Meyering  <jim@meyering.net>
98362         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
98363         Reported by Mark D. Baushke.
98365 2006-01-24  Jim Meyering  <jim@meyering.net>
98367         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
98369 2006-01-24  Bruno Haible  <bruno@clisp.org>
98371         * modules/strnlen (Maintainer): Change from glibc to all.
98373 2006-01-24  Bruno Haible  <bruno@clisp.org>
98375         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
98376         Patch by Paul Eggert.
98378 2006-01-24  Bruno Haible  <bruno@clisp.org>
98380         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
98381         already has it.
98382         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
98383         2005-11-26.
98385         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
98386         'signed char' to avoid problems with the built-in _Bool type.
98387         Reported by Paul Eggert on 2005-11-26.
98389 2006-01-24  Bruno Haible  <bruno@clisp.org>
98391         * gnulib-tool (func_import): Avoid constructing complicated sed
98392         expressions inside backquote.
98393         Report and solution by Mark D. Baushke <mdb@gnu.org>.
98395 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
98397         These changes imported from libc.
98398         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
98399         test and two separate function calls.
98400         * lib/strndup.c (__strndup): Add libc_hidden_def.
98402 2006-01-23  Simon Josefsson  <jas@extundo.com>
98404         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
98405         Remove the test_*_SOURCES variable: automake infers it by default.
98406         * modules/tls-tests: Likewise.
98408 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
98410         Work around porting bugs reported by Dieter in
98411         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
98412         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
98413         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
98414         Include "getopt.h" first, to check interface.
98415         (getenv): Declare only if defined HAVE_DECL_GETENV &&
98416         !HAVE_DECL_GETENV.
98417         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
98418         (__strndup): Revert to K&R-style function dfns, the glibc style.
98419         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
98420         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
98421         Include strnlen.h first, to get prototype properly.
98422         (strnlen): Renamed from __strnlen.
98423         Remove weak alias.
98425 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
98427         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
98429 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
98431         * config/srclist.txt: Adjust to reflect glibc reorganization.
98432         This affects only comments.
98434 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
98436          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
98437          Reported by Bruce Korb <bkorb@gnu.org>.
98439 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
98441         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
98442         to pacify gcc -Wswitch-default.
98444 2006-01-22  Bruno Haible  <bruno@clisp.org>
98446         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
98447         temporary buffer for sprintf, take into account the precision also
98448         for 'd', 'i', 'u', 'o', 'x', 'X'.
98450 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
98452         * modules/argp-tests: New module
98453         * tests/test-argp.c: New file
98454         * tests/test-argp-2.sh: New file
98456 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
98458         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
98459         (__argp_base_name): Removed
98460         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
98461         typo.
98462         (__argp_base_name): Provide macro definition or extern declaration
98463         depending on the configuration
98465 2006-01-20  Simon Josefsson  <jas@extundo.com>
98467         * modules/inet_ntop (Depends-on): Depend on sys_socket.
98469 2006-01-20  Simon Josefsson  <jas@extundo.com>
98471         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
98473 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
98475         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
98476         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
98477         Suggested by Bruno Haible.
98479 2006-01-20  Karl Berry  <karl@gnu.org>
98481         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
98482         until changes propagate, I guess.
98484 2006-01-19  Simon Josefsson  <jas@extundo.com>
98486         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
98488 2006-01-19  Simon Josefsson  <jas@extundo.com>
98490         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
98492 2006-01-19  Simon Josefsson  <jas@extundo.com>
98494         * gnulib-tool: Set check_PROGRAMS.
98496         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
98497         modules/des-tests, modules/gc-arcfour-tests,
98498         modules/gc-arctwo-tests, modules/gc-des-tests,
98499         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
98500         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
98501         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
98502         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
98503         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
98504         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
98505         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
98506         test_*_SOURCES.
98508 2006-01-18  Simon Josefsson  <jas@extundo.com>
98510         * modules/socklen (Depends-on): Depend on sys_socket.
98512 2006-01-18  Simon Josefsson  <jas@extundo.com>
98514         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
98515         modules/des-tests, modules/gc-arcfour-tests,
98516         modules/gc-arctwo-tests, modules/gc-des-tests,
98517         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
98518         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
98519         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
98520         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
98521         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
98522         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
98523         $(EXEEXT) to automake TESTS variable, for mingw32.
98525 2006-01-17  Simon Josefsson  <jas@extundo.com>
98527         * modules/socklen (Include): Need sys/socket.h.
98529 2006-01-17  Bruno Haible  <bruno@clisp.org>
98531         * modules/ssize_t (Include): Add <sys/types.h>.
98533 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
98535         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
98536         it's not portable and it doesn't work with cross-compiles.
98537         Problem reported by Bruno Haible.  Fix missing-$ typo in
98538         'test "gl_cv_ignore_unused_libraries" ...' that prevented
98539         -zignore from being used with Sun's C compiler.
98541 2006-01-12  Simon Josefsson  <jas@extundo.com>
98543         * lib/base64.c: Fix warning, reported by Bruno Haible
98544         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
98546 2006-01-12  Bruno Haible  <bruno@clisp.org>
98548         * modules/ldd: New file.
98549         * build-aux/ldd.sh.in: New file.
98550         * MODULES.html.sh (Support for building libraries and executables): Add
98551         ldd.
98553 2006-01-12  Bruno Haible  <bruno@clisp.org>
98555         * m4/ldd.m4: New file.
98557 2006-01-12  Bruno Haible  <bruno@clisp.org>
98559         * gnulib-tool (func_import, func_create_testdir): Don't go into an
98560         endless loop while replacing $auxdir with build-aux.
98562 2006-01-11  Simon Josefsson  <jas@extundo.com>
98564         * lib/stdint_.h (SIZE_MAX): Add missing (.
98566 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
98568         Sync from coreutils.
98569         * lib/md5.c: Fix commentary typos.
98570         (alignof, UNALIGNED_P): No need for a GCC-specific version.
98571         * lib/md5.h (__attribute__): Remove; unused.
98572         * lib/sha1.c: Fix commentary to match md5 better.
98573         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
98574         so that we don't need to worry about alignment.  All uses changed.
98575         This merges the 2005-10-28 md5 change into sha1.
98577 2006-01-11  Jim Meyering  <jim@meyering.net>
98579         Sync from coreutils.
98580         * lib/md5.c (OP): Fix spacing.
98582 2006-01-11  Bruno Haible  <bruno@clisp.org>
98584         Ensure automatic ordering between gl_LOCK and gl_ARGP.
98585         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
98586         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
98588 2006-01-11  Bruno Haible  <bruno@clisp.org>
98590         Ensure automatic ordering between gl_LOCK and gl_ARGP.
98591         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
98592         the "early" section as well.
98594 2006-01-11  Bruno Haible  <bruno@clisp.org>
98596         Avoid "ar: no archive members specified" error on MacOS X.
98597         * gnulib-tool (func_modules_add_dummy): New function.
98598         (func_import, func_create_testdir): Invoke it.
98600 2006-01-11  Bruno Haible  <bruno@clisp.org>
98602         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
98603         with $auxdir in AC_CONFIG_FILES statements.
98605 2006-01-11  Bruno Haible  <bruno@clisp.org>
98607         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
98608         Initialize also noinst_HEADERS to empty.
98610 2006-01-11  Bruno Haible  <bruno@clisp.org>
98612         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
98613         variables.
98614         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
98615         autoreconf.
98617 2006-01-11  Bruno Haible  <bruno@clisp.org>
98619         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
98620         overridable by the user.
98621         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
98623 2006-01-10  Simon Josefsson  <jas@extundo.com>
98625         * modules/sys_socket: New file.
98627 2006-01-10  Simon Josefsson  <jas@extundo.com>
98629         * m4/sys_socket_h.m4: New file.
98631 2006-01-10  Simon Josefsson  <jas@extundo.com>
98633         * lib/socket_.h: New file.
98635 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
98637         * modules/readutmp (Maintainer): Add myself.
98639 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
98641         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
98642         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
98643         People who are still concerned with buggy memcmp implementations
98644         can invoke gl_FUNC_MEMCMP themselves.
98646 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
98648         * lib/regex_internal.h (BITSET_WORD_BITS):
98649         Work around a bug in 64-bit PGC (before version 6.1-2), where the
98650         preprocessor mishandles large unsigned values as if they were signed.
98651         Problem reported by Claudio Fontana in
98652         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
98654 2006-01-10  Jim Meyering  <jim@meyering.net>
98656         Avoid the double-free (first in fts_read, second in fts_close) that
98657         would occur when an `active' directory is made inaccessible (e.g.,
98658         via chmod a-x) during a traversal.
98659         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
98660         before returning.  Reproduce this failure by
98661         mkdir -p a/b; cd a; chmod a-x . b
98662         Reported by Stavros Passas.
98664         Sync from coreutils.
98665         * lib/sha1.c: Tweak grammar in a comment.
98667 2006-01-10  Jim Meyering  <jim@meyering.net>
98669         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
98670         Patch by Joerg Sonnenberger.
98672 2006-01-10  Bruno Haible  <bruno@clisp.org>
98674         * modules/readutmp: Depend on module free.
98675         * modules/strtok_r: Depend on module restrict.
98677 2006-01-10  Bruno Haible  <bruno@clisp.org>
98679         * modules/gettext (configure.ac): Add an invocation of
98680         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
98682 2006-01-10  Bruno Haible  <bruno@clisp.org>
98684         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
98685         Reported by Werner Lemberg <wl@gnu.org>.
98687 2006-01-10  Bruno Haible  <bruno@clisp.org>
98689         * lib/localcharset.c: Update from GNU gettext.
98691 2006-01-10  Bruno Haible  <bruno@clisp.org>
98693         * lib/argp.h (__const): Remove macro. Use const instead.
98694         * lib/argp-fmtstream.h (__const): Likewise.
98695         * lib/glob_.h (__const): Remove macro.
98696         * lib/glob-libc.h: Use const instead of __const.
98698 2006-01-10  Bruno Haible  <bruno@clisp.org>
98700         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
98701         variable.
98702         Needed to avoid an automake error regarding the 'gettext' module.
98704 2006-01-09  Simon Josefsson  <jas@extundo.com>
98706         * modules/inet_ntop (Depends-on): Add restrict.
98708 2006-01-09  Simon Josefsson  <jas@extundo.com>
98710         * modules/gc-rijndael-tests (License): Put under LGPL.
98712         * modules/gc-des-tests (License): Likewise.
98714         * modules/gc-arcfour-tests (License): Likewise.
98716         * modules/gc-arctwo-tests (License): Likewise.
98718         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
98720         * modules/gc-hmac-sha1-tests (Files): Likewise.
98722         * modules/gc-hmac-md5-tests (License): Likewise.
98724         * modules/gc-sha1-tests (License): Likewise.
98726         * modules/gc-md5-tests (License): Likewise.
98728         * modules/gc-md4-tests (License): Likewise.
98730         * modules/gc-md2-tests (License): Likewise.
98732         * modules/gc-tests (License): Likewise.
98734         * modules/des-tests (License): Likewise.
98736         * modules/md4-tests (License): Likewise.
98738         * modules/md2-tests (License): Likewise.
98740 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
98742         Sync from coreutils:
98744         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
98745         * modules/lib-ignore: New file.
98746         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
98747         chdir-safer.m4, lchmod.m4.
98748         * modules/openat: Add mkdirat.c, openat-priv.h.
98750 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
98752         Sync from coreutils.
98753         * m4/lib-ignore.m4: New file.
98754         * m4/lchmod.m4: New file.
98756 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
98758         Sync from coreutils.
98759         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
98760         for write access: POSIX says that must fail.
98761         * lib/fts.c (diropen): Likewise.
98762         * lib/save-cwd.c (save_cwd): Likewise.
98763         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
98764         well, for minor improvements on hosts that lack O_DIRECTORY.
98765         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
98766         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
98767         Fall back on chown if open failed with EACCES.
98769         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
98770         Report an error at compile-time if only a 1-second nominal clock
98771         resolution is found.
98773         * lib/lchmod.h: New file.
98774         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
98775         (make_dir_parents): Use lchown rather than chown, and
98776         lchmod rather than chmod.
98778         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
98779         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
98780         "proc" reported by n0dalus.
98782         * lib/mountlist.c: Include <limits.h>.
98783         (dev_from_mount_options)
98784         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
98785         New function.  It no longer assumes "dev=" has the System V meaning
98786         on Linux (since it doesn't).  It also parses "dev=" more carefully.
98787         (read_file_system_list)
98788         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
98789         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
98790         dev= in that case.
98792         * lib/posixtm.h (PDS_PRE_2000): New macro.
98793         * lib/posixtm.c (year): Arg is now syntax_bits rather than
98794         allow_century.  All usages changed.  Reject dates outside the range
98795         1969-1999 if PDS_PRE_2000 is used.
98797 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
98799         Sync from coreutils.
98800         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
98801         (Time of day items): Mention the possibility of leap seconds.
98802         Problem reported by Dr. David Alan Gilbert.
98804 2006-01-09  Jim Meyering  <jim@meyering.net>
98806         Sync from coreutils.
98808         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
98810         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
98812         * lib/modechange.c (mode_compile): Reject an invalid mode string
98813         that starts with an octal digit.  From Andreas Gruenbacher.
98815         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
98816         and dup to open_safer and dup_safer, respectively.
98817         (openat_permissive): Fix typo in comment.
98819         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
98820         "gettext.h"; either no longer needed or are guaranteed by openat.h.
98821         (_): Remove; no longer needed.
98822         (openat): Renamed from rpl_openat; no need for rpl_openat
98823         since openat.h renames openat for us.
98824         Replace most of the body with a call to openat_permissive,
98825         to avoid duplicate code.
98826         Port to (probably hypothetical) environments were mode_t is
98827         wider than int.
98828         (openat_permissive): Require mode arg, so that we can check
98829         types better.  Put it just after flags.  Change cwd failure
98830         indicator from pointer-to-bool to pointer-to-errno-value.
98831         All callers changed.
98832         Invoke openat_save_fail and/or openat_restore_fail if
98833         cwd_errno is null, so that openat can call us.
98834         (openat_permissive, fdopendir, fstatat, unlinkat):
98835         Simplify errno handling to avoid some duplicate code,
98836         as it's OK to set errno on success.
98837         * lib/openat.h: Revamp code so that function macros depend on
98838         __OPENAT_PREFIX only, not also on AT_FDCWD.
98839         (openat_ro): Remove.  Caller changed to use openat_permissive.
98840         (openat_permissive): Now a macro, if not a function.
98841         (openat_restore_fail, openat_save_fail): Now always functions,
98842         since mkdirat needs them even if __OPENAT_PREFIX is defined.
98844         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
98845         and openat.c.
98846         * lib/mkdirat.c: Include openat-priv.h.
98847         Remove definitions of macros defined therein.
98848         * lib/openat.c: Likewise.
98850         * lib/mkdirat.c (mkdirat): New file and function.
98851         * lib/openat.h (mkdirat): Declare.
98853         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
98855         * lib/openat.h (openat_permissive): Declare.
98856         (openat_ro): Define.
98858         * lib/openat.c (EXPECTED_ERRNO): New macro.
98859         (openat_permissive): New function -- used in remove.c rewrite.
98860         (all functions): Set errno just before returning, only if there
98861         was an actual failure.
98862         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
98864         Emulate openat-family functions using Linux's procfs, if possible.
98865         Idea and some code based on Ulrich Drepper's glibc changes.
98867         * lib/openat.c: (BUILD_PROC_NAME): New macro.
98868         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
98869         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
98870         before falling back on save_cwd and restore_cwd.
98871         (fdopendir, fstatat, unlinkat): Likewise.
98873         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
98874         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
98876         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
98877         as second argument to va_arg.  Otherwise, some versions of gcc
98878         warn that `if this code is reached, the program will abort'.
98880 2006-01-09  Jim Meyering  <jim@meyering.net>
98882         Sync from coreutils.
98883         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
98884         Require openat-priv.h.
98886 2006-01-09  Bruno Haible  <bruno@clisp.org>
98888         * modules/strnlen (Include): Use strnlen.h.
98890 2006-01-09  Bruno Haible  <bruno@clisp.org>
98892         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
98894 2006-01-09  Bruno Haible  <bruno@clisp.org>
98896         * lib/sysexit_.h (EX_OK): New macro.
98897         Suggested by Martin Lambers <marlam@marlam.de>.
98899 2006-01-09  Bruno Haible  <bruno@clisp.org>
98901         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
98902         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
98904 2006-01-09  Bruno Haible  <bruno@clisp.org>
98906         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
98907         numbers.
98909 2006-01-09  Bruno Haible  <bruno@clisp.org>
98911         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
98912         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
98913         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
98914         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
98916 2006-01-09  Bruno Haible  <bruno@clisp.org>
98918         * build-aux/javacomp.sh.in: New file, moved from lib/.
98919         * modules/javacomp-script (Files): Update.
98920         (configure.ac): Add AC_CONFIG_FILES invocation.
98921         (EXTRA_DIST): Remove variable.
98923         * build-aux/javaexec.sh.in: New file, moved from lib/.
98924         * modules/javaexec (Files): Update.
98925         (configure.ac): Add AC_CONFIG_FILES invocation.
98926         (EXTRA_DIST): Remove javaexec.sh.in.
98928         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
98929         * modules/csharpcomp-script (Files): Update.
98930         (configure.ac): Add AC_CONFIG_FILES invocation.
98931         (EXTRA_DIST): Remove variable.
98933         * build-aux/csharpexec.sh.in: New file, moved from lib/.
98934         * modules/csharpexec (Files): Update.
98935         (configure.ac): Add AC_CONFIG_FILES invocation.
98936         (EXTRA_DIST): Remove csharpexec.sh.in.
98938 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
98940         Sync from coreutils.
98942         Add POSIX ACL support
98943         * lib/acl.h (copy_acl, set_acl): Add declarations.
98944         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
98945         systems other than Linux.
98946         (chmod_or_fchmod): New function: use fchmod when possible,
98947         and chmod otherwise.
98948         (file_has_acl): Add a POSIX ACL implementation, with a
98949         Linux-specific subcase.
98950         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
98951         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
98952         acls are unsupported.
98953         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
98954         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
98955         are unsupported.
98957 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
98959         Sync from coreutils.
98960         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
98962 2006-01-07  Bruno Haible  <bruno@clisp.org>
98964         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
98965         gl_EARLY.
98967 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
98969         * lib/strftime.c (tzname): Don't declare if it is already #defined.
98970         Problem reported for Mingw by Mark Junker.
98972 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
98974         * README: Gnulib normally doesn't generate a tarball.
98976 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
98978         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
98979         long int, not int, for nanosecond counts, so that people who are
98980         used to POSIX struct timespec won't be surprised.  Reported by Jim
98981         Meyering.
98983 2005-12-28  Bruno Haible  <bruno@clisp.org>
98985         * build-aux/config.rpath: Update from GNU gettext.
98987 2005-12-16  Jim Meyering  <jim@meyering.net>
98989         * modules/fprintftime: New module.
98990         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
98992 2005-12-16  Jim Meyering  <jim@meyering.net>
98994         * m4/fprintftime.m4: New file.
98996 2005-12-16  Jim Meyering  <jim@meyering.net>
98998         * lib/fprintftime.c, lib/fprintftime.h: New files.
99000 2005-12-15  Simon Josefsson  <jas@extundo.com>
99002         * modules/socklen (configure.ac): Fix M4 macro name, to align with
99003         new m4/socklen.m4.
99005 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
99007         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
99008         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
99010 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
99012         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
99013         * lib/argp-help.c (fill_in_uparams): Check if the constructed
99014         struct uparams is valid. Fall back to the default values if it is
99015         not.
99017 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
99019         * modules/argp (Files): Add argp-pin.c
99020         (Depends-on): dirname
99021         (lib_SOURCES): Add argp-pin.c
99023 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
99025         * m4/argp.m4:  Check if program_invocation_name and
99026         program_invocation_short_name are declared and define appropriate
99027         macros if they are not.
99029 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
99031         * lib/argp-help.c (__argp_base_name): New function
99032         (__argp_short_program_name): Rewrite using __argp_base_name
99033         * lib/argp-namefrob.h: Define program_invocation_name and
99034         program_invocation_short_name if requested
99035         (__argp_base_name): Add prototype
99036         * lib/argp-parse.c (argp_def): Use gettext wrappers
99037         (argp_default_parser): Use __argp_base_name
99038         * lib/argp-pin.c: New file. Defines program_invocation_name and
99039         program_invocation_short_name on systems that lack them.
99041 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
99043         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
99044         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
99045         porting problem reported by Georg Schwarz in
99046         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
99048 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
99050         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
99051         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
99052         porting problem reported by Georg Schwarz in
99053         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
99055 2005-12-05  Bruno Haible  <bruno@clisp.org>
99057         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
99058         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
99059         Reported by Mark Junker <mjscod@gmx.de>.
99061 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
99063         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
99064         Use implementation from Albert Chin, with some
99065         comments/corrections by Stepan Kasal and myself.
99067 2005-12-02  Bruno Haible  <bruno@clisp.org>
99069         * gnulib-tool (func_import): Accept GPLed build tool modules when
99070         --lgpl is given.
99071         * modules/csharpcomp-script: New file.
99072         * modules/csharpcomp: Depend on it.
99073         * modules/javacomp-script: New file.
99074         * modules/javacomp: Depend on it.
99075         Suggested by Simon Josefsson.
99077 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
99079         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
99080         statement, to work around an HP-UX 10.20 compiler bug reported by
99081         Peter O'Gorman.
99083 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
99085         * modules/savedir (Depends-on): Add openat.
99087 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
99089         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
99090         (uintmax_t) [defined uintmax_t]: Do not declare.
99091         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
99092         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
99093         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
99094         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
99095         sake of portability to weird hosts that C allows (though we don't
99096         know of any practical examples).
99098         * lib/savedir.h (fdsavedir): New decl.
99099         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
99100         contains most of the former guts of savedir.
99101         (savedir): Use savedirstream.
99102         Include "openat.h".
99104 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
99106         * modules/obstack (Files): Add m4/ulonglong.m4.
99107         Problem reported by Davide Angelocola.
99109 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
99111         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
99112         coreutils no longer futzes with rounding modes.
99114 2005-11-14  Jim Meyering  <jim@meyering.net>
99116         * lib/mkstemp-safer.c: Include <config.h>, required for possible
99117         replacement of mkstemp.
99119 2005-11-10  Simon Josefsson  <jas@extundo.com>
99121         * lib/readline.c: Remove EOL.
99123 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
99125         * modules/gethrxtime (Depends-on): Add gettime.
99127 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
99129         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
99130         or gettimeofday; no longer needed.
99132 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
99134         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
99135         time business.
99136         (gethrxtime) [! (HAVE_NANOUPTIME
99137         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
99138         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
99139         our own approximation.
99141 2005-11-08  Eric Blake  <ebb9@byu.net>
99143         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
99145 2005-11-08  Eric Blake  <ebb9@byu.net>
99147         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
99149 2005-11-04  Bruno Haible  <bruno@clisp.org>
99151         * gnulib-tool: Implement --update mode.
99153 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
99155         Fix porting problem reported by Theodoros V. Kalamatianos.
99156         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
99157         Don't assume that futimes failing means we must fail.
99159 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
99161         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
99162         variables to suggest the intended function of the PATH_MAX check.
99164 2005-10-30  Kean Johnston  <jkj@sco.com>
99166         Trivial changes to support SCO systems.
99167         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
99168         as PATH_MAX.
99169         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
99170         where __ptr is null when no I/O is pending.
99172 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
99174         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
99175         leave errno alone.  Problem reported by Dmitry V. Levin.
99177 2005-10-28  Simon Josefsson  <jas@extundo.com>
99179         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
99180         Test more.
99182         * tests/test-gc-md2.c, tests/test-md2.c: New files.
99184         * modules/md2, modules/md2-tests: New files.
99186 2005-10-28  Simon Josefsson  <jas@extundo.com>
99188         * m4/inet_ntop.m4: More tests.
99190         * m4/gc-md2.m4, md2.m4: New file.
99192 2005-10-28  Simon Josefsson  <jas@extundo.com>
99194         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
99195         "restrict" keywords, as per POSIX.  Protect the function
99196         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
99197         Don't use K&R prototypes.  Check the sprintf return values.
99198         Re-define EAFNOSUPPORT if not present.  Indent.
99200         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
99201         suggested by Bruno Haible <bruno@clisp.org>.
99203         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
99205         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
99207         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
99208         libgcrypt).
99210         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
99212         * lib/md2.h, lib/md2.c: New files.
99214 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
99216         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
99217         errno alone.  Problem reported by Frederic Jolliton.
99219 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
99221         * modules/verify (License): Change from GPL to LGPL.  This is a
99222         tiny module and there are apparently near-equivalents that are
99223         under the BSD license.
99225 2005-10-24  Simon Josefsson  <jas@extundo.com>
99227         * modules/sha1: Relicense to LGPL.
99229 2005-10-24  Simon Josefsson  <jas@extundo.com>
99231         * lib/md4.h: Shrink buffer size, now that we changed the type.
99233 2005-10-23  Simon Josefsson  <jas@extundo.com>
99235         * gnulib-tool (func_import): Fix --tests-base.
99237 2005-10-22  Simon Josefsson  <jas@extundo.com>
99239         * modules/arcfour (Depends-on): Need stdint.
99241 2005-10-22  Simon Josefsson  <jas@extundo.com>
99243         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
99244         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
99246 2005-10-22  Simon Josefsson  <jas@extundo.com>
99248         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
99249         suggested by Bruno Haible <bruno@clisp.org>.
99251 2005-10-22  Simon Josefsson  <jas@extundo.com>
99253         * lib/crc.h: Include stddef.h, for size_t.
99255 2005-10-22  Simon Josefsson  <jas@extundo.com>
99257         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
99258         arcfour_context struct (simplify test vector testing in GNU
99259         Shishi).
99261 2005-10-21  Simon Josefsson  <jas@extundo.com>
99263         * modules/des, modules/des-tests: New files.
99265         * modules/gc-des, modules/gc-des-tests: New files.
99267         * tests/test-des.c, tests/test-gc-des.c: New file.
99269 2005-10-21  Simon Josefsson  <jas@extundo.com>
99271         * modules/arctwo, modules/arctwo-tests: New files.
99273         * tests/test-arctwo.c: New file.
99275         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
99277         * tests/test-gc-arctwo.c: New file.
99279 2005-10-21  Simon Josefsson  <jas@extundo.com>
99281         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
99282         Bruno Haible <bruno@clisp.org>.
99284         * m4/gc-des.m4: New file.
99286 2005-10-21  Simon Josefsson  <jas@extundo.com>
99288         * m4/arctwo.m4: New file.
99290         * m4/gc-arctwo.m4: New file.
99292 2005-10-21  Simon Josefsson  <jas@extundo.com>
99294         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
99295         block.
99297 2005-10-21  Simon Josefsson  <jas@extundo.com>
99299         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
99300         <bruno@clisp.org>.
99302         * lib/hmac-sha1.c (hmac_sha1): Likewise.
99304         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
99305         Bruno Haible <bruno@clisp.org>.
99307         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
99308         <bruno@clisp.org>.
99310 2005-10-21  Simon Josefsson  <jas@extundo.com>
99312         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
99314 2005-10-21  Simon Josefsson  <jas@extundo.com>
99316         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
99318 2005-10-21  Simon Josefsson  <jas@extundo.com>
99320         * lib/des.h, lib/des.c: New files.
99322         * lib/gc-gnulib.c: Support DES.c
99324 2005-10-21  Simon Josefsson  <jas@extundo.com>
99326         * lib/arctwo.h, lib/arctwo.c: New files.
99328         * lib/gc-gnulib.c: Support ARCTWO.
99330 2005-10-21  Simon Josefsson  <jas@extundo.com>
99332         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
99333         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
99335 2005-10-21  Simon Josefsson  <jas@extundo.com>
99337         * gnulib-tool (func_import, func_create_testdir): Define automake
99338         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
99339         Makefile.am snippet),
99340         suggested by Bruno Haible <bruno@clisp.org>.
99342         * modules/gc (Makefile.am): Use it.
99344 2005-10-21  Bruno Haible  <bruno@clisp.org>
99346         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
99347         patch.
99349 2005-10-19  Simon Josefsson  <jas@extundo.com>
99351         * tests/test-gc-rijndael.c: New file.
99353         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
99355 2005-10-19  Simon Josefsson  <jas@extundo.com>
99357         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
99358         interface too.
99360 2005-10-19  Simon Josefsson  <jas@extundo.com>
99362         * tests/test-gc-arcfour.c: New file.
99364         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
99366 2005-10-19  Simon Josefsson  <jas@extundo.com>
99368         * modules/gc-md4, modules/gc-md4-tests: New file.
99370         * tests/test-gc-md4.c: New file.
99372 2005-10-19  Simon Josefsson  <jas@extundo.com>
99374         * m4/gc-md4.m4: New file.
99376 2005-10-19  Simon Josefsson  <jas@extundo.com>
99378         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
99379         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
99380         <kasal@ucw.cz>.
99382 2005-10-19  Simon Josefsson  <jas@extundo.com>
99384         * m4/gc-arcfour.m4: New file.
99386         * m4/gc-rijndael.m4: New file.
99388 2005-10-19  Simon Josefsson  <jas@extundo.com>
99390         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
99392 2005-10-19  Simon Josefsson  <jas@extundo.com>
99394         * lib/gc-gnulib.c: Support ARCFOUR.
99396 2005-10-19  Simon Josefsson  <jas@extundo.com>
99398         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
99399         support.
99401         * lib/gc.h: Add ECB enum type.
99403         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
99405 2005-10-18  Simon Josefsson  <jas@extundo.com>
99407         * tests/test-md5.c: New file.
99409         * modules/md5-tests: New file.
99411 2005-10-18  Simon Josefsson  <jas@extundo.com>
99413         * tests/test-md4.c: New file.
99415         * modules/md4, modules/md4-tests: New files.
99417 2005-10-18  Simon Josefsson  <jas@extundo.com>
99419         * m4/md4.m4: New file.
99421 2005-10-18  Simon Josefsson  <jas@extundo.com>
99423         * lib/md4.h, lib/md4.c: New files, based on md5.?.
99425 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
99427         * gnulib-tool (func_create_testdir): Omit the second check whether
99428         BUILT_SOURCES in nonempty.
99430 2005-10-17  Simon Josefsson  <jas@extundo.com>
99432         * tests/test-rijndael.c: New file.
99434 2005-10-17  Simon Josefsson  <jas@extundo.com>
99436         * modules/sha1: Depend on stdint instead of md5.
99438         * modules/md5: Depend on stdint, remove uint32_t.
99440 2005-10-17  Simon Josefsson  <jas@extundo.com>
99442         * modules/gc-sha1-tests: New file.
99444         * tests/test-gc-sha1.c: New file.
99446 2005-10-17  Simon Josefsson  <jas@extundo.com>
99448         * m4/md5.m4: Remove call to uint32_t.m4.
99450 2005-10-17  Simon Josefsson  <jas@extundo.com>
99452         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
99454         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
99455         md5.h.
99457         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
99459         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
99461 2005-10-17  Simon Josefsson  <jas@extundo.com>
99463         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
99465 2005-10-17  Simon Josefsson  <jas@extundo.com>
99467         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
99469 2005-10-17  Simon Josefsson  <jas@extundo.com>
99471         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
99473         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
99475 2005-10-17  Bruno Haible  <bruno@clisp.org>
99477         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
99478         that it can also be used in a test.
99480 2005-10-16  Bruno Haible  <bruno@clisp.org>
99482         * gnulib-tool (func_emit_tests_Makefile_am): Also define
99483         TESTS_ENVIRONMENT, so that individual tests can augment it.
99485         * gnulib-tool (func_create_testdir): Use an intermediate target for
99486         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
99487         macros, like $(ALLOCA_H), which cannot be passed through the command
99488         line.
99490 2005-10-15  Simon Josefsson  <jas@extundo.com>
99492         * modules/rijndael-tests: New file.
99494         * modules/rijndael: New file.
99496 2005-10-15  Simon Josefsson  <jas@extundo.com>
99498         * m4/rijndael.m4: New file.
99500 2005-10-15  Simon Josefsson  <jas@extundo.com>
99502         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
99504         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
99506 2005-10-14  Simon Josefsson  <jas@extundo.com>
99508         * tests/test-arcfour.c: New file.
99510         * modules/arcfour, modules/arcfour-tests: New files.
99512 2005-10-14  Simon Josefsson  <jas@extundo.com>
99514         * m4/arcfour.m4: New file.
99516 2005-10-14  Simon Josefsson  <jas@extundo.com>
99518         * lib/arcfour.h, lib/arcfour.c: New files.
99520 2005-10-14  Roland McGrath  <roland@redhat.com>
99522         Import from libc.  [BZ #1331]
99523         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
99524         macro argument.
99525         Reported by Matej Vela <vela@debian.org>.
99527 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
99529         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
99530         include <wchar.h>; no longer needed.
99532 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
99534         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
99536 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
99537         and  Ulrich Drepper  <drepper@redhat.com>
99539         Import from libc.
99540         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
99541         instead of inline stream orientation test and two separate
99542         function calls.  Pay no attention to USE_IN_LIBIO.
99544 2005-10-13  Simon Josefsson  <jas@extundo.com>
99546         * modules/gc-hmac-md5-tests: New file.
99548         * tests/test-gc-hmac-sha1.c: New file.
99550         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
99552         * modules/gc-hmac-md5-tests: New file.
99554         * tests/test-gc-md5.c: New file.
99556         * modules/gc-md5-tests: New file.
99558 2005-10-13  Simon Josefsson  <jas@extundo.com>
99560         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
99561         Move memory allocation outside of loop.
99563 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
99565         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
99566         intermediate directory is in a read-only file system.  Problem
99567         reported by Eric Blake.
99569 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
99571         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
99573 2005-10-12  Simon Josefsson  <jas@extundo.com>
99575         * tests/test-hmac-sha1.c: New file.
99577         * modules/hmac-sha1-tests: New file.
99579         * modules/hmac-sha1: New file.
99581 2005-10-12  Simon Josefsson  <jas@extundo.com>
99583         * modules/gc-sha1: New file.
99585 2005-10-12  Simon Josefsson  <jas@extundo.com>
99587         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
99589         * tests/test-gc-pbkdf2-sha1.c: New file.
99591 2005-10-12  Simon Josefsson  <jas@extundo.com>
99593         * modules/gc-md5, modules/gc-hmac-md5: New files.
99595         * modules/gc (Files): Remove md5, memxor and hmac files.
99597 2005-10-12  Simon Josefsson  <jas@extundo.com>
99599         * m4/gc-pbkdf2-sha1.m4: New file.
99601         * m4/gc-hmac-sha1.m4: New file.
99603         * m4/gc-sha1: New file.
99605         * m4/hmac-sha1.m4: New file.
99607 2005-10-12  Simon Josefsson  <jas@extundo.com>
99609         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
99611         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
99613 2005-10-12  Simon Josefsson  <jas@extundo.com>
99615         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
99616         suggested by Bruno Haible <bruno@clisp.org>.
99618 2005-10-12  Simon Josefsson  <jas@extundo.com>
99620         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
99622 2005-10-12  Simon Josefsson  <jas@extundo.com>
99624         * lib/gc-pbkdf2-sha1.c: New file.
99626         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
99628 2005-10-12  Simon Josefsson  <jas@extundo.com>
99630         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
99632         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
99634 2005-10-12  Simon Josefsson  <jas@extundo.com>
99636         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
99637         GC_USE_HMAC_MD5, respectively.
99639         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
99640         (gc_md5): Fix typo.
99642         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
99644         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
99646         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
99648 2005-10-12  Bruno Haible  <bruno@clisp.org>
99650         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
99651         Reported by Stepan Kasal <kasal@ucw.cz>.
99653 2005-10-11  Simon Josefsson  <jas@extundo.com>
99655         * tests/test-crc.c: New file.
99657         * modules/crc, modules/crc-tests: New files.
99659 2005-10-11  Simon Josefsson  <jas@extundo.com>
99661         * m4/crc.m4: New file.
99663 2005-10-11  Simon Josefsson  <jas@extundo.com>
99665         * lib/gc.h: Add gc_hash and gc_hash_buffer.
99667         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
99669         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
99671 2005-10-11  Simon Josefsson  <jas@extundo.com>
99673         * lib/crc.h, lib/crc.c: New files.
99675         * lib/gc.h (gc_hash_buffer): Add doc.
99677 2005-10-11  Bruno Haible  <bruno@clisp.org>
99679         * modules/c-strcasestr: New file.
99680         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
99682 2005-10-11  Bruno Haible  <bruno@clisp.org>
99684         * modules/c-strcase: New file.
99685         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
99687 2005-10-11  Bruno Haible  <bruno@clisp.org>
99689         * lib/strcasecmp.c: Include limits.h.
99690         (strcasecmp): Avoid integer overflow on exotic platforms.
99691         * lib/strncasecmp.c: Include limits.h.
99692         (strncasecmp): Avoid integer overflow on exotic platforms.
99693         Reported by Paul Eggert.
99695 2005-10-11  Bruno Haible  <bruno@clisp.org>
99697         * lib/c-strcasestr.h: New file, from GNU gettext.
99698         * lib/c-strcasestr.c: New file, from GNU gettext.
99700 2005-10-11  Bruno Haible  <bruno@clisp.org>
99702         * lib/c-strcase.h: New file, from GNU gettext.
99703         * lib/c-strcasecmp.c: New file, from GNU gettext.
99704         * lib/c-strncasecmp.c: New file, from GNU gettext.
99706 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
99708         * modules/mempcpy (License): GPL -> LGPL.
99709         * modules/strchrnul (License): Likewise.
99710         * modules/sysexits (License): Likewise.
99712 2005-10-08  Simon Josefsson  <jas@extundo.com>
99714         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
99716 2005-10-07  Simon Josefsson  <jas@extundo.com>
99718         * m4/memxor.m4: Remove gl_C_RESTRICT call.
99720 2005-10-06  Simon Josefsson  <jas@extundo.com>
99722         * tests/test-hmac-md5.c: New file.
99724         * modules/hmac-md5-tests: New file.
99726         * modules/hmac-md5: New file.
99728 2005-10-06  Simon Josefsson  <jas@extundo.com>
99730         * m4/hmac-md5.m4: New file.
99732         * m4/memxor.m4: Require gl_C_RESTRICT.
99734 2005-10-06  Simon Josefsson  <jas@extundo.com>
99736         * lib/memxor.c (memxor): Avoid casts and warnings.
99738 2005-10-06  Simon Josefsson  <jas@extundo.com>
99740         * lib/hmac-md5.c: New file.
99742         * lib/hmac.h: New file.
99744 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
99746         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
99747         promotes to int, not unsigned int, to catch the AIX 5.3
99748         compiler bug.
99750 2005-10-05  Simon Josefsson  <jas@extundo.com>
99752         * modules/memxor: New file.
99754         * modules/iconv (Files): Move config.rpath to havelib, it is used
99755         there.
99757         * modules/havelib (Files): Add config.rpath.
99759 2005-10-05  Simon Josefsson  <jas@extundo.com>
99761         * m4/memxor.m4: New file.
99763 2005-10-05  Simon Josefsson  <jas@extundo.com>
99765         * lib/memxor.c (memxor): Fix compiler error.
99767         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
99768         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
99770         * lib/memxor.h, lib/memxor.c: New files.
99772         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
99773         we assume all systems have it, suggested by Jim Meyering
99774         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
99775         any systems lack sys/socket.h; mingw32 is known to lack it, but we
99776         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
99777         same reasons.
99779 2005-10-05  Simon Josefsson  <jas@extundo.com>
99781         * config/srclist.txt: Add glibc bug 1423 for md5.h.
99783 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
99785         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
99786         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
99787         needed, since the source code now assumes these .h files.
99789 2005-10-05  Derek Price  <derek@ximbiot.com>
99791         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
99793 2005-10-05  Bruno Haible  <bruno@clisp.org>
99795         * modules/stdint (License): Change to LGPL.
99797 2005-10-04  Simon Josefsson  <jas@extundo.com>
99799         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
99800         D. Baushke" <mdb@gnu.org>.
99802 2005-10-04  Bruno Haible  <bruno@clisp.org>
99804         * lib/verify.h (verify_true): Provide alternative definition for C++.
99806 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
99808         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
99809         (SSIZE_MAX): New macro, if not already defined.
99810         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
99811         than 2 GiB.
99813 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
99815         Sync from coreutils.
99816         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
99817         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
99818         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
99819         ULLONG_MAX doesn't work with 2.7.2.1.
99821 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
99823         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
99824         From Ben Pfaff.
99826         * modules/exclude (Depends-on): Depend on verify.
99827         * modules/strtoimax (Depends-on): Likewise.
99828         * modules/utimecmp (Depends-on): Likewise.
99830 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
99832         * lib/exclude.c: Include verify.h.
99833         (verify): Remove.  All callers changed to use verify.h's version.
99834         * lib/strtoimax.c: Likewise.
99835         * lib/utimecmp.c: Likewis.e
99837         Sync from coreutils.
99838         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
99839         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
99840         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
99841         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
99842         bother returning ENOSYS if settimeofday or stime fails; just let
99843         them return whatever errno they want to return.
99844         * lib/utimens.c: Include unistd.h, for dup2.
99845         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
99846         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
99848 2005-10-02  Jim Meyering  <jim@meyering.net>
99850         Sync from coreutils.
99851         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
99852         from glibc-2.2.5 that fails for read-only files.
99854 2005-10-02  Jim Meyering  <jim@meyering.net>
99856         Sync from coreutils.
99857         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
99858         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
99859         `#if HAVE_CONFIG_H'.
99860         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
99861         Remove AT_FDCWD test.
99862         Do not consume the fd unless successful.
99863         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
99864         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
99865         block, so that we don't even try to compile it if settimeofday is
99866         available.  This works around a compilation failure on OSF1 V5.1,
99867         due to stime requiring a `long int*' while tv_sec is `int'.
99869 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
99871         Sync from coreutils.
99872         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
99873         against `yes', rather than just testing for nonempty.
99875 2005-10-01  Simon Josefsson  <jas@extundo.com>
99877         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
99878         and Darwin.
99880         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
99881         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
99882         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
99883         freeaddrinfo and gai_strerror are declared by the POSIX headers.
99884         Check if struct addrinfo is declared.
99886 2005-10-01  Simon Josefsson  <jas@extundo.com>
99888         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
99889         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
99890         AI_* and EAI_* definitions.  Protect function declarations.
99892 2005-10-01  Jim Meyering  <jim@meyering.net>
99894         Sync from coreutils.
99896         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
99897         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
99898         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
99899         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
99900         in the inet and nsl libraries.  Required on Solaris 5.7.
99902 2005-10-01  Jim Meyering  <jim@meyering.net>
99904         Sync from coreutils.
99905         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
99906         in the inet and nsl libraries.  Required on Solaris 5.7.
99908 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
99910         * lib/getdelim.c (getdelim): Remove unused variables.
99912 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
99914         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
99915         so that the code works even with ancient cpp.  Portability problem
99916         with GCC 2.7.2.1 reported by Thomas M.Ott.
99918 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
99920         * modules/regex (Depends-on): Add strcase.
99922         * modules/gethostname (Licence): Change from GPL to LGPL, since
99923         gethostname.c is a trivial implementation of a standard library
99924         function.
99925         * modules/poll (License): Change from GPL to LGPL, since it's
99926         derived from LGPL code.
99928 2005-09-27  Jim Meyering  <jim@meyering.net>
99930         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
99931         HAVE_CONFIG_H.
99933         * lib/intprops.h (signed_type_or_expr__): Define.
99934         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
99935         for unsigned types.
99937 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
99939         * lib/verify.h (verify_expr): Remove, replacing with:
99940         (verify_true): New macro that returns true instead of void.
99941         (verify_type__): Remove.
99942         (verify): Use verify_true rather than verify_type__.
99944 2005-09-26  Bruno Haible  <bruno@clisp.org>
99946         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
99947         is necessary.
99948         (lib_SOURCES): Remove mbchar.c.
99949         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
99950         (Files): Add m4/mbrtowc.m4.
99951         * modules/mbiter: Likewise.
99952         * modules/mbuiter: Likewise.
99954 2005-09-26  Bruno Haible  <bruno@clisp.org>
99956         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
99957         compile mbchar.c if they are not both present.
99958         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
99959         * m4/mbiter.m4 (gl_MBITER): Likewise.
99960         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
99961         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
99962         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
99964 2005-09-25  Jim Meyering  <jim@meyering.net>
99966         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
99967         also uses socklen_t.
99969 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
99971         * lib/utimens.c (ENOSYS): Define if not already defined.
99972         (futimens): Support having a null PATH if the file descriptor
99973         is nonnegative.
99975         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
99976         Remove.
99977         (__attribute): Define to empty unless GCC 3.1 or later.
99978         This works around a core dump on OpenBSD 3.4, which has GCC
99979         2.95.3, which dumps core when given __attribute__(()).  It also
99980         simplifies other tests, since we really don't want to bother with
99981         worrying about which ancient version of GCC supported what.
99982         Original problem reported by Yoann Vandoorselaere, with part of
99983         the fix suggested by Derek Price.
99985 2005-09-24  Jim Meyering  <jim@meyering.net>
99987         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
99988         so we can once again use a positive bitfield width of 1 -- now we
99989         don't have to explain why we were using a bitfield width of 2.
99991 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
99993         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
99994         and similarly for the other external symbols.  Problem reported
99995         by James Gallager.
99997         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
99998         bug reported by Jim Meyering.
100000         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
100001         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
100002         not needed, since socklen is a prerequisite module.
100004 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
100006         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
100007         Problem reported by Eric Blake.
100008         (getaddrinfo): Initialize se so that it's not garbage.
100009         Redo internal storage allocation so that it doesn't make unportable
100010         assumptions about alignment.
100011         Fix a memory leak.
100013         * lib/utimens.c (futimens): Use futimesat if available.
100014         Prefer it to futimes since it doesn't have the futimes bug.
100016         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
100017         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
100018         Instead, declare a function that returns a pointer to an array,
100019         and use verify_type__ to declare the size of the array.
100020         Problem and germ of a solution reported by Bruno Haible.
100021         (verify_type__): Use 2, not 1, for bitfield size, to avoid
100022         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
100024 2005-09-23  Jim Meyering  <jim@meyering.net>
100026         Sync from coreutils.
100027         Correct build failure (socklen_t not defined) on at least
100028         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
100029         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
100031 2005-09-23  Jim Meyering  <jim@meyering.net>
100033         * modules/getaddrinfo (Depends-on): Add socklen.
100035 2005-09-23  Bruno Haible  <bruno@clisp.org>
100037         * tests/test-verify.c: New file.
100039 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
100041         Sync from coreutils.
100043         * modules/argmatch (Depends-on): Add verify.
100044         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
100045         unistd-safer.
100046         * modules/save-cwd (Depends-on): Likewise.
100048         * modules/openat (Files): Add lib/openat-die.c.
100049         (Depends-on): Remove error, exitfail.
100050         Add dirname.
100052         * modules/verify: New file.
100053         * MODULES.html.sh (Diagnostics <assert.h>): New section,
100054         with "verify" module.
100056 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
100058         Sync from coreutils.
100060         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
100061         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
100062         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
100063         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
100064         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
100065         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
100066         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
100067         Don't bother checking for string.h, stdlib.h, unistd.h.
100068         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
100069         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
100070         module's job.
100071         * m4/jm-macros.m4 (gl_MACROS): Likewise.
100072         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
100074         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
100075         (gl_GETDATE): Use it.
100077         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
100079 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
100081         Sync from coreutils.
100083         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
100084         stat-time.h.
100085         * lib/argmatch.h: Include verify.h
100086         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
100087         (ARGMATCH_ASSERT): Remove; unused.
100088         * lib/canonicalize.c: Assume STDC_HEADERS.
100089         * lib/exclude.c: Include "strcase.h".
100090         * lib/regex_internal.h [!defined _LIBC]: Likewise.
100091         * lib/getusershell.c: Include stdio--.h rather than stdio.h
100092         and stdio-safer.h.
100093         (getusershell): Call fopen, not fopen_safer.
100094         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
100095         Do not include unistd-safer.h.
100096         (save_cwd): Don't call fd_safer; no longer needed
100097         now that we include fcntl--.h.
100099         * lib/getdate.y (relative_time): New type.
100100         (RELATIVE_TIME_0): New constant.
100101         (parser_control): Use relative_time instead of doing it ourselves.
100102         (%union): Add new relative_time rel member.
100103         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
100104         Now typeless.
100105         (relunit, relunit_snumber): Now of type rel.
100106         (zone, rel, relunit, get_date): Adjust to above changes.
100108         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
100109         Do not include unistd-safer.h.
100110         (getloadavg): Don't call fd_safer; no longer needed
100111         now that we include fcntl--.h.
100113         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
100114         (make_dir_parents): Treat ENOSYS like EEXIST.
100116         Improve quality of diagnostics on restore_cwd failure.
100117         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
100118         (make_dir_parents): Last arg is now int * (for errno), not bool *.
100119         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
100120         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
100121         each time through the loop.  Do not diagnose restore_cwd failure;
100122         that is the caller's job (and perhaps the caller does not care).
100124         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
100125         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
100126         If the file already exists but is not a directory, don't bother
100127         to try to make its parents.
100128         Close potential file descriptor leak if we can't chdir("/") (!).
100129         Don't always return true if chdir($PWD) fails; return true only
100130         if the requested action was done successfully (except for the
100131         chdir($PWD)).
100132         Don't log final directory unless we actually made it.
100133         Refactor to avoid duplicate code to fix up permissions.
100134         Don't attempt to fix up parent permissions if chdir($PWD) fails.
100136         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
100137         to make it a bit faster and (I hope) clearer.
100138         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
100139         Fix bug in formats like %2N.
100141         * lib/verify.h: New file.
100143 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
100145         Sync from coreutils.
100146         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
100148 2005-09-22  Jim Meyering  <jim@meyering.net>
100150         Sync from coreutils.
100152         * m4/lstat.m4 (gl_FUNC_LSTAT):
100153         Use AC_LIBSOURCES to require lstat.c and lstat.h.
100154         Remove obsolete comment.
100155         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
100156         * m4/xstrtod.m4: Likewise.
100158         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
100160 2005-09-22  Jim Meyering  <jim@meyering.net>
100162         Sync from coreutils.
100164         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
100166         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
100167         the .tm_year member, since otherwise gcc-4.0 would now warn about
100168         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
100170         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
100171         order to avoid an unsuppressible warning from gcc on 64-bit systems.
100173         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
100174         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
100175         when run in a time zone for which daylight savings time is in effect
100176         for the starting date.
100178         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
100179         stop us from restricting permissions of just-created absolute-named
100180         directories.
100181         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
100182         to restore initial working directory.
100183         * lib/mkdir-p.c (make_dir_parents): New parameter:
100184         different_working_dir, to tell caller if/when we change the working
100185         directory and are unable to return to the initial one.
100186         * lib/mkdir-p.h (make_dir_parents): Update prototype.
100187         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
100188         `return false'.  This fixes a bug introduced on 2004-07-30.
100190         * lib/openat.c (fdopendir): Be sure to close the supplied
100191         file descriptor before returning.  This makes our replacement
100192         implementation a little closer to Solaris's, where fdopendir
100193         ties the file descriptor to the returned DIR* pointer.
100194         * lib/openat.c (unlinkat): New function.
100195         * lib/openat.h (unlinkat): Add prototype.
100196         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
100197         (openat_restore_fail): Rename from openat_restore_die.
100198         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
100200         Provide an alternative to exiting immediately upon save_cwd or
100201         restore_cwd failure.  Now, an application can arrange e.g.,
100202         to perform a longjump in that case.
100203         * lib/openat.c: Include dirname.h.
100204         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
100205         (rpl_openat, fdopendir, fstatat): Call openat_save_die
100206         and openat_restore_die rather than calling error directly.
100207         Don't include "error.h" or "exitfail.h"; they're no longer needed.
100209         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
100210         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
100211         define.
100213         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
100214         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
100215                             int utc, int nanoseconds);
100216         Background:
100217         date should not have to allocate a megabyte of virtual memory to
100218         handle a format argument like +%1048575T.  When implemented with
100219         strftime, it must allocate such a buffer, use strftime to fill it
100220         in, print it, then free it.
100221         With fprintftime, it simply prints everything and exits.
100222         With no need for memory allocation, that's one fewer way to fail.
100223         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
100224         optional field width, not before, so we accept %9:z, not %:9z.
100225         (my_strftime): Be sure to use L_('x') for literals.
100227         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
100228         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
100229         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
100230         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
100231         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
100232         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
100233         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
100234         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
100235         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
100236         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
100237         * lib/xgethostname.c, lib/xreadlink.c:
100238         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
100240         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
100241         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
100242         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
100243         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
100244         and don't include <sys/file.h>).
100246 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
100248         Sync from coreutils.
100250         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
100251         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
100252         [!LDAV_DONE]: Avoid unused variable warning.
100254 2005-09-21  Bruno Haible  <bruno@clisp.org>
100256         * lib/unicodeio.h (unicode_to_mb): New declaration.
100258 2005-09-20  Derek Price  <derek@ximbiot.com>
100260         * lib/getaddrinfo.c: Don't include <netdb.h> included from
100261         getaddrinfo.h.
100263 2005-09-20  Bruno Haible  <bruno@clisp.org>
100265         * gnulib-tool: Remove trailing slashes from the values specified for
100266         --source-base, --m4-base, --tests-base, --aux-dir.
100267         Suggested by Simon Josefsson <jas@extundo.com>.
100269 2005-09-20  Bruno Haible  <bruno@clisp.org>
100271         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
100272         func_modules_to_filelist, func_import, func_create_testdir): Make all
100273         sorting results locale-independent, so that gnulib-cache.m4 doesn't
100274         change when gnulib-tool is invoked in a different locale.
100276 2005-09-19  Simon Josefsson  <jas@extundo.com>
100278         * m4/socklen.m4: Fix typo.
100280 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100282         Use a consistent style for including <config.h>.
100283         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
100284         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
100285         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
100286         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
100287         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
100288         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
100289         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
100290         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
100291         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
100292         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
100293         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
100294         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
100295         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
100296         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
100297         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
100298         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
100299         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
100300         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
100301         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
100302         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
100303         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
100304         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
100305         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
100306         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
100307         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
100308         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
100309         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
100310         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
100311         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
100312         lib/xstrtoumax.c, lib/yesno.c:
100313         Standardize inclusion of config.h.
100314         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
100315         lib/inttostr.h:  Removed inclusion of config.h from header files.
100316         * lib/inttostr.c:  Adjusted in-tree users.
100317         * lib/timespec.h: Remove superfluous warning to include config.h.
100318         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
100319         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
100320         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
100321         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
100322         config.h with HAVE_CONFIG_H.
100324 2005-09-19  Jim Meyering  <jim@meyering.net>
100326         * modules/pathmax (License): Change to LGPL.
100328 2005-09-19  Derek Price  <derek@ximbiot.com>
100330         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
100332 2005-09-19  Bruno Haible  <bruno@clisp.org>
100334         * gnulib-tool (import): Provide default for --tests-base.
100336 2005-09-19  Bruno Haible  <bruno@clisp.org>
100338         * doc/quote.texi: New file, extracted from gnulib.texi.
100339         * doc/ctime.texi: New file, extracted from gnulib.texi.
100340         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
100341         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
100342         * doc/gnulib.texi: Include them.
100344 2005-09-18  Bruno Haible  <bruno@clisp.org>
100346         Portability fix.
100347         * gnulib-tool (func_readlink): New function.
100348         (func_ln_if_changed): Use it.
100350 2005-09-18  Bruno Haible  <bruno@clisp.org>
100352         * gnulib-tool: Support --with-tests also with --import.
100353         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
100354         (func_import): Use variables $testsbase and $inctests. Emit a
100355         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
100356         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
100357         SUBDIRS += $testsdir.
100358         (func_create_testdir): Update.
100360 2005-09-18  Bruno Haible  <bruno@clisp.org>
100362         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
100363         instead of $dry_run.
100364         (func_cp_if_changed, func_mv_if_changed): Remove functions.
100365         (func_ln_if_changed): Don't handle dry-run here.
100366         (func_import): In dry-run mode, detect more precisely which actions
100367         would be performed, and don't use "...ing" verbs.
100369 2005-09-18  Bruno Haible  <bruno@clisp.org>
100371         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
100372         (func_import): Use join on two temporary files instead of three nested
100373         loops, in order to determine which files are new or old.
100375 2005-09-18  Bruno Haible  <bruno@clisp.org>
100377         * gnulib-tool (func_import): Comment out code that spits out the
100378         new files with --dry-run.
100380 2005-09-18  Bruno Haible  <bruno@clisp.org>
100382         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
100384 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
100386         * lib/stat-time.h: New file.
100387         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
100388         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
100389         in a different way.
100390         (timespec_cmp): New function.
100391         * lib/utimecmp.c: Include stat-time.h.
100392         (SYSCALL_RESOLUTION): Depend on whether various struct stat
100393         members exist, not on the obsolescent ST_MTIM_NSEC.
100394         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
100396 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
100398         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
100400 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
100402         * MODULES.html.sh (File system functions): Add stat-time.
100403         * modules/stat-time: New file.
100404         * modules/timespec (Files): Remove m4/st_mtim.m4; this
100405         is now done in a different way, by the stat-time module.
100406         * modules/utimecmp (Depends-on): Add stat-time.
100408 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
100410         * m4/st_mtim.m4: Remove.  Superseded by...
100411         * m4/stat-time.m4: New file.
100412         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
100413         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
100415 2005-09-15  Derek Price  <derek@ximbiot.com>
100417         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
100419 2005-09-15  Derek Price  <derek@ximbiot.com>
100421         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
100422         * lib/regex_internal.c: Ditto, using this...
100423         (__GNUC_PREREQ): ...new macro.
100424         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
100425         using...
100426         (__GNUC_PREREQ): ...this new macro.
100428         * lib/strstr.h: Include string.h. Define strstr as a macro here.
100430 2005-09-15  Derek Price  <derek@ximbiot.com>
100431             Paul Eggert  <eggert@cs.ucla.edu>
100433         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
100434         changes, consolidating in...
100435         * lib/regex_internal.h: ...this file.
100437 2005-09-13  Jim Meyering  <jim@meyering.net>
100439         * lib/canon-host.c: Filter through gnu indent and reword comments
100440         slightly.
100441         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
100443 2005-09-13  Derek Price  <derek@ximbiot.com>
100445         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
100446         failure.
100447         Reported by Jim Meyering  <jim@meyering.net>.
100449 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
100451         * lib/base64.c: Typo.
100452         (base64_encode): Put b64str in initialized data section.
100454 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
100456         Merge glibc and coreutils changes into gnulib, plus a few
100457         extra fixes.
100458         * lib/md5.c: Use #error rather than a string.
100459         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
100460         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
100461         (__attribute__): Define to empty for non recent-GCC.
100462         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
100463         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
100464         Renamed from their non-__ counterparts, with new macros replacing
100465         them if not _LIBC.  Add __THROW attribute.
100466         (rol): Remove.
100467         (struct md5_ctx): Align buffer if using GCC.
100468         * lib/sha1.h (struct sha1_ctx): Likewise.
100469         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
100470         The old name was backwards.
100471         (NOTSWAP): Remove; not used.
100472         (rol): New macro, moved here from md5.h.
100473         (sha1_process_block): Remove a FIXME that doesn't make sense.
100475 2005-09-12  Derek Price  <derek@ximbiot.com>
100477         Return usable errors from canon-host.
100478         * lib/canon-host.h: New file.
100479         * lib/canon-host.c (canon_host): Wrap...
100480         (canon_host_r): ...this new function, which now relies exclusively on
100481         getaddrinfo.
100482         (ch_strerror): New function.
100483         (last_cherror): New global.
100484         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
100485         interface.
100486         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
100487         void *.
100488         (freeaddrinfo): Free ai->ai_canonname when set.
100490 2005-09-12  Derek Price  <derek@ximbiot.com>
100492         Make canon-host require getaddrinfo.
100493         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
100494         AC_LIBSOURCE canon-host.h.  Call...
100495         (gl_PREREQ_CANON_HOST): ...this new function, which requires
100496         gl_GETADDRINFO.
100497         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
100499 2005-09-12  Derek Price  <derek@ximbiot.com>
100501         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
100502         LGPL.
100503         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
100505 2005-09-12  Derek Price  <derek@ximbiot.com>
100507         * lib/gai_strerror.c: Include config.h when available.  Include
100508         getaddrinfo.h before other headers to test interface.
100509         Reported by Larry Jones <lawrence.jones@ugs.com>.
100511 2005-09-12  Derek Price  <derek@ximbiot.com>
100512             Paul Eggert  <eggert@cs.ucla.edu>
100514         * modules/glob (Files): Add glob-libc.h.
100516 2005-09-12  Derek Price  <derek@ximbiot.com>
100517             Paul Eggert  <eggert@cs.ucla.edu>
100519         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
100520         glob_.h, glob-libc.h.
100521         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
100523 2005-09-12  Derek Price  <derek@ximbiot.com>
100524             Paul Eggert  <eggert@cs.ucla.edu>
100526         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
100527         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
100528         protecting things that should be done only in gnulib contexts.
100529         * lib/glob_.h: New file, containing only the glob things needed for
100530         gnulib.
100531         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
100532         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
100533         (glob, globfree, glob_pattern_p): Now defined simply in terms of
100534         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
100535         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
100536         and to respect the namespace rules better.
100538 2005-09-08  Simon Josefsson  <jas@extundo.com>
100540         * modules/socklen: New file.
100542 2005-09-08  Simon Josefsson  <jas@extundo.com>
100544         * m4/socklen.m4: New file.
100546 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
100548         * modules/utimens (Files): Add m4/utimbuf.m4, since
100549         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
100550         Reported by Sergey Poznyakoff.
100552 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
100554         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
100555         definitions, since that's the preferred style in glibc.
100556         Fix a minor spacing issue, and update copyright notice to match
100557         glibc's.
100559 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
100561         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
100563 2005-09-06  Simon Josefsson  <jas@extundo.com>
100565         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
100566         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
100568 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
100570         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
100571         warning.
100573 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
100575         * config/srclist.txt: Add glibc bug 1302.
100577 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
100579         Change bitset word type from unsigned int to unsigned long int,
100580         as this has better performance on typical 64-bit hosts.
100581         Port bitset code to hosts with unusual word sizes.
100582         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
100583         (build_collating_symbol):
100584         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
100585         argument is a bitset.  This is merely a style issue, but it makes
100586         it clearer that an entire array is expected.
100587         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
100588         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
100589         Port to the case where bitset_word is not the same as unsigned int.
100590         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
100591         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
100592         Likewise.
100593         * lib/regexec.c (check_dst_limits_calc_pos_1,
100594         check_subexp_matching_top):
100595         (build_trtable, group_nodes_into_DFAstates):
100596         Likewise.
100597         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
100598         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
100599         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
100600         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
100601         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
100602         * lib/regcomp.c (optimize_subexps, lower_subexp):
100603         Work even if bitset_word has holes in its bitwise representation.
100604         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
100605         * lib/regexec.c (check_dst_limits_calc_pos_1,
100606         check_subexp_matching_top):
100607         Likewise.
100608         * lib/regex_internal.c (re_string_reconstruct):
100609         Don't assume UCHAR_MAX == 255.
100610         * lib/regex_internal.h (bitset_set_all): Likewise.
100611         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
100612         All uses changed.
100613         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
100614         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
100615         All uses changed.
100616         (BITSET_WORD_MAX): New macro.
100617         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
100618         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
100619         (bitset_empty, bitset_copy):
100620         Prefer sizeof (bitset) to multiplying it out ourselves.
100621         (bitset_not_merge): Remove; unused.
100622         (bitset_contain): Return bool, not unsigned int with one bit on.
100623         All callers changed.
100624         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
100625         alignment than re_node_set; do this by defining a new internal
100626         type struct dests_alloc and using it to allocate memory.
100628 2005-09-05  Bruno Haible  <bruno@clisp.org>
100630         * gnulib-tool (func_import): Fix comparison in handling of symbolic
100631         links.
100633 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
100635         * modules/size_max (Makefile.am): Add size_max.h
100637 2005-09-04  Derek Price  <derek@ximbiot.com>
100639         * gnulib-tool (func_import): Fix reversed $symbolic logic.
100641 2005-09-03  Simon Josefsson  <jas@extundo.com>
100643         * gnulib-tool: Fix typo.
100645 2005-09-03  Simon Josefsson  <jas@extundo.com>
100647         * config/srclist.txt: Add glibc bug 1293.
100649 2005-09-03  Derek Price  <derek@ximbiot.com>
100651         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
100652         From Larry Jones <lawrence.jones@ugs.com>.
100654 2005-09-02  Simon Josefsson  <jas@extundo.com>
100656         * modules/socklen: New file.
100658 2005-09-02  Simon Josefsson  <jas@extundo.com>
100660         * modules/havelib: New module.
100662         * modules/gettext, modules/iconv, modules/lock, modules/readline:
100663         Use havelib.
100665 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
100667         Check for arithmetic overflow when calculating sizes, to prevent
100668         some buffer-overflow issues.  These patches are conservative, in the
100669         sense that when I couldn't determine whether an overflow was possible,
100670         I inserted a run-time check.
100671         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
100672         macros.
100673         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
100674         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
100675         (re_xnrealloc, re_x2nrealloc): New inline functions.
100676         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
100677         parse_bracket_exp):
100678         (build_equiv_class, build_charclass): Check for arithmetic overflow
100679         in size expression calculations.
100680         * lib/regex_internal.c (re_string_realloc_buffers):
100681         (build_wcs_upper_buffer, re_node_set_add_intersect):
100682         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
100683         (re_dfa_add_node, register_state): Likewise.
100684         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
100685         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
100686         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
100687         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
100689 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
100691         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
100692         m4/ulonglong.m4.  Problem reported by Martin Lambers.
100694 2005-09-02  Bruno Haible  <bruno@clisp.org>
100696         Support for lib vs. lib64 distinction on biarch platforms.
100697         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
100698         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
100699         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
100701 2005-09-02  Bruno Haible  <bruno@clisp.org>
100703         * gnulib-tool (import): In the other first-use case, provide defaults
100704         as well.
100706 2005-09-02  Bruno Haible  <bruno@clisp.org>
100708         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
100709         patches not yet found in the latest gettext release.
100711 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
100713         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
100714         to avoid a collision with bits/local_lim.h in glibc.
100715         All uses changed.  Problem reported by Dmitry V. Levin in
100716         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
100718         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
100719         bugs in int versus size_t comparisons.
100720         (re_string_context_at): Fix bug where the code assumed that
100721         Idx is signed.
100723         Use bool where appropriate.
100724         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
100725         All callers changed.
100726         (calc_eclosure_iter): Likewise, for ROOT arg.
100727         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
100728         (build_charclass_op): Likewise, for NON_MATCH arg.
100729         * lib/regex_internal.c (re_string_allocate, re_string_construct):
100730         (re_string_construct_common): Likewise, for ICASE arg.
100731         * lib/regexec.c (re_search_2_stub, re_search_stub):
100732         Likewise, for RET_LEN arg.
100733         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
100734         (set_regs): Likewise, for FL_BACKTRACK arg.
100735         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
100736         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
100737         (calc_eclosure_iter, parse_bracket_exp):
100738         Use bool for internal variables that are booleans.
100739         * lib/regexec.c (re_search_internal, check_matching,
100740         proceed_next_node):
100741         (set_regs, build_sifted_states, sift_states_bkref):
100742         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
100743         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
100744         (find_collation_sequence_value):
100745         Likewise.
100746         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
100747         (re_node_set_compare):
100748         Return bool, not int. All callers changed.
100749         * lib/regexec.c (check_halt_node_context, check_dst_limits):
100750         (build_trtable, check_node_accept): Likewise.
100751         * lib/regex_internal.h: Include stdbool.h.
100753         Fix bugs uncovered when converting to bool.
100754         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
100755         failure instead of charging ahead blindly.
100756         * lib/regex_internal.c (register_state): Likewise.
100757         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
100758         for freeing internal storage.
100759         (group_nodes_into_DFA_states): Use unsigned int, not int, for
100760         bitset pieces used as boolean, to avoid undefined behavior
100761         on hosts that do int overflow checking.
100763 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
100765         * config/srclist.txt: Add glibc bugs 1285-1287.
100767 2005-09-01  Jim Meyering  <jim@meyering.net>
100769         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
100770         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
100771         Require gl_STAT_MACROS, too.
100773 2005-09-01  Bruno Haible  <bruno@clisp.org>
100775         * gnulib-tool (import): In the first-use case, provide defaults.
100777 2005-09-01  Bruno Haible  <bruno@clisp.org>
100779         * gnulib-tool (func_import): Remove the .tmp files.
100781 2005-09-01  Bruno Haible  <bruno@clisp.org>
100783         * gnulib-tool (func_import): Fix handling of symbolic links.
100785 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
100787         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
100788         old glibc regex code mishandles strings longer than 2**31 bytes.
100789         This patch fixes this when the regex code is used in gnulib
100790         (i.e., outside glibc).
100792         This patch should not affect the use of the regex code inside
100793         glibc.  No doubt this problem also needs to be handled for glibc
100794         as well, but the result will be an incompatible change to the
100795         glibc ABI, and the old ABI will have to be supported too.  That
100796         can be the subject for another patch.
100798         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
100799         governing whether the rest of this patch is active.  By default,
100800         the macro is disabled and the patch has no effect.
100801         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
100802         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
100803         (struct re_pattern_buffer, re_search, re_search_2, re_match):
100804         (re_match_2, re_set_registers): Use the new types.
100805         * lib/regex_internal.h (Idx, re_hashval_t): New types.
100806         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
100807         New macros.
100808         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
100809         (re_string_context_at, bin_tree_t, re_dfastate_t):
100810         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
100811         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
100812         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
100813         (re_string_char_size_at, re_string_wchar_at):
100814         (re_string_elem_size_at):
100815         Use the new types and macros to port to 64-bit hosts.
100816         Use unsigned types for internal values, so that the code
100817         mostly works even for arrays larger than SSIZE_MAX.
100818         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
100819         (search_duplicated_node, calc_eclosure_iter, fetch_number):
100820         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
100821         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
100822         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
100823         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
100824         (calc_inveclosure, parse_dup_op, build_range_exp):
100825         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
100826         (fetch_number, create_token_tree, mark_opt_subexp):
100827         Likewise.
100828         * lib/regex_internal.c (re_string_construct_common,
100829         create_ci_newstate):
100830         (create_cd_newstate, re_string_allocate, re_string_construct):
100831         (re_string_realloc_buffers, build_wcs_upper_buffer):
100832         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
100833         (re_string_reconstruct, re_string_peek_byte_case):
100834         (re_string_fetch_byte_case, re_string_context_at):
100835         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
100836         (re_node_set_init_copy, re_node_set_add_intersect):
100837         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
100838         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
100839         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
100840         (re_acquire_state, re_acquire_state_context, register_state):
100841         Likewise.
100842         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
100843         search_cur_bkref_entry):
100844         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
100845         (re_search_internal, re_search_2_stub, re_search_stub)
100846         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
100847         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
100848         (update_cur_sifted_state, check_dst_limits):
100849         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
100850         (check_subexp_limits, sift_states_bkref, merge_state_array):
100851         (check_subexp_matching_top, get_subexp, get_subexp_sub):
100852         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
100853         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
100854         (expand_bkref_cache, check_node_accept_bytes):
100855         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
100856         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
100857         (acquire_init_state_context, check_halt_node_context):
100858         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
100859         (sift_states_backward, clean_state_log_if_needed):
100860         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
100861         (find_recover_state, transit_state_sb, transit_state_mb):
100862         (transit_state_bkref, build_trtable, match_ctx_clean):
100863         Likewise.
100864         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
100865         to work around an assumption that REG_MISSING is negative.
100867         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
100868         (seek_collating_symbol_entry) [defined _LIBC]:
100869         (lookup_collation_sequence_value) [defined _LIBC]:
100870         (build_range_exp, build_collating_symbol) [defined _LIBC]:
100871         Use prototypes rather than old-style function definitions.
100872         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
100873         (transit_state_sb) [0]:
100874         (find_collation_sequence_value) [defined _LIBC]: Likewise.
100876         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
100877         rm_eo.
100879         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
100880         (optimize_subexps, lower_subexp):
100881         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
100882         since the signed shift might overflow.  Use 1u<<31 instead.
100883         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
100884         Likewise.
100885         * lib/regexec.c (check_dst_limits_calc_pos_1,
100886         check_subexp_matching_top): Likewise.
100888         * lib/regcomp.c (optimize_subexps, lower_subexp):
100889         Use CHAR_BIT rather than 8, for clarity.
100890         * lib/regexec.c (check_dst_limits_calc_pos_1):
100891         (check_subexp_matching_top): Likewise.
100892         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
100893         have to worry about portability issues when shifting it left.
100894         Remove no-longer-needed test for table_size > 0.
100895         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
100896         in a word, as the resulting behavior is undefined.
100897         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
100898         in one case, a <= should have been an <, and in another case the
100899         whole test was missing.
100900         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
100901         the standard name CHAR_BIT.
100902         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
100903         this is not true on one's complement and signed-magnitude hosts.
100905         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
100906         next_last_offset.
100907         (struct re_dfa_t): Remove unused member states_alloc.
100908         * lib/regcomp.c (init_dfa): Don't initialize unused members.
100910 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
100912         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
100913         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
100914         and large-file glibc and in 32-bit large-file Solaris.
100916 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
100918         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
100919         lengths fit in regoff_t; this isn't true if regoff_t is the same
100920         width as size_t.
100921         * lib/regex.c (re_search_internal): 5th arg is LAST_START
100922         (= START + RANGE) instead of RANGE.  This avoids overflow
100923         problems when regoff_t is the same width as size_t.
100924         All callers changed.
100925         (re_search_2_stub): Check for overflow when adding the
100926         sizes of the two strings.
100927         (re_search_stub): Check for overflow when adding START
100928         to RANGE; if it occurs, substitute the extreme value.
100930 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
100932         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
100934 2005-08-31  Jim Meyering  <jim@meyering.net>
100936         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
100937         a pointer-to-const.
100938         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
100939         (register_state): Likewise.
100940         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
100941         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
100942         (group_nodes_into_DFAstates): Likewise.
100944 2005-08-31  Jim Meyering  <jim@meyering.net>
100946         * check-module: Add a FIXME comment.
100948 2005-08-31  Eric Blake  <ebb9@byu.net>
100950         * modules/unistd-safer (Files): Add unistd--.h.
100951         * modules/stdio-safer (Files): Add stdio--.h.
100953 2005-08-31  Derek Price  <derek@ximbiot.com>
100955         * lib/getdelim.c (getdelim): Return EOF on EOF.
100956         Reported by Larry Jones <lawrence.jones@ugs.com>.
100958 2005-08-31  Bruno Haible  <bruno@clisp.org>
100960         Avoid unnecessary diffs in the generated lib/Makefile.am.
100961         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
100962         the generated files.
100963         (func_import): Don't set cmd.
100965 2005-08-31  Bruno Haible  <bruno@clisp.org>
100967         * lib/strstr.c: Include <stddef.h>, for NULL.
100968         * lib/strcasestr.c: Likewise.
100969         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
100971 2005-08-31  Bruno Haible  <bruno@clisp.org>
100973         * gnulib-tool: New option --macro-prefix.
100974         (func_import): Use macro_prefix.
100975         (import): Handle option --macro-prefix.
100977 2005-08-31  Bruno Haible  <bruno@clisp.org>
100979         * gnulib-tool (import): Rename most ac_* variables to cached_*.
100980         Also use new variables cached_lgpl, cached_libtool.
100982 2005-08-31  Bruno Haible  <bruno@clisp.org>
100984         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
100985         always instantiating them.
100987 2005-08-31  Bruno Haible  <bruno@clisp.org>
100989         * gnulib-tool (func_import): Read the previous cached settings
100990         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
100991         earlier added by gnulib but are now dropped. Warn when a gnulib file
100992         overwrites a non-gnulib file.
100994 2005-08-31  Bruno Haible  <bruno@clisp.org>
100996         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
100997         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
100998         projects that don't keep autogenerated files in CVS. Put into
100999         actioncmd only the specified modules, not the transitive closure.
101001 2005-08-31  Bruno Haible  <bruno@clisp.org>
101003         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
101004         Create directories that shall be filled.
101005         (import): Don't look for gl_* macros in configure.ac. Recurse across
101006         all directories containing a gnulib-cache.m4 files, if meaningful.
101008 2005-08-31  Bruno Haible  <bruno@clisp.org>
101010         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
101011         (import): Set seen_libtool when we see gl_LIBTOOL.
101013 2005-08-31  Bruno Haible  <bruno@clisp.org>
101015         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
101016         declaration macro definitions from generated gnulib.m4.
101018 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
101020         * lib/iconvme.h: Add prototype for iconv_alloc.
101022 2005-08-29  Simon Josefsson  <jas@extundo.com>
101024         * lib/iconvme.c: Fix errno.
101026 2005-08-29  Bruno Haible  <bruno@clisp.org>
101028         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
101029         that it works when the directory contains spaces.
101031 2005-08-29  Bruno Haible  <bruno@clisp.org>
101033         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
101035 2005-08-29  Bruno Haible  <bruno@clisp.org>
101037         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
101038         Emit more advice.
101040 2005-08-29  Bruno Haible  <bruno@clisp.org>
101041         and Stepan Kasal  <kasal@ucw.cz>
101043         * check-module: If more parameters are given, check each of them
101044         separately; add more exceptions, as noted by Jim Meyering.
101045         (check_module): New procedure.
101046         (%exempt_header): Now contains all exceptions.
101048 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
101050         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
101052 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
101054         * lib/iconvme.c: Split iconv_string into iconv_alloc.
101056 2005-08-28  Bruno Haible  <bruno@clisp.org>
101058         * m4/gnulib-tool.m4: New file.
101060 2005-08-27  Jim Meyering  <jim@meyering.net>
101062         * modules/unistd-safer (Files): Add pipe-safer.c.
101063         * modules/fcntl-safer (Files): Add creat-safer.c.
101065 2005-08-27  Jim Meyering  <jim@meyering.net>
101067         * m4/stdlib-safer.m4: New file.  From coreutils.
101068         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
101069         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
101070         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
101071         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
101072         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
101074 2005-08-27  Jim Meyering  <jim@meyering.net>
101076         * lib/fopen-safer.c: Merge minor changes from coreutils.
101077         * lib/dup-safer.c: Likewise.
101078         * lib/fd-safer.c: Likewise.
101080         Merge from coreutils.
101081         * lib/stdio--.h: New file.
101082         * lib/stdlib--.h: New file.
101083         * lib/mkstemp-safer.c: New file.
101085         GNU tar needs these.
101086         * lib/pipe-safer.c: New file.
101087         * lib/creat-safer.c: New file.
101088         * lib/fcntl--.h (creat): Define to creat_safer.
101089         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
101090         * lib/unistd--.h (pipe): Define to pipe_safer.
101091         * lib/unistd-safer.h: Declare pipe_safer.
101093 2005-08-26  Simon Josefsson  <jas@extundo.com>
101095         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
101096         Haible <bruno@clisp.org>.
101098 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
101100         * lib/regex_internal.h: Remove all references to
101101         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
101102         or better.
101103         (bitset_not, bitset_merge, bitset_not_merge):
101104         (bitset_mask, re_string_allocate, re_string_construct):
101105         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
101106         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
101107         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
101108         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
101109         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
101110         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
101111         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
101112         (re_acquire_state_context):
101113         Remove unnecessary forward decls.
101114         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
101115         Put __attribute at function definition,
101116         now that the function decl has been removed.
101117         * lib/regex_internal.c (re_string_peek_byte_case):
101118         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
101119         Likewise.
101121 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
101123         * m4/regex.m4: Add AC_PREREQ(2.50).
101124         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
101126 2005-08-25  Simon Josefsson  <jas@extundo.com>
101128         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
101129         __fsetlocking.
101131 2005-08-25  Simon Josefsson  <jas@extundo.com>
101133         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
101134         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
101135         GLIBC specific code.
101137 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
101139         Make regex safe for g++.  This fixes one real bug (an "err"
101140         that should have been "*err").  g++ problem reported by
101141         Sam Steingold.
101142         * lib/regex_internal.h (re_calloc): New macro, consistent with
101143         re_malloc etc.  All callers of calloc changed to use re_calloc.
101144         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
101145         not int.  All callers changed.
101146         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
101147         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
101148         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
101149         (find_recover_state): Change "err" to "*err"; this fixes what
101150         appears to be a real bug.
101151         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
101152         versus int.
101154 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
101156         * modules/regex (Depends-on): Add malloc, since the code
101157         assumes that !malloc(0) means failure.
101159 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
101161         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
101163         alloca modernization/simplification for regex.
101164         * lib/regex.c: Remove portability cruft for alloca.  This no longer
101165         needs to be at the start of the file, and can be moved into
101166         regex_internal.h and simplified.
101167         * lib/regex_internal.h: Include <alloca.h>.
101168         (__libc_use_alloca) [!defined _LIBC]: New macro.
101169         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
101170         now works outside glibc.
101172 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
101174         * config/srclist.txt: Add glibc bugs 1241, 1245.
101176 2005-08-25  Jim Meyering  <jim@meyering.net>
101178         * lib/open-safer.c: Include <config.h>.
101179         Otherwise, we'd lose LARGEFILE support in any file using
101180         e.g. "fcntl--.h"
101182 2005-08-25  Bruno Haible  <bruno@clisp.org>
101184         * m4/minmax.m4: Require autoconf 2.52.
101185         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
101186         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
101187         alternatives of translit over the alphabet.
101188         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
101190 2005-08-24  Simon Josefsson  <jas@extundo.com>
101192         * tests/test-getpass.c: New file.
101194 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
101196         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
101197         for GNU regex features.
101199 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
101201         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
101202         * lib/regex.h (regerror): Likewise.
101204         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
101205         requires this.  (The code never needed it.)
101207         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
101208         All uses of recently-renamed identifiers changed to use the new,
101209         POSIX-compliant names.  The code will build and run just fine
101210         without these changes, but it's better to eat our own dog food
101211         and use the standard-conforming names.
101213         * lib/regex.h: Fix a multitude of POSIX name space violations.
101214         These changes have an effect only for programs that define
101215         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
101216         do not change anything for programs compiled in the normal way.
101217         Also, there is no effect on the ABI.
101219         (_REGEX_SOURCE): New macro.
101220         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
101221         defined and _GNU_SOURCE is not; this fixes a name space violation.
101223         Rename the following macros to obey POSIX requirements.
101224         The old names are still visible as macros if _REGEX_SOURCE is defined.
101225         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
101226         RE_BACKSLASH_ESCAPE_IN_LISTS.
101227         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
101228         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
101229         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
101230         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
101231         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
101232         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
101233         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
101234         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
101235         (REG_INTERVALS): renamed from RE_INTERVALS.
101236         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
101237         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
101238         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
101239         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
101240         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
101241         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
101242         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
101243         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
101244         RE_UNMATCHED_RIGHT_PAREN_ORD.
101245         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
101246         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
101247         (REG_DEBUG): renamed from RE_DEBUG.
101248         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
101249         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
101250         unusual, since we can't clash with the POSIX REG_ICASE.
101251         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
101252         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
101253         (REG_NO_SUB): renamed from RE_NO_SUB.
101254         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
101255         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
101256         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
101257         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
101258         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
101259         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
101260         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
101261         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
101262         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
101263         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
101264         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
101265         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
101266         RE_SYNTAX_POSIX_MINIMAL_BASIC.
101267         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
101268         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
101269         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
101270         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
101271         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
101272         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
101273         (REG_FIXED): Renamed from REGS_FIXED.
101274         (REG_NREGS): Renamed from RE_NREGS.
101276         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
101277         of other REG_* macros, since POSIX says the user is allowed to
101278         #undef these macros selectively.
101280         (reg_errcode_t): Update comment stating what other tables need
101281         to be consistent.
101283         Rename the following enum values to obey POSIX requirements.
101284         The old names are still visible as macros.
101285         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
101286         is not defined, since GNU is supposed to be a superset of POSIX as
101287         much as possible, and since we want reg_errcode_t to be a signed
101288         type for implementation consistency.
101289         (_REG_NOERROR): Renamed from REG_NOERROR.
101290         (_REG_NOMATCH): Renamed from REG_NOMATCH.
101291         (_REG_BADPAT): Renamed from REG_BADPAT.
101292         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
101293         (_REG_ECTYPE): Renamed from REG_ECTYPE.
101294         (_REG_EESCAPE): Renamed from REG_EESCAPE.
101295         (_REG_ESUBREG): Renamed from REG_ESUBREG.
101296         (_REG_EBRACK): Renamed from REG_EBRACK.
101297         (_REG_EPAREN): Renamed from REG_EPAREN.
101298         (_REG_EBRACE): Renamed from REG_EBRACE.
101299         (_REG_BADBR): Renamed from REG_BADBR.
101300         (_REG_ERANGE): Renamed from REG_ERANGE.
101301         (_REG_ESPACE): Renamed from REG_ESPACE.
101302         (_REG_BADRPT): Renamed from REG_BADRPT.
101303         (_REG_EEND): Renamed from REG_EEND.
101304         (_REG_ESIZE): Renamed from REG_ESIZE.
101305         (_REG_ERPAREN): Renamed from REG_ERPAREN.
101306         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
101307         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
101308         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
101309         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
101311         (_REG_RE_NAME, _REG_RM_NAME): New macros.
101312         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
101313         changed.  But support the old name if the new one is not defined
101314         and if _REGEX_SOURCE.
101316         Change the following member names in struct re_pattern_buffer.
101317         The old names are still supported if !_REGEX_SOURCE.
101318         The new names are always supported, regardless of _REGEX_SOURCE.
101319         (re_buffer): Renamed from buffer.
101320         (re_allocated): Renamed from allocated.
101321         (re_used): Renamed from used.
101322         (re_syntax): Renamed from syntax.
101323         (re_fastmap): Renamed from fastmap.
101324         (re_translate): Renamed from translate.
101325         (re_can_be_null): Renamed from can_be_null.
101326         (re_regs_allocated): Renamed from regs_allocated.
101327         (re_fastmap_accurate): Renamed from fastmap_accurate.
101328         (re_no_sub): Renamed from no_sub.
101329         (re_not_bol): Renamed from not_bol.
101330         (re_not_eol): Renamed from not_eol.
101331         (re_newline_anchor): Renamed from newline_anchor.
101333         Change the following member names in struct re_registers.
101334         The old names are still supported if !_REGEX_SOURCE.
101335         The new names are always supported, regardless of _REGEX_SOURCE.
101336         (rm_num_regs): Renamed from num_regs.
101337         (rm_start): Renamed from start.
101338         (rm_end): Renamed from end.
101340         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
101341         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
101342         Prepend __ to parameter names.
101344         Undo yesterday's changes.
101346 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
101348         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
101349         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
101350         lib/regex.c.
101352 2005-08-24  Jim Meyering  <jim@meyering.net>
101354         Sync from coreutils.
101355         * m4/fcntl-safer.m4: New file.
101357         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
101358         and object files for this module.
101360 2005-08-24  Jim Meyering  <jim@meyering.net>
101362         Sync from coreutils.
101363         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
101365 2005-08-24  Jim Meyering  <jim@meyering.net>
101367         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
101368         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
101370 2005-08-24  Jim Meyering  <jim@meyering.net>
101372         * modules/fcntl-safer: New module.
101373         * modules/fts (Depends-on): Add fcntl-safer.
101374         * MODULES.html.sh (File descriptor based Input/Output):
101375         Add fcntl-safer.
101377 2005-08-24  Bruno Haible  <bruno@clisp.org>
101379         Support for unit test modules.
101380         * modules/README: Mention tests modules.
101381         * modules/TEMPLATE-TESTS: New file.
101382         * gnulib-tool: New options --extract-tests-module, --with-tests and
101383         --tests-base (unused for the moment).
101384         (testsbase, inctests): New variables.
101385         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
101386         (func_verify_module): Exclude TEMPLATE-TESTS.
101387         (func_verify_nontests_module, func_verify_tests_module): New functions.
101388         (func_get_dependencies): Add implicit dependency for tests modules.
101389         (func_get_tests_module): New function.
101390         (func_modules_transitive_closure): When --with-tests was specified,
101391         include the unit tests as well, unless explicitly avoided.
101392         (func_emit_lib_Makefile_am): Ignore the tests modules here.
101393         (func_emit_tests_Makefile_am): New function.
101394         (func_create_testdir): When --with-tests was specified, emit a
101395         tests/ directory.
101396         * MODULES.html.sh (Future developments): Update.
101398 2005-08-24  Bruno Haible  <bruno@clisp.org>
101400         * modules/tls-tests: New file.
101401         * tests/test-tls.c: New file, from GNU gettext.
101403 2005-08-24  Bruno Haible  <bruno@clisp.org>
101405         * modules/lock-tests: New file.
101406         * tests/test-lock.c: New file, from GNU gettext.
101408 2005-08-24  Bruno Haible  <bruno@clisp.org>
101410         * lib/lock.h: Add multiple inclusion guard.
101411         * lib/tls.h: Add multiple inclusion guard.
101413 2005-08-24  Bruno Haible  <bruno@clisp.org>
101415         * gnulib-tool: Add support for the --aux-dir option to
101416         --create-testdir, --create-megatestdir, --test, --megatest.
101417         (func_create_testdir, func_create_megatestdir): Optionally emit a
101418         AC_CONFIG_AUX_DIR directive.
101419         (create-testdir, create-megatestdir, test, megatest): Provide a
101420         default value for $auxdir.
101422 2005-08-24  Bruno Haible  <bruno@clisp.org>
101424         * gnulib-tool (import): Use compound statement instead of subshell
101425         where possible.
101427 2005-08-24  Bruno Haible  <bruno@clisp.org>
101429         * gnulib-tool (import): Change --aux-dir default to "build-aux".
101431 2005-08-24  Bruno Haible  <bruno@clisp.org>
101433         * gnulib-tool (func_version): Update.
101435 2005-08-24  Bruno Haible  <bruno@clisp.org>
101437         * gnulib-tool (func_import, func_create_testdir,
101438         func_create_megatestdir): Quote all autoconf macro arguments.
101440 2005-08-24  Bruno Haible  <bruno@clisp.org>
101442         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
101443         option --force, because --force causes the aclocal.m4 of each
101444         subdirectory to be newer than the corresponding config.h.in.
101446 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
101448         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
101449         All contents moved to gl_REGEX.
101450         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
101451         assume that it does.
101453 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
101455         * lib/regex.h (REG_NOSYS)
101456         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
101457         Define, since POSIX requires it as of 2001.
101458         (_REG_ENOSYS)
101459         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
101460         New private symbol, used to keep the enum signed in all cases.
101461         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
101462         Youngman in
101463         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
101465         * lib/regex_internal.c (re_string_skip_chars, register_state):
101466         (calc_state_hash):
101467         Remove forward decls; no longer needed now that we use prototypes.
101468         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
101469         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
101470         (clean_state_log_if_needed): Likewise.
101472 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
101474         * config/srclist.txt: Add glibc bugs 1231-1233.
101476 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
101478         Fix problems reported by Sam Steingold in
101479         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
101480         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
101481         assumed that reg_errcode_t is a signed type, which is not
101482         necessarily true if _XOPEN_SOURCE is not defined.
101483         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
101484         since some compilers warn about it otherwise.
101486 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
101488         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
101489         (init_word_char, create_initial_state, duplicate_node_closure):
101490         (fetch_token, peek_token_bracket, build_range_exp):
101491         (build_collating_symbol): Remove forward decls; no longer needed
101492         now that we use prototypes.
101494         * lib/regcomp.c:
101495         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
101496         (re_compile_fastmap_iter, regcomp, regerror, regfree):
101497         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
101498         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
101499         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
101500         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
101501         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
101502         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
101503         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
101504         (build_range_exp, build_collating_symbol, parse_bracket_exp):
101505         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
101506         (build_charclass, build_charclass_op, fetch_number, create_tree):
101507         (create_token_tree, mark_opt_subexp, duplicate_tree):
101508         Use prototypes rather than old-style definitions.
101510         * lib/regex_internal.c:
101511         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
101512         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
101513         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
101514         (re_string_reconstruct, re_string_peek_byte_case):
101515         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
101516         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
101517         (re_node_set_init_copy, re_node_set_add_intersect):
101518         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
101519         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
101520         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
101521         (re_acquire_state, re_acquire_state_context, register_state):
101522         (create_ci_newstate, create_cd_newstate, free_state):
101523         Likewise.
101524         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
101525         re_search_2):
101526         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
101527         (re_search_internal, prune_impossible_nodes):
101528         (acquire_init_state_context, check_matching, static):
101529         (check_halt_node_context, check_halt_state_context, proceed_next_node):
101530         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
101531         (update_regs, sift_states_backward, build_sifted_states):
101532         (clean_state_log_if_needed, merge_state_array):
101533         (update_cur_sifted_state, add_epsilon_src_nodes):
101534         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
101535         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
101536         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
101537         (find_recover_state, check_subexp_matching_top, transit_state_mb):
101538         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
101539         (check_arrival, check_arrival_add_next_nodes):
101540         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
101541         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
101542         (check_node_accept_bytes, check_node_accept, extend_buffers):
101543         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
101544         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
101545         (sift_ctx_init):
101546         Likewise.
101548         * lib/regex_internal.h:
101549         (re_string_allocate, re_string_construct, re_string_reconstruct):
101550         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
101551         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
101552         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
101553         (re_string_context_at, re_string_peek_byte_case):
101554         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
101555         is defined, since we now use prototypes always.
101557         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
101558         C89 or better.  All uses removed.
101560 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
101562         * config/srclist.txt: Add glibc bugs 1220-1227.
101564 2005-08-20  Jim Meyering  <jim@meyering.net>
101566         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
101567         of unused local, dfa.
101569 2005-08-20  Bruno Haible  <bruno@clisp.org>
101571         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
101573 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
101575         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
101576         (re_node_set_insert_last, re_dfa_add_node):
101577         Rename local variables to avoid GCC shadowing warnings.
101579 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
101581         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
101582         [defined lint]: Suppress bogus uninitialized-variable warnings.
101584         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
101585         and let the caller return REG_ESPACE if out of space.  This
101586         removes an uninitialied-variable warning with GCC 4.0.1, and also
101587         avoids taking the address of a local variable.  All callers
101588         changed.
101590 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
101592         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
101593         $LIBCSRC/posix/regexec.c.
101594         Add glibc bug 1217 for regcomp.c.
101596 2005-08-19  Jim Meyering  <jim@meyering.net>
101598         * lib/regexec.c (proceed_next_node): Redo local variables to
101599         avoid GCC shadowing warnings.
101601 2005-08-18  Bruno Haible  <bruno@clisp.org>
101603         * lib/strstr.c (strstr): Fix return value in multibyte case.
101604         * lib/strcasestr.c (strcasestr): Likewise.
101606 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
101608         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
101610 2005-08-17  Jim Meyering  <jim@meyering.net>
101612         Make the %s format (seconds since the epoch) work for a negative
101613         number and when used with a zero-padded field width, e.g. %015s.
101615         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
101616         label so that it precedes the code to set `digits'.  Otherwise,
101617         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
101618         print `00-22'.  Now, it prints `-0022', as it should.
101620 2005-08-17  Bruno Haible  <bruno@clisp.org>
101622         * modules/strstr (Files): Add m4/mbrtowc.m4.
101623         (Depends-on): Add mbuiter.
101625 2005-08-17  Bruno Haible  <bruno@clisp.org>
101627         * modules/strcasestr: New file.
101628         * MODULES.html.sh (String handling, based on ANSI C 89): Add
101629         strcasestr.
101631 2005-08-17  Bruno Haible  <bruno@clisp.org>
101633         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
101635 2005-08-17  Bruno Haible  <bruno@clisp.org>
101637         * modules/mbuiter: New file.
101638         * MODULES.html.sh (Extended multibyte and wide character utilities):
101639         Add mbuiter.
101641 2005-08-17  Bruno Haible  <bruno@clisp.org>
101643         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
101644         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
101646 2005-08-17  Bruno Haible  <bruno@clisp.org>
101648         * m4/strcasestr.m4: New file.
101650 2005-08-17  Bruno Haible  <bruno@clisp.org>
101652         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
101653         * lib/strstr.c: Completely rewritten, with multibyte locale support.
101655 2005-08-17  Bruno Haible  <bruno@clisp.org>
101657         * lib/strcasestr.h: New file.
101658         * lib/strcasestr.c: New file.
101660 2005-08-17  Bruno Haible  <bruno@clisp.org>
101662         * lib/strcasecmp.c: Use mbuiter.h.
101664 2005-08-17  Bruno Haible  <bruno@clisp.org>
101666         * lib/mbuiter.h: New file.
101668 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
101670         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
101671         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
101672         and gl_GETOPT are both invoked via different paths (as happens
101673         with GNU tar CVS because it uses both argp and getopt), the former
101674         wins.
101676 2005-08-16  Bruno Haible  <bruno@clisp.org>
101678         * modules/tls: New file.
101679         * MODULES.html.sh (Multithreading): Add tls.
101681 2005-08-16  Bruno Haible  <bruno@clisp.org>
101683         * modules/strnlen1: New file.
101684         * MODULES.html.sh (String handling): Add strnlen1.
101686 2005-08-16  Bruno Haible  <bruno@clisp.org>
101688         * modules/strcase (Files): Add m4/mbrtowc.m4.
101689         (Depends-on): Add strnlen1, mbchar.
101691 2005-08-16  Bruno Haible  <bruno@clisp.org>
101693         * modules/mbiter: New file.
101694         * MODULES.html.sh (Extended multibyte and wide character utilities):
101695         Add mbiter.
101697 2005-08-16  Bruno Haible  <bruno@clisp.org>
101699         * modules/mbfile: New file.
101700         * MODULES.html.sh (Extended multibyte and wide character utilities):
101701         Add mbfile.
101703 2005-08-16  Bruno Haible  <bruno@clisp.org>
101705         * modules/mbchar: New file.
101706         * MODULES.html.sh (Extended multibyte and wide character utilities):
101707         New section.
101709 2005-08-16  Bruno Haible  <bruno@clisp.org>
101711         * m4/tls.m4: New file, from GNU gettext.
101713 2005-08-16  Bruno Haible  <bruno@clisp.org>
101715         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
101716         always.
101717         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
101719 2005-08-16  Bruno Haible  <bruno@clisp.org>
101721         * m4/mbiter.m4: New file.
101723 2005-08-16  Bruno Haible  <bruno@clisp.org>
101725         * m4/mbfile.m4: New file.
101727 2005-08-16  Bruno Haible  <bruno@clisp.org>
101729         * m4/mbchar.m4: New file.
101731 2005-08-16  Bruno Haible  <bruno@clisp.org>
101733         * lib/tls.h: New file, from GNU gettext.
101734         * lib/tls.c: New file, from GNU gettext.
101736 2005-08-16  Bruno Haible  <bruno@clisp.org>
101738         * lib/strnlen1.h: New file.
101739         * lib/strnlen1.c: New file.
101741 2005-08-16  Bruno Haible  <bruno@clisp.org>
101743         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
101744         (mbi_init): Update.
101745         (mbi_avail, mbi_advance): Let the iteration end before the terminating
101746         NUL byte, not after it.
101748 2005-08-16  Bruno Haible  <bruno@clisp.org>
101750         * lib/strcase.h (strcasecmp): Add note in comments.
101751         * lib/strncasecmp.c: Use code from strcasecmp.c.
101752         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
101753         (strcasecmp): Work correctly in multibyte locales.
101755 2005-08-16  Bruno Haible  <bruno@clisp.org>
101757         * lib/mbiter.h: New file.
101759 2005-08-16  Bruno Haible  <bruno@clisp.org>
101761         * lib/mbfile.h: New file.
101763 2005-08-16  Bruno Haible  <bruno@clisp.org>
101765         * lib/mbchar.h: New file.
101766         * lib/mbchar.c: New file.
101768 2005-08-16  Bruno Haible  <bruno@clisp.org>
101770         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
101771         the valid ones. Makes the comparison operations transitive:
101772         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
101773         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
101775 2005-08-15  Simon Josefsson  <jas@extundo.com>
101777         * modules/ssize_t (License): Change to 'unlimited'.
101779         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
101781 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
101783         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
101784         Add comments for each pending glibc patch.
101786 2005-08-15  Bruno Haible  <bruno@clisp.org>
101788         * lib/regex.h (__restrict_arr): Don't define to __restrict if
101789         __cplusplus is defined.
101791 2005-08-14  Jim Meyering  <jim@meyering.net>
101793         Sync from coreutils.
101795         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
101796         Use the hash-table-based cycle-detection code not just when
101797         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
101798         Reported by James Youngman in
101799         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
101800         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
101801         FTS_TIGHT_CYCLE_CHECK.
101802         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
101803         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
101804         once again.
101805         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
101806         * lib/fts.c (fd_safer): Remove decl.
101807         Include fcntl--.h rather than unistd-safer.h
101808         (fts_safe_changedir): Don't call fd_safer; no longer needed
101809         now that we include fcntl--.h.
101811 2005-08-12  Simon Josefsson  <jas@extundo.com>
101813         * modules/getndelim2: Use ssize_t module.
101814         * modules/getnline: Likewise.
101815         * modules/safe-read: Likewise.
101816         * modules/xreadlink: Likewise.
101818         * modules/ssize_t: New file.
101820 2005-08-12  Simon Josefsson  <jas@extundo.com>
101822         * m4/readline.m4: Look for termcap, curses or ncurses if required.
101824 2005-08-12  Simon Josefsson  <jas@extundo.com>
101826         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
101827         ssize_t.
101829 2005-08-12  Simon Josefsson  <jas@extundo.com>
101831         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
101832         readline, getdelim and check_version.
101833         (Support for systems lacking ISO C 99: Sizes of integer types):
101834         Add size_max.
101836 2005-08-12  Bruno Haible  <bruno@clisp.org>
101838         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
101840 2005-08-11  Simon Josefsson  <jas@extundo.com>
101842         * modules/readline: New file.
101844         * modules/strnlen (Files): Add strnlen.h.
101846 2005-08-11  Simon Josefsson  <jas@extundo.com>
101848         * m4/readline.m4: New file.
101850 2005-08-11  Simon Josefsson  <jas@extundo.com>
101852         * lib/readline.h, readline.c: New file.
101854 2005-08-11  Simon Josefsson  <jas@extundo.com>
101856         * doc/gnulib.texi (Initial import, Finishing touches): Mention
101857         gl_AVOID.
101859 2005-08-11  Bruno Haible  <bruno@clisp.org>
101861         * lib/strnlen.h (strnlen): Change parameter name to match comment.
101863 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
101865         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
101867 2005-08-10  Simon Josefsson  <jas@extundo.com>
101869         * tests/test-iconvme.c: New file.
101871 2005-08-10  Simon Josefsson  <jas@extundo.com>
101873         * m4/strnlen.m4: New file.
101875         * m4/strndup.m4: Don't check for strnlen declaration, done in
101876         strnlen.m4.
101878 2005-08-10  Simon Josefsson  <jas@extundo.com>
101880         * lib/strndup.c: Use strnlen.h.
101882         * lib/strnlen.h: New file.
101884 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
101886         * README: Typos.
101888 2005-08-02  Simon Josefsson  <jas@extundo.com>
101890         * modules/readline: New file.
101892 2005-08-02  Simon Josefsson  <jas@extundo.com>
101894         * modules/getdelim: New file.
101896         * modules/getline: Rewrite, don't use getndelim2.
101898 2005-08-02  Simon Josefsson  <jas@extundo.com>
101900         * m4/getline.m4: Separate out getdelim stuff into separate module.
101902         * m4/getdelim.m4: New file.
101904 2005-08-02  Simon Josefsson  <jas@extundo.com>
101906         * lib/getline.h, getline.c: Rewrite.
101908         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
101910 2005-07-31  Bruno Haible  <bruno@clisp.org>
101912         * lib/lock.h (gl_lock_initializer): New macro.
101913         (gl_lock_define_initialized): Use it.
101914         (gl_rwlock_initializer): New macro.
101915         (gl_rwlock_define_initialized): Use it.
101916         (gl_recursive_lock_initializer): New macro.
101917         (gl_recursive_lock_define_initialized): Use it.
101919 2005-07-30  Karl Berry  <karl@gnu.org>
101921         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
101922         Report from Ben Pfaff, regarding getopt.
101924 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
101926         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
101927         normal way.
101928         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
101929         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
101930         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
101931         (gl_GETOPT): Use the new macros.  Most of the implementation
101932         is moved to the new macros.  This is for programs like Emacs
101933         that don't want all the functionality of gl_GETOPT.
101935 2005-07-26  Bruno Haible  <bruno@clisp.org>
101937         * m4/lock.m4: Update from GNU gettext.
101939 2005-07-26  Bruno Haible  <bruno@clisp.org>
101941         * lib/lock.h: Update from GNU gettext.
101942         * lib/lock.c: Update from GNU gettext.
101944 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
101946         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
101947         obsolescent AC_TRY_RUN.  Include the default includes files, for
101948         'exit'.
101950 2005-07-24  Bruno Haible  <bruno@clisp.org>
101952         * modules/visibility: New file.
101953         * MODULES.html.sh (Misc): Add visibility.
101955 2005-07-24  Bruno Haible  <bruno@clisp.org>
101957         * m4/visibility.m4: New file.
101959 2005-07-24  Bruno Haible  <bruno@clisp.org>
101961         * doc/visibility.texi: New file.
101963 2005-07-22  Bruno Haible  <bruno@clisp.org>
101965         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
101966         $(ALLOCA_H), redundant through BUILT_SOURCES.
101967         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
101968         redundant through BUILT_SOURCES.
101969         * modules/byteswap (Makefile.am): Remove explicit dependency on
101970         $(BYTESWAP_H), redundant through BUILT_SOURCES.
101971         * modules/fnmatch (Makefile.am): Remove explicit dependency on
101972         $(FNMATCH_H), redundant through BUILT_SOURCES.
101973         * modules/getopt (Makefile.am): Remove explicit dependency on
101974         $(GETOPT_H), redundant through BUILT_SOURCES.
101975         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
101976         redundant through BUILT_SOURCES.
101977         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
101978         redundant through BUILT_SOURCES.
101979         * modules/stdbool (Makefile.am): Remove explicit dependency on
101980         $(STDBOOL_H), redundant through BUILT_SOURCES.
101981         * modules/stdint (Makefile.am): Remove explicit dependency on
101982         $(STDINT_H), redundant through BUILT_SOURCES.
101983         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
101984         Remove explicit dependency on $(SYSEXITS_H).
101985         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
101987 2005-07-18  Simon Josefsson  <jas@extundo.com>
101989         * lib/check-version.c (check_version): Accept identical versions too.
101991 2005-07-18  Bruno Haible  <bruno@clisp.org>
101993         * modules/lock: New file.
101994         * MODULES.html.sh (Multithreading): New section.
101996 2005-07-18  Bruno Haible  <bruno@clisp.org>
101998         * m4/lock.m4: New file, from GNU gettext.
102000 2005-07-18  Bruno Haible  <bruno@clisp.org>
102002         * lib/lock.h: New file, from GNU gettext.
102003         * lib/lock.c: New file, from GNU gettext.
102005 2005-07-18  Bruno Haible  <bruno@clisp.org>
102007         * lib/lock.h (gl_once_t): New type.
102008         (gl_once_define, gl_once): New macros.
102009         * lib/lock.c (fresh_once): New variable.
102010         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
102011         functions.
102013 2005-07-16  Simon Josefsson  <jas@extundo.com>
102015         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
102016         workaround, suggested by Bruno.
102018 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
102020         * modules/xalloc (Depends-on): Add xalloc-die.
102021         * modules/xvasprintf (Depends-on): Add xalloc-die.
102023 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
102025         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
102026         with a minor change.
102028 2005-07-15  Bruno Haible  <bruno@clisp.org>
102030         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
102031         When using lib/poll.c, define poll as rpl_poll.
102033 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
102035         * modules/argp (Depends-on): Remove unlocked-io.
102037 2005-07-14  Derek Price  <derek@ximbiot.com>
102039         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
102040         for glob symlink bug.
102042 2005-07-14  Bruno Haible  <bruno@clisp.org>
102044         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
102045         Instead, test for *_unlocked function declarations directly.
102047 2005-07-11  Simon Josefsson  <jas@extundo.com>
102049         * modules/size_max: New file.
102051         * modules/xsize: Depend on size_max module for size_max.m4.
102053 2005-07-11  Simon Josefsson  <jas@extundo.com>
102055         * lib/size_max.h: New file.
102057 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
102059         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
102060         copyright symbol and the year.
102061         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
102062         (version_etc_va): Use parameterized copyright notice.
102063         Reword to conform to the current GNU coding standards.
102065 2005-07-11  Karl Berry  <karl@gnu.org>
102067         * doc/gnulib.texi (Quoting): new node.
102068         (Initial import): more info, from Patrice.
102070 2005-07-11  Bruno Haible  <bruno@clisp.org>
102072         * gnulib-tool (func_usage): Document option --avoid.
102073         (Command line options): Handle --avoid.
102074         (func_acceptable): New function.
102075         (func_modules_transitive_closure): Use it.
102077 2005-07-11  Bruno Haible  <bruno@clisp.org>
102079         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
102080         Reported by Jim Meyering.
102082 2005-07-10  Bruno Haible  <bruno@clisp.org>
102084         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
102085         Needed when size_t is smaller than 'unsigned int'.
102086         Reported by Paul Eggert.
102088 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
102090         * modules/argp (Depends-on): Add unlocked-io
102092 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
102094         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
102095         block of defines.
102097 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
102099         * config/srclist.txt: Comment out regcomp.c, since we have a porting
102100         fix now.
102102 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
102103         and Paul Eggert  <eggert@cs.ucla.edu>
102105         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
102106         in wint_t, not wchar_t.  Remove now-unnecessary cast.
102108 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
102110         * modules/regex (Files): Add lib/regex_internal.c,
102111         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
102112         (Depends-on): Add extensions.
102113         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
102115 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
102117         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
102118         pathconf.
102119         * m4/same.m4 (gl_SAME): Likewise.
102120         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
102122         * m4/regex.m4: Adjust to new libc regex implementation.
102123         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
102124         all the .c and .h parts of (the new) regex.
102125         Quote the m4 stuff better.
102126         Check for RE_ICASE bug of old gnulib.
102127         Check for REG_STARTEND of recent libc.
102128         Rename local variables from jm_* to gl_*.
102129         Quote operand of "test -f".
102130         Say "recent enough" version of libc, not "version 2".
102131         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
102132         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
102133         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
102134         Remove check for btowc, isascii.
102135         Require AM_LANGINFO_CODESET.
102137 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
102139         * lib/regex.c, regex.h: Sync from libc.
102140         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
102141         * lib/regexec.c:
102142         New files, synced from libc, except that regex_internal.h
102143         currently has a small porting fix.
102145 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
102147         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
102148         regex_internal.c, regexec.c.
102149         Add regex_internal.h too, but as a comment, since the libc version
102150         is currently broken in gnulib mode.
102152 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
102154         Support programs like Emacs that use gnulib but not gettext.
102155         * MODULES.html.sh (Internationalization functions): Add gettext-h.
102156         * modules/gettext-h: New file.
102157         * modules/gettext (Files): Remove lib/gettext.h.
102158         (Depends-on): Add gettext-h.
102159         (Makefile.am): Remove lib_SOURCES.
102160         * modules/argmatch, modules/c-stack, modules/closeout:
102161         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
102162         * modules/execute, modules/file-type, modules/getaddrinfo:
102163         * modules/getopt, modules/human, modules/javacomp:
102164         * modules/javaexec, modules/mkdir-p, modules/obstack:
102165         * modules/openat, modules/pagealign_alloc, modules/pipe:
102166         * modules/quotearg, modules/regex, modules/rpmatch:
102167         * modules/unicodeio, modules/userspec, modules/version-etc:
102168         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
102169         * modules/xsetenv:
102170         Depend on gettext-h, not gettext.
102172 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
102174         * gnulib-tool (func_import): Add support for 'public domain' license.
102175         * modules/alloca, modules/atexit, modules/memmove:
102176         Now public domain, not GPL.
102177         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
102178         * modules/realloc, modules/strerror, modules/strtod:
102179         Now LGPL, not GPL.
102181 2005-07-05  Bruno Haible  <bruno@clisp.org>
102183         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
102184         autoconf CVS. Needed for mingw.
102186 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
102188         Remove the dependency of the strftime module on the tzset module.
102189         * modules/strftime (Depends-on): Remove dependency on tzset.
102191 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
102193         Remove the dependency of the strftime module on the tzset module.
102194         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
102195         gl_FUNC_TZSET_CLOBBER.
102197 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
102199         Remove the dependency of the strftime module on the tzset module.
102200         * lib/strftime.c (my_strftime)
102201         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
102202         Copy the input structure, to work around some of the bug with
102203         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
102204         Solaris releases, you should also use the tzset module, but we won't
102205         require it as a dependency any more since we don't want LGPLed code
102206         to depend on GPLed code.
102208 2005-07-02  Jim Meyering  <jim@meyering.net>
102210         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
102211         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
102212         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
102213         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
102215 2005-07-02  Jim Meyering  <jim@meyering.net>
102217         * lib/backupfile.c (backup_args): Change a `0' to NULL.
102219 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
102221         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
102222         declares only 'struct timespec;' (!).
102224 2005-07-01  Jim Meyering  <jim@meyering.net>
102226         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
102227         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
102228         * lib/save-cwd.c, tempname.c:
102229         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
102230         and don't include <sys/file.h>).
102232 2005-06-29  Jim Meyering  <jim@meyering.net>
102234         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
102235         type name.  Use the variable name instead.
102236         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
102237         Likewise.
102239 2005-06-28  Simon Josefsson  <jas@extundo.com>
102241         * modules/check-version (Files): Add check-version.m4.
102243 2005-06-28  Simon Josefsson  <jas@extundo.com>
102245         * m4/check-version.m4: New file, suggested by Jim Meyering
102246         <jim@meyering.net>.
102248 2005-06-28  Simon Josefsson  <jas@extundo.com>
102250         * lib/check-version.h, lib/check-version.c: New files.
102252 2005-06-28  Simon Josefsson  <jas@extundo.com>
102254         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
102255         collision with global variable.  Better indentation.  Don't
102256         increment buffer pointer beyond buffer end.  Based on comments
102257         from Paul Eggert <eggert@cs.ucla.edu>.
102259         * lib/base64.h: Indent.
102261 2005-06-28  Simon Josefsson  <jas@extundo.com>
102263         * doc/gnulib.texi (Library version handling): New section.
102265 2005-06-28  Jim Meyering  <jim@meyering.net>
102267         * check-module (find_included_lib_files): Hard-code another
102268         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
102269         but modules/fts-lgpl (correctly) does not list those files.
102271         * modules/canonicalize (Files): Add lib/pathmax.h.
102273 2005-06-25  Simon Josefsson  <jas@extundo.com>
102275         * modules/check-version: New file.
102277 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
102279         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
102280         initializer of struct addrinfo, as an indication that we don't
102281         care how many members the structure has.
102283 2005-06-24  Derek Price  <derek@ximbiot.com>
102284         and Bruno Haible  <bruno@clisp.org>
102286         Remove stat module & update lstat.
102287         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
102288         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
102289         * m4/stat.m4: Remove this file.
102291 2005-06-24  Derek Price  <derek@ximbiot.com>
102292         and Bruno Haible  <bruno@clisp.org>
102294         Remove stat module & update lstat.
102295         * lib/stat.c: Remove this file...
102296         (slash_aware_lstat): ...moving this content and its support...
102297         * lib/lstat.c (rpl_lstat): ...into here.
102298         * lib/lstat.h: New file.
102300 2005-06-24  Derek Price  <derek@ximbiot.com>
102301         and Bruno Haible  <bruno@clisp.org>
102303         Remove stat module & update lstat.
102304         * config/srclist.txt (libc sources): Remove stat.
102306 2005-06-24  Derek Price  <derek@ximbiot.com>
102307         and Bruno Haible  <bruno@clisp.org>
102309         Remove stat module & update lstat.
102310         * MODULES.html.sh (stat): Remove.
102311         * MODULES.html: Regenerated.
102312         * modules/lstat (Description): Correct function name.
102313         (Files): Add "lstat.h".
102314         (Depends-on): Remove stat, add xalloc, stat-macros.
102315         * modules/stat: Remove this file.
102316         (Include): Add "lstat.h", remove <sys/stat.h>.
102318 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
102320         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
102321         (ranged_convert): Don't save conversion in a temporary struct.
102322         This causes a warning with GCC 4.0.0, and anyway in the typical
102323         case it's not worth the extra 100 bytes or so of code.
102324         (ranged_convert, __mktime_internal): When calling a function via a
102325         pointer P, use P () rather than (*P) (), as we now assume C89 or
102326         better.
102328 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
102330         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
102331         "who -r" failed to give output.  Problem reported by Tim Waugh.
102333         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
102334         (xcalloc): Use it to avoid needless tests.
102335         Problem reported by Jim Meyering.
102337 2005-06-20  Derek Price  <derek@ximbiot.com>
102339         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
102340         unnecessary for Autoconfs > 2.59c.
102342 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
102344         * lib/argp.h (__option_is_short): Check upper limit of
102345         __key. Isprint() requires its argument to have the value
102346         of an unsigned char or EOF.
102348 2005-06-16  Jim Meyering  <jim@meyering.net>
102350         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
102351         when either N or S is zero.
102353 2005-06-16  Derek Price  <derek@ximbiot.com>
102355         * m4/bison.m4: Declare YACC & YFLAGS precious.
102357 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
102359         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
102360         multibyte string or pattern, fall back on unibyte matching.
102361         Problem reported by James Youngman.
102363 2005-06-08  Bruno Haible  <bruno@clisp.org>
102365         * modules/csharpcomp: New file.
102366         * MODULES.html.sh (C#): Add csharpcomp.
102368 2005-06-08  Bruno Haible  <bruno@clisp.org>
102370         * m4/csharpcomp.m4: New file, from GNU gettext.
102372 2005-06-08  Bruno Haible  <bruno@clisp.org>
102374         * lib/csharpcomp.h: New file, from GNU gettext.
102375         * lib/csharpcomp.c: New file, from GNU gettext.
102376         * lib/csharpcomp.sh.in: New file, from GNU gettext.
102378 2005-06-08  Bruno Haible  <bruno@clisp.org>
102380         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
102381         warning on mingw.
102383 2005-06-07  Derek Price  <derek@ximbiot.com>
102385         Sync from CVS.
102386         * lib/glob_.h: Indent nested #ifdef.
102388 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
102390         Sync from coreutils.
102391         Use "file name" when talking about file names, instead of "filename"
102392         or "path", as per the GNU coding standards.
102393         * lib/mkdir-p.c: Renamed from makepath.c.
102394         (make_dir_parents): Renamed from make_path.  All callers changed.
102395         * lib/mkdir-p.h: Likewise.  All includers changed.
102396         * lib/filenamecat.c: Renamed from path-concat.c.
102397         (file_name_concat): Renamed from path_concat.  All callers changed.
102398         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
102399         * lib/filenamecat.h: Likewise.  All includers changed.
102400         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
102401         in comments or local variable names.
102402         * lib/basename.c: Likewise.
102403         * lib/canonicalize.c, canonicalize.h: Likewise.
102404         * lib/dirname.c, dirname.h: Likewise.
102405         * lib/euidaccess.c: Likewise.
102406         * lib/exclude.c: Likewise
102407         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
102408         * lib/fsusage.c, fsuage.h: Likewise.
102409         * lib/fts.c, fts_.h: Likewise.
102410         * lib/getcwd.c: Likewise.
102411         * lib/getloadavg.c: Likewise.
102412         * lib/mkstemp.c: Likewise.
102413         * lib/mountlist.c, mountlist.h: Likewise.
102414         * lib/openat.c, openat.h: Likewise.
102415         * lib/readlink-stub.c: Likewise.
102416         * lib/readutmp.c, readutmp.h: Likewise.
102417         * lib/rename.c: Likewise.
102418         * lib/rmdir.c: Likewise.
102419         * lib/same.c: Likewise.
102420         * lib/savedir.c: Likewise.
102421         * lib/stripslash.c: Likewise.
102422         * lib/tempname.c: Likewise.
102423         * lib/xreadlink.c: Likewise.
102424         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
102425         All uses changed.
102426         * lib/exclude.h: Likewise.
102428         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
102429         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
102430         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
102431         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
102432         * lib/pathmax.h: Include <limits.h> unconditionally, since other
102433         files have been getting away with it for years (MORE/BSD 4.3
102434         is extinct now).
102435         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
102436         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
102438         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
102439         Define to 256, not 255, as per modern POSIX.
102441 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
102443         Sync from coreutils.
102444         Use "file name" when talking about file names, instead of "filename"
102445         or "path", as per the GNU coding standards.
102446         * MODULES.html.sh: mkdir-p renamed from makepath.
102447         filenamecat renamed from path-concat.
102448         * modules/filenamecat: Renamed from modules/path-concat.
102449         (Files): filenamecat.h and filenamecat.c renamed from
102450         path-concat.h and path-concat.c.
102451         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
102452         (Include): filenamecat.h, not path-concat.h.
102453         * modules/mkdir-p: Renamed from modules/makepath.
102454         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
102455         makepath.c.
102456         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
102457         (Include): mkdir-p.h, not makepath.h.
102459 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
102461         Sync from coreutils.
102462         * m4/mkdir-p.m4: Renamed from makepath.m4.
102463         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
102464         Rename files from makepath.c to mkdir-p.c, and from
102465         makepath.h to mkdir-p.h.
102466         * m4/filenamecat.m4: Renamed from path-concat.m4.
102467         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
102468         Rename files from path-concat.c to filenamecat.c,
102469         and from path-concat.h to filenamecat.h.
102470         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
102471         "file name" in local variables or comments.
102472         * m4/rename.m4: Likewise.
102474 2005-06-01  Bruno Haible  <bruno@clisp.org>
102476         * modules/csharpexec: New file.
102477         * MODULES.html.sh (C#): New section.
102479 2005-06-01  Bruno Haible  <bruno@clisp.org>
102481         * m4/csharp.m4: New file, from GNU gettext.
102482         * m4/csharpexec.m4: New file, from GNU gettext.
102484 2005-06-01  Bruno Haible  <bruno@clisp.org>
102486         * lib/csharpexec.h: New file, from GNU gettext.
102487         * lib/csharpexec.c: New file, from GNU gettext.
102488         * lib/csharpexec.sh.in: New file, from GNU gettext.
102490 2005-05-31  Derek Price  <derek@ximbiot.com>
102491             Paul Eggert  <eggert@cs.ucla.edu>
102493         Sync from cvs.
102494         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
102496 2005-05-31  Derek Price  <derek@ximbiot.com>
102497             Paul Eggert  <eggert@cs.ucla.edu>
102499         Sync from cvs.
102500         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
102502 2005-05-29  Derek Price  <derek@ximbiot.com>
102504         * config/srclist.txt (glob_.h, glob.c): Add these files.
102506 2005-05-29  Derek Price  <derek@ximbiot.com>
102508         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
102509         * modules/glob: New file.
102510         * modules/getlogin_r: Add link to POSIX spec in description.
102512 2005-05-29  Derek Price  <derek@ximbiot.com>
102513             Paul Eggert  <eggert@cs.ucla.edu>
102515         * m4/glob.m4: New file.
102517 2005-05-29  Derek Price  <derek@ximbiot.com>
102518             Paul Eggert  <eggert@cs.ucla.edu>
102520         * lib/glob_.h, lib/glob.c: New files.
102522 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
102524         * modules/fts (Files): Remove m4/inttypes-pri.m4.
102525         * modules/fts-lgpl (Depends-on): Remove gettext.
102527 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
102529         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
102530         and don't require gt_INTTYPES_PRI.
102532 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
102534         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
102536         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
102537         the configuration hassle isn't worth it.
102538         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
102539         (LONGEST_MODIFIER, PRIuMAX): Remove.
102541 2005-05-27  Bruno Haible  <bruno@clisp.org>
102543         * lib/getlogin_r.h: Remove second include of <stddef.h>.
102545 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
102547         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
102548         _POSIX_PTHREAD_SEMANTICS for Solaris.
102550 2005-05-25  Derek Price  <derek@ximbiot.com>
102552         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
102554 2005-05-25  Derek Price  <derek@ximbiot.com>
102555             Paul Eggert  <eggert@cs.ucla.edu>
102557         * modules/getlogin_r, m4/getlogin_r.m4: New files.
102558         * lib/getlogin_r.c, getlogin_r.h: New files.
102560 2005-05-25  Bruno Haible  <bruno@clisp.org>
102561             Derek Price  <derek@ximbiot.com>
102563         * lib/getlogin_r.h: Simplify API documentation.
102565 2005-05-23  Derek Price  <derek@ximbiot.com>
102567         * modules/minmax (Files): Add m4/minmax.m4.
102568         (configure.ac): Add gl_MINMAX.
102570 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
102572         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
102573         so that unistd-safer.h (GPL'ed code) need not be included.
102575 2005-05-22  Bruno Haible  <bruno@clisp.org>
102577         * m4/minmax.m4: New file.
102578         Based on a patch by Derek Price <derek@ximbiot.com>.
102580 2005-05-22  Bruno Haible  <bruno@clisp.org>
102582         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
102583         (INT64_MIN): Fix definition.
102584         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
102586         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
102587         NEED_SIGNED_INT_TYPES.
102589         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
102590         HAVE_SYSTEM_INTTYPES.
102592 2005-05-22  Bruno Haible  <bruno@clisp.org>
102594         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
102595         Also include <sys/param.h> if it defines MIN, MAX.
102596         Based on a patch by Derek Price <derek@ximbiot.com>.
102598 2005-05-21  Jim Meyering  <jim@meyering.net>
102600         * modules/fts (Files): Add m4/inttypes-pri.m4.
102601         (Depends-on): Add lstat and remove gettext.  Alphabetize.
102603 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
102605         New fts module.
102606         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
102607         (setup_dir, free_dir): New functions.
102608         (enter_dir, leave_dir): Define trivial
102609         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
102610         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
102611         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
102612         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
102613         Move to fts-cycle.c.
102614         (fts_open): Use setup_dir.
102615         (fts_close): Use free_dir.
102616         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
102617         This adds a label and some gotos, but the alternatives were messier.
102618         Check for memory allocation failure when entering a dir.
102619         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
102620         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
102621         (FTS): New member fts_cycle, that is a union that contains the
102622         old active_dir_ht and cycle_state.  All uses changed to mention
102623         fts_cycle.ht and fts_cycle.state.
102624         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
102625         fts.c, with the following changes:
102626         (setup_dir, free_dir): New functions.
102627         (enter_dir): Now returns bool.  Return true if successful, false
102628         if memory exhausted.  All callers changed.
102629         Do not bother partly cleaning up on
102630         memory allocation failure; that is free_dir's job.
102631         However, free ad if hash_insert fails, to avoid memory leak.
102632         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
102633         fts->fts_options to see which union member to use.
102635 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
102637         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
102638         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
102640 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
102642         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
102644 2005-05-20  Jim Meyering  <jim@meyering.net>
102646         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
102647         Now a macro, to pacify GCC.
102649 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
102651         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
102652         of -1.
102654 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
102656         * lib/chown.c (rpl_chown): Return -1 on failure.
102658 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
102660         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
102661         Don't check for stddef.h.
102662         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
102663         don't use its results.
102664         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
102665         since we include them unconditionally.  Don't require
102666         AM_STDBOOL_H, since stdbool is a prerequisite.
102667         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
102668         since we assume C89 or better.
102669         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
102670         as we don't use their results.
102671         Don't check for fchdir, memmove, memset, strrchr, as we use
102672         them unconditionally.
102673         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
102674         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
102676 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
102678         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
102679         Include <stddef.h> unconditionally, since we assume C89 now.
102680         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
102681         * lib/fts.c: Include fts_.h first, to check interface.
102682         Do not include intprops.h; no longer needed.
102683         Include cycle-check.h and hash.h, since fts_.h no longer does.
102684         Remove unnecessary casts of closedir to void.
102685         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
102686         decide whether to decrement nlinks.
102687         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
102688         (FTS): Use struct hash_table * instead of Hash_table, so that
102689         we no longer need to include hash.h here.
102691 2005-05-18  Jim Meyering  <jim@meyering.net>
102693         * modules/dirfd (License): Change to LGPL.  Most of the code
102694         is already in the public domain.
102696 2005-05-18  Jim Meyering  <jim@meyering.net>
102698         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
102699         Reported by Yoann Vandoorselaere.
102701 2005-05-17  Jim Meyering  <jim@meyering.net>
102703         * m4/fts.m4: New file, from coreutils.
102705 2005-05-17  Jim Meyering  <jim@meyering.net>
102707         * lib/fts.c, lib/fts_.h: New files, from coreutils.
102709 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
102711         Sync from coreutils.
102712         * m4/unlinkdir.m4: New file.
102714 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
102716         Sync from coreutils.
102717         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
102718         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
102719         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
102720         White space changes only.
102721         * lib/makepath.c (make_path): Port to hosts where leading "//" is
102722         special.
102723         * lib/yesno.c: Include getline.h, not ctype.h.
102724         (yesno): Don't remove leading white space; POSIX doesn't allow it.
102725         Use getline to remove arbitrary restriction on response length.
102727 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
102729         * config/srclist-update: Spell out "Street" in FSF postal
102730         mail address; this is the style the FSF seems to prefer.
102732         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
102733         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
102734         this updates FSF postal mail address.
102736         Sync from coreutils.
102737         * modules/unlinkdir: New file.
102738         * modules/yesno (Depends-on): Add getline.
102739         * MODULES.html.sh (File system functions): Add unlinkdir.
102741 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
102743         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
102744         lib/strsep.h:
102745         Change the initial comment to refer to GPL, not LGPL.
102746         gnulib-tool will change it to LGPL as needed.
102748         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
102749         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
102750         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
102751         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
102752         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
102753         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
102754         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
102755         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
102756         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
102757         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
102758         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
102759         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
102760         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
102761         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
102762         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
102763         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
102764         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
102765         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
102766         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
102767         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
102768         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
102769         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
102770         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
102771         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
102772         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
102773         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
102774         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
102775         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
102776         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
102777         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
102778         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
102779         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
102780         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
102781         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
102782         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
102783         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
102784         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
102785         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
102786         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
102787         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
102788         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
102789         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
102790         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
102791         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
102792         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
102793         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
102794         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
102795         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
102796         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
102797         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
102798         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
102799         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
102800         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
102801         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
102802         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
102803         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
102804         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
102805         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
102806         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
102807         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
102808         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
102809         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
102810         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
102811         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
102812         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
102813         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
102814         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
102815         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
102816         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
102817         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
102818         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
102819         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
102820         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
102821         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
102822         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
102823         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
102824         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
102825         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
102826         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
102827         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
102828         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
102829         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
102830         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
102831         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
102832         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
102833         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
102834         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
102835         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
102836         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
102837         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
102838         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
102839         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
102840         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
102841         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
102842         lib/yesno.c, lib/yesno.h:
102843         Update FSF postal mail address.
102845 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
102847         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
102848         tests/test-memmem.c, tests/test-stpncpy.c:
102849         Update FSF postal mail address.
102851 2005-05-13  Bruno Haible  <bruno@clisp.org>
102853         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
102854         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
102855         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
102856         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
102857         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
102858         Add support for 64-bit integers in the MSVC compiler.
102860 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
102862         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
102864 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
102866         * gnulib-tool (func_import): Sort and uniquify recommended includes.
102868 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
102870         * doc/getdate.texi (General date syntax): Don't say that date
102871         date --iso-8601=ns generates acceptable dates; it doesn't yet.
102872         Problem reported by Nic Ferrier.
102874 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
102876         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
102877         specified in ai_socktype. Fix invalid ai_protocol
102878         check. ai_protocol is usually set to 0 or depending on
102879         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
102880         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
102881         ai_socktype / ai_protocol in the returned addrinfo structure.
102883 2005-05-10  Simon Josefsson  <jas@extundo.com>
102885         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
102886         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
102888 2005-05-10  Karl Berry  <karl@gnu.org>
102890         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
102891         (from http://www.gnu.org/licenses).
102892         * doc/COPYING.LIB: also rename to COPYING.LESSER.
102893         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
102894         fdl.texi suffices.
102896 2005-05-10  Karl Berry  <karl@gnu.org>
102898         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
102899         (COPYING.DOC): remove.
102901         * config/srclist-update: new FSF address.
102903 2005-05-10  Derek Price  <derek@ximbiot.com>
102905         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
102906         possible.
102908 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
102909             Bruno Haible  <bruno@clisp.org>
102911         * modules/inet_ntop: New file.
102912         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
102913         inet_ntop.
102915 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
102916             Bruno Haible  <bruno@clisp.org>
102918         * m4/inet_ntop.m4: New file.
102920 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
102921             Bruno Haible  <bruno@clisp.org>
102923         * lib/inet_ntop.h: New file.
102924         * lib/inet_ntop.c: New file, from glibc with modifications.
102926 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
102928         * modules/time_r (License): Change to LGPL.
102929         * modules/extensions (License): Change to LGPL.  Actually,
102930         the license is more permissive than that, but currently gnulib-tool
102931         doesn't know how to handle more-permissive licenses.
102933         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
102934         Problem reported by Dave Love.
102936 2005-05-08  Jim Meyering  <jim@meyering.net>
102938         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
102939         blank.
102941 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
102943         * modules/argmatch (Depends-on): Add stdbool.
102944         * modules/backupfile (Depends-on): Likewise.
102945         * modules/chdir-long (Depends-on): Likewise.
102946         * modules/closeout (Depends-on): Likewise.
102947         * modules/cycle-check (Depends-on): Likewise.
102948         * modules/dirname (Depends-on): Likewise.
102949         * modules/fnmatch (Depends-on): Likewise.
102950         * modules/fsusage (Depends-on): Likewise.
102951         * modules/fwriteerror (Depends-on): Likewise.
102952         * modules/getcwd (Depends-on): Likewise.
102953         * modules/getloadavg (Depends-on): Likewise.
102954         * modules/hard-locale (Depends-on): Likewise.
102955         * modules/makepath (Depends-on): Likewise.
102956         * modules/mountlist (Depends-on): Likewise.
102957         * modules/nanosleep (Depends-on): Likewise.
102958         * modules/posixtm (Depends-on): Likewise.
102959         * modules/quotearg (Depends-on): Likewise.
102960         * modules/readtokens (Depends-on): Likewise.
102961         * modules/readtokens0 (Depends-on): Likewise.
102962         * modules/readutmp (Depends-on): Likewise.
102963         * modules/save-cwd (Depends-on): Likewise.
102964         * modules/strftime (Depends-on): Likewise.
102965         * modules/userspec (Depends-on): Likewise.
102966         * modules/utimecmp (Depends-on): Likewise.
102967         * modules/xgetcwd (Depends-on): Likewise.
102968         * modules/xnanosleep (Depends-on): Likewise.
102969         * modules/xstrtod (Depends-on): Likewise.
102970         * modules/yesno (Depends-on): Likewise.
102972 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
102974         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
102975         needless checks.
102977 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
102979         Merge from coreutils.  Among other things,
102980         add bulletproofing for cases where stdin, stdout, or stderr are closed.
102981         * lib/fd-safer.c: New file.
102982         * lib/fcntl-safer.h, open-safer.c: Remove.
102983         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
102984         * lib/dup-safer.c: Include unistd-safer.h first.
102985         Don't include errno.h.
102986         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
102987         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
102988         * lib/file-type.c: Rely on file-type.h change.
102989         * lib/getloadavg.c: Include unistd-safer.h.
102990         (getloadavg): Use safer open.
102991         * lib/getusershell.c: Include "stdio-safer.h".
102992         (getusershell): Use safer fopen.
102993         * lib/long-options.c (long_options): Use NULL rather than 0.
102994         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
102995         'free'.
102996         * lib/modechange.c: Likewise.
102997         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
102998         (MODE_DONE): New constant.
102999         (struct mode_change): Remove 'next' member.
103000         (make_node_op_equals): New function; like the old one of the
103001         same name, except it allocates an array.
103002         (mode_compile, mode_create_from_ref): Use it.
103003         (mode_compile): Allocate result as an array, not a linked list.
103004         Parse octal string ourself, so that we catch mistakes like "+0".
103005         (mode_adjust): Arg is an array, not a linked list.
103006         * lib/modechange.c: Include stat-macros.h, xalloc.h.
103007         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
103008         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
103009         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
103010         Remove.  This is now stat-macros.h's job.
103011         (talloc): Remove.  All callers replaced by xalloc, so that
103012         our invokers don't have to worry about reporting memory failures.
103013         (make_node_op_equals): Remove.
103014         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
103015         New constants.
103016         (struct mode_change): Moved here from modechange.h.
103017         (mode_append_entry): Remove.
103018         (mode_compile): Remove MASKED_OPS arg, since it encouraged
103019         apps to have incorrect behavior.  Use simpler algorithm for head
103020         and tail.  Don't futz with umask; that's now the job of mode_adjust.
103021         Detect more invalid usages rather than having somewhat-random behavior.
103022         Don't insert an "a=" action, as that leads to incorrect behavior.
103023         (mode_compile, mode_create_from_ref): Return NULL on error instead
103024         of an enum, since now there's only one way to have an error.  All
103025         callers changed.
103026         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
103027         at the correct time.  Simplify calculation of "+u" and its ilk.
103028         Don't mishandle "+X".
103029         (mode_free): Remove "register" and localize decls.
103030         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
103031         (struct mode_change): Move to modechange.c; callers don't
103032         need to see this stuff.
103033         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
103034         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
103035         (mode_change, mode_adjust): Reflect the new signatures noted above.
103036         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
103037         that might redefine system include files.
103038         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
103039         (my_usleep): Use NULL rather than (void *) 0.
103040         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
103041         Use siginterrupt to specify that system calls should be interrupted.
103042         (rpl_nanosleep): Move initialization of suspended closer to call of
103043         my_usleep.
103044         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
103045         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
103046         (desirable_utmp_entry): New function.
103047         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
103048         using x2nrealloc, to simplify logic.
103049         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
103050         size calculation.  Do not assume utmp file is a regular file.
103051         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
103052         (READ_UTMP_CHECK_PIDS): New constant.
103053         * lib/save-cwd.c: Include unistd-safer.h.
103054         (save_cwd): Use fd_safer.
103055         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
103056         [!_LIBC] Include "stat-macros.h" instead.
103057         * lib/unistd-safer.h (fd_safer): New decl.
103059 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
103061         * modules/getloadavg (Depends-on): Add unistd-safer.
103062         * modules/getusershell (Depends-on): Add stdio-safer.
103063         * modules/lstat (Depends-on): Remove xalloc.
103064         * modules/mkstemp (Depends-on): Add stat-macros.
103065         * modules/modechange (Depends-on): Remove xstrtol.
103066         Add stat-macros, xalloc.
103067         * modules/save-cwd (Depends-on): Add unistd-safer.
103068         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
103069         * modules/unistd-safer (Files): Add lib/fd-safer.c
103070         (Makefile.am): Remove lib_SOURCES.
103072         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
103073         Remove fcntl-safer; unistd-safer supersedes it.
103075 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
103077         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
103078         AC_HEADER_STAT.
103079         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
103080         (gl_PREREQ_CHOWN): Remove.
103081         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
103082         it.  Don't require AC_HEADER_STAT.
103083         (gl_PREREQ_LSTAT): Remove.
103084         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
103085         Don't require AC_HEADER_STAT.
103086         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
103087         (gl_PREREQ_RMDIR): Remove.
103088         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
103089         mention stat-macros.h or AC_HEADER_STAT, since we'll make
103090         the stat-macros module a prerequisite.
103091         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
103092         * m4/filemode.m4 (gl_FILEMODE): Likewise.
103093         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
103094         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
103095         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
103096         variable names.
103097         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
103098         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
103099         variable prefixes.
103100         * m4/fcntl-safer.m4: Remove.
103101         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
103102         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
103103         Invoke gl_PREREQ_FD_SAFER.
103104         (gl_PREREQ_FD_SAFER): New macro.
103105         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
103106         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
103107         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
103108         Remove duplicate call to AC_LIBOBJ(readutmp).
103109         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
103111         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
103112         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
103114 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
103116         * MODULES.html.sh (Misc): Add byteswap.
103118 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
103120         * modules/getcwd (Depends-on): Add extensions.
103121         * modules/openat (Depends-on): Likewise.
103123 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
103125         * modules/byteswap: New file.
103127 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
103129         * m4/byteswap.m4: New file.
103131 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
103133         * lib/byteswap_.h: New file.
103135 2005-04-25  Karl Berry  <karl@gnu.org>
103137         * m4/gettext.m4: Update from GNU gettext 0.14.4.
103139 2005-04-25  Albert Chin  <china@thewrittenword.com>
103141         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
103142         Toolkit C bug.
103144 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
103146         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
103147         (func_ln_if_changed): Remove forcibly for no error message
103148         in case file does not exist.
103150 2005-04-19  Simon Josefsson  <jas@extundo.com>
103152         * gnulib-tool (Options): Make --symlink mean --symbolic.
103154 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
103156         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
103158 2005-04-16  Simon Josefsson  <jas@extundo.com>
103160         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
103162 2005-04-15  Simon Josefsson  <jas@extundo.com>
103164         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
103166 2005-04-15  Simon Josefsson  <jas@extundo.com>
103168         * gnulib-tool: Rename --symlink to --symbolic.
103170 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
103172         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
103173         symbolic links to files instead of copying/moving.  Add --aux-dir,
103174         specifying directory relative --dir where auxiliary build tools
103175         are placed.
103177 2005-04-14  Bruno Haible  <bruno@clisp.org>
103179         * modules/allocsa (License): Change to LGPL.
103180         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
103182 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
103184         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
103185         that "UTC +1 second" continues to work.  Problem reported
103186         by Dmitry V. Levin.
103187         (relunit_snumber): New rule.
103188         (relunit): Use it.
103190 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
103192         * lib/getdate.y (universal_time_zone_table): New constant.
103193         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
103194         universal_time_zone_table.
103195         (lookup_zone): Prefer universal_time_zone_table to
103196         local_time_zone_table, so that "GMT" time stamps are allowed in
103197         London during the summer.  Problem reported by Ian Abbott.
103199 2005-04-12  Jim Meyering  <jim@meyering.net>
103201         * lib/human.c (humblock): Set *options even when returning due to
103202         xstrtoumax conversion failure.  Thanks to a used-uninitialized
103203         warning from gcc-4.
103205 2005-04-09  Jim Meyering  <jim@meyering.net>
103207         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
103208         -Wuninitialized: initialize tm0.tm_year.
103210 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
103212         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
103213         count, since there's no maximum.  All uses changed.
103214         Add member dsts_seen.
103215         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
103216         not being INT_MAX.
103217         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
103218         Use pc_rels_seen to decide whether a date is absolute.
103220         * lib/getdate.y (number): Don't overwrite year.
103221         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
103222         check.
103224 2005-04-02  Simon Josefsson  <jas@extundo.com>
103226         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
103227         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
103229 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
103231         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
103232         where no absolute path name can be longer than PATH_MAX.
103234 2005-03-27  Jim Meyering  <jim@meyering.net>
103236         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
103238 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
103240         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
103241         "one's complement" -> "ones' complement" in comment, as per Knuth.
103242         "value of type" -> "type or expression" in comment.
103243         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
103245 2005-03-26  Jim Meyering  <jim@meyering.net>
103247         Comment nits.
103248         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
103249         Correct typos: s/or/of/.
103251 2005-03-26  Jim Meyering  <jim@meyering.net>
103253         * modules/check-include-files: Move to ../ and rename to...
103254         * check-module: ...this.
103256 2005-03-25  Jim Meyering  <jim@meyering.net>
103258         * modules/xvasprintf (Files): Add xalloc.h.
103260 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
103262         * modules/gettext (Files): config/config.rpath ->
103263         build-aux/config.rpath
103264         * modules/iconv (Files): Likewise.
103265         Problem reported by Oskar Liljeblad.
103267 2005-03-23  Jim Meyering  <jim@meyering.net>
103269         * modules/check-include-files: New script to check for
103270         missing dependencies, multiple includes, etc.
103272         * modules/c-strtold (Depends-on): Add xalloc.
103273         * modules/c-strtod (Depends-on): Add xalloc.
103274         * modules/hash (Depends-on): Add xalloc.
103275         (Files): Remove lib/xalloc.h.
103277         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
103278         * modules/userspec (Files): Add lib/inttostr.h.
103280 2005-03-23  Jim Meyering  <jim@meyering.net>
103282         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
103284 2005-03-22  Jim Meyering  <jim@meyering.net>
103286         * modules/stat-macros: New module.
103287         * modules/canonicalize, modules/euidaccess, modules/file-type,
103288         * modules/filemode, modules/lchown, modules/makepath,
103289         * modules/rmdir, modules/stat: Depend on new stat-macros module
103290         rather than listing lib/stat-macros.h manually.
103291         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
103293 2005-03-22  Jim Meyering  <jim@meyering.net>
103295         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
103297 2005-03-22  Bruno Haible  <bruno@clisp.org>
103299         * config/srclist.txt: Replace target directory 'config' with
103300         'build-aux'.
103301         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
103302         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
103303         ../build-aux/.
103305 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
103307         * modules/chdir-long (Depends-on): Add mempcpy.
103309         * modules/acl, modules/backupfile, modules/c-strtod,
103310         modules/c-strtold, modules/canon-host, modules/canonicalize,
103311         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
103312         modules/exclude, modules/exitfail, modules/file-type,
103313         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
103314         modules/getdate, modules/getline, modules/getpagesize,
103315         modules/getpass, modules/getugroups, modules/group-member,
103316         modules/hard-locale, modules/hash, modules/human, modules/idcache,
103317         modules/inttostr, modules/long-options, modules/makepath,
103318         modules/md5, modules/memcasecmp, modules/memcoll,
103319         modules/modechange, modules/mountlist, modules/path-concat,
103320         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
103321         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
103322         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
103323         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
103324         modules/strftime, modules/strndup, modules/strverscmp,
103325         modules/timespec, modules/unlocked-io, modules/userspec,
103326         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
103327         modules/yesno:
103328         Remove lib_SOURCES line from Makefile.am section, as this is now
103329         done automatically by the corresponding Autoconf macro.
103331 2005-03-21  Jim Meyering  <jim@meyering.net>
103333         Changes imported from coreutils.
103335         * lib/cycle-check.c: Don't include xalloc.h.
103337         * lib/path-concat.c: Don't include assert.h.
103338         (path_concat): Remove assertion that would have triggered
103339         for ABASE starting with more than one slash.
103340         Reported by Andreas Schwab.
103342         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
103343         properly when ABASE is an absolute file name.
103344         Correct the description of this function.
103345         Include <assert.h>.
103346         Add an assertion and a test driver.
103347         This fixes a bug introduced on 2004-07-02.
103348         Andreas Schwab reported the resulting failure of cp --parents:
103349         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
103351 2005-03-21  Jim Meyering  <jim@meyering.net>
103353         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
103354         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
103356 2005-03-21  Jim Meyering  <jim@meyering.net>
103357         and  Paul Eggert  <eggert@cs.ucla.edu>
103359         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
103360         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
103361         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
103362         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
103363         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
103364         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
103365         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
103366         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
103367         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
103368         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
103369         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
103370         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
103371         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
103372         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
103373         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
103374         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
103375         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
103376         for these modules.
103378 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
103380         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
103381         (which shouldn't happen), generate nothing instead of returning 0
103382         immediately, so that nstrftime (NULL, ...) doesn't return 0.
103384 2005-03-16  Bruno Haible  <bruno@clisp.org>
103386         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
103387         HAVE_LONGLONG_64BIT.
103389 2005-03-16  Bruno Haible  <bruno@clisp.org>
103391         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
103392         HAVE_LONGLONG_64BIT.
103394 2005-03-16  Bruno Haible  <bruno@clisp.org>
103396         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
103397         HAVE_LONGLONG_64BIT.
103399 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
103401         * lib/strftime.c (my_strftime): Prepend space to format so that we can
103402         reliably distinguish strftime failure from empty output on POSIX
103403         hosts.
103405 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
103407         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
103408         (iconv_string): Don't guess a size-zero buffer, as that might cause
103409         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
103410         result would be 'too large', where 'too large' is (heuristically)
103411         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
103412         overflow concerns.  This will prevent some unwanted malloc failures
103413         when the inputs are very large.
103415 2005-03-15  Karl Berry  <karl@gnu.org>
103417         * config/srclist.txt (config.rpath): from gettext.
103418         * config/config.rpath: update.
103420 2005-03-15  Bruno Haible  <bruno@clisp.org>
103422         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
103423         to 'negate'.
103425         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
103426         variable.
103428         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
103429         results.
103431 2005-03-14  Simon Josefsson  <jas@extundo.com>
103433         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
103434         <fx@gnu.org>.
103436 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
103438         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
103439         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
103440         intprops.h.
103441         * lib/strtol.c: Likewise.
103443 2005-03-14  Jim Meyering  <jim@meyering.net>
103445         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
103446         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
103447         to be nonzero so that we (and caller) can detect the difference
103448         between a valid zero-length expansion and an error return, even
103449         when the underlying strftime fails before writing anything into
103450         that location.
103452 2005-03-14  Bruno Haible  <bruno@clisp.org>
103454         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
103455         Update from GNU gettext 0.14.3.
103457 2005-03-10  Jim Meyering  <jim@meyering.net>
103459         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
103461 2005-03-10  Jim Meyering  <jim@meyering.net>
103463         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
103464         so that this module works on systems without fchdir.
103466 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
103468         Factor int-properties macros into a single file, except for
103469         glibc-related files.
103470         * lib/intprops.h: New file.
103471         * lib/getloadavg.c: Include it instead of limits.h.
103472         (INT_STRLEN_BOUND): Remove.
103473         * lib/human.c: Include intprops.h.
103474         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
103475         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
103476         302/1000.
103477         * lib/inttostr.h: Include intprops.h instead of limits.h.
103478         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
103479         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
103480         for consistency with intprops.h.
103481         (time_t_is_integer, twos_complement_arithmetic): Use them.
103482         * lib/sig2str.h: Include <signal.h>, intprops.h.
103483         (INT_STRLEN_BOUND): Remove.
103484         * lib/strftime.c (TYPE_SIGNED): Remove.
103485         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
103486         * lib/strtol.c: Adjust comments to match intprops.h.
103487         * lib/userspec.c: Include intprops.h.
103488         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
103489         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
103490         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
103491         instead of rolling our own expressions.
103492         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
103494         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
103495         instead of int.
103496         (my_strftime): Do not mishandle years close to INT_MAX, by doing
103497         the right thing even if adding 1900 would overflow.  Similarly
103498         for tm_mon + 1 and tm_yday + 1.
103499         Make %Y always equivalent to %C%y, and similarly for %G and %g.
103500         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
103501         (DO_SIGNED_NUMBER): New macro.
103502         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
103504 2005-03-07  Bruno Haible  <bruno@clisp.org>
103506         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
103508 2005-03-07  Bruno Haible  <bruno@clisp.org>
103510         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
103512 2005-03-04  Derek R. Price  <derek@ximbiot.com>
103514         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
103515         (func_import): Only replace files via --import when they have actually
103516         changed.
103518 2005-03-03  Derek R. Price  <derek@ximbiot.com>
103520         * m4/mmap-anon.m4: New file.
103521         * m4/pagealign_alloc.m4: New file.
103523 2005-03-03  Derek R. Price  <derek@ximbiot.com>
103524             Bruno Haible  <bruno@clisp.org>
103526         * modules/pagealign_alloc: New file.
103527         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
103529 2005-03-03  Derek R. Price  <derek@ximbiot.com>
103530             Bruno Haible  <bruno@clisp.org>
103532         * lib/pagealign_alloc.h: New file.
103533         * lib/pagealign_alloc.c: New file.
103535 2005-03-03  Bruno Haible  <bruno@clisp.org>
103537         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
103538         Use an all-permissive copyright notice, recommended by RMS.
103540 2005-03-02  Bruno Haible  <bruno@clisp.org>
103542         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
103543         of AIX, the replacement has to be done only after <string.h> is
103544         included, therefore not in config.h. stpncpy.h does the replacement,
103545         and stpncpy.c uses it.
103547 2005-03-02  Bruno Haible  <bruno@clisp.org>
103549         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
103550         stpncpy.c uses it.
103552 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
103554         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
103555         The workaround isn't strictly needed for POSIX conformance, and
103556         it's too much of a pain to configure and maintain.  We'll ask
103557         people to fix their kernels instead.
103558         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
103559         (NANOSLEEP_BUG_WORKAROUND): Remove.
103560         (xnanosleep): Remove the workaround.
103562 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
103564         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
103565         Reported by Derek Price.
103566         (Include): Add "timespec.h".
103568         * modules/xnanosleep (Depends-on): Remove gethrxtime.
103570 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
103572         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
103573         to detect nanosleep bug.
103575 2005-03-01  Bruno Haible  <bruno@clisp.org>
103577         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
103579 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
103581         * modules/gethrxtime: New file.
103582         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
103583         (Depends-on): Add gethrxtime.
103584         (configure.ac): Add gl_XNANOSLEEP.
103585         (Makefile.am): Remove lib_SOURCES line.
103587 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
103589         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
103590         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
103592 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
103594         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
103595         * lib/timespec.h (gettime): Return void, since it always
103596         succeeds now.  All uses changed.
103597         * lib/gettime.c (gettime): Likewise.
103598         [HAVE_NANOTIME]: Prefer nanotime.
103599         Assume gettimeofday succeeds, as POSIX requires.
103600         Assime time () succeeds, since other code already does.
103601         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
103602         (timespec_subtract): Remove.
103603         (NANOSLEEP_BUG_WORKAROUND): New constant.
103604         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
103605         things considerably.  Use it only on GNU/Linux hosts, since the
103606         workaround shouldn't be needed elsewhere.
103608 2005-02-24  Bruno Haible  <bruno@clisp.org>
103610         * modules/gettext (Files): Add m4/glibc2.m4.
103612 2005-02-24  Bruno Haible  <bruno@clisp.org>
103614         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
103615         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
103616         * m4/progtest.m4:
103617         Update from GNU gettext 0.14.2.
103618         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
103620 2005-02-24  Bruno Haible  <bruno@clisp.org>
103622         * lib/localcharset.c: Update from GNU gettext 0.14.2.
103623         * lib/config.charset: Update from GNU gettext 0.14.2.
103625 2005-02-24  Bruno Haible  <bruno@clisp.org>
103627         * lib/gettext.h: Update from GNU gettext 0.14.2.
103629 2005-02-23  Simon Josefsson  <jas@extundo.com>
103631         * m4/iconvme.m4: New file.
103633 2005-02-23  Jim Meyering  <jim@meyering.net>
103635         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
103636         change.
103637         Thanks to Bruno Haible for catching it.
103639 2005-02-22  Simon Josefsson  <jas@extundo.com>
103641         * modules/iconvme: New file.
103643         * MODULES.html.sh: Add iconvme.
103645 2005-02-22  Simon Josefsson  <jas@extundo.com>
103647         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
103649 2005-02-22  Simon Josefsson  <jas@extundo.com>
103651         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
103653 2005-02-22  Jim Meyering  <jim@meyering.net>
103655         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
103656         s/ifndef/ifdef/.
103658 2005-02-20  Neil Conway  <neilc@samurai.com>
103660         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
103661         returned by OSX/Darwin if the specified buffer is not large
103662         enough for the hostname.
103664 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
103666         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
103667         pass it to _help, otherwise the latter coredumps trying to
103668         dereference state.root_argp.
103670 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
103672         * modules/chdir-long (Depends-on): Add memrchr.
103673         * modules/memrchr (Files): Add lib/memrchr.h.
103674         (Include): "memrchr.h".
103676 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
103678         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
103680 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
103682         * lib/memrchr.h: New file.
103683         * lib/chdir-long.c: Include it.
103684         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
103685         Don't bother including stddef.h.
103687 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
103689         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
103690         inclusion.
103691         Include <sys/types.h>, for dev_t.
103692         (ME_DUMMY, ME_REMOTE): Move from here....
103693         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
103694         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
103695         Dmitry V. Levin.
103696         Include mountlist.h first, to test the interface.
103698 2005-01-29  Bruno Haible  <bruno@clisp.org>
103700         * lib/progname.c (program_name): Initialize.
103701         Needed when linking statically on MacOS X.
103703 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
103705         Sync from coreutils.
103706         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
103707         (Depends-on): Add c-strtod.
103708         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
103710 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
103712         Sync from coreutils.
103713         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
103715         Remove files that are specific to coreutils.
103716         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
103718 2005-01-28  Bruno Haible  <bruno@clisp.org>
103720         * modules/javacomp: New file.
103721         * MODULES.html.sh (Java): Add javacomp.
103723 2005-01-28  Bruno Haible  <bruno@clisp.org>
103725         * m4/javacomp.m4: New file, from GNU gettext.
103727 2005-01-28  Bruno Haible  <bruno@clisp.org>
103729         * lib/javacomp.sh.in: New file, from GNU gettext.
103730         * lib/javacomp.h: New file, from GNU gettext.
103731         * lib/javacomp.c: New file, from GNU gettext.
103733 2005-01-26  Simon Josefsson  <jas@extundo.com>
103735         * lib/gai_strerror.c: Use GPL in header.
103737 2005-01-26  Bruno Haible  <bruno@clisp.org>
103739         * modules/javaexec: New file.
103740         * MODULES.html.sh (Java): Add javaexec.
103742 2005-01-26  Bruno Haible  <bruno@clisp.org>
103744         * m4/javaexec.m4: New file, from GNU gettext.
103746 2005-01-26  Bruno Haible  <bruno@clisp.org>
103748         * lib/javaexec.sh.in: New file, from GNU gettext.
103749         * lib/javaexec.h: New file, from GNU gettext.
103750         * lib/javaexec.c: New file, from GNU gettext.
103752 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
103754         * modules/lchown (Depends-on): Remove lchown.h
103756 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
103758         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
103759         must be defined if the header file was not found, in order
103760         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
103762 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
103764         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
103765         initializers for struct pentry_state.
103766         (__argp_error): Check return value of __asprintf
103767         (__argp_failure): Translate error message
103769         * lib/argp-parse.c: Removed braces around the expansion of N_()
103771 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
103773         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
103774         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
103775         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
103776         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
103777         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
103778         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
103779         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
103780         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
103781         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
103782         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
103783         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
103784         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
103785         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
103786         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
103787         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
103788         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
103789         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
103790         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
103791         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
103792         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
103793         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
103794         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
103795         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
103796         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
103797         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
103798         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
103799         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
103800         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
103801         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
103802         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
103803         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
103804         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
103805         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
103806         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
103807         xstrtol.m4, xstrtoumax.m4, yesno.m4:
103808         Use an all-permissive copyright notice, recommended by RMS.
103810 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
103812         * modules/chdir-long (Depends-on): Remove mempcpy.
103814 2005-01-21  Jim Meyering  <jim@meyering.net>
103816         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
103817         same value as for Solaris 9.
103819         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
103820         component length.  This included changing the parameter to be
103821         of type `char *' rather than `char const *'.
103822         * lib/chdir-long.h (chdir_long): Update prototype.
103824         * lib/openat.c (fdopendir, fstatat): New functions.
103825         * lib/openat.h: Include headers required for use of DIR and struct
103826         stat.
103827         [AT_SYMLINK_NOFOLLOW]: Define.
103828         (fdopendir, fstatat): Add prototypes.
103830 2005-01-21  Bruno Haible  <bruno@clisp.org>
103832         * modules/classpath: New file.
103833         * MODULES.html.sh (Java): Add classpath.
103835 2005-01-21  Bruno Haible  <bruno@clisp.org>
103837         * lib/classpath.h: New file, from GNU gettext.
103838         * lib/classpath.c: New file, from GNU gettext.
103840 2005-01-20  Simon Josefsson  <jas@extundo.com>
103842         * modules/version-etc-fsf: New file.
103844 2005-01-20  Simon Josefsson  <jas@extundo.com>
103846         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
103847         * lib/version-etc.c: Remove version_etc_copyright.
103848         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
103849         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
103851 2005-01-20  Simon Josefsson  <jas@extundo.com>
103853         * lib/base64.h (isbase64): Add.
103855         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
103856         using a unsigned prototype, don't inline.
103857         (base64_decode): Use it.
103859 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
103861         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
103862         it.
103864 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
103866         * lib/save-cwd.c (save_cwd): Remove code to support the case
103867         where fchdir is missing or flaky.
103869 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
103871         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
103873 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
103875         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
103876         AC_LIBSOURCES now does this.
103877         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
103878         with new ullong_max module.
103880 2005-01-19  Bruno Haible  <bruno@clisp.org>
103882         * modules/sh-quote: New file.
103883         * MODULES.html.sh (Executing programs): Add sh-quote.
103885 2005-01-19  Bruno Haible  <bruno@clisp.org>
103887         * lib/sh-quote.h: New file, from GNU gettext.
103888         * lib/sh-quote.c: New file, from GNU gettext.
103890 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
103892         Merge from coreutils.
103893         * m4/ullong_max.m4: New file.
103894         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
103895         (gl_MACROS): Assume localeconv exists.
103897 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
103899         Merge changes from coreutils, as described below in several
103900         changelogs dated today.
103902         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
103903         (O_DIRECTORY): Remove; not needed here, since "." must be
103904         a directory.  All uses removed.
103905         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
103906         universal on Suns, and we also need to test for IRIX.
103907         Revamp code to use 'if' rather than '#if'.
103908         Avoid unnecessary comparison of cwd->desc to 0.
103910         * lib/utimens.c (futimens): Robustify the previous patch, by checking
103911         for known valid error numbers rather than observed invalid ones.
103913 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
103915         * modules/ullong_max: New file.
103917         * modules/chdir-long, modules/openat: New files.
103918         * modules/save-cwd (Depends-on): Depend on chdir-long.
103919         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
103921 2005-01-18  Jim Meyering  <jim@meyering.net>
103923         Merge from coreutils.
103924         * m4/chdir-long.m4, m4/openat.m4: New files.
103925         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
103926         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
103927         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
103928         is sane and DOES follow symlinks.  Besides, testing 20 different
103929         systems found no broken chown implementations.
103930         Prompted by a change in rsync's copy of this macro.
103931         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
103933         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
103935         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
103936         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
103937         NULL-means-set-to-current-time semantics.
103938         Remove temporary file immediately, rather than waiting
103939         for configure's at-exit trap code to do it.
103941 2005-01-18  Jim Meyering  <jim@meyering.net>
103943         * lib/version-etc.c (version_etc_copyright): Update copyright date.
103945         * lib/utimens.c (futimens): Account for the fact that futimes
103946         can also fail with errno == ENOSYS or errno == ENOENT.
103947         Patch from Dmitry V. Levin.
103949         Change the name of the robust chdir function from chdir to chdir_long.
103950         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
103951         (restore_cwd): Use chdir_long, not chdir.
103952         * lib/chdir-long.c: Renamed from chdir.c.
103953         * lib/chdir-long.h: Renamed from chdir.h.
103954         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
103955         Hurd.
103957 2005-01-18  Bruno Haible  <bruno@clisp.org>
103959         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
103960         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
103961         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
103962         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
103963         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
103964         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
103965         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
103966         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
103967         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
103968         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
103969         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
103970         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
103971         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
103972         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
103973         Use an all-permissive copyright notice, recommended by RMS.
103975 2005-01-18  Bob Proulx  <bob@proulx.com>
103977         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
103978         simplify offsetof() macro construct to avoid compile failure with
103979         native HP-UX 11.0 ANSI C compiler.
103981 2005-01-17  Bruno Haible  <bruno@clisp.org>
103983         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
103984         redundant because stpncpy.m4 takes care of it.
103986 2005-01-17  Bruno Haible  <bruno@clisp.org>
103988         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
103990 2005-01-17  Bruno Haible  <bruno@clisp.org>
103992         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
103993         used.
103995 2005-01-17  Bruno Haible  <bruno@clisp.org>
103997         * lib/fwriteerror.h (fwriteerror): Change specification to include
103998         fclose.
103999         * lib/fwriteerror.c: Include <stdbool.h>.
104000         (fwriteerror): At the end, close the file stream. Record whether
104001         stdout was already closed.
104003 2005-01-17  Bruno Haible  <bruno@clisp.org>
104005         * lib/execute.c (environ): Declare if needed.
104006         * lib/pipe.c (environ): Likewise.
104007         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
104009 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
104011         * modules/argp: Depend on vsnprintf
104013 2005-01-10  Jim Meyering  <jim@meyering.net>
104015         * modules/closeout (Depends-on): Add atexit.
104017 2005-01-06  Bruno Haible  <bruno@clisp.org>
104019         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
104021 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
104023         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
104024         definitions to be after all include files, to avoid collisions.
104025         Problem reported by Bob Proulx.
104027 2005-01-04  Jim Meyering  <jim@meyering.net>
104029         Changes imported from coreutils.
104030         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
104031         as the mkstemp template, use a temporary directory and an
104032         8.3-friendly template to avoid trouble on systems like DJGPP.
104033         Reported by Juan M. Guerrero via Stepan Kasal.
104034         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
104035         close. Remove the temporary directory right away, rather than waiting
104036         for configure's at-exit trap code to do it.
104037         Suggestion from Stepan Kasal.
104039 2005-01-01  Simon Josefsson  <jas@extundo.com>
104041         * gnulib-tool: Print #include directives when --import'ing.
104043 2004-12-28  Simon Josefsson  <jas@extundo.com>
104045         * tests/test-base64.c: Include required header files.  Remove
104046         unused variables.
104048 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
104050         * modules/error (Depends-on): Remove gettext.
104052 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
104054         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
104055         not needed.  This removes a dependency on the gettext module.
104056         [defined _LIBC]: Do not include <libintl.h>; not needed.
104058 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
104060         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
104061         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
104063 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
104065         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
104066         HAVE_DECL_STRTOLD.
104068 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
104070         * modules/getdate (Depends-on): Remove alloca-opt.
104072 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
104074         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
104076 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
104078         * lib/argp-parse.c: Include <stddef.h>.
104079         (alignof, alignto): New macros.
104080         (parser_init): Don't assume that void * is aligned sufficiently
104081         for struct option.
104083         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
104084         need to extend the stack.
104085         (YYINITDEPTH): New macro, so that the initial stack isn't overly
104086         large.
104088 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
104090         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
104092 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
104094         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
104095         (2004-10-24) change.  Apparently this was a false alarm.
104097         * modules/getdate: Depend on alloca-opt, not alloca.
104099 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
104101         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
104102         Remove now-obsolete comment about AIX.
104103         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
104104         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
104105         (YYMAXDEPTH): New macro.
104107 2004-12-18  Simon Josefsson  <jas@extundo.com>
104109         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
104111 2004-12-18  Bruno Haible  <bruno@clisp.org>
104113         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
104115 2004-12-18  Bruno Haible  <bruno@clisp.org>
104117         * lib/fatal-signal.c (fatal_signals): Make non-const.
104118         (init_fatal_signals): New function.
104119         (uninstall_handlers, install_handlers): Ignore signals that were set to
104120         SIG_IGN.
104121         (at_fatal_signal): Call init_fatal_signals.
104122         (init_fatal_signal_set): Likewise. Ignore signals that were set to
104123         SIG_IGN.
104124         Reported by Paul Eggert.
104126 2004-12-18  Bruno Haible  <bruno@clisp.org>
104128         * doc/alloca.texi: New file.
104129         * doc/alloca-opt.texi: New file.
104131 2004-12-17  Jim Meyering  <jim@meyering.net>
104133         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
104134         Otherwise, install-sh could exit with improper exit status when
104135         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
104137 2004-12-16  Simon Josefsson  <jas@extundo.com>
104139         * tests/test-base64.c: Add license.
104141 2004-12-15  Stepan Kasal  <address@hidden>
104143         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
104145 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
104147         * modules/getcwd (Files): Add m4/d-ino.m4.
104148         Suggested by Mark D. Baushke.
104150 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
104152         * lib/getdate.y (textint): New member "negative".
104153         (time_zone_hhmm): New function.
104154         Expect 14 shift-reduce conflicts, not 13.
104155         (o_colon_minutes): New rule.
104156         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
104157         (yylex): Set the "negative" member of signed numbers.
104159 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
104161         * doc/getdate.texi (Time of day items, Time zone items):
104162         Describe new formats +00:00, UTC+00:00.
104164 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
104166         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
104167         spurious "-l"s.  Problem reported by Stepan Kasal.
104169 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
104171         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
104172         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
104174 2004-12-04  Simon Josefsson  <jas@extundo.com>
104176         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
104177         Vandoorselaere <yoann@prelude-ids.org>.
104179 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
104181         Changes imported from coreutils.
104182         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
104183         exist.
104184         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
104186 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
104188         Changes imported from coreutils.
104189         * lib/hard-locale.c: Assume <locale.h> exists.
104190         Include "strdup.h".
104191         (GLIBC_VERSION): New macro.
104192         (hard_locale): Assume setlocale exists.
104193         Rewrite to avoid #ifdef.
104194         Use strdup rather than malloc + strcpy.
104195         * lib/human.c: Assume <locale.h> exists.
104196         (human_readable): Assume localeconv exists.
104198 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
104200         * modules/hard-locale (Depends-on): Add strdup.
104202 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
104204         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
104205         convert T2, not T.  (Imported from libc.)
104207 2004-11-30  Simon Josefsson  <jas@extundo.com>
104209         * modules/restrict (License): Change to LGPL.
104211 2004-11-30  Simon Josefsson  <jas@extundo.com>
104213         * m4/restrict.m4: Add copyright and copying conditions.
104215 2004-11-30  Simon Josefsson  <jas@extundo.com>
104217         * m4/base64.m4: New file.
104219 2004-11-30  Simon Josefsson  <jas@extundo.com>
104221         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
104222         base64.
104224         * tests/test-base64.c: New file.
104226         * modules/base64: New file.
104228 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
104230         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
104231         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
104233         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
104235 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
104237         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
104238         (__getcwd.c): Don't restore errno; glibc doesn't.
104239         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
104240         first, falling back to our code only if its results look suspicious.
104241         Ensure that the resulting buffer is only as large as necessary.
104243         * lib/readutmp.c: Include readutmp.h first.
104244         Include <errno.h>, since readutmp.h no longer does that.
104245         * lib/readutmp.h: Don't include <errno.h>,
104246         <sys/param.h>, <time.h>; not needed to establish interface.
104247         (errno): Remove decl.
104248         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
104249         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
104250         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
104252 2004-11-28  Simon Josefsson  <jas@extundo.com>
104254         * lib/base64.h, base64.c: New file.
104256 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
104258         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
104260 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
104262         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
104263         (Depends-on): Remove pathmax, same.  Add mempcpy.
104264         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
104265         (Makefile.am): Append getcwd.h to lib_SOURCES.
104266         (Include): Add getcwd.h.
104267         (Maintainer): Change from Jim Meyering to "all, glibc",
104268         since getdate now uses intended-for-glibc code.
104269         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
104270         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
104272 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
104274         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
104275         HP's ANSI C compiler.
104276         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
104277         Declaring int functions causes warnings on some modern systems and
104278         shouldn't be needed to compile on ancient ones.
104279         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
104280         defined.
104282         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
104283         with the following changes.
104284         (__set_errno): Parenthesize properly.
104285         Include <stdbool.h>.
104286         (MIN, MAX, MATCHING_INO): New macros.
104287         (__getcwd): Define with prototype, not K&R form.
104288         Use heuristics to allocate default buffer on stack if possible.
104289         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
104290         behavior, and to avoid the PATH_MAX limit when computing
104291         ../../../../...
104292         Use MATCHING_INO to compare inode number to file.
104293         Check for arithmetic overflow in size calculations.
104294         Fix bug in reallocation of dot array that caused getcwd to fail
104295         on directories nested deeper than 75.
104296         Be more careful about saving errno on error.
104297         Do not use realloc; use only free+malloc, as this is a bit
104298         more flexible and avoids a needless copy operation.
104299         Do not inspect st_dev and st_ino for symbolic links; POSIX
104300         doesn't specify the latter.
104301         Check for closedir errors.
104302         Avoid needless casts.
104303         Use "#ifdef weak_alias" around weak_alias, to be like other
104304         glibc code.
104305         The following changes to getcwd.c have effect only when used in
104306         gnulib; they have no effect inside glibc proper.
104307         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
104308         as alloca isn't used.
104309         (alloca, __alloca): Likewise.
104310         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
104311         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
104312         unconditionally, as gnulib assumes C89 or better.
104313         Do not include <sys/param.h>.
104314         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
104315         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
104316         better.
104317         (NULL) [!defined NULL]: Remove; we assume C89 or better.
104318         Include <dirent.h> in a way that is compatible with modern Autoconf.
104319         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
104320         New macros, if not already defined.
104321         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
104322         Use "_LIBC", not "defined _LIBC", for consistency.
104323         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
104324         a mempcpy module.
104325         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
104326         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
104327         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
104328         credit only to Jim Meyering and adjust the copyright dates.
104329         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
104330         <stdlib.h>, <unistd.h>, "pathmax.h".
104331         Instead, include "xgetcwd.h" (first) and "getcwd.h".
104332         (INITIAL_BUFFER_SIZE): Remove.
104333         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
104335 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
104337         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
104338         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
104339         Use the _ONCE methods, for efficiency.
104340         Check for fcntl.h.  In test program, include <errno.h>
104341         and <fcntl.h> if available.  Remove old K&R cruft from
104342         test program.  Check for common errors in GNU/Linux,
104343         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
104344         don't do AC_LIBOBJ, as that's getcwd.m4's job.
104345         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
104346         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
104347         name accordingly.
104348         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
104349         accommodate new getcwd.c.
104350         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
104351         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
104352         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
104353         that's all we need now.
104355 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
104357         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
104358         argp-parse.c depends on getopt internals, that means we should
104359         always use our getopt, to be on the safe side.
104360         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
104361         order not to spoil the result of an eventual previous invocation
104362         of gl_GETOPT_SUBSTITUTE.
104364 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
104366         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
104367         redefinition warnings. To avoid them, include the defines
104368         in `#if !defined __need_getopt ... #endif'. The only place
104369         where __getopt_argv_const is used is in definitions
104370         of getopt_long and getopt_long_only below, which are as well
104371         protected by `#ifndef __need_getopt'.
104372         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
104373         __need_getopt after including <stdio.h> and <unistd.h> These
104374         headers might have defined it.
104376 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
104378         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
104380 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
104382         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
104383         (futimens): New function, which uses futimes if available.
104384         (futimens, utimens): Support timespec==NULL, with same semantics
104385         as utime and utimens.
104386         * lib/utimens.h (futimens): New decl.
104388 2004-11-23  Jim Meyering  <jim@meyering.net>
104390         * lib/getopt_.h: Remove trailing blanks.
104392 2004-11-23  Jim Meyering  <jim@meyering.net>
104394         * lib/__fpending.c: Add comment.
104396 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
104398         * modules/canonicalize (Depends-on): Add xreadlink.
104399         Problem reported by James Youngman.
104401 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
104403         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
104404         New macros.
104405         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
104406         optopt): Use them instead of invoking ## directly; otherwise, the
104407         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
104409 2004-11-19  Bruno Haible  <bruno@clisp.org>
104411         * lib/strtok_r.c: Move comments from here...
104412         * lib/strtok_r.h: ... to here.
104414 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
104416         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
104417         implementations that mishandle size_t overflow.
104419 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
104421         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
104422         might fail.  Problem reported by Yoann Vandoorselaere.
104423         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
104424         implementations that mishandle size_t overflow.
104426 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
104428         * modules/canon-host (Depends-on): Add strdup.
104430 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
104432         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
104434 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
104436         * lib/canon-host.c: Include "strdup.h".
104437         (canon_host): Use getaddrinfo if available, so that IPv6 works.
104438         Use strdup instead of malloc/strcpy to duplicate strings.
104440         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
104441         (human_space_before_unit): New constant.
104442         * lib/human.c (human_readable): Support it.
104444         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
104445         (xgetcwd): Set errno correctly when failing.
104446         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
104447         the failure is actually due to a PATH_MAX problem.
104449         Further getopt changes to make it more likely that glibc will
104450         buy the changes back.
104451         * lib/getopt.c (POSIXLY_CORRECT): New constant.
104452         (getopt): Use it, so to preserve glibc semantic
104453         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
104454         when compiling for libc.
104455         * lib/getopt_.h (__getopt_argv_const): Bring it back.
104456         (getopt_long, getopt_long_only): Use it.
104458         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
104459         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
104460         (getopt): Argv is now char * const *, as per standard.
104461         (_getopt_internal_r, _getopt_internal): Argv is now char **,
104462         not char *__getopt_argv_const *.
104463         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
104464         _getopt_long_only_r): Likewise.
104465         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
104466         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
104467         _getopt_long_r, _getopt_long_only_r): Likewise.
104468         * lib/getopt_.h (__getopt_argv_const): Remove.
104469         (getopt): Argv is now char * const *, as per standard.
104471         * lib/getdate.y (tORDINAL): New token.
104472         (day, relunit): Allow it for relative times.
104473         (relative_time_table): Use tORDINAL for ordinals.
104475 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
104477         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
104478         Document that "second" isn't allowed as an ordinal number.
104480 2004-11-16  Jim Meyering  <jim@meyering.net>
104482         * modules/closeout (Depends-on): Add fpending.
104484 2004-11-15  Jim Meyering  <jim@meyering.net>
104486         * lib/closeout.c: Include "__fpending.h" once again.
104487         Include <stdbool.h>.
104488         (close_stdout): Don't fail just because stdout was closed initially,
104489         since some programs don't write to stdout in the normal course of
104490         operation (other than --version and --help), and we don't want this
104491         function to make e.g. `touch file >&-' fail.
104492         But do fail if it was closed and someone has tried to write to it.
104493         E.g., `printf foo >&-' must fail.
104495 2004-11-13  Jim Meyering  <jim@meyering.net>
104497         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
104499 2004-11-12  Simon Josefsson  <jas@extundo.com>
104501         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
104502         small doc fix is still pending.
104504 2004-11-11  Simon Josefsson  <jas@extundo.com>
104506         * modules/strtok_r: New file.
104508         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
104509         strtok_r.
104511 2004-11-11  Simon Josefsson  <jas@extundo.com>
104513         * m4/strtok_r.m4: New file.
104515         * m4/getopt.m4: Replace opterr.
104517 2004-11-11  Simon Josefsson  <jas@extundo.com>
104519         * lib/strtok_r.h, strtok_r.c: New file.
104521 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
104523         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
104524         of replacing opterr, getopt, etc.  This should handle the
104525         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
104527 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
104529         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
104530         we can stop lying to compilers about the constness of argv when we
104531         are compiled outside glibc.
104532         (getopt, getopt_long, getopt_long_only): Use it.
104533         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
104534         _getopt_internal, getopt): Likewise.
104535         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
104536         _getopt_long_only_r): Likewise.
104537         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
104538         _getopt_long_r, _getopt_long_only_r): Likewise.
104540         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
104541         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
104542         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
104543         the other external symbols.
104544         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
104545         declaration, since the above renaming now works around collisions.
104547 2004-11-11  Jim Meyering  <jim@meyering.net>
104549         * lib/linebreak.c: Remove trailing blanks.
104550         * lib/alloca_.h: Likewise.
104551         * lib/acosl.c: Likewise.
104552         * lib/euidaccess.c: Likewise.
104553         * lib/allocsa.h: Likewise.
104555 2004-11-10  Simon Josefsson  <jas@extundo.com>
104557         * m4/getaddrinfo.m4: New file.
104559 2004-11-10  Simon Josefsson  <jas@extundo.com>
104561         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
104563 2004-11-10  Simon Josefsson  <jas@extundo.com>
104565         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
104566         getaddrinfo.
104568         * modules/getaddrinfo: New file.
104570 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
104572         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
104574 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
104576         * lib/mktime.c (SHR): New macro, which is a portable
104577         substitute for >> that should work even on Crays.
104578         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
104579         Problem reported by Mark D. Baushke in
104580         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
104581         * lib/getdate.y (SHR): Likewise.
104582         (tm_diff): Use it.
104583         * lib/strftime.c (SHR): Likewise.
104584         (tm_diff): Use it.
104585         * lib/quotearg.c (struct quoting_options): Use unsigned int for
104586         quote_these_too, so that right shifts are well defined.  All uses
104587         changed.
104589 2004-11-10  Jim Meyering  <jim@meyering.net>
104591         Ensure that no close failure goes unreported.
104592         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
104593         return early when it seems there's nothing to flush.
104594         Don't include __fpending.h.
104596 2004-11-10  Jim Meyering  <jim@meyering.net>
104598         * modules/closeout (Depends-on): Remove fpending.
104600 2004-11-10  Jim Meyering  <jim@meyering.net>
104602         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
104604 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
104606         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
104607         gl_FUNC_STRFTIME.
104608         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
104609         and AC_REQUIRE when possible, to avoid duplicate checks.
104610         Check for <wchar.h>.
104612 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
104614         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
104616 2004-11-09  Bruno Haible  <bruno@clisp.org>
104618         * m4/sockpfaf.m4: New file.
104620 2004-11-05  Bruno Haible  <bruno@clisp.org>
104622         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
104623         Reported by Mark D. Baushke <mdb@cvshome.org>.
104625 2004-11-04  Bruno Haible  <bruno@clisp.org>
104627         2004-09-11  Bruno Haible  <bruno@clisp.org>
104628                 * allocsa.valgrind: New file.
104629         2004-02-06  Bruno Haible  <bruno@clisp.org>
104630                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
104631                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
104632                 Reported by Christopher Seip <chris.seip@hp.com>.
104634 2004-11-04  Bruno Haible  <bruno@clisp.org>
104636         * modules/allocsa (Files): Add lib/allocsa.valgrind.
104637         (Makefile.am): Distribute it.
104639 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
104641         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
104642         with errno == ERANGE if the buffer is too small.
104643         Problem reported by Mark D. Baushke.
104645 2004-11-03  Albert Chin  <china@thewrittenword.com>
104646             Paul Eggert  <eggert@cs.ucla.edu>
104648         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
104649         equivalent, substitute $ac_type for equivalent type rather than
104650         blindly using uint32_t *always* which won't work if uint32_t is not
104651         available.  Define _UINT32_T to work around typedef of uint32_t if
104652         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
104653         2.5.1.
104655 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
104657         * m4/jm-macros.m4: Sync from coreutils.
104658         (gl_MACROS): Check for mbrlen, for pathchk.
104659         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
104661 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
104663         * lib/xreadlink.c (MAXSIZE): New macro.
104664         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
104665         size does not exceed MAXSIZE.  Avoid cast.
104666         As suggested by Mark D. Baushke in
104667         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
104668         if readlink fails with buffer size just under MAXSIZE, try again
104669         with MAXSIZE.
104671 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
104673         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
104675 2004-11-02  Derek R. Price  <derek@ximbiot.com>
104676         and  Paul Eggert  <eggert@cs.ucla.edu>
104678         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
104679         (get_date): Overparenthesize to avoid GCC warning.
104681 2004-11-02  Bruno Haible  <bruno@clisp.org>
104683         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
104684         returns void.
104686 2004-11-02  Bruno Haible  <bruno@clisp.org>
104688         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
104689         function returns void.
104691 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
104693         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
104694         fflush_unlocked, flockfile, funlockfile, funlockfile,
104695         fputs_unlocked, putc_unlocked.
104697 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
104699         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
104700         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
104701         already declared.
104703 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
104705         * modules/getdate (Files): Add doc/getdate.texi.
104706         (Depends-on): Add setenv, xalloc.
104708 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
104710         * lib/getdate.y: Add support for TZ="foo" within a date string.
104711         Fix some bugs near time_t boundaries.  Reject dates with
104712         out-of-range components, e.g., "Sept 31".
104713         Include <stdlib.h>, "setenv.h", "xalloc.h".
104714         (ISDIGIT_LOCALE): Remove; unused.
104715         Note that the TZ and time functions used here are not reentrant.
104716         (mktime_ok, get_tz): New functions.
104717         (TZBUFSIZE): New constant.
104718         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
104719         This requires that we sometimes generate our own TZ="XXX..." setting.
104721 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
104723         * doc/getdate.texi: New file, from coreutils with modifications for
104724         the new TZ parsing.
104726 2004-10-27  Derek R. Price  <derek@ximbiot.com>
104728         * lib/mktime.c (not_equal_tm): Remove redundant check.
104730 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
104732         * modules/regex (lib_SOURCES): Add regex.c.
104733         Reported by James Youngman in
104734         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
104736 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
104738         * lib/getdate.y: Use Bison 1.875 features, and some minor
104739         code cleanups.  This change does not affect semantics.
104740         Don't include <stdlib.h>; no longer needed.
104741         Don't include unlocked-io.h; only the "#if TEST" code uses
104742         stdio, and performance isn't crucial there.
104743         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
104744         Bison 1.875 features as described below.
104745         All uses of "PC." replaced by "pc->".
104746         (YYSTYPE): Add a forward declaration.
104747         (yylex, yyerror): Use full prototypes in forward decls.
104748         Use "%pure-parser" rather than obsolescent "%pure_parser".
104749         Use %parse-param and %lex-param instead of obsolescent
104750         YYPARSE_PARAM and YYLEX_PARAM.
104751         (meridian_table, month_and_day_table, time_units_table,
104752         relative_time_table, time_zone_table, military_table,
104753         lookup_zone, lookup_word, get_date):
104754         Use NULL instead of 0 where appropriate.
104755         (to_hour): Avoid abort (), to avoid a dependency on
104756         stdlib.h.
104757         (yyerror, yylex): Now accepts parser_control * arg.
104758         (main) [TEST]: Use '\0' rather than 0 for char.
104760 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
104762         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
104764 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
104766         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
104767         It's now the caller's responsibility to handle the case where
104768         !HAVE_GETPAGESIZE && !defined getpagesize.
104770         * lib/mktime.c (leapyear): Arg is long int, not int.
104772 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
104774         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
104776 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
104778         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
104779         missing.  Problem reported by James Youngman.
104781 2004-10-16  Simon Josefsson  <jas@extundo.com>
104783         * gnulib-tool: Fix comments.  Fix parse problem.
104784         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
104786 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
104788         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
104789         implementation of getopt_long.  Problem reported by Alexander Taler in:
104790         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
104792 2004-10-15  Bruno Haible  <bruno@clisp.org>
104794         * gnulib-tool: Untabify. Initialize supplied_libname.
104795         (func_usage): More homogenous output.
104796         (func_modules_transitive_closure, func_modules_to_filelist,
104797         func_emit_lib_Makefile_am): New functions.
104798         (func_import): New function, extracted from big case statement. Use
104799         func_get_license, func_modules_transitive_closure,
104800         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
104801         opt_lgpl. Don't use test -a, as it's not portable.
104802         (func_create_testdir): Use func_modules_transitive_closure,
104803         func_modules_to_filelist, func_emit_lib_Makefile_am.
104805 2004-10-15  Bruno Haible  <bruno@clisp.org>
104807         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
104809 2004-10-15  Bruno Haible  <bruno@clisp.org>
104811         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
104812         the portions belonging to each module.
104813         Suggested by Derek Robert Price <derek@ximbiot.com>.
104815 2004-10-12  Simon Josefsson  <jas@extundo.com>
104817         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
104818         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
104819         to real functions.
104821 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
104823         * modules/vsnprintf: New file.
104825 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
104827         * m4/vsnprintf.m4: New file.
104829 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
104831         * lib/vsnprintf.h: New file.
104832         * lib/vsnprintf.c: New file.
104834 2004-10-11  Bruno Haible  <bruno@clisp.org>
104836         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
104837         vsnprintf.
104839 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
104841         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
104843 2004-10-07  Bruno Haible  <bruno@clisp.org>
104845         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
104846         fits into the provided buffer.
104848 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
104850         * lib/diacrit.c, diacrit.h: Add GPL notice.
104852         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
104853         notice.
104854         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
104855         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
104856         This avoids a potential constant-folding bug.
104858 2004-10-05  Bruno Haible  <bruno@clisp.org>
104860         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
104861         for the declaration of strsep.
104863 2004-10-05  Bruno Haible  <bruno@clisp.org>
104865         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
104867 2004-10-04  Simon Josefsson  <jas@extundo.com>
104869         * modules/memmem: New file.
104870         * tests/test-memmem.c: New file.
104871         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
104873 2004-10-04  Simon Josefsson  <jas@extundo.com>
104875         * m4/memmem.m4: New file.
104877 2004-10-04  Simon Josefsson  <jas@extundo.com>
104879         * lib/memmem.h: New file.
104880         * lib/memmem.c: New file, taken from glibc.
104882 2004-10-04  Simon Josefsson  <jas@extundo.com>
104884         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
104885         '#ifdef USE_UNLOCKED_IO'.
104887 2004-10-04  Simon Josefsson  <jas@extundo.com>
104889         * config/srclist.txt: Add memmem from glibc.
104891 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
104893         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
104895         * modules/argmatch, modules/argp, modules/closeout, modules/error,
104896         modules/exclude, modules/getdate, modules/getline,
104897         modules/getndelim2, modules/getpass, modules/getpass-gnu,
104898         modules/getusershell, modules/linebuffer, modules/md5,
104899         modules/mountlist, modules/posixtm, modules/readtokens,
104900         modules/readutmp, modules/regex, modules/sha1,
104901         modules/version-etc, modules/yesno:
104902         Remove dependency on unlocked-io.
104904 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
104906         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
104908         * m4/unlocked-io.m4: Add copyright notice.
104909         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
104911 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
104913         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
104914         * lib/xmalloc.c (xmemdup): Likewise.
104915         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
104916         XFREE): Remove these long-obsolescent macros.
104917         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
104918         * lib/xstrdup.c: Remove.
104920         * lib/regex.c (re_comp): Cast gettext return value to char *,
104921         Problem reported by Martin Neitzel via Mark D. Baushke.
104923 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
104925         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
104926         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
104927         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
104928         regex.c, sha1.c, version-etc.c, yesno.c:
104929         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
104930         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
104931         the includer's responsibility.
104933         Sync from coreutils.
104935         * lib/modechange.c (mode_compile): Don't decrement a pointer that
104936         points to the start of a string, as the C Standard says the
104937         resulting behavior is undefined.
104939         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
104940         simple -> simple_backups, numbered_existing ->
104941         numbered_existing_backups, numbered -> numbered_backups
104942         to avoid shadowing problems.  All uses changed.
104943         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
104944         * lib/backupfile.c (check_extension, numbered_backup):
104945         Rename locals to avoid shadowing 'basename'.
104946         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
104947         once.
104949         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
104950         * lib/.cvsignore: Add getopt.h.
104952 2004-10-04  Bruno Haible  <bruno@clisp.org>
104954         * modules/README: New file.
104955         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
104956         not a module.
104958 2004-10-02  Jim Meyering  <jim@meyering.net>
104960         * lib/dirfd.h, getpagesize.h: Add copyright notice.
104962 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
104964         * modules/strsep: New file.
104966 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
104968         * m4/strsep.m4: New file.
104970 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
104972         * lib/strsep.h: New file.
104973         * lib/strsep.c: New file.
104975 2004-10-01  Simon Josefsson  <jas@extundo.com>
104977         * lib/snprintf.c (snprintf): Handle size==0.
104979 2004-10-01  Simon Josefsson  <jas@extundo.com>
104980             Bruno Haible  <bruno@clisp.org>
104982         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
104983         (snprintf): Declare 'args'.
104985 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
104987         * lib/snprintf.c: Remove comments as to why each header is needed.
104989 2004-10-01  Bruno Haible  <bruno@clisp.org>
104991         * MODULES.html.sh: Add strsep.
104993 2004-09-30  Simon Josefsson  <jas@extundo.com>
104995         * modules/snprintf: New file.
104997 2004-09-30  Simon Josefsson  <jas@extundo.com>
104999         * m4/snprintf.m4: New file.
105001 2004-09-30  Simon Josefsson  <jas@extundo.com>
105003         * lib/snprintf.h, lib/snprintf.c: New files.
105005 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
105007         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
105008         (hol_entry_help): Never translate an empty string.
105009         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
105010         * lib/argp.h (OPTION_NO_TRANS): New option.
105012 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
105014         * modules/argp (Maintainer): Replace Simon Josefsson
105015         by Sergey Poznyakoff.
105017 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
105019         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
105020         changes merged back into glibc.
105022 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
105024         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
105026 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
105028         * lib/xvasprintf.c: Include xalloc.h.
105029         (xvasprintf): Use xalloc_die, not xmalloc_die.
105031 2004-09-29  Bruno Haible  <bruno@clisp.org>
105033         * modules/alloca-opt: New file, derived from modules/alloca.
105034         * modules/allocsa: Depend on alloca-opt instead of alloca.
105035         * modules/setenv: Likewise.
105036         * modules/vasnprintf: Likewise.
105037         * MODULES.html.sh: Add alloca-opt.
105039 2004-09-28  Simon Josefsson  <jas@extundo.com>
105041         * gnulib-tool: New parameter --lgpl, to asseert that modules are
105042         LGPL, and to replace license template from GPL to LGPL.
105044 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
105046         * modules/dummy: Change license to LGPL.
105048 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
105050         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
105052 2004-09-24  Simon Josefsson  <jas@extundo.com>
105054         * modules/minmax (License): Change from GPL to LGPL.
105056 2004-09-23  Simon Josefsson  <jas@extundo.com>
105058         * gnulib-tool (--import): Typo.
105060 2004-09-23  Simon Josefsson  <jas@extundo.com>
105062         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
105064 2004-09-22  Bruno Haible  <bruno@clisp.org>
105066         * modules/*: Add 'License' field.
105067         * gnulib-tool: Accept --extract-license option.
105068         (func_get_license): New function.
105070 2004-09-21  Bruno Haible  <bruno@clisp.org>
105072         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
105073         Reported by Simon Josefsson.
105075 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
105077         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
105078         gl_AC_TYPE_LONG_LONG.
105080 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
105082         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
105084 2004-09-18  Simon Josefsson  <jas@extundo.com>
105085         and  Paul Eggert  <eggert@cs.ucla.edu>
105087         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
105088         calls with autoreconf.  Define GL_LIB.
105090 2004-09-14  Karl Berry  <karl@gnu.org>
105092         * config/srclist.txt: unsync setenv.c, sigh.
105094 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
105096         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
105097         Problem reported by Bruno Haible in:
105098         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
105100 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
105102         * config/srclist.txt: Comment out argp-pvh.c.
105104 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
105106         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
105107         in case some system header has #define'd it.  Problem reported by
105108         Soeren D. Schulze in
105109         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
105111 2004-09-09  Karl Berry  <karl@gnu.org>
105113         * regex.[ch]: delete from the root.  These were supposed to be
105114                 synced with emacs cvs, but this has not happened for about
105115                 a year, and anyway nothing else uses emacs regex.[ch].
105116                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
105117                 lib/regex[.ch] is untouched.
105119 2004-09-09  Bruno Haible  <bruno@clisp.org>
105121         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
105123 2004-09-09  Bruno Haible  <bruno@clisp.org>
105125         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
105126         modifications.
105127         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
105129 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
105131         * modules/xvasprintf: New file.
105132         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
105134 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
105136         * lib/xvasprintf.h: New file.
105137         * lib/xvasprintf.c: New file.
105138         * lib/xasprintf.c: New file.
105140 2004-09-08  Bruno Haible  <bruno@clisp.org>
105142         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
105144 2004-09-08  Bruno Haible  <bruno@clisp.org>
105146         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
105147         length is > INT_MAX.
105148         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
105149         more.
105151 2004-09-08  Bruno Haible  <bruno@clisp.org>
105153         * lib/stdint_.h: New file, taken from GNU clisp.
105155 2004-09-08  Bruno Haible  <bruno@clisp.org>
105156             Oskar Liljeblad  <oskar@osk.mine.nu>
105158         * modules/stdint: New file.
105159         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
105161 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
105163         Import from coreutils.
105164         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
105165         strings on unbounded length.  alloca's performance benefits aren't
105166         that important here.
105167         (V_STRDUP): Remove.
105168         (parse_with_separator): New function, with most of the internals
105169         of the old parse_user_spec.  Allow user to omit both user and group,
105170         for compatibility with FreeBSD.
105171         Clone only the user name, not the entire spec.
105172         Do not set *uid, *gid unless entirely successful.
105173         Avoid memory leak in some failing cases.
105174         Fix regression for USER.GROUP reported by Dmitry V. Levin in
105175         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
105176         (parse_user_spec): Rewrite to use parse_with_separator.
105178 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
105180         * modules/userspec: Don't depend on alloca.
105182 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
105184         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
105186 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
105188         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
105189         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
105190         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
105192 2004-08-16  Simon Josefsson  <jas@extundo.com>
105194         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
105195         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
105196         Add --dry-run for --import.
105197         Let user provided command line parameters override configure.ac
105198         settings.
105200 2004-08-12  Simon Josefsson  <jas@extundo.com>
105202         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
105203         as discussed with Paul Eggert in threads rooted at
105204         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
105205         and
105206         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
105207         Before, the test was empty, and relied on ELIDE_CODE in source
105208         code.)
105209         (gl_PREREQ_GETOPT): New macro.
105210         (gl_GETOPT): Use them.
105212 2004-08-12  Simon Josefsson  <jas@extundo.com>
105214         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
105215         * lib/getopt_.h: Renamed from getopt.h.
105217 2004-08-12  Simon Josefsson  <jas@extundo.com>
105219         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
105220         Change default library name from libfoo to libgnu.
105221         Now, if you have a configure.ac that says:
105222                 gl_SOURCE_BASE(gl)
105223                 gl_M4_BASE(gl/m4)
105224                 gl_MODULES(error getopt etcetera)
105225                 gl_INIT
105226         you can import all you need by running:
105227                 ../gnulib/gnulib-tool --import
105229         * modules/getopt (Files): Rename getopt.h to getopt_.h.
105230         (Makefile.am): Rewrite, use logic from argz.
105231         (Include): Use <getopt.h> instead of "getopt.h".
105233 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
105235         * modules/argp (Files): Add m4/unlocked-io.m4.
105236         (Depends-on): Add extensions.
105238 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
105240         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
105241         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
105242         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
105243         Check for program_invocation_name, program_invocation_short_name,
105244         flockfile, funlockfile, features.h, _getopt_long_only_r.
105246 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
105248         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
105249         its complicated substitute.
105250         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
105251         and program_invocation_name.
105252         (__argp_basename) [!_LIBC]: Remove; the only use was
105253         replaced by its body.
105254         (__argp_short_program_name): Change condition from
105255         !defined __argp_short_program_name to
105256         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
105257         to match argp-namefrob.h.
105258         (__argp_failure): Don't assume strerror_r returns char *.
105259         * lib/argp-parse.c (N_): Define unconditionally.
105260         (argp_default_options): Fill out initializers with 0 to avoid
105261         gcc warnings.
105263 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
105265         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
105266         getopt1.c.
105268 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
105270         Merge from coreutils.
105272         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
105274         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
105275         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
105277 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
105279         Merge from coreutils.
105281         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
105282         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
105283         for Reliant Unix 5.43.
105285         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
105286         (union fooround): Use uintmax_t, not long int.
105287         The rest is a merge from libc:
105288         [defined _LIBC]: Include <shlib-compat.h>.
105289         (_obstack) [defined _LIBC]: Remove after 2.3.4.
105291         * lib/settime.c (settime): Recode to avoid warning with
105292         Sun Forte C 6U2.
105294         * lib/strverscmp.c: Convert to UTF-8.
105296 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
105298         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
105299         m4/uintmax_t.m4.
105301 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
105303         * modules/xalloc-die: New file.
105304         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
105306         * modules/md5 (Files): Add m4/uint32_t.m4.
105307         * modules/sha1: Renamed from modules/sha.
105308         (Files):
105309         Rename lib/sha.h to lib/sha1.h.
105310         Rename lib/sha.c to lib/sha1.c.
105311         Rename m4/sha.m4 to m4/sha1.m4.
105312         (lib_SOURCES): Likewise.
105313         (configure.ac): Rename gl_SHA to gl_SHA1.
105314         (Include): sha.h -> sha1.h.
105316 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
105318         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
105319         * m4/sha1.m4: Renamed from sha.m4.
105320         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
105322 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
105324         * lib/obstack.h (obstack_empty_p):
105325         Don't assume that chunk->contents is suitably aligned.
105326         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
105327         Likewise. Problem reported by Benno in
105328         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
105330         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
105331         readable.  This could be improved further but it'd take some work.
105333 2004-08-08  Simon Josefsson  <jas@extundo.com>
105335         * modules/xgethostname (Depends-on): Remove exit and error (not
105336         used).
105338         * modules/getpass-gnu: Add getpass.h.
105339         (Depends-on): Add stdbool.
105340         * modules/getpass: Add getpass.h.
105342 2004-08-08  Simon Josefsson  <jas@extundo.com>
105344         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
105345         Check getpass declaration.
105347 2004-08-08  Simon Josefsson  <jas@extundo.com>
105349         * lib/xgethostname.c: Don't include error.h (not used).
105351         * lib/getpass.h: Add.
105352         * lib/getpass.c: Include getpass.h first.
105354 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
105356         * lib/xalloc-die.c: New file.
105357         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
105358         All uses removed.
105359         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
105360         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
105361         xalloc-die.c.
105362         (_, N_, xalloc_die): Move to xalloc-die.c.
105363         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
105364         so that we needn't mess with xalloc_msg_memory_exhausted.
105366         * lib/sha1.h: Renamed from sha.h.
105367         (SHA1_H): Renamed from _SHA_H.
105368         (sha1_ctx): Renamed from sha_ctx.
105369         (sha1_init_ctx): Renamed from sha_init_ctx.
105370         (sha1_process_block): Renamed from sha_process_block.
105371         (sha1_process_bytes): Renamed from sha_process_bytes.
105372         (sha1_finish_ctx): Renamed from sha_finish_ctx.
105373         (sha1_read_ctx): Renamed from sha_read_ctx.
105374         (sha1_stream): Renamed from sha_stream.
105375         (sha1_buffer): Renamed from sha_buffer.
105376         * lib/sha1.c: Likewise; renamed from sha.c.
105377         Do not include <sys/types.h>.
105378         Include <stddef.h> rather than <stdlib.h>.
105380 2004-08-08  Bruno Haible  <bruno@clisp.org>
105382         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
105383         FILESYSTEM_PREFIX_LEN.
105384         * lib/progreloc.c: Likewise.
105385         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
105387 2004-08-06  Simon Josefsson  <jas@extundo.com>
105389         * modules/progname (Depends-on): Don't depend on stdbool.
105391 2004-08-06  Simon Josefsson  <jas@extundo.com>
105393         * modules/getsubopt: New file.
105394         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
105395         getsubopt.
105397 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
105399         More merge from coreutils.
105401         * m4/utimens.m4, m4/utimecmp.m4: New files.
105402         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
105403         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
105404         prereq.m4, sha.m4: Import changes from coreutils.
105406 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
105408         More merge from coreutils.
105409         * modules/raise, modules/readtokens0, modules/utimens:
105410         * modules/utimecmp, module/xnanosleep: New files.
105411         * modules/strftime: Add lib/strftime.h.
105412         Change include from <time.h> to "strftime.h".
105413         * modules/yesno: Add lib/yesno.h.
105414         * modules/backupfile: Remove lib/addext.c.
105415         * modules/euidaccess: Add stat-macros.h.
105416         * modules/canonicalize, modules/euidaccess,
105417         modules/filemode, modules/lchown, modules/makepath,
105418         modules/rmdir, modules/stat: Likewise.
105420 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
105422         Merge from tar.
105423         * lib/argp-help.c (make_hol, hol_append): Don't assume that
105424         SIZE_MAX is a valid preprocessor constant.
105425         (__argp_basename): Change from "#ifndef _LIBC"
105426         to "#ifndef __argp_short_program_name", so that
105427         we don't compile these functions for tar.
105429         More merges from coreutils.
105430         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
105431         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
105432         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
105433         * lib/addext.c: Remove; no longer needed.
105434         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
105435         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
105436         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
105437         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
105438         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
105439         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
105440         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
105441         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
105442         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
105443         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
105444         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
105445         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
105446         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
105447         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
105448         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
105449         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
105450         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
105451         Import changes from coreutils.
105453 2004-08-05  Simon Josefsson  <jas@extundo.com>
105455         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
105457 2004-08-05  Simon Josefsson  <jas@extundo.com>
105459         * m4/getsubopt.m4: New file.
105461 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
105463         Merge from coreutils.
105465         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
105466         * m4/getcwd-path-max.m4: New files.
105468         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
105469         FILESYSTEM_PREFIX_LEN ->
105470         FILE_SYSTEM_PREFIX_LEN.
105471         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
105472         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
105473         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
105474         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
105476         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
105477         prerequisite modules now handle the DOS stuff.
105478         Don't check for unistd.h.
105480 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
105482         Merge from coreutils.
105484         * lib/.gdb-history: Remove; this doesn't belong here.
105486         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
105487         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
105488         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
105489         * lib/getcwd.c: New files.
105491         * lib/dirname.h: Include <stdbool.h>.
105492         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
105493         for consistency with POSIX terminology.  All uses changed.
105494         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
105495         (strip_trailing_slashes): Use bool for booleans.
105496         * lib/stripslash.c (strip_trailing_slashes): Likewise.
105498         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
105499         sometimes returns a positive errno value even when it succeeds.
105500         (print_errno_message) [!LIBC]: Fall back on strerror if
105501         __strerror_r fails.
105503         * lib/path-concat.c (mempcpy): Don't define if a system header defines
105504         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
105505         (longest_relative_suffix): New function.
105506         (path_concat): Use it.  Assume first argument is not NULL.
105507         Port to DOS.  Omit redundant separators.
105508         Report an error instead of returning NULL.
105509         Use mempcpy instead of memcpy.
105510         (xpath_concat): Remove: not declared or used.
105512         * lib/same.h: Include <stdbool.h>
105513         (same_name): Return bool, not int.
105514         * lib/same.c (same_name): Likewise.
105515         (errno): Don't declare; we assume C89 or better now.
105517         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
105518         if not already defined.
105520         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
105521         * lib/dup-safer.c (errno): Likewise.
105523 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
105525         Merge from coreutils.
105526         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
105527         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
105528         * modules/path-concat: Don't depend on strdup.
105530 2004-08-03  Simon Josefsson  <jas@extundo.com>
105532         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
105533         * lib/progname.h: Don't include stdbool.h.
105535 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
105537         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
105538         * MODULES.html.sh (func_all_modules): Remove fatal.
105540 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
105542         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
105544 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
105546         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
105547         working.
105549 2004-08-02  Simon Josefsson  <jas@extundo.com>
105551         * lib/getsubopt.h: New file, with comments from Bruno Haible.
105552         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
105553         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
105555 2004-08-01  Simon Josefsson  <jas@extundo.com>
105557         * lib/xgetdomainname.c: Include stdlib.h, for free().
105559 2004-07-19  Bruno Haible  <bruno@clisp.org>
105561         * MODULES.html.sh (func_all_modules): Add dummy.
105563 2004-07-16  Simon Josefsson  <jas@extundo.com>
105565         * modules/dummy: New file.
105567 2004-07-16  Simon Josefsson  <jas@extundo.com>
105569         * lib/dummy.c: New file.
105571 2004-07-16  Bruno Haible  <bruno@clisp.org>
105573         * lib/backupfile.h: Add extern "C" for C++.
105574         * lib/closeout.h: Likewise.
105575         * lib/copy-file.h: Likewise.
105576         * lib/findprog.h: Likewise.
105577         * lib/full-write.h: Likewise.
105578         * lib/pathname.h: Likewise.
105579         * lib/progname.h: Likewise.
105580         * lib/stpcpy.h: Likewise.
105581         * lib/stpncpy.h: Likewise.
105582         * lib/strcase.h: Likewise.
105583         * lib/strstr.h: Likewise.
105584         * lib/xalloc.h: Likewise.
105586         * lib/mbswidth.h: Add extern "C" for C++.
105587         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
105589 2004-07-13  Robert Millan  <robertmh@gnu.org>
105591         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
105593 2004-07-09  Simon Josefsson  <jas@extundo.com>
105595         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
105596         failed without this.)
105598 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
105600         * modules/chown (Files): Add lib/fchown-stub.c, since
105601         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
105603 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
105605         * lib/fchown-stub.c: New file.
105607 2004-06-24  Jim Meyering  <jim@meyering.net>
105609         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
105611 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
105613         * modules/argz: Omit "#include".
105615         * MODULES.html.sh (func_all_modules): Add calloc, to match
105616         2004-06-01 addition of calloc module.
105618 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
105620         * m4/argz.m4: New file, which is autoupdated from libtool.
105622 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
105624         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
105625         libtool.
105627 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
105629         * config/srclist-update: Don't insist on "USA." before the
105630         close-comment, as libtool omits the period and puts the */ on a
105631         separate line.
105632         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
105633         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
105635 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
105637         * modules/argz: New file.
105638         * MODULES.html.sh (func_all_modules): Add argz.
105640 2004-06-12  Jim Meyering  <jim@meyering.net>
105641         and  Paul Eggert  <eggert@cs.ucla.edu>
105643         * modules/hash (Files): Add lib/xalloc.h.
105644         * modules/pipe (Depends-on): Add wait-process.
105645         * modules/stat (Depends-on): Add xalloc.
105646         * modules/userspec (Files): Add lib/userspec.h.
105647         * modules/xstrto
105649         Upgrade from gettext-0.13.
105650         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
105651         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
105652         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
105654 2004-06-10  Jim Meyering  <jim@meyering.net>
105656         * lib/calloc.c: New file.
105658 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
105660         * lib/getdate.y (yylex): Allow space between sign and number.
105661         Problem reported by Dan Jacobson.
105663 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
105665         Merge from coreutils CVS.
105667         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
105668         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
105669         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
105670         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
105671         xstrtol.m4: Fix copyright date and/or serial number.
105673         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
105674         See if we need an fchown replacement.
105675         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
105676         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
105677         and use the replacement function if we detect either defect.
105679         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
105680         gl_UTIMECMP.
105682 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
105683         and  Jim Meyering  <jim@meyering.net>
105685         Merge from coreutils CVS.
105687         * lib/stat-macros.h: New file, with contents from file-type.h
105688         and coreutils' system.h.
105689         * lib/file-type.c: Include "stat-macros.h".
105690         * lib/file-type.h (file_type): Move all macro definitions to new file,
105691         stat-macros.h.
105693         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
105694         Wrap old code with this conditional.
105695         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
105696         function that does not dereference symlinks.
105697         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
105699         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
105700         dependency problems.
105701         (xreadlink): Accept new arg SIZE, for efficiency.
105702         All decls and uses changed.
105703         * lib/xreadlink.h: Include <stddef.h>, for size_t.
105705         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
105706         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
105708         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
105709         sysexits.h.
105711 2004-06-01  Jim Meyering  <jim@meyering.net>
105713         * m4/calloc.m4: New file.
105715 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
105717         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
105718         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
105719         Also, fix a typo in a diagnostic.
105721 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
105723         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
105724         or AC_FUNC_REALLOC.
105726 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
105728         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
105729         macros to be defined.
105730         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
105731         the allocator returns NULL because the requested size is zero.
105733 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
105735         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
105736         var.  Add comment explaining why libc still defines it.  This
105737         merges the following patch from glibc:
105738         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
105740 2004-05-20  Andreas Schwab  <schwab@suse.de>
105742         * m4/free.m4: Replace free if it not known to work, not the other
105743         way round.
105745 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
105747         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
105748         present in glibc since revision 1.1 of this file.
105749         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
105750         obstack_alignment_mask, obstack_alloc, obstack_base,
105751         obstack_blank, obstack_blank_fast, obstack_chunk_size,
105752         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
105753         obstack_grow0, obstack_init, obstack_int_grow,
105754         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
105755         obstack_next_free, obstack_object_size, obstack_ptr_grow,
105756         obstack_ptr_grow_fast, obstack_room): Remove declarations of
105757         nonexistent functions.
105759 2004-05-18  Karl Berry  <karl@gnu.org>
105761         * config/srclist.txt: break link for vasnprintf.c.
105763 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
105765         Port obstack to the AS/400, where pointers are 16 bytes wide and
105766         you cannot cast an integer to a valid pointer.  This patch is
105767         currently waiting to be integrated into glibc; see
105768         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
105770         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
105771         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
105772         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
105773         (struct obstack): temp member is now a union of a pointer and
105774         an integer, instead of an integer.  All integer uses changed.
105775         This does not affect the physical layout of struct obstack,
105776         except on hosts (like the AS/400) where the size or alignment of
105777         void * is greater than that of ptrdiff_t.
105778         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
105779         __STDC__)]: Store temporary in pointer member of union, not
105780         integer member.
105781         * lib/obstack.c: Include <stddef.h>, for offsetof.
105782         (struct fooalign): Remove; it doesn't need a name.
105783         (union fooround): Change double to long double, and add void *.
105784         (DEFAULT_ALIGNMENT): Use offsetof to compute.
105785         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
105786         not a macro.  Hence the values are always int; so remove all
105787         casts-to-int in uses.
105789 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
105791         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
105792         we can get this patch merged into glibc.
105794 2004-05-17  Derek R. Price  <derek@ximbiot.com>
105795             Paul Eggert  <eggert@cs.ucla.edu>
105797         * m4/argp: Depend on alloca.
105799 2004-05-17  Derek R. Price  <derek@ximbiot.com>
105800             Paul Eggert  <eggert@cs.ucla.edu>
105802         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
105803         freecoding.
105805 2004-05-17  Bruno Haible  <bruno@clisp.org>
105807         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
105808         precision that consists of a '.' followed by an empty digit string.
105809         Patch by Tor Lillqvist <tml@iki.fi>.
105811 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
105813         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
105814         for backward compatibility with older code.  We need our own
105815         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
105816         it under some other name, and our alloca.h will define it.
105818 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
105819             Derek Price  <derek@ximbiot.com>
105821         * lib/alloca.c: Include <alloca.h>, to get our interface.
105822         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
105823         include <alloca.h> first.  Use C89 prototype for alloca; this
105824         requires including <stddef.h> for size_t.  Use extern "C" if C++.
105825         Use #elif for simplicity, since we can assume C89 now.
105826         Don't try to source the system alloca.h since it will not be found
105827         and to prevent recursively including its replacement.
105828         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
105829         * lib/regex.c: Likewise.
105831 2004-05-16  Derek Price  <derek@ximbiot.com>
105832             Paul Eggert  <eggert@cs.ucla.edu>
105834         getline cleanup.  This changes the getndelim2 API: both order of
105835         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
105836         no delimiter).
105838         * lib/getline.c: Don't include stddef.h or stdio.h, since our
105839         interface does that.
105840         (getline): Always use getdelim, so that we don't have two
105841         copies of this code.
105842         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
105843         if available.
105844         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
105845         (GETNDELIM2_MAXIMUM): New macro.
105846         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
105847         instead of the old practice of delim2==0.  All callers changed.
105848         Return -1 on overflow, instead of returning junk.
105849         Do not set *linesize unless allocation succeeds.
105850         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
105851         that we include sys/types.h.
105852         * lib/getnline.h: Likewise.
105853         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
105854         (getndelim2): Reorder arguments.
105855         * lib/getnline.c (getnline, getndelim):
105856         Don't discard the NMAX argument.
105857         (getnline): Invoke getndelim, to avoid code duplication.
105858         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
105859         of (size_t) -1 by callers of the getnline family.
105861 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
105863         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
105864         Check for gettimeofday.
105865         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
105866         Check for settimeofday, stime.
105868 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
105870         * lib/nanosleep.c (suspended): Change its type from int to
105871         sig_atomic_t volatile.
105872         (first_call): Make it private to rpl_nanosleep, and have it
105873         be zero initially as that's a bit faster.
105874         (my_usleep): Round up fractional times instead of truncating them,
105875         as this is the usual meaning for 'sleep'.
105877         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
105878         doesn't work.
105879         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
105880         (ENOSYS): Define if not defined.
105881         (settime): Fall back on stime if it exists and settimeofday fails.
105882         But don't bother with fallbacks if a method fails with errno == EPERM.
105884 2004-05-11  Jim Meyering  <jim@meyering.net>
105886         Prior to this change, the save_cwd caller required read access to the
105887         current directory on most systems (ones with the fchdir function).
105889         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
105890         fails, try write-only, and finally, resort to using xgetcwd.
105892 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
105894         * lib/obstack.c, obstack.h: Import changes from libc.
105896 2004-04-28  Bruno Haible  <bruno@clisp.org>
105898         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
105899         also implicitly appends .exe to executables.
105900         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
105901         accepts Windows pathnames.
105902         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
105903         Treat Cygwin like Windows, since it now accepts Windows pathnames.
105904         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
105905         Treat Cygwin like Windows, since it now accepts Windows pathnames.
105906         Reported by Derek Robert Price <derek@ximbiot.com>.
105908 2004-04-21  Karl Berry  <karl@gnu.org>
105910         * config/srclist.txt (localcharset.c): break sync.
105912 2004-04-20  Paul Eggert  <eggert@twinsun.com>
105914         * m4/host-os.m4: Add a copyright notice.
105916 2004-04-20  Jim Meyering  <jim@meyering.net>
105918         Change UTILS_ to gl_ in AC_DEFINE'd names.
105919         Change utils_- and jm_-prefixed variables, too.
105920         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
105921         UTILS_FUNC_MKDIR_TRAILING_SLASH.
105922         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
105924         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
105925         Don't emit trailing blanks.
105926         Also rename jm_-prefixed variables to have gl_ prefix.
105928         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
105929         Also rename jm_-prefixed variables to have gl_ prefix.
105931         * m4/jm-macros.m4: Reflect the renamings.
105932         * m4/prereq.m4: Likewise.
105934 2004-04-20  Jim Meyering  <jim@meyering.net>
105936         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
105937         memory.
105939 2004-04-20  Jim Meyering  <jim@meyering.net>
105940             Bruno Haible  <bruno@clisp.org>
105942         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
105943         memory when realloc fails.
105945 2004-04-19  Jim Meyering  <jim@meyering.net>
105947         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
105948         now that readutmp.c may call `free (0)'.
105950 2004-04-19  Bruno Haible  <bruno@clisp.org>
105952         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
105953         * m4/inttypes_h.m4: Likewise.
105954         * m4/stdint_h.m4: Likewise.
105955         * m4/intmax_t.m4: Likewise.
105956         * m4/uintmax_t.m4: Likewise.
105958 2004-04-18  Jim Meyering  <jim@meyering.net>
105960         * m4/prereq.m4: Don't forbid jm_ prefix.
105962         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
105963         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
105964         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
105965         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
105966         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
105967         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
105968         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
105969         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
105970         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
105971         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
105972         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
105973         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
105974         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
105975         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
105976         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
105977         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
105978         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
105979         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
105980         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
105982 2004-04-18  Jim Meyering  <jim@meyering.net>
105984         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
105985         failure, don't leak memory and do call END_UTMP_ENT.
105987 2004-04-16  Jim Meyering  <jim@meyering.net>
105989         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
105990         coreutils' stat program.
105991         (gl_PREREQ): Don't require jm_PREREQ_STAT.
105993 2004-04-11  Paul Eggert  <eggert@twinsun.com>
105995         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
105996         C89.
105997         (CHAR_BIT): Remove, since we assume C89.
105998         Include <stdint.h> if available, as per current Autoconf CVS advice.
106000 2004-03-31  Jim Meyering  <jim@meyering.net>
106002         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
106003         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
106004         * m4/xalloc.m4: Likewise.
106006 2004-03-30  Paul Eggert  <eggert@twinsun.com>
106008         Merge from coreutils.
106010         * m4/inttostr.m4: New file.
106011         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
106012         Require AM_STDBOOL_H and gl_TIMESPEC instead.
106013         Require gl_CLOCK_TIME.
106014         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
106016 2004-03-30  Paul Eggert  <eggert@twinsun.com>
106018         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
106019         not bool, to be more consistent with Unix conventions.
106020         Suggested by Bruno Haible.
106022         Merge from coreutils.
106024         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
106025         * lib/umaxtostr.c: New files.
106027         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
106028         the usual <time.h> dance.
106029         (get_date): Change signature to support fractional time stamps.
106030         All callers changed.
106031         * lib/getdate.y: Include "getdate.h" first, as we can now
106032         assume C89 and don't need to worry about 'const'.
106033         Similarly, include "unlocked-io.h" near start, not in middle.
106034         Include <limits.h>.
106035         (textint.value): Use long int rather than int.
106036         (textint.digits): Use size_t rather than int.
106037         (BILLION, LOG10_BILLION): New constants.
106038         (parser_control): New member rel_ns.  Members day_ordinal,
106039         time_zone, month, day, hour, minutes, rel_year, rel_month,
106040         rel_day, rel_hour, rel_minutes, rel_seconds
106041         are now long int, not int.  Member seconds is now struct timespec,
106042         not int.  New member timespec_seen.  Members dates_seen, days_seen,
106043         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
106044         not int.
106045         (%union.intval): Now long int, not int.
106046         New member timespec.
106047         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
106048         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
106049         (spec): Now is a timespec or an item list.
106050         (timespec, items): New nonterminals.
106051         (time, rel, relunit, number, get_date):
106052         Add support for fractional seconds.
106053         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
106054         (gmtime, localtime, mktime): Remove decls; not needed with C89.
106055         (to_hour): First arg is now long int, not int.
106056         (to_year): Returns long int, not int.
106057         Don't treat year -70 like 70.
106058         (tm_diff): Returns long int, not int.
106059         (lookup_word): Use bool instead of int when appropriate.
106060         (yylex): Use size_t for count, not int.
106061         Detect overflow when parsing large integer constants.
106062         Add support for fractions.
106063         (get_date): Make pointers 'const' if possible.
106064         Use more-portable code to detect integer overflow.
106065         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
106066         Don't use ctime; it's not reliable if the year has >4 digits.
106068         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
106069         This is for compatibility with BSD.
106071         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
106072         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
106073         From coreutils' system.h.
106075         * lib/userspec.c: Don't include "posixver.h".
106076         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
106077         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
106078         compatible extension.  Simplify code by removing a boolean int
106079         that was always nonzero if a string was nonnull.
106081 2004-03-30  Jim Meyering  <jim@meyering.net>
106083         Merge from coreutils.
106085         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
106086         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
106087         on some systems one must include <grp.h> before it.
106088         Reported by Christian Krackowizer.
106090 2004-03-30  Jim Meyering  <jim@meyering.net>
106092         Merge from coreutils.
106094         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
106096         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
106097         an empty input stream.
106099         * lib/readtokens.c: Include <stdbool.h>.
106100         (readtoken): Use `size_t' rather than int/long.
106101         All callers adjusted.
106102         Use `bool' rather than `int' where appropriate.
106103         Use memset rather than an explicit loop.
106104         Use x2nrealloc rather than xrealloc.
106105         Allow the use of `\0' as a delimiter.
106106         (readtokens): Likewise.
106107         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
106109 2004-03-30  Jim Meyering  <jim@meyering.net>
106111         * m4/realloc.m4: Remove file, since now it does no more than
106112         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
106113         the `configure.ac' section of module/realloc.
106114         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
106116 2004-03-30  Bruno Haible  <bruno@clisp.org>
106118         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
106119         nonnull.
106121 2004-03-29  Paul Eggert  <eggert@twinsun.com>
106123         Merge changes to getloadavg.c from coreutils and Emacs.
106125         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
106126         Define to an expression, not to the empty string.
106127         Include cloexec.h and xalloc.h.
106128         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
106129         Use set_cloexec_flag rather than rolling our own.
106130         * lib/cloexec.c, lib/cloexec.h: New files.
106132 2004-03-29  Paul Eggert  <eggert@twinsun.com>
106134         * m4/cloexec.m4: New file.
106136 2004-03-18  Paul Eggert  <eggert@twinsun.com>
106138         * lib/getopt.h: Sync with libc CVS.
106140 2004-03-18  Paul Eggert  <eggert@twinsun.com>
106141             Bruno Haible  <bruno@clisp.org>
106143         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
106144         mbswidth.
106146 2004-03-18  Paul Eggert  <eggert@twinsun.com>
106147             Bruno Haible  <bruno@clisp.org>
106149         * lib/mbswidth.h: Include <wchar.h> only if
106150         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
106151         <wchar.h>.
106152         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
106154 2004-03-09  Paul Eggert  <eggert@twinsun.com>
106156         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
106157         Sync with libc CVS.
106158         * lib/getopt_int.h: New file, also synced from libc.
106160 2004-03-09  Paul Eggert  <eggert@twinsun.com>
106162         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
106163         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
106164         Bring back getopt.c, getopt.h, getopt1.c.
106166 2004-03-07  Paul Eggert  <eggert@twinsun.com>
106168         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
106169         All uses changed.  Check for sa_sigaction member; this fixes
106170         a bug first reported by Jason Andrade in
106171         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
106173 2004-03-07  Paul Eggert  <eggert@twinsun.com>
106175         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
106176         '#if' expressions.  Unlike the code it replaces, it does not
106177         depend on (defined _SC_PAGESIZE).  However, it does depend on
106178         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
106179         first reported by Jason Andrade in
106180         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
106182 2004-02-25  Simon Josefsson  <jas@extundo.com>
106184         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
106186 2004-02-25  Simon Josefsson  <jas@extundo.com>
106188         * lib/strdup.h: New file.
106189         * lib/strdup.c: Include it.
106190         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
106191         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
106193 2004-02-23  Karl Berry  <karl@gnu.org>
106195         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
106196         (from fencepost.gnu.org:/gd/gnuorg).
106198 2004-02-23  Karl Berry  <karl@gnu.org>
106200         * config/srclistvars.sh (GNUORG) [karl]: redefine.
106201         * config/srclist.txt: add maintain/standards documents.
106203 2004-02-18  Bruno Haible  <bruno@clisp.org>
106205         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
106206         Reported by Derek Robert Price <derek@ximbiot.com>.
106208 2004-02-16  Karl Berry  <karl@gnu.org>
106210         * config/mkinstalldirs, install-sh: update from automake.
106212 2004-02-06  Karl Berry  <karl@gnu.org>
106214         * m4/po.m4: update from gettext 0.14.1.
106216 2004-02-06  Karl Berry  <karl@gnu.org>
106218         * lib/config.charset: update from gettext 0.14.1.
106220 2004-02-05  Paul Eggert  <eggert@twinsun.com>
106222         Add comments and code, prompted by suggestions from Bruno Haible
106223         for sh-quote.
106224         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
106225         describing the enum quoting_style values.
106226         * lib/quotearg.c (quotearg_alloc): New function.
106227         (quotearg_buffer_restyled): Treat lone { and } as special.
106228         Treat = as special.  Work around bug with older shells
106229         that "see" a '\' that is really the 2nd byte of a multibyte char.
106230         Quote empty string with shell_quoting_style.
106232 2004-02-03  Bruno Haible  <bruno@clisp.org>
106234         * m4/pipe.m4: New file, from GNU gettext.
106236 2004-02-03  Bruno Haible  <bruno@clisp.org>
106238         * lib/pipe.h: New file, from GNU gettext.
106239         * lib/pipe.c: New file, from GNU gettext.
106241 2004-01-27  Bruno Haible  <bruno@clisp.org>
106243         * m4/execute.m4: New file, from GNU gettext.
106245 2004-01-27  Bruno Haible  <bruno@clisp.org>
106247         * lib/execute.h: New file, from GNU gettext.
106248         * lib/execute.c: New file, from GNU gettext.
106249         * lib/w32spawn.h: New file, from GNU gettext.
106251 2004-01-24  Paul Eggert  <eggert@twinsun.com>
106253         Merge from diffutils.
106255         * lib/file-type.c (file_type): Add typed memory objects.
106256         * lib/file-type.h (S_TYPEISTMO): New macro.
106258         * lib/c-stack.h (c_stack_action): Remove argv argument.
106259         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
106260         (die): Don't calculate message unless segv_action returns.
106261         (get_stack_location, min_address_from_argv, max_address_from_argv,
106262         volatile stack_base, volatile_stack_size): Remove.
106263         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
106264         that every segmentation violation is a stack overflow.  (Ouch!)
106265         See Debian bug 136249 (still outstanding) for more info about why
106266         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
106268 2004-01-24  Paul Eggert  <eggert@twinsun.com>
106270         Exit-status fix from coreutils.
106272         Use exit_failure consistently in place of EXIT_FAILURE,
106273         so that program exit statuses are consistent on failure.
106275         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
106276         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
106277         * lib/argmatch.h: Comment fix to match the above.
106278         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
106279         Now a macro referring to exit_failure, instead of a separate
106280         variable.  Include "exitfail.h" to get it.
106281         * lib/xstrtol.h: Include "exitfail.h".
106282         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
106284         * lib/long-options.c (parse_long_options): Use prototype
106285         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
106286         for clarity.
106288 2004-01-21  Jim Meyering  <jim@meyering.net>
106290         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
106291         so as not to conflict with a different-sized __mktime_internal
106292         function in GNU libc.
106293         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
106294         Problem building statically-linked `ls' reported by Michael Brunnbauer.
106296 2004-01-20  Karl Berry  <karl@gnu.org>
106298         * config/config.guess: update from config.
106300         * config/srclistvars.sh: GNUWWWLICENSES for karl.
106302 2004-01-20  Bruno Haible  <bruno@clisp.org>
106304         Safer stack allocation.
106305         * lib/setenv.c: Include allocsa.h.
106306         (alloca): Remove fallback definition.
106307         (freea): Remove macro.
106308         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
106309         instead of freea.
106311 2004-01-20  Bruno Haible  <bruno@clisp.org>
106313         * m4/eealloc.m4: New file, from GNU gettext.
106315 2004-01-20  Bruno Haible  <bruno@clisp.org>
106317         * m4/allocsa.m4: New file, from GNU gettext.
106319 2004-01-20  Bruno Haible  <bruno@clisp.org>
106321         * lib/xallocsa.h: New file, from GNU gettext.
106322         * lib/xallocsa.c: New file, from GNU gettext.
106324 2004-01-20  Bruno Haible  <bruno@clisp.org>
106326         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
106328 2004-01-20  Bruno Haible  <bruno@clisp.org>
106330         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
106331         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
106332         specially.
106334 2004-01-20  Bruno Haible  <bruno@clisp.org>
106336         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
106337         patch.
106339 2004-01-20  Bruno Haible  <bruno@clisp.org>
106341         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
106343 2004-01-20  Bruno Haible  <bruno@clisp.org>
106345         * lib/eealloc.h: New file.
106347 2004-01-20  Bruno Haible  <bruno@clisp.org>
106349         * lib/binary-io.h: Avoid warnings on Cygwin.
106351 2004-01-20  Bruno Haible  <bruno@clisp.org>
106353         * lib/allocsa.h: New file, from GNU gettext.
106354         * lib/allocsa.c: New file, from GNU gettext.
106356 2004-01-18  Karl Berry  <karl@gnu.org>
106358         * doc/gpl.texi, doc/lgpl.texi: new files.
106360 2004-01-18  Karl Berry  <karl@gnu.org>
106362         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
106363         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
106365 2004-01-15  Paul Eggert  <eggert@twinsun.com>
106367         Merge from coreutils.
106369         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
106370         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
106371         (gl_DEFAULT_POSIX2_VERSION): Move
106372         the documentation from 'configure' into 'config.hin',
106373         so that 'configure --help' isn't burdened by it and
106374         we don't have to worry about its formatting there.
106375         Reword the documentation so that it's more succinct
106376         and can be run together into a single paragraph.
106377         * m4/same.m4 (gl_SAME): Check for pathconf.
106379 2004-01-15  Paul Eggert  <eggert@twinsun.com>
106381         Merge from coreutils.
106383         * lib/posixver.c: Include posixver.h.
106385         * lib/same.c: Include <stdbool.h>, <limits.h>.
106386         (_POSIX_NAME_MAX): Define if not defined.
106387         (MIN): New macro.
106388         (same_name): If file names are silently truncated, report
106389         that the file names are the same if they are the same after
106390         the silent truncation.
106392         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
106393         conversion function.
106394         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
106395         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
106396         longer needed.
106398 2004-01-15  Jim Meyering  <jim@meyering.net>
106400         Merge from coreutils.
106402         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
106403         if no library is required.
106404         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
106405         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
106406         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
106407         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
106408         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
106409         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
106410         value, $ac_cv_search_crypt, if it's "none required".
106411         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
106412         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
106413         not gl_FUNC_GETLOADAVG.
106414         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
106415         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
106417 2004-01-15  Jim Meyering  <jim@meyering.net>
106419         Merge from coreutils.
106421         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
106422         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
106423         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
106425         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
106426         optional configure-time default.
106428         * lib/version-etc.c (version_etc_copyright): Update copyright date.
106430         * lib/xreadlink.c (xreadlink): Correct outdated comment.
106432 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
106434         Merge from coreutils.
106436         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
106437         value, $ac_cv_search_nanosleep, if it's "none required".
106439 2004-01-14  Paul Eggert  <eggert@twinsun.com>
106441         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
106442         with like-named macro in fnmatch.c.
106443         (EXT): Use an internal constant instead.
106445         Merge fnmatch patches from glibc.
106446         * lib/fnmatch.c (mbsinit): Remove define.
106447         Add libc_hidden_ver (__fnmatch, fnmatch).
106448         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
106449         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
106451 2004-01-14  Karl Berry  <karl@gnu.org>
106453         * config/install-sh: update from automake.
106455 2004-01-13  Karl Berry  <karl@gnu.org>
106457         * config/install-sh: update from automake.
106459 2004-01-09  Karl Berry  <karl@gnu.org>
106461         * config/install-sh: update from automake.
106463 2004-01-05  Karl Berry  <karl@gnu.org>
106465         * config/config.{sub,guess}: update from config.
106467 2003-12-31  Karl Berry  <karl@gnu.org>
106469         * config/depcomp: update from automake.
106471 2003-12-14  Karl Berry  <karl@gnu.org>
106473         * lib/config.charset: update from gettext-runtime.
106475 2003-12-03  Paul Eggert  <eggert@twinsun.com>
106477         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
106478         Bug reported by Alfred M. Szmidt.
106480 2003-12-03  Bruno Haible  <bruno@clisp.org>
106482         * m4/gettext.m4: Upgrade from gettext-0.13.
106483         * m4/po.m4: Upgrade from gettext-0.13.
106484         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
106485         * m4/intmax.m4: New file, from gettext-0.13.
106486         * m4/printf-posix.m4: New file, from gettext-0.13.
106488 2003-11-29  Karl Berry  <karl@gnu.org>
106490         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
106492 2003-11-25  Paul Eggert  <eggert@twinsun.com>
106493             Bruno Haible  <bruno@clisp.org>
106495         * lib/printf-parse.h: Don't include sys/types.h.
106496         (ARG_NONE): New macro.
106497         (char_directive): Change type of *arg_index fields to size_t.
106498         * lib/printf-parse.c: Don't include sys/types.h.
106499         (SSIZE_MAX): Remove macro.
106500         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
106501         Remove unnecessary overflow check.
106502         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
106503         fields.
106505 2003-11-25  Bruno Haible  <bruno@clisp.org>
106507         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
106509 2003-11-25  Bruno Haible  <bruno@clisp.org>
106511         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
106512         gt_TYPE_SSIZE_T.
106514 2003-11-24  Paul Eggert  <eggert@twinsun.com>
106516         * modules/alloca: Remove dependency on xalloc.
106518 2003-11-24  Paul Eggert  <eggert@twinsun.com>
106520         * lib/alloca.c: Remove dependency on xalloc module.
106521         (xalloc_die): Remove.
106522         (memory_full) [!defined emacs]: New macro.
106523         [!defined emacs]: Don't include xalloc.h.
106524         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
106525         address arithmetic overflows.  Change datatypes a bit to avoid
106526         unnecessary casts.
106528 2003-11-22  Jim Meyering  <jim@meyering.net>
106530         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
106531         s/size/size_t/.
106533 2003-11-21  Karl Berry  <karl@gnu.org>
106535         * config/config.{sub,guess}: update from config.
106537 2003-11-18  Karl Berry  <karl@gnu.org>
106539         * config/config.{sub,guess}: update from config.
106541         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
106543 2003-11-17  Paul Eggert  <eggert@twinsun.com>
106545         * README: Mention that S+T cannot overflow if S is the size of
106546         an existing object and T is sufficiently small.
106548 2003-11-17  Jim Meyering  <jim@meyering.net>
106550         On systems without utime and without a utimes function capable of
106551         dealing with a NULL struct utimbuf* argument, this utime replacement
106552         could -- in unusual circumstances -- leak a file descriptor.
106553         * lib/utime.c: Include <unistd.h> and <errno.h>.
106554         (utime_null): Be sure to close `fd' and to preserve errno.
106555         Reported by Geoff Collyer via Arnold Robbins.
106557 2003-11-17  Bruno Haible  <bruno@clisp.org>
106559         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
106560         (Depends-on): Add xsize.
106562 2003-11-17  Bruno Haible  <bruno@clisp.org>
106564         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
106566 2003-11-17  Bruno Haible  <bruno@clisp.org>
106568         * lib/vasnprintf.c (alloca): Remove fallback definition.
106569         (freea): Remove definition.
106570         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
106571         Reported by Paul Eggert.
106573 2003-11-16  Paul Eggert  <eggert@twinsun.com>
106574             Bruno Haible  <bruno@clisp.org>
106576         Protect against address arithmetic overflow.
106577         * lib/printf-args.h: Include stddef.h.
106578         (arguments): Change type of field 'count' to size_t.
106579         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
106580         'unsigned int' where appropriate.
106581         * lib/printf-parse.h: Include sys/types.h.
106582         (char_directive): Change type of *arg_index fields to ssize_t.
106583         (char_directives): Change type of fields 'count', max_*_length to
106584         size_t.
106585         * lib/printf-parse.c: Include sys/types.h and xsize.h.
106586         (SSIZE_MAX): Define fallback value.
106587         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
106588         instead of 'int' where appropriate. Check a_allocated, d_allocated
106589         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
106590         * lib/vasnprintf.c: Include xsize.h.
106591         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
106592         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
106593         overflow. Avoid wraparound when converting a width or precision from
106594         decimal to binary.
106596 2003-11-16  Bruno Haible  <bruno@clisp.org>
106598         Update from GNU gettext.
106599         * lib/printf-parse.c: Generalize to it can be compiled for wide
106600         strings.
106601         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
106602         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
106603         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
106604         SNPRINTF): New macros.
106605         Don't include <alloca.h> if the file is used inside libintl.
106606         (local_wcslen): New function, for Solaris 2.5.1.
106607         (VASNPRINTF): Use it instead of wcslen.
106609 2003-11-16  Bruno Haible  <bruno@clisp.org>
106611         * lib/xsize.h (xmax): New function.
106612         (xsum, xsum3, xsum4): Declare as "pure" functions.
106614 2003-11-12  Paul Eggert  <eggert@twinsun.com>
106616         * modules/xalloc (Files): Undo latest change, since xalloc.h
106617         no longer needs SIZE_MAX or PTRDIFF_MAX.
106619 2003-11-12  Paul Eggert  <eggert@twinsun.com>
106621         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
106622         gl_PTRDIFF_MAX.
106624 2003-11-12  Paul Eggert  <eggert@twinsun.com>
106626         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
106627         "return", to pacify some unknown compiler.  Problem reported
106628         by Joerg Schilling.
106630 2003-11-12  Paul Eggert  <eggert@twinsun.com>
106632         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
106633         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
106634         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
106635         heuristic is just as accurate as far as we know, and it removes a
106636         dependency on size_max.m4 and ptrdiff_max.m4.
106638 2003-11-11  Bruno Haible  <bruno@clisp.org>
106640         * modules/xsize (Files): Add m4/size_max.m4.
106641         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
106643 2003-11-11  Bruno Haible  <bruno@clisp.org>
106645         * m4/size_max.m4: New file.
106646         * m4/ptrdiff_max.m4: New file.
106647         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
106648         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
106649         (gl_XALLOC): Invoke it.
106651 2003-11-11  Bruno Haible  <bruno@clisp.org>
106653         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
106654         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
106655         defined.
106657 2003-11-10  Paul Eggert  <eggert@twinsun.com>
106659         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
106660         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
106661         rejected some allocations of exactly SIZE_MAX - 2 bytes.
106662         From Bruno Haible.
106663         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
106664         not (size_t) -1, since it's defined here.
106666 2003-11-09  Karl Berry  <karl@gnu.org>
106668         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
106670 2003-11-06  Paul Eggert  <eggert@twinsun.com>
106672         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
106673         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
106674         Reject sizes of exactly SIZE_MAX bytes.
106675         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
106676         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
106678 2003-11-05  Bruno Haible  <bruno@clisp.org>
106680         * lib/xsize.h: Include limits.h, to avoid a possible collision with
106681         SIZE_MAX defined in <limits.h> on Solaris.
106683 2003-11-04  Jim Meyering  <jim@meyering.net>
106685         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
106686         variable names, rather than @VAR@.
106687         * modules/poll: Likewise.
106689 2003-11-04  Bruno Haible  <bruno@clisp.org>
106691         * modules/xsize: New file.
106692         * modules/linebreak: Depend on xsize.
106693         * MODULES.html.sh (func_all_modules): Add xsize.
106695 2003-11-04  Bruno Haible  <bruno@clisp.org>
106697         * m4/xsize.m4: New file.
106699 2003-11-04  Bruno Haible  <bruno@clisp.org>
106701         * lib/xsize.h: New file.
106702         * lib/linebreak.c: Include xsize.h.
106703         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
106704         argument for overflow.
106705         Suggested by Paul Eggert.
106707 2003-11-03  Karl Berry  <karl@gnu.org>
106709         * config/config.{guess,sub}: update from config.
106711 2003-11-03  Jim Meyering  <jim@meyering.net>
106713         * modules/userspec (lib_SOURCES): Add userspec.h.
106714         (Include): Add "userspec.h".
106715         Improve description.
106717 2003-11-03  Jim Meyering  <jim@meyering.net>
106719         * lib/userspec.c: Include "userspec.h".
106720         * lib/userspec.h: New file.
106722 2003-11-03  Bruno Haible  <bruno@clisp.org>
106724         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
106726 2003-11-03  Bruno Haible  <bruno@clisp.org>
106728         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
106729         available, to avoid (extremely rare) race condition.
106730         Suggested by Paul Eggert.
106732 2003-11-02  Karl Berry  <karl@gnu.org>
106734         * config/srclist.txt (vasprintf.c): sync broken, sigh.
106736 2003-10-31  Paul Eggert  <eggert@twinsun.com>
106738         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
106739         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
106740         (read_filesystem_list): Set and use me_type_malloced.
106741         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
106742         whatever the type happens to be), for brevity and consistency.
106743         Check for size calculation overflow on Alphas running OSF/1.
106745 2003-10-31  Jim Meyering  <jim@meyering.net>
106747         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
106749         * lib/linebuffer.c: Include <string.h> for declaration of memset.
106751 2003-10-30  Paul Eggert  <eggert@twinsun.com>
106752             Bruno Haible  <bruno@clisp.org>
106754         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
106755         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
106757 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
106759         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
106760         netbsd*-gnu*.  Suggested by Robert Millan.
106762 2003-10-29  Paul Eggert  <eggert@twinsun.com>
106764         * modules/group-member: Depend on stdbool.
106766 2003-10-29  Paul Eggert  <eggert@twinsun.com>
106768         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
106770 2003-10-29  Paul Eggert  <eggert@twinsun.com>
106772         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
106773         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
106774         after the 'gnu' in these cases.  This fixes some bugs in the
106775         previous change, and is based on suggestions by Robert Millan.
106777 2003-10-29  Paul Eggert  <eggert@twinsun.com>
106779         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
106780         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
106781         no longer needed.
106782         * lib/quotearg.c (quotearg_n_options): Use it.
106783         * lib/group-member.c: Include <stdbool.h>.
106784         (free_group_info): Arg is now const *; don't free arg.
106785         (get_group_info): Now returns bool and accepts struct group_info *,
106786         rather than returning a malloc'ed struct group_info *.
106787         All uses changed.  Check for overflow in internal size calculation.
106789         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
106790         rather than xmalloc/xrealloc.
106791         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
106792         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
106793         conformance bug: the old code used a pointer after freeing the
106794         storage that it addressed.
106795         * lib/hash.c (hash_initialize): Simplify the code by using
106796         xalloc_oversized rather than doing it by hand.
106797         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
106798         the buffer preserved.  Use free and xmalloc instead.
106799         * lib/quotearg.c (quotearg_n_options): Likewise.
106800         Use a simpler test for size overflow.  Don't use xalloc_oversized
106801         because unsigned int might be wider than size_t (!); this suggests
106802         that we should switch from unsigned int to size_t for slot numbers.
106804 2003-10-28  Paul Eggert  <eggert@twinsun.com>
106806         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
106807         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
106808         NetBSD kernels.  Requested by Richard Stallman.
106810 2003-10-27  Paul Eggert  <eggert@twinsun.com>
106812         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
106813         to allocate the returned structure.  Do not allocate a subarray,
106814         as x2nrealloc will do that.
106815         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
106816         instead of xnrealloc.
106817         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
106819 2003-10-27  Bruno Haible  <bruno@clisp.org>
106821         * lib/stdbool_.h: Better support for BeOS.
106823 2003-10-26  Paul Eggert  <eggert@twinsun.com>
106825         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
106826         now uses inline.
106828 2003-10-26  Paul Eggert  <eggert@twinsun.com>
106830         * lib/xalloc.h (xalloc_oversized): New static inline function, for
106831         callers that want to do their own size-overflow checking.  Include
106832         <stdbool.h>, since xalloc_oversized returns bool.
106833         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
106834         to use xalloc_oversized.
106836         Add two functions x2realloc, x2nrealloc, for programs that grow
106837         arrays dynamically by doubling their sizes.
106838         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
106839         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
106840         New functions.
106842         Port to C99 semantics for 'inline' of external functions.
106843         Bug reported by Bruno Haible.
106844         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
106845         with the old contents of xnmalloc.
106846         (xnmalloc, xmalloc): Use it.
106847         (xnrealloc_inline): New static inline function,
106848         with the old contents of xnrealloc.
106849         (xnrealloc, xrealloc): Use it.
106851         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
106852         that.
106854 2003-10-26  Karl Berry  <karl@gnu.org>
106856         * config/srclist.txt (COPYING.DOC): no longer available from
106857         /gd/gnuorg; don't know where the ultimate source is.
106859 2003-10-25  Paul Eggert  <eggert@twinsun.com>
106861         Fix several address-calculation bugs in the hash modules,
106862         plus some minor code cleanup.
106864         * lib/hash.h: Include <stdbool.h>, for bool.
106865         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
106866         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
106867         hash_get_n_entries, hash_get_max_bucket_length,
106868         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
106869         hash_rehash): Use size_t rather than unsigned.
106870         * lib/hash.c (struct hash_table, hash_get_n_buckets,
106871         hash_get_n_buckets_used, hash_get_n_entries,
106872         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
106873         hash_get_entries, hash_do_for_each, hash_string, is_prime,
106874         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
106875         Likewise.
106876         (SIZE_MAX): Define if not defined.
106877         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
106878         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
106879         hash_print):
106880         Use const * when possible.
106881         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
106882         (check_tuning): Fix bug: if tuning parameters were very close to
106883         0 or 1, rounding errors could have caused subscript violations.
106884         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
106885         (hash_initialize): Add 'fail:' label
106886         to free table and return NULL, and use it to simplify code.
106887         Use calloc rather than clearing the storage ourself.
106888         (hash_initialize, hash_rehash): Check for arithmetic overflow in
106889         buffer size calculations.
106890         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
106891         Include <stddef.h>, for size_t.
106892         * lib/hash-pjw.c (hash_pjw): Likewise.
106893         Switch to method described by Bruno Haible.
106894         Include <limits.h>, for CHAR_BIT.
106895         (SIZE_BITS): New macro.
106897 2003-10-23  Paul Eggert  <eggert@twinsun.com>
106899         * m4/getline.m4 (AM_FUNC_GETLINE):
106900         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
106901         hosts.  Problem reported by Derek Robert Price in
106902         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
106903         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
106904         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
106906 2003-10-21  Paul Eggert  <eggert@twinsun.com>
106908         * lib/getndelim2.c (getndelim2): When size calculation overflows,
106909         ceiling the allocation at NMAX bytes rather than silently
106910         discarding input bytes before NMAX is reached.  This makes
106911         a difference only if NMAX exceeds SIZE_MAX / 2.
106913         * lib/obstack.c: Merge from glibc.
106914         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
106915         Add libc_hidden_def (_obstack_newchunk).
106916         (_obstack_free) [! defined _LIBC]: Remove.
106917         [defined _LIBC]: Make a strong alias from obstack_free, rather than
106918         a clone of the function body.
106919         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
106920         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
106922         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
106923         glibc.
106924         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
106925         arg to memcpy.
106927         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
106928         (obstack_ptr_grow_fast, obstack_int_grow_fast):
106929         Don't use lvalue casts, as GCC plans to remove support for them
106930         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
106931         was also present in the non-GCC version, indicating that this
106932         code had always been buggy and had never been widely used.
106933         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
106934         Use the fast variant of each macro, rather than copying the
106935         definiens of the fast variant; that way, we'll be more likely to
106936         catch future bugs in the fast variants.
106938 2003-10-20  Bruno Haible  <bruno@clisp.org>
106940         * modules/wait-process: New file.
106941         * MODULES.html.sh (func_all_modules): Add wait-process.
106943 2003-10-20  Bruno Haible  <bruno@clisp.org>
106945         * m4/wait-process.m4: New file.
106947 2003-10-20  Bruno Haible  <bruno@clisp.org>
106949         * lib/wait-process.h: New file, from GNU gettext.
106950         * lib/wait-process.c: New file, from GNU gettext.
106952 2003-10-19  Jim Meyering  <jim@meyering.net>
106954         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
106955         HPUX 10.20.
106957 2003-10-18  Karl Berry  <karl@gnu.org>
106959         * config/config.guess: update from config.
106961 2003-10-16  Paul Eggert  <eggert@twinsun.com>
106963         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
106964         (getgroups): First arg is int, not size_t.
106965         Don't let 'free' mangle errno.
106967 2003-10-16  Paul Eggert  <eggert@twinsun.com>
106969         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
106971 2003-10-16  Karl Berry  <karl@gnu.org>
106973         * config/config.{guess,sub}: update from config.
106975 2003-10-16  Jim Meyering  <jim@meyering.net>
106977         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
106978         memcpy.
106980 2003-10-15  Paul Eggert  <eggert@twinsun.com>
106982         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
106983         (SIZE_MAX): Remove.
106984         (new_exclude, add_exclude_file): Initial size no longer needs to
106985         be a power of 2.
106986         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
106987         our own address arithmetic overflow checking.
106989         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
106990         (fnmatch): Do not alloca more than 2000 wide characters;
106991         instead, use malloc for large buffers.
106992         Check for address arithmetic overflow, and return -1
106993         with errno set to ENOMEM in that case.
106994         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
106995         (NEW_PATTERN): Do not alloca more than 8000 bytes;
106996         instead, return -1.  Check for address arithmetic overflow.
106998 2003-10-14  Paul Eggert  <eggert@twinsun.com>
107000         Handle invalid suffixes and overflow independently, so that
107001         callers can treat them independently as needed.  Fix some bugs in
107002         suffix handling, e.g., "100k@" was not diagnosed as an invalid
107003         suffix for a human-readable blocksize.  The major caller-visible
107004         change is the addition of a new
107005         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
107006         that both overflow and suffix chars were found.
107008         * lib/human.c (humblock): Don't check separately for invalid suffix
107009         char; that is xstrtoumax's job (now that its bug is fixed).
107010         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
107011         INTMAX_MAX]: New macros.
107012         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
107013         TYPE_MAXIMUM): New macros.
107014         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
107015         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
107016         if overflow occurs, as it's what __strtol does and it's more useful
107017         in practice.
107018         (__xstrtol): If __strtol reports some error other than ERANGE,
107019         reflect it to the caller as LONGINT_INVALID.  If it reports
107020         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
107021         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
107022         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
107023         value.
107024         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
107025         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
107026         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
107027         [defined UINTMAX_MAX]: New macros.
107029 2003-10-14  Bruno Haible  <bruno@clisp.org>
107031         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
107033 2003-10-14  Bruno Haible  <bruno@clisp.org>
107035         * m4/sig_atomic_t: New file, from GNU gettext.
107036         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
107038 2003-10-14  Bruno Haible  <bruno@clisp.org>
107040         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
107041         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
107042         Also use volatile where needed.
107044 2003-10-12  Paul Eggert  <eggert@twinsun.com>
107046         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
107047         Change maintainer from Bruno Haible to 'all'.
107049 2003-10-12  Paul Eggert  <eggert@twinsun.com>
107051         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
107053 2003-10-12  Paul Eggert  <eggert@twinsun.com>
107055         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
107056         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
107057         and define in terms of the other primitives.
107058         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
107059         (SIZE_MAX): Define if not already defined.
107060         (array_size_overflow): New function.
107061         (xalloc_die): Abort instead of exiting if 'error' returns.
107062         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
107063         (xmalloc, xrealloc): Use them.
107064         (xcalloc): Check for address arithmetic overflow.
107065         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
107066         a bit faster than strcpy.
107068 2003-10-10  Simon Josefsson  <jas@extundo.com>
107070         * modules/argp (Depends-on): Add restrict and strcase.
107072 2003-10-10  Simon Josefsson  <jas@extundo.com>
107074         * m4/argp.m4: Add AC_C_INLINE.
107076 2003-10-08  Paul Eggert  <eggert@twinsun.com>
107078         Merge getpass from libc, plus a few fixes.
107080         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
107081         Include <stdbool.h>.
107082         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
107083         __fsetlocking to empty.
107084         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
107085         do include <bits/libc-lock.h>.
107086         Do not include <fcntl.h>; not needed.
107087         [_LIBC]: Include <wchar.h>.
107088         (NOTCANCEL_MODE): New macro.
107089         (flockfile, funlockfile) [_LIBC]: New macros.
107090         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
107091         [!_LIBC]: New macros.
107092         (call_fclose): New function.
107093         (getpass): Use it.  Save tty stream separately; this simplifies the
107094         code and makes it more reliable if stdin happens to equal stdout.
107095         Invoke __fsetlocking on tty.
107096         Handle thread cancellation if needed.
107097         Namespace cleanup (use __tcgetattr, __getline).
107098         Use bool for Booleans.
107099         [USE_IN_LIBIO]: Handle wide streams.
107100         [!_LIBC]: Unconditionally do the fseek, since we don't know what
107101         stream might go where.
107103         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
107104         doesn't have to include <stdio.h> before us.
107105         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
107106         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
107107         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
107108         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
107109         if not declared, so that we can use getpass.c code from libc without
107110         rewriting it.
107111         (flockfile, ftrylockfile, funlockfile): New macros.
107113 2003-10-08  Paul Eggert  <eggert@twinsun.com>
107115         * modules/getpass: Depend on stdbool.
107117 2003-10-08  Paul Eggert  <eggert@twinsun.com>
107119         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
107121 2003-10-07  Karl Berry  <karl@gnu.org>
107123         * config/config.{guess,sub}: update from config.
107125 2003-10-06  Jim Meyering  <jim@meyering.net>
107126             Bruno Haible  <bruno@clisp.org>
107128         This lets translators provide better translations for the
107129         "Written by ..." part of --version output.
107130         * lib/version-etc.h: Include stdarg.h.
107131         (version_etc_copyright): Declare as readonly.
107132         (version_etc): Make this function variadic with a NULL-terminated list
107133         of author name strings.
107134         (version_etc_va): New declaration.
107135         * lib/version-etc.c: Include stdarg.h, stdlib.h.
107136         (version_etc_copyright): Declare as readonly.
107137         (version_etc_va): New function. Provide a different translatable string
107138         for each possible number of authors < 10. Abbreviate when there are 10
107139         authors or more.
107140         (version_etc): Make this function variadic. Call version_etc_va.
107141         Suggestion from Gary V. Vaughan.
107143         * lib/long-options.h (parse_long_options): Change prototype: the
107144         authors string is moved to the end and becomes variadic.
107145         * lib/long-options.c: Include stdarg.h.
107146         (parse_long_options): Make this function variadic, too.
107147         Call version_etc_va, not version_etc.
107149 2003-10-06  Bruno Haible  <bruno@clisp.org>
107151         * modules/version-etc-2: Remove file.
107152         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
107154 2003-10-06  Bruno Haible  <bruno@clisp.org>
107156         * modules/fatal-signal: New file.
107157         * MODULES.html.sh (func_all_modules): Add fatal-signal.
107159 2003-10-06  Bruno Haible  <bruno@clisp.org>
107161         * m4/fatal-signal.m4: New file.
107162         * m4/signalblocking.m4: New file, from GNU gettext.
107164 2003-10-06  Bruno Haible  <bruno@clisp.org>
107166         * lib/version-etc-2.h: Remove file.
107167         * lib/version-etc-2.c: Remove file.
107169 2003-10-06  Bruno Haible  <bruno@clisp.org>
107171         * lib/fatal-signal.h: New file, from GNU gettext.
107172         * lib/fatal-signal.c: New file, from GNU gettext.
107174 2003-10-05  Paul Eggert  <eggert@twinsun.com>
107176         * README: Rework advice for preventing empty .o files.
107177         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
107178         not <sys/types.h>.
107180 2003-10-04  Karl Berry  <karl@gnu.org>
107182         * lib/argp*: update from libc.
107184 2003-10-04  Karl Berry  <karl@gnu.org>
107186         * config/config.{guess,sub}: update from config.
107188 2003-10-02  Bruno Haible  <bruno@clisp.org>
107190         * modules/lchown (Include): Add lchown.h.
107191         * modules/time_r (Include): Use "..." syntax.
107192         * modules/xgetdomainname (Include): Add xgetdomainname.h.
107194 2003-10-01  Simon Josefsson  <jas@extundo.com>
107196         * MODULES.html.sh (func_all_modules): Move gethostname from section
107197         'based on' to section 'lacking' POSIX:2001.
107199 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
107201         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
107202         to output mode on the same stream.
107204 2003-09-29  Paul Eggert  <eggert@twinsun.com>
107206         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
107207         Fix arg typo in previous patch.
107209 2003-09-28  Jim Meyering  <jim@meyering.net>
107211         * lib/error.c: Correct cpp indentation.
107213 2003-09-27  Paul Eggert  <eggert@twinsun.com>
107215         * modules/free: New file.
107217 2003-09-27  Paul Eggert  <eggert@twinsun.com>
107219         * m4/free.m4: New file.
107221 2003-09-27  Paul Eggert  <eggert@twinsun.com>
107223         * lib/minmax.h (MIN, MAX)
107224         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
107225         Omit the special code that used __typeof__, since we worry that
107226         it could be more trouble than it's worth.  See:
107227         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
107228         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
107230         * lib/free.c: New file.
107232 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
107234         Trivial fixes to Makefile.am parts of module listings.
107235         * modules/strstr: Append strstr.h to lib_SOURCES.
107236         * modules/strcase: Likewise, for strcase.h.
107238 2003-09-27  Karl Berry  <karl@gnu.org>
107240         * config/mkinstalldirs: update from automake.
107242 2003-09-26  Paul Eggert  <eggert@twinsun.com>
107244         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
107245         (error_tail): Do not loop, reallocating temporary buffer, since
107246         the output cannot contain more wide characters than the input
107247         contains bytes, the size must be big enough already.  This avoids
107248         one potential size overflow calculation.  Check for size overflow
107249         when calculating temporary buffer size.  Free temporary buffer
107250         when done, if it was allocated with malloc; this plugs a memory
107251         leak.  Remove casts from void * to pointers, that are no longer
107252         needed now that we're assuming C89 or better.
107254         Merge error changes from glibc.
107256         * lib/error.c, error.h: Update copyright notice header to match glibc.
107257         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
107258         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
107259         Disable cancellation while printing error.
107260         * lib/error.h: Prepend __ to parameter names.
107262 2003-09-26  Jim Meyering  <jim@meyering.net>
107264         * lib/error.c (error_tail): Move some declarations
107265         into inner scope where the local variables are used.
107267 2003-09-26  Bruno Haible  <bruno@clisp.org>
107269         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
107270         stpncpy().
107271         Don't define stpncpy through config.h; it's now done through stpncpy.h.
107273 2003-09-26  Bruno Haible  <bruno@clisp.org>
107275         * lib/stpncpy.h (gnu_stpncpy): New declaration.
107276         (stpncpy): Define as alias for gnu_stpncpy.
107277         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
107279 2003-09-25  Simon Josefsson  <jas@extundo.com>
107281         * lib/xgetdomainname.h: New file.
107282         * lib/xgetdomainname.c: New file.
107284 2003-09-25  Simon Josefsson  <jas@extundo.com>
107285             Bruno Haible  <bruno@clisp.org>
107287         * modules/getdomainname: New file.
107288         * modules/xgetdomainname: New file.
107289         * MODULES.html.sh (func_all_modules): Add getdomainname,
107290         xgetdomainname.
107292 2003-09-25  Simon Josefsson  <jas@extundo.com>
107293             Bruno Haible  <bruno@clisp.org>
107295         * m4/getdomainname.m4: New file.
107297 2003-09-25  Simon Josefsson  <jas@extundo.com>
107298             Bruno Haible  <bruno@clisp.org>
107300         * lib/getdomainname.h: New file.
107301         * lib/getdomainname.c: New file.
107303 2003-09-25  Karl Berry  <karl@gnu.org>
107305         * lib/argp-fmtstream.c, argp-help.c: update from libc.
107307 2003-09-25  Karl Berry  <karl@gnu.org>
107309         * config/install-sh: update from automake.
107311 2003-09-25  Bruno Haible  <bruno@clisp.org>
107313         * modules/version-etc-2: New file, from modules/version-etc with
107314         modifications.
107315         * MODULES.html.sh (func_all_modules): Add version-etc-2.
107317 2003-09-25  Bruno Haible  <bruno@clisp.org>
107319         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
107320         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
107322 2003-09-24  Simon Josefsson  <jas@extundo.com>
107324         * modules/xgethostname: Add xgethostname.h.
107326 2003-09-24  Paul Eggert  <eggert@twinsun.com>
107328         * lib/linebuffer.c (freebuffer): Don't free the argument, just
107329         the buffer associated with the argument.  Bug reported by
107330         Simon Josefsson.
107332 2003-09-24  Paul Eggert  <eggert@twinsun.com>
107334         * README: Document assumptions that 'int' is at least 32 bits
107335         wide, that integer arithmetic is 2's complement without overflow,
107336         that there are no holes in integer values, that adding sizes of
107337         two nonoverlapping objects can't overflow, and that all-bits-zero
107338         yields scalar zero.  Fix spelling and capitalization typos.
107340 2003-09-19  Karl Berry  <karl@gnu.org>
107342         * lib/argp.h: update from libc.
107344 2003-09-17  Paul Eggert  <eggert@twinsun.com>
107346         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
107347         to avoid spurious warnings like "AC_RUN_IFELSE was called before
107348         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
107350 2003-09-17  Paul Eggert  <eggert@twinsun.com>
107352         * gnulib-tool: Use "test -h", not "test -L", for portability
107353         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
107354         (tags_regexp): Remove, since \| doesn't conform to POSIX.
107355         (sed_extract_prog): Issue s commands one-by-one, rather than
107356         using \| in one s command.
107358 2003-09-16  Paul Eggert  <eggert@twinsun.com>
107360         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
107361         input error, instead of returning NULL the next time we are called
107362         (and therefore losing track of errno).
107364 2003-09-16  Bruno Haible  <bruno@clisp.org>
107366         * gnulib-tool (func_create_testdir): Warn about duplicated
107367         dependencies.
107369 2003-09-15  Paul Eggert  <eggert@twinsun.com>
107371         * modules/argmatch, modules/fatal, modules/obstack,
107372         modules/xalloc, modules/xgethostname: Sort dependencies by
107373         importance, not alphabetically.
107375 2003-09-15  Paul Eggert  <eggert@twinsun.com>
107377         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
107378         fails, so that the caller gets the proper errno.
107380         * lib/readutmp.c (read_utmp): Likewise.
107381         Check for fstat error.  Close stream and free storage
107382         when failing.
107384 2003-09-14  Karl Berry  <karl@gnu.org>
107386         * config/srclist.txt (strdup.c): disable for c89 changes.
107388 2003-09-14  Jim Meyering  <jim@meyering.net>
107390         * lib/getloadavg.c: Correct cpp indentation.
107391         * lib/strdup.c: Likewise.
107392         * lib/vasnprintf.c: Likewise.
107394 2003-09-14  Bruno Haible  <bruno@clisp.org>
107396         * modules/fwriteerror: New file.
107397         * MODULES.html.sh (func_all_modules): Add fwriteerror.
107399 2003-09-14  Bruno Haible  <bruno@clisp.org>
107401         * lib/fwriteerror.h: New file.
107402         * lib/fwriteerror.c: New file.
107404 2003-09-12  Paul Eggert  <eggert@twinsun.com>
107406         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
107407         modules/xgethostname, modules/xalloc: Depend on exit.
107409 2003-09-12  Paul Eggert  <eggert@twinsun.com>
107411         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
107413         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
107414         and AC_MINIX, too, so that their extensions are available.
107416         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
107417         This macro has been superseded by gl_BACKUPFILE.
107419         More patches to assume C89 or better.
107421         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
107423         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
107424         unconditionally.
107425         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
107426         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
107427         Include <string.h>, <stdlib.h> unconditionally.
107428         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
107429         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
107430         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
107431         headers or for string.h.
107432         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
107433         or strtoul.
107435         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
107436         headers.
107437         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
107438         * m4/userspec.m4 (gl_USERSPEC): Likewise.
107439         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
107440         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
107441         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
107442         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
107443         memcpy, memset.
107444         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
107445         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
107446         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
107447         strtol.
107448         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
107449         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
107450         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
107451         strtoul.
107453 2003-09-12  Paul Eggert  <eggert@twinsun.com>
107455         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
107456         * lib/obstack.c [!defined _LIBC]: Likewise.
107457         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
107458         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
107459         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
107461         More changes to assume C89 or better.
107463         * lib/error.c (error_tail): Assume vprintf.
107465         * lib/argmatch.c (getenv): Remove decl.
107466         * lib/progreloc.c (get_full_program_name): Define via prototype.
107467         * lib/setenv.c (clearenv): Likewise.
107468         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
107469         needed.
107470         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
107471         (malloc, memcpy): Remove decls.
107472         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
107473         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
107474         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
107475         (memcpy): Remove macro.
107476         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
107477         (__P): Remove.  All uses removed.
107478         (PTR): Remove.  All uses changed to void *.
107479         (CHAR_BIT, NULL): Remove.
107480         (spaces, zeros, memset_space, memset_zero)
107481         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
107482         Remove.
107483         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
107484         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
107485         Define with prototype.
107486         Remove now-unnecessary prototype decl.
107487         (extra_args_spec): Assume ANSI C.  All uses changed.
107488         (extra_args_spec_iso): Remove.
107489         (my_strftime, emacs_strftimeu): Define via prototype.
107490         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
107491         unconditionally.
107492         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
107493         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
107494         (strtoul, strtol): Remove decls.
107495         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
107496         LONG_MAX): Remove.
107497         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
107498         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
107499         (LOCALE_PARAM_PROTO): New macro.
107500         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
107501         (INTERNAL (strtol), strtol): Define with a prototype.
107502         (PARAMS): Remove.  All uses removed.
107503         * lib/tempname.c: Include <string.h> unconditionally.
107504         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
107505         * lib/xgethostname.c (main): Define with a prototype.
107506         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
107507         Include <stdlib.h> unconditionally.
107508         (calloc, malloc, realloc, free): Remove decls.
107509         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
107510         Include <stdlib.h> unconditionally.  Sort include file names.
107511         (strtod): Remove.
107512         (xstrtod): Define with a prototype.
107513         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
107514         (strtol, strtoul): Remove decls.
107516 2003-09-11  Paul Eggert  <eggert@twinsun.com>
107518         More patches to assume C89 or better.
107519         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
107520         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
107521         string.h, memchr, STDC_HEADERS.
107523 2003-09-11  Paul Eggert  <eggert@twinsun.com>
107525         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
107526         Include <stdlib.h>, <string.h> unconditionally.
107527         Remove now-unnecessary cast to char *.
107528         * lib/strnlen.c: Include <string.h> unconditionally.
107529         * lib/yesno.c (yesno): Define with a prototype.
107531 2003-09-11  Bruno Haible  <bruno@clisp.org>
107533         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
107535 2003-09-10  Jim Meyering  <jim@meyering.net>
107537         * lib/error.c: Correct indentation of cpp directives.
107539 2003-09-10  Bruno Haible  <bruno@clisp.org>
107541         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
107542         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
107543         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
107544         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
107545         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
107546         <stdlib.h> and <string.h> checks.
107547         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
107548         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
107550 2003-09-10  Bruno Haible  <bruno@clisp.org>
107552         * lib/strcspn.c: Include <string.h> unconditionally.
107553         * lib/strpbrk.c: Include <string.h> unconditionally.
107554         * lib/strstr.c: Include <string.h> unconditionally.
107555         * lib/unicodeio.c: Include <string.h> unconditionally.
107556         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
107557         * lib/unsetenv.c: Likewise.
107558         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
107559         * lib/yesno.c: Include <stdlib.h> unconditionally.
107560         (rpmatch): Add prototype.
107562 2003-09-09  Paul Eggert  <eggert@twinsun.com>
107564         More patches to assume C89 or better.
107565         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
107566         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
107567         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
107568         or for string.h.
107569         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
107570         stdlib.h.
107571         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
107572         C headers.
107573         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
107574         string.h.
107575         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
107576         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
107577         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
107578         or for string.h.
107579         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
107580         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
107581         C headers.
107582         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
107583         memcpy.
107584         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
107585         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
107586         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
107587         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
107588         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
107589         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
107590         string.h, free.
107591         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
107592         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
107593         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
107594         C headers, or for string.h.
107595         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
107596         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
107597         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
107598         headers, memory.h, stdlib.h, string.h, strings.h.
107599         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
107600         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
107601         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
107602         strchr.
107603         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
107604         headers, memory.h, string.h.
107605         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
107606         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
107607         free.
107608         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
107609         headers.
107610         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
107611         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
107612         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
107613         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
107614         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
107616 2003-09-09  Paul Eggert  <eggert@twinsun.com>
107618         More K&R removal.
107620         * lib/acosl.c (main): Use a prototype.
107621         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
107622         tanl.c: Likewise.
107624         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
107626         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
107627         (getopt, etopt_long, getopt_long_only, _getopt_internal)
107628         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
107629         with a prototype.
107630         * lib/getopt.c (const): Remove macro.
107631         Include <string.h> unconditionally.
107632         (my_index): Remove; all uses changed to strchr.
107633         (strlen): Remove decl.
107634         (exchange): Remove forward decl; no longer needed.
107635         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
107636         Define with prototype.
107637         * lib/getopt1.c (const): Remove macro.
107638         (getopt_long, getopt_long_only, main): Define with prototype.
107640         * lib/getugroups.c: Include <string.h> unconditionally.
107642         * lib/getusershell.c: Include <stdlib.h> unconditionally.
107643         (getusershell, setusershell, endusershell, readname, main):
107644         Define with prototypes.
107646         * lib/group-member.c: Include group-member.h first.
107647         Include <stdlib.h> unconditionally.
107649         * lib/hard-locale.c: Include hard-locale.h first.
107650         Include <stdlib.h>, <string.h> unconditionally.
107652         * lib/hash.c (free, malloc): Remove decls.
107653         Include <stdlib.h> unconditionally.
107655         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
107656         (getenv): Do not declare.
107658         * lib/idcache.c: Include <string.h> unconditionally.
107660         * lib/long-options.c: Include long-options.h first, to test interface.
107661         Include <stdlib.h> unconditionally.
107663         * lib/makepath.c: Include makepath.h first, to test interface.
107664         Include <stdlib.h> and <string.h> unconditionally.
107666         * lib/linebuffer.c: Include <stdlib.h>.
107667         (free): Remove decl.
107669         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
107670         stddef.h. rpl_malloc returns void *, not char *.
107671         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
107672         prototype.
107674         * lib/md5.h: Include <limits.h> unconditionally.
107675         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
107676         (__P): Remove; all uses removed.
107677         * lib/md5.c: Include "md5.h" first.
107678         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
107679         md5_buffer, md5_process_bytes, md5_process_block):
107680         Define with prototypes.
107681         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
107682         * lib/sha.c: Include "sha.h" first.
107683         Include <stdlib.h>, <string.h> unconditionally.
107685         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
107686         * lib/memcmp.c (__ptr_t): Likewise.
107687         * lib/memrchr.c (__ptr_t): Likewise.
107688         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
107689         Include <string.h> unconditionally.
107690         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
107691         * lib/memchr.c: Include <stdlib.h> unconditionally.
107692         * lib/memchr.c (LONG_MAX): Remove.
107693         * lib/memrchr.c (LONG_MAX): Likewise.
107694         * lib/memchr.c (__memchr): Define via a prototype.
107695         * lib/memrchr.c (__memrchr): Likewise.
107696         * lib/memcmp.c (__P): Remove, and remove all uses.
107697         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
107698         Remove forward decls; no longer needed.
107699         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
107700         Use types required by C89 in prototype.
107702         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
107703         * lib/savedir.c: Likewise.
107704         * lib/mkdir.c (free): Remove decl.
107705         * lib/rmdir.c (rmdir): Define with a prototype.
107706         * lib/savedir.c: Include savedir.h first, to test interface.
107708         * lib/mktime.c (STDC_HEADERS): Remove.
107709         Include <stdlib.h>, <string.h> unconditionally.
107711         * lib/modechange.c: Include <stdlib.h> unconditionally.
107712         (malloc): Remove decl.
107714         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
107715         (free): Remove decl.
107717         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
107718         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
107719         (This type really should be intptr_t, but that's a C99ism.)
107720         (_obstack_memcpy): Remove: all uses changed to memcpy.
107721         Include <string.h> unconditionally.
107722         (struct obstack): Assume __STDC__ for types of members
107723         chunkfun, freefun, extra_arg.
107724         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
107725         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
107726         obstack_begin, obstack_specify_allocation,
107727         obstack_specify_allocation_with_arg, obstack_chunkfun,
107728         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
107729         Remove unprototyped decls and the macros that use them.
107730         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
107731         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
107732         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
107733         (defined __STDC__ && __STDC__)]:
107734         Remove nonprototyped code.
107735         Include <stdlib.h> unconditionally.
107736         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
107737         _obstack_allocated_p, _obstack_free, obstack_free,
107738         _obstack_memory_used, print_and_abort):
107739         Define using prototypes.
107740         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
107741         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
107742         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
107743         obstack_next_free, obstack_object_size, obstack_room) [0]:
107744         Remove unused, unprototyped code.
107746         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
107748         * lib/physmem.c (physmem_total, physmem_available, main): Define
107749         with prototypes.
107751         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
107752         (main): Define with a prototype.
107754         * lib/posixver.c (getenv): Remove decl.
107756         * lib/putenv.c (malloc): Returns void *, not char *.
107757         Include <string.h> unconditionally.
107758         (strchr, memcpy, NULL): Do not define.
107760         * lib/readtokens.c: Include readtokens.h first, to test interface.
107761         Include <stdlib.h>, <string.h> unconditionally.
107762         (init_tokenbuffer): Define with a prototype.
107764         * lib/regex.c (PARAMS): Remove.  All uses removed.
107765         All uses of _RE_ARGS removed, too.
107766         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
107767         unconditionally.
107768         (bzero): Assume memset exists.
107769         (memcmp, memcpy, NULL): Remove.
107770         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
107771         char, or assignments to local vars of type signed char.
107772         (init_syntax_once, PREFIX(extract_number_and_incr),
107773         PREFIX(print_partial_compiled_pattern),
107774         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
107775         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
107776         PREFIX(regex_grow_registers), PREFIX(regex_compile),
107777         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
107778         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
107779         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
107780         wcs_compile_range, byte_compile_range, truncate_wchar,
107781         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
107782         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
107783         count_mbs_length, wcs_re_match_2_internal,
107784         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
107785         PREFIX(alt_match_null_string_p),
107786         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
107787         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
107788         regfree, PREFIX(extract_number)): Define with prototype.  Remove
107789         now-unnecessary declaration, if any.
107790         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
107791         regcomp, regexec):
107792         Remove now-unnecessary casts among pointer types.
107793         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
107795         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
107796         (free): Remove decl.
107798         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
107800         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
107801         (free): Remove decl.
107803         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
107804         * lib/xgetcwd.c: Likewise.
107806         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
107807         (free): Remove decl.
107809         * lib/strchrnul.c (strchrnul): Define with a prototype.
107810         Fix bug: c_in was not converted to char before searching.
107812         The following changes are not K&R related:
107814         * lib/group-member.h: Include <sys/types.h>, so that this file is
107815         self-contained.
107816         * lib/makepath.h: Likewise.
107818         * lib/getusershell.c (readname, default_index, line_size, readname):
107819         Use size_t, not int, for sizes.
107820         (readname): If the size overflows, report an error instead of
107821         looping forever.
107823 2003-09-09  Paul Eggert  <eggert@twinsun.com>
107825         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
107826         libc.
107828 2003-09-09  Paul Eggert  <eggert@twinsun.com>
107830         * README: New section: portability guidelines.
107832 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
107834         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
107835         C89 spec.
107837 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
107839         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
107841 2003-09-08  Paul Eggert  <eggert@twinsun.com>
107843         Assume C89 or better; remove K&R cruft.
107844         A few of these changes were first proposed by Derek Robert Price
107845         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
107847         * lib/addext.c: Include <string.h> unconditionally.
107848         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
107849         Don't declare getenv or malloc.
107851         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
107852         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
107853         (NULL): Remove.
107854         (find_stack_direction, alloca): Use prototypes.
107856         * lib/atexit.c (atexit): Define using a prototype.
107858         * lib/basename.c, dirname.c, stripslash.c:
107859         Include <string.h> unconditionally.
107861         * lib/bcopy.c: Include <stddef.h>.
107862         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
107864         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
107866         * lib/error.h (error, error_at_line, error_print_progname)
107867         [! (defined (__STDC__) && __STDC__)]: Remove decls.
107868         * lib/error.c: Include error.h first, to check interface.
107869         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
107870         (VA_START): Remove; all uses changeed to va_start.
107871         (exit, strerror): Remove decls.
107872         (error_print_progname): Prototype uncondionally.
107873         Don't include <errno.h>; no longer needed.
107874         (private_strerror): Remove.
107875         (error_tail): Always define.
107876         (error, error_at_line): Assume C89 or better; always use prototypes.
107877         * lib/fatal.c: Include "fatal.h" first, to test interface.
107878         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
107879         (VA_START): Remove; all uses changed to va_start.
107880         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
107881         this case.
107882         (exit): Remove decl.
107883         (fatal): Prototype unconditionally.  Assume va_start works.
107884         Abort at end, to pacify gcc.
107886         * lib/euidaccess.c (main): Define with a prototype.
107888         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
107890         * lib/exitfail.c: Include <stdlib.h> unconditionally.
107892         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
107893         prototypes.
107894         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
107895         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
107896         (getenv): Remove decl.
107897         (fnmatch): Define using a prototype.
107898         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
107899         (FCT): Define using a prototype.
107901         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
107903         * lib/gethostname.c: Include <stddef.h>.
107904         (gethostname): Define with prototype.  Length is size_t, not int.
107906 2003-09-08  Paul Eggert  <eggert@twinsun.com>
107908         Assume C89 or better; remove K&R cruft.
107909         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
107910         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
107911         string.h, getenv, malloc.
107912         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
107913         headers.
107914         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
107915         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
107916         do not check for strerror.
107917         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
107918         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
107919         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
107920         do not check for doprnt or vprintf.
107921         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
107922         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
107924 2003-09-08  Paul Eggert  <eggert@twinsun.com>
107926         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
107927         getversion.c should have been removed then, but was accidentally
107928         preserved.
107930         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
107931         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
107933 2003-09-08  Karl Berry  <karl@gnu.org>
107935         * config/config.sub, config.guess, srclistvars.sh: update from savannah
107936                 config, forget about prep.
107938         * config/depcomp, missing: update from automake.
107940 2003-09-07  Paul Eggert  <eggert@twinsun.com>
107942         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
107943         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
107945 2003-09-07  Paul Eggert  <eggert@twinsun.com>
107947         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
107948         copy_tm_result.  Bug reported by Simon Josefsson in
107949         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
107951 2003-09-06  Paul Eggert  <eggert@twinsun.com>
107953         * m4/time_r.m4: New file.
107954         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
107955         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
107956         is. Check for timegm declaration.
107957         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
107958         Do not check for gmtime_r.
107959         Replace mktime if __mktime_internal does not exist and if mktime
107960         hasn't been replaced already.
107962 2003-09-06  Paul Eggert  <eggert@twinsun.com>
107964         * lib/time_r.c, lib/time_r.h: New files.
107966         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
107967         __localtime_r.
107968         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
107969         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
107971         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
107972         __gmtime_r.
107973         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
107974         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
107975         Include <time_r.h>.
107977         * lib/timegm.c: Switch to glibc implementation, with the following
107978         changes:
107979         [defined HAVE_CONFIG_H]: Include <config.h>.
107980         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
107981         (__mktime_internal) [!defined _LIBC]: New decl.
107982         (__gmtime_r) [!defined _LIBC]: New macro and function.
107983         (timegm): Use a prototype, since gnulib assumes C89.
107984         Do not bother declaring tmp to be const, as it's not really usefu.
107985         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
107986         (timegm): Declare only if HAVE_DECL_TIMEGM.
107988 2003-09-06  Paul Eggert  <eggert@twinsun.com>
107990         * MODULES.html.sh (func_all_modules): Add time_r.
107991         * modules/time_r: New file.
107992         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
107993         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
107995 2003-09-03  Paul Eggert  <eggert@twinsun.com>
107997         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
107998         Bug reported by Lute Kamstra in
107999         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
108001         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
108002         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
108003         course with correspondingly smaller numbers for tomorrow and
108004         yesterday.  From Tadayoshi Funaba.  Originally installed into
108005         sh-utils on 1999-08-07, but the patch got lost (I guess during the
108006         coreutils merge?).
108008 2003-08-31  Simon Josefsson  <jas@extundo.com>
108010         * modules/timegm: New file.
108011         * MODULES.html.sh (func_all_modules): Add timegm.
108013 2003-08-31  Simon Josefsson  <jas@extundo.com>
108015         * m4/timegm.m4: New file.
108017 2003-08-31  Simon Josefsson  <jas@extundo.com>
108019         * lib/timegm.h: New file.
108020         * lib/timegm.c: New file.  Based on
108021         wget-1.8.2/src/http.c:mktime_from_utc.
108023 2003-08-31  Karl Berry  <karl@gnu.org>
108025         * lib/argp.h: update from libc.
108027 2003-08-28  Bruno Haible  <bruno@clisp.org>
108029         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
108030         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
108031         followed by '#define fnmatch fnmatch_posix' gives an error.
108033 2003-08-28  Bruno Haible  <bruno@clisp.org>
108035         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
108036         warning on QNX, which defines O_BINARY to 000000.
108038 2003-08-27  Jim Meyering  <jim@meyering.net>
108040         * m4/mkstemp.m4: Require that the system mkstemp be able to create
108041         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
108042         would fail after 32.  Reported by Danny Levinson.  Details here:
108043         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
108045 2003-08-24  Bruno Haible  <bruno@clisp.org>
108047         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
108048         MSVC7 <stdio.h> is included later.
108050 2003-08-22  Simon Josefsson  <jas@extundo.com>
108052         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
108054 2003-08-20  Karl Berry  <karl@gnu.org>
108056         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
108058 2003-08-20  Bruno Haible  <bruno@clisp.org>
108060         * modules/progname: New file.
108061         * MODULES.html.sh (func_all_modules): Add progname.
108063 2003-08-20  Bruno Haible  <bruno@clisp.org>
108065         * lib/progname.h: New file, from GNU gettext.
108066         * lib/progname.c: New file, from GNU gettext.
108067         * lib/progreloc.c: New file, from GNU gettext.
108069 2003-08-19  Jim Meyering  <jim@meyering.net>
108071         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
108072         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
108074 2003-08-19  Bruno Haible  <bruno@clisp.org>
108076         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
108077         more.
108079 2003-08-19  Bruno Haible  <bruno@clisp.org>
108081         * lib/xstrdup.c: Assume <string.h> exists.
108083 2003-08-18  Paul Eggert  <eggert@twinsun.com>
108085         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
108086         in makefile rules.
108088 2003-08-18  Jim Meyering  <jim@meyering.net>
108090         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
108091         * m4/lib-ld.m4: Likewise.
108093 2003-08-18  Jim Meyering  <jim@meyering.net>
108095         * lib/setenv.h: Indent nested cpp directive.
108096         * lib/vasnprintf.c: Remove trailing blanks.
108098 2003-08-17  Simon Josefsson  <jas@extundo.com>
108100         * modules/xstrndup: New file.
108101         * MODULES.html.sh (func_all_modules): Add xstrndup.
108103 2003-08-17  Simon Josefsson  <jas@extundo.com>
108105         * modules/argp: Fix autoconf macro name. Add more dependencies.
108107 2003-08-17  Simon Josefsson  <jas@extundo.com>
108109         * m4/xstrndup.m4: New file.
108111 2003-08-17  Simon Josefsson  <jas@extundo.com>
108113         * m4/argp.m4: New file.
108115 2003-08-17  Simon Josefsson  <jas@extundo.com>
108116             Bruno Haible  <bruno@clisp.org>
108118         * lib/xstrndup.h: New file.
108119         * lib/xstrndup.c: New file.
108121 2003-08-17  Bruno Haible  <bruno@clisp.org>
108123         * modules/strndup (Files, Include): Add lib/strndup.h.
108125 2003-08-17  Bruno Haible  <bruno@clisp.org>
108127         * modules/euidaccess (Files): Add lib/euidaccess.h.
108129 2003-08-17  Bruno Haible  <bruno@clisp.org>
108131         * lib/strndup.h: New file.
108133 2003-08-17  Bruno Haible  <bruno@clisp.org>
108135         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
108136         like AC_GNU_SOURCE.
108137         * modules/extensions (configure.ac): Comment out the invocation of
108138         gl_USE_SYSTEM_EXTENSIONS.
108140 2003-08-16  Paul Eggert  <eggert@twinsun.com>
108142         Merges from coreutils, etc.
108143         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
108144         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
108145         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
108146         fixing a typo.
108147         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
108148         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
108150 2003-08-16  Paul Eggert  <eggert@twinsun.com>
108152         Document merge from coreutils.
108153         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
108154         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
108155         * modules/utime: Add m4/utimes-null.m4.
108157 2003-08-16  Paul Eggert  <eggert@twinsun.com>
108159         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
108160         space, undoing this 2003-08-12 change:
108161         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
108163 2003-08-16  Paul Eggert  <eggert@twinsun.com>
108165         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
108166         strtoul.c from libc, undoing this 2003-08-12 change:
108167         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
108169 2003-08-16  Jim Meyering  <jim@meyering.net>
108171         Merges from coreutils.
108172         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
108173         prefix.  Adjust cache variables similarly.  Create 500 rather than
108174         just 300 files, to exercise bug on Darwin6.5, too.
108175         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
108176         $missing_dir.
108177         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
108178         AM_SYS_POSIX_TERMIOS.
108179         Reported by mkc@mathdogs.com.
108180         Also change use of $am_cv_sys_posix_termios
108181         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
108182         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
108183         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
108184         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
108185         in /proc/mounts until it finds one with matching device number.  This
108186         is unnecessary when the FILE argument *is* a mount point.  No stat call
108187         is necessary in that case.  So, disable the statvfs-testing code on
108188         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
108189         as RedHat bug# 84846.
108190         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
108191         to 1MB, so as not to render systems with no stack size limit (e.g.,
108192         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
108193         Include <unistd.h>.  On some systems,
108194         it is required for the definition of _SC_PAGESIZE.
108196 2003-08-16  Jim Meyering  <jim@meyering.net>
108198         Merge from coreutils.
108199         * lib/xstrtoimax.c: #else #if -> #elif.
108200         * lib/xstrtoumax.c: Likewise.
108202 2003-08-16  Jim Meyering  <jim@meyering.net>
108204         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
108205         * m4/utimes.m4: Removed.
108206         * m4/utimes-null.m4: Renamed from utimes.m4.
108208         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
108209         to 1MB, so as not to render systems with no stack size limit (e.g.,
108210         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
108211         Include <unistd.h>.  On some systems,
108212         it is required for the definition of _SC_PAGESIZE.
108214 2003-08-16  Jim Meyering  <jim@meyering.net>
108215         and Paul Eggert  <eggert@cs.ucla.edu>
108217         Merges from coreutils, etc.
108219         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
108220         using the latest version from cvs.  This avoids problems with #line
108221         directives using a vendor (Sun) compiler.
108222         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
108223         Don't set GETGROUPS_LIB here; now it's
108224         done via getgroups.m4's wrapper function.
108225         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
108226         rather than just in sh-util/configure.in, so that the
108227         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
108228         same.
108229         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
108230         AC_FUNC_GETLOADAVG where to find getloadavg.c.
108231         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
108232         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
108233         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
108234         Remove code that is now done by the newly-required macros.
108235         Append $(EXEEXT) to DF_PROG.
108236         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
108237         Do not invoke or require the following here,
108238         since prereq.m4 or some gnulib .m4 now does this for us:
108239         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
108240         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
108241         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
108242         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
108243         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
108244         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
108245         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
108246         AC_FUNC_OBSTACK.
108247         Do not replace the following functions, as this is now the job
108248         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
108249         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
108250         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
108251         atexit getpass, strdup, getpagesize.
108252         Replace 'raise'.
108253         Do not check for the following functions, as this is now the job
108254         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
108255         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
108256         setregid.
108257         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
108258         Check for sys/sysctl.h.
108259         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
108260         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
108261         of checking for ssize_t ourselves.
108263         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
108264         Require every macro that gnulib/modules/* suggests for us.
108265         (jm_PREREQ_ADDEXT): New macro.
108266         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
108267         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
108269         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
108270         (gl_PHYSMEM): Use it.
108271         Also check for `table' function.
108272         Check for new headers and functions.
108273         Add check for sys/sysmp.h.
108274         With suggestions from Kaveh Ghazi.
108275         Ignore headers that are present but cannot be compiled.  This
108276         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
108277         C 5.4.
108279 2003-08-15  Paul Eggert  <eggert@twinsun.com>
108281         Document merge from coreutils.
108282         * modules/userspec: Depend on posixver.
108283         * modules/strftime: Depend on tzset.
108285 2003-08-15  Paul Eggert  <eggert@twinsun.com>
108287         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
108288         rather than tab, after '#' in shell-script copyright notices.
108289         Suggested by Bruno Haible.
108291 2003-08-15  Paul Eggert  <eggert@twinsun.com>
108293         * config/srclist-update: Use three spaces, rather than tab, after '#'
108294         in shell-script copyright notices.  Suggested by Bruno Haible.
108295         Remove unnecessary parenthesization in regular expression.
108297 2003-08-15  Jim Meyering  <jim@meyering.net>
108299         Merge from coreutils.
108300         * lib/xgethostname.c: Include <stdlib.h>.
108301         (xghostname): Don't exit for anything other than memory-related
108302         failure; just return NULL.
108303         * lib/userspec.c: Include "posixver.h".
108304         (parse_user_spec): Accept `.' as a separator only
108305         in pre-POSIX-200112 mode.
108306         * lib/strtoimax.c: Use #elif rather than #else #if.
108307         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
108308         Remove function, now that we can rely on a working tzset function.
108309         [!_LIBC]: Ensure that the required autoconf test has been run.
108310         [!defined _NL_CURRENT && HAVE_STRFTIME]:
108311         Use underlying_strftime for %r.
108312         * lib/sha.c: Merge in some clean-up and optimization changes from
108313         glibc.
108314         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
108315         Ensure that it is a multiple of 64.
108316         Rearrange loop exit tests so as to avoid performing an
108317         additional fread after encountering an error or EOF.
108318         * lib/realloc.c: Update copyright date.
108320 2003-08-15  Jim Meyering  <jim@meyering.net>
108321         and Paul Eggert  <eggert@twinsun.com>
108323         Merge from coreutils.
108324         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
108325         member but strut utmpx does not.  Needed for AIX 4.3.3.
108326         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
108328 2003-08-15  Jim Meyering  <jim@meyering.net>
108329         and Paul Eggert  <eggert@cs.ucla.edu>
108331         Merges from coreutils, etc.
108332         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
108333         Require gl_FUNC_TZSET_CLOBBER.
108334         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
108335         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
108336         members.
108338 2003-08-14  Paul Eggert  <eggert@twinsun.com>
108340         Help the merge from coreutils.
108341         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
108342         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
108343         * m4/tzset.m4: Use it too.
108345 2003-08-14  Paul Eggert  <eggert@twinsun.com>
108347         * modules/tzset: New file.
108349 2003-08-14  Jim Meyering  <jim@meyering.net>
108351         Merges from coreutils.
108352         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
108353         variable names, rather than @FNMATCH_H@.
108354         * modules/alloca: Likewise for $(ALLOCA_H).
108356         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
108357         the three copies of the literal target, `fnmatch.h'.
108358         * modules/alloca (alloca.h): Likewise.
108360 2003-08-14  Jim Meyering  <jim@meyering.net>
108362         Merge from coreutils.
108363         * m4/tzset.m4: New file.
108364         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
108365         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
108366         otherwise, AIX 5.1 systems would end up using the latter.
108367         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
108368         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
108369         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
108370         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
108372 2003-08-14  Jim Meyering  <jim@meyering.net>
108374         Merge from coreutils.
108375         * lib/obstack.h: Whitespace changes.
108376         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
108377         and xcalloc return values.
108378         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
108379         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
108380         hang on OSF/1 5.1 for DIR on both local and remote file systems.
108381         Reported by (and fix confirmed by) Nelson H. F. Beebe.
108382         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
108383         error from mntctl.
108384         Use mntctl's return value to drive the entry-processing loop, since
108385         we can't rely on the value of the vmt_length member in the last
108386         entry.  On some systems doing so could result in exhausting
108387         virtual memory.  Based in part on a patch from Mike Jetzer.
108389 2003-08-14  Jim Meyering  <jim@meyering.net>
108390         and Paul Eggert  <eggert@twinsun.com>
108392         Merges from coreutils, plus other fixes.
108393         * lib/physmem.c: Merge in portability changes from gcc/libiberty
108394         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
108395         for credits and details.  Thanks to Kaveh Ghazi for helping
108396         to keep these files in sync.
108397         (ARRAY_SIZE): Define it.
108398         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
108399         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
108400         (memcasecmp): Don't assume size_t fits in unsigned int.
108401         Remove casts and duplicate code.
108402         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
108403         (memcpy): Remove definition.
108404         Merge in some clean-up and optimization changes from glibc.
108405         [BLOCKSIZE]: Move definition to top of file.
108406         Ensure that it is a multiple of 64.
108407         Rearrange loop exit tests so as to avoid performing an
108408         additional fread after encountering an error or EOF.
108409         * lib/md5.h (md5_uintptr): Define.
108410         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
108411         return to the initial working directory.  Preserve errno
108412         for caller.
108413         * lib/idcache.c: Include "xalloc.h".
108414         (xmalloc, xrealloc): Remove decls.
108415         (getuser): Remove casts no longer required in C89.
108416         * lib/human.c: Include stdio.h, for sprintf.
108417         * lib/group-member.c: Include "xalloc.h".
108418         (xmalloc, xrealloc): Remove decls.
108419         (get_group_info): Remove casts no longer required in C89.
108420         * lib/getusershell.c (readname): Remove casts no longer required in
108421         C89.
108422         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
108423         * lib/getline.c: Whitespace fix, from coreutils.
108425 2003-08-13  Paul Eggert  <eggert@twinsun.com>
108427         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
108428         Check for isascii.
108430         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
108431         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
108432         Undo previous (whitespace-only) change.
108434 2003-08-13  Paul Eggert  <eggert@twinsun.com>
108436         * lib/exclude.c: Include <ctype.h>
108437         (IN_CTYPE_DOMAIN): New macro.
108438         (is_space): New fn.
108439         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
108440         and empty lines.
108442         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
108443         Undo previous (whitespace-only) change.
108445 2003-08-13  Paul Eggert  <eggert@twinsun.com>
108447         * config/srclist-update: Change update back to the old behavior,
108448         leaving whitespace alone.  Use one 'sed' command rather than a
108449         pipeline.
108450         (fixlicense): Now a variable, not a function.
108451         (remove_trailing_blanks): Remove.
108452         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
108453         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
108454         Undo previous (whitespace-only) change.
108456 2003-08-12  Paul Eggert  <eggert@twinsun.com>
108458         Merge from coreutils.
108459         * modules/euidaccess: Add lib_SOURCES, include for new
108460         file euidaccess.h
108462 2003-08-12  Paul Eggert  <eggert@twinsun.com>
108464         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
108465         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
108466         Normalize leading white space and remove trailing white space.
108468         Merge from coreutils
108469         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
108471         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
108472         0.12.1.  These files are now being upgraded automatically by
108473         ../config/srclist-update.
108475 2003-08-12  Paul Eggert  <eggert@twinsun.com>
108477         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
108478         Normalize leading white space and remove trailing white space.
108479         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
108480         notice, as per ../config/srclist-update.
108482         Merge from coreutils.
108483         * lib/euidaccess.h: New file.
108484         * lib/euidaccess.c: Include it.
108485         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
108486         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
108487         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
108489 2003-08-12  Paul Eggert  <eggert@twinsun.com>
108491         * config/srclist-update: Add copyright notice.
108492         (remove_id_lines, remove_trailing_blanks): New constants.
108493         (fixfile): Use them to normalize spacing a bit in copied files.
108494         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
108495         Normalize leading white space and remove trailing white space.
108497         * config/texinfo.tex: Sync with texinfo.
108499         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
108500         strtoul.c from libc, to merge coreutils whitespace changes.
108502         * config/srclist.txt: Get the following m4 files from gettext:
108503         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
108504         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
108505         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
108506         wint_t.m4.
108508 2003-08-12  Karl Berry  <karl@gnu.org>
108510         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
108511         been made.
108513 2003-08-11  Paul Eggert  <eggert@twinsun.com>
108515         * modules/gnu-source, m4/gnu-source.m4:
108516         Remove; we're assuming Autoconf 2.54 or later now.
108517         Suggested by Bruno Haible.
108518         * MODULES.html.sh (func_all_modules): Remove gnu-source.
108520 2003-08-11  Bruno Haible  <bruno@clisp.org>
108522         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
108524 2003-08-11  Bruno Haible  <bruno@clisp.org>
108526         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
108527         (vasnprintf): Use it instead of wcslen.
108529 2003-08-11  Bruno Haible  <bruno@clisp.org>
108531         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
108532         value to ensure that _Bool promotes to int. Use #define for _Bool when
108533         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
108535 2003-08-10  Karl Berry  <karl@gnu.org>
108537         * lib/regex.h: update from libc (whitespace fix).
108539 2003-08-09  Paul Eggert  <eggert@twinsun.com>
108541         Merge some files from coreutils.  These changes were
108542         originally made by Jim Meyering.
108543         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
108544         many older Unixes require this.
108545         * lib/alloca.c (alloca): Remove cast to argument of free;
108546         no longer needed in C89.
108547         * lib/alloca_.h, regex.h: Fix white space to match
108548         what GNU indent does.
108550 2003-08-09  Paul Eggert  <eggert@twinsun.com>
108552         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
108553         apparently Emacs's Unicode mode got confused before my 2003-08-05
108554         checkin.
108556 2003-08-08  Paul Eggert  <eggert@twinsun.com>
108558         * m4/extensions.m4: New file.
108559         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
108560         Require gl_USE_SYSTEM_EXTENSIONS.
108561         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
108562         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
108564 2003-08-08  Paul Eggert  <eggert@twinsun.com>
108566         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
108567         * modules/extensions, modules/gnu-source: New files.
108568         * modules/timespec, modules/unlocked-io: Depend on extensions.
108570 2003-08-07  Paul Eggert  <eggert@twinsun.com>
108572         * modules/restrict: New file.
108573         * MODULES.html.sh (func_all_modules): Add restrict.
108574         * modules/regex: Depend on restrict.
108576 2003-08-07  Paul Eggert  <eggert@twinsun.com>
108578         * m4/restrict.m4: New file.
108579         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
108581 2003-08-07  Bruno Haible  <bruno@clisp.org>
108583         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
108584         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
108586 2003-08-07  Bruno Haible  <bruno@clisp.org>
108588         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
108589         makes the module 'getndelim2' compatible with the module 'getline'.
108591 2003-08-05  Paul Eggert  <eggert@twinsun.com>
108593         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
108594         byte with "\201" to avoid glitches when editing that source file
108595         with multi-gnome-terminal.
108597 2003-08-05  Paul Eggert  <eggert@twinsun.com>
108599         * lib/bumpalloc.h: Remove.
108601 2003-08-05  Paul Eggert  <eggert@twinsun.com>
108603         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
108604         * modules/bumpalloc: Remove.
108606 2003-08-04  Paul Eggert  <eggert@twinsun.com>
108608         * lib/getloadavg.c: Change copyright notice and spacing to conform to
108609         GNU coding style.
108611         Merge from coreutils.
108612         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
108613         1. From glibc.
108614         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
108615         from Karl Berry, implemented by Jim Meyering.
108616         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
108617         from Dmitry V. Levin.
108618         Remove anachronistic cast of xrealloc.
108619         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
108620         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
108621         type. Otherwise, it wouldn't compile with at least /bin/cc on
108622         ymp-cray-unicos9.0.2.X.
108623         Combine two mostly-identical uses of alloca into one.
108624         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
108626 2003-08-04  Dave Love  <d.love@dl.ac.uk>
108628         [From Emacs.]
108630         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
108631         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
108632         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
108633         obsolete NLIST_NAME_UNION.
108634         [__GNU__]: Undef BSD and FSCALE.
108635         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
108637 2003-08-03  Paul Eggert  <eggert@twinsun.com>
108639         * lib/stdbool_.h (_Bool): Make it signed char, instead of
108640         an enum type, so that it's guaranteed to promote to int.  See:
108641         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
108643 2003-08-03  Karl Berry  <karl@gnu.org>
108645         * config/depcomp: update from automake.
108647 2003-07-31  Paul Eggert  <eggert@twinsun.com>
108649         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
108650         (strerror): Don't assume that a printable int fits in 14 bytes.
108652 2003-07-31  Bruno Haible  <bruno@clisp.org>
108654         * modules/getpass-gnu: New file.
108655         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
108657 2003-07-31  Bruno Haible  <bruno@clisp.org>
108659         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
108661 2003-07-24  Karl Berry  <karl@gnu.org>
108663         * config/missing: update from automake.
108665 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
108666             Bruno Haible  <bruno@clisp.org>
108668         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
108669         * lib/getline.c (getline, getdelim): Likewise.
108670         Remove _GNU_SOURCE define; now it's defined in config.h through
108671         m4/getline.m4.
108673 2003-07-23  Karl Berry  <karl@gnu.org>
108675         * config/config.sub: update from prep.
108677 2003-07-22  Paul Eggert  <eggert@twinsun.com>
108679         * modules/xalloc (Depends-on): Add exitfail.
108680         * modules/xmemcoll: Likewise.
108682 2003-07-22  Paul Eggert  <eggert@twinsun.com>
108684         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
108685         over-parenthesization in macros.
108687         Sync with coreutils.
108689         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
108690         required by C99.
108692         Use `exit_failure' for xalloc and xmemcoll instead of their own
108693         private exit-failure variables.
108694         * lib/xalloc.h (xalloc_exit_failure): Remove.
108695         * lib/xmalloc.c: Likewise.  Include exitfail.h.
108696         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
108697         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
108698         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
108699         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
108701 2003-07-20  Jim Meyering  <jim@meyering.net>
108703         * modules/closeout (Depends-on): Add exitfail.
108704         Suggestion from Bruno Haible.
108706 2003-07-19  Karl Berry  <karl@gnu.org>
108708         * config/config.sub: update from prep.
108710 2003-07-18  Paul Eggert  <eggert@twinsun.com>
108712         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
108713         Remove.
108714         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
108715         to test that it can stand by itself.  Include "exitfail.h".
108716         Clients should set exit_failure instead.
108717         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
108719 2003-07-18  Bruno Haible  <bruno@clisp.org>
108721         * modules/getndelim2: New file.
108722         * modules/getline: Share files with module getndelim2.
108723         * modules/getnline: Depend on getndelim2 instead of sharing files with
108724         it. Add getnline.c to lib_SOURCES.
108725         * MODULES.html.sh (func_all_modules): Add getndelim2.
108727 2003-07-18  Bruno Haible  <bruno@clisp.org>
108729         * m4/getndelim2.m4: New file.
108730         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
108731         invoke gl_PREREQ_GETNDELIM2.
108732         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
108733         gl_PREREQ_GETNDELIM2.
108734         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
108735         gl_GETNDELIM2.
108737 2003-07-18  Bruno Haible  <bruno@clisp.org>
108739         * lib/getndelim2.h: New file.
108740         * lib/getndelim2.c: Make into a module of its own. Include config.h,
108741         getndelim2.h.
108742         (getndelim2): Make non-static. Change return type to ssize_t.
108743         * lib/getline.h: Change argument names.
108744         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
108745         * lib/getnline.c: Include getndelim2.h.
108747 2003-07-18  Andreas Schwab  <schwab@suse.de>
108749         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
108751 2003-07-17  Karl Berry  <karl@gnu.org>
108753         * config/config.sub: update from prep.
108755 2003-07-17  Bruno Haible  <bruno@clisp.org>
108757         * modules/getnline: New file.
108758         * modules/getline: Add lib/getndelim2.c to source file list.
108759         * MODULES.html.sh (func_all_modules): Add getnline.
108761 2003-07-17  Bruno Haible  <bruno@clisp.org>
108763         * m4/getnline.m4: New file.
108765 2003-07-17  Bruno Haible  <bruno@clisp.org>
108767         * m4/Makefile.am.in: Remove file.
108768         * m4/Makefile.am: Remove file.
108769         * m4/Makefile.in: Remove file.
108771 2003-07-17  Bruno Haible  <bruno@clisp.org>
108773         * lib/getnline.h: New file.
108774         * lib/getnline.c: New file.
108775         * lib/getndelim2.c: New file, extracted from getline.c.
108776         (getndelim2): Renamed from getdelim2, with added nmax argument.
108777         * lib/getline.c: Include getndelim2.c.
108778         (getdelim2): Moved out to getndelim2.c.
108779         (getline, getdelim): Update.
108781 2003-07-17  Bruno Haible  <bruno@clisp.org>
108783         * lib/Makefile.am: Remove file.
108784         * lib/Makefile.in: Remove file.
108786 2003-07-17  Bruno Haible  <bruno@clisp.org>
108788         * configure.in: Remove file.
108789         * Makefile.in: Remove file.
108791 2003-07-17  Bruno Haible  <bruno@clisp.org>
108793         * MODULES.html.sh: Put the </BODY> right before </HTML>.
108795 2003-07-16  Karl Berry  <karl@gnu.org>
108797         * config/srclist-update: was running fixlicense twice, which caused
108798                 texinfo.tex to be nullified for some reason.  Simplify,
108799                 $gplsrc is no longer needed as far as I can see?
108801 2003-07-16  Jim Meyering  <jim@meyering.net>
108803         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
108805 2003-07-15  Paul Eggert  <eggert@twinsun.com>
108807         * config/srclist.txt: Get the following files from gettext-runtime/intl
108808         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
108809         ref-del.sin.  From Bruno Haible.
108810         * config/srclist-update (fixfile): Change grep pattern again, since the
108811         previous fix didn't work (there was another trailing $).  Use
108812         '[$]' to escape the $s.
108814 2003-07-15  Karl Berry  <karl@gnu.org>
108816         * lib/vasnprintf.c: update from gettext.
108818 2003-07-15  Karl Berry  <karl@gnu.org>
108820         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
108821         gets expanded when surrounded by '$'.
108823 2003-07-15  Jim Meyering  <jim@meyering.net>
108825         * modules/save-cwd: Don't depend on error.  From Derek Price.
108827 2003-07-15  Jim Meyering  <jim@meyering.net>
108829         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
108831 2003-07-14  Simon Josefsson  <jas@extundo.com>
108833         * modules/mempcpy: New file.
108834         * MODULES.html.sh (func_all_modules): Add mempcpy.
108836 2003-07-14  Simon Josefsson  <jas@extundo.com>
108838         * m4/mempcpy.m4: New file.
108840 2003-07-14  Simon Josefsson  <jas@extundo.com>
108842         * lib/mempcpy.h: New file.
108843         * lib/mempcpy.c: New file.
108845 2003-07-14  Paul Eggert  <eggert@twinsun.com>
108847         * modules/getdate, modules/posixtm: Depend on mktime.
108849 2003-07-14  Paul Eggert  <eggert@twinsun.com>
108851         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
108852         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
108853         unicodeio.c, unicodeio.h, unlocked-io.h:
108854         Switch from LGPL to GPL.
108856 2003-07-14  Paul Eggert  <eggert@twinsun.com>
108858         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
108859         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
108860         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
108861         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
108862         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
108863         updated automatically by ../config/srclist-update.  This changes
108864         their license from LPGL to GPL.
108866 2003-07-14  Paul Eggert  <eggert@twinsun.com>
108868         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
108869         assumed to refer to the root of the most recent stable gettext version.
108870         * config/srclistvars.sh: Add defaults for eggert.
108871         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
108872         Match "This program" as well as "The program".  This is needed
108873         for gettext.
108875 2003-07-14  Jim Meyering  <jim@meyering.net>
108877         Don't emit diagnostics.  Let callers do that.
108878         * lib/save-cwd.c: Don't include "error.h".
108879         (save_cwd): Don't call error.  Ensure that errno is valid
108880         when returning nonzero.
108882         * lib/save-cwd.h (restore_cwd): Update prototype.
108883         * lib/save-cwd.c (restore_cwd): Remove two parameters.
108884         Simplify.  Don't call error upon failure.  Let callers do that.
108885         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
108886         when auditing is enabled.  But don't bother updating the #if.
108888 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
108890         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
108891         it breaks C++ compilation.
108892         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
108894 2003-07-10  Simon Josefsson  <jas@extundo.com>
108896         * modules/strchrnul (Makefile.am): Add strchrnul.h.
108898 2003-07-10  Jim Meyering  <jim@meyering.net>
108900         * m4/clock_time.m4: Remove trailing blank.
108901         * m4/intmax_t.m4: Likewise.
108903 2003-07-10  Jim Meyering  <jim@meyering.net>
108905         * lib/vasnprintf.c: Remove trailing blanks.
108906         Make cpp indentation consistent.
108908 2003-07-09  Paul Eggert  <eggert@twinsun.com>
108910         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
108911         posixver.c, strftime.c, strnlen.c, strverscmp.c:
108912         Switch from LGPL to GPL.
108914 2003-07-09  Paul Eggert  <eggert@twinsun.com>
108916         * config/srclist.txt: Sort sublists.  Add
108917         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
108918         that differ from gnulib for one reason or another; we'd like this list
108919         to be smaller but for now let's document what we have.
108921 2003-07-08  Paul Eggert  <eggert@twinsun.com>
108923         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
108924         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
108925         and sweeter "eval x=$x".
108926         * config/srclist.txt: Get lib/argp* from glibc.
108928 2003-07-07  Paul Eggert  <eggert@twinsun.com>
108930         * lib/mktime.c: Fix some boundary cases and remove need for floating
108931         point.
108933         Issue a compile-time diagnostic if time_t is floating point, or if
108934         two's complement arithmetic is not in effect, or if arithmetic
108935         right shift does not propagate the sign.  These assumptions were
108936         all in the original code but they weren't checked.
108938         (TIME_T_MIDPOINT, verify): New macros.
108939         (__isleap): Remove; it has integer overflow problems.
108940         (leapyear): New function, without those problems.
108941         (ydhms_tm_diff): Remove; splitting into two parts.
108942         (ydhms_diff): New function, containing the arithmetic part of
108943         the old ydhms_tm_diff function.  Issue a compile-time
108944         diagnostic if we are not using C99 integer division.
108945         Avoid casts when possible.
108946         (guess_time_tm): New function, containing the checking part of
108947         the old ydhms_tm_diff function.  Return the new value, rather than
108948         the difference between it and the old.  Accept a new argument T
108949         so that *T specifies the old value.  Check for overflow in the result.
108951         (__mktime_internal): Use a time_t offset, not a long int offset.
108952         This undoes the 2003-06-04 change, which is no longer needed now
108953         that we have better overflow checking.
108954         (localtime_offset): Likewise.
108956         (__mktime_internal): Avoid harmful overflow on hosts where time_t
108957         and long are 64-bit but int is only 32-bit.
108958         (ydhms_diff): Use long int to store year1 and yday1.
108959         Issue a compile-time diagnostic if long int is not wide enough.
108961         (__mktime_internal): Use long int to store adjusted year and yday.
108962         Use plain C rather than preprocessor commands, if that doesn't
108963         affect efficiency.
108964         Check for overflow (and try to repair) after each probe
108965         rather than checking only at the very end.  This avoids some bugs
108966         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
108967         does not equal GMT offset at maximum time).
108968         Use integer to check for overflow rather than floating point; this
108969         is more portable to non-IEEE hosts, and is a tad faster.
108970         When we detect that we are oscillating between two values,
108971         don't check whether tm_isdst has the requested value, since
108972         we already know the answer.  When tm_isdst has the wrong value,
108973         use a different heuristic to find the right one, based on the
108974         extreme values actually observed in practice in tz2003a,
108975         rather than the (overly optimistic) "previous 3 calendar quarters".
108977         (not_equal_tm, print_tm, check_result): Use "const T" rather than
108978         "T const" to accommodate glibc style.
108979         (check_result): Use less-confusing report format.  "long" -> "long int.
108980         (main): Likewise.
108981         Don't loop if the iteration overflows time_t.
108982         Allow a negative step in the iteration.
108984 2003-07-06  Karl Berry  <karl@gnu.org>
108986         * config/depcomp: update from automake.
108987         * config/config.sub: update from prep.
108989 2003-07-03  Karl Berry  <karl@gnu.org>
108991         * config/config.guess: update from prep.
108993 2003-07-01  Paul Eggert  <eggert@twinsun.com>
108995         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
108996         xreadlink.c now includes it unconditionally.
108998 2003-07-01  Paul Eggert  <eggert@twinsun.com>
109000         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
109001         having it depend on HAVE_SYS_TYPES_H.
109003 2003-07-01  Bruno Haible  <bruno@clisp.org>
109005         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
109006         <sys/types.h> should be sufficient.
109007         Reported by Paul Eggert.
109009 2003-06-26  Karl Berry  <karl@gnu.org>
109011         * config/depcomp: update from automake.
109013 2003-06-26  Bruno Haible  <bruno@clisp.org>
109015         * modules/human: Depend on module stdbool.
109017 2003-06-25  Bruno Haible  <bruno@clisp.org>
109019         * modules/readlink: New file.
109020         * modules/xreadlink: Depend on it.
109021         * MODULES.html.sh (func_all_modules): Add readlink.
109023 2003-06-25  Bruno Haible  <bruno@clisp.org>
109025         * m4/readlink.m4: New file.
109027 2003-06-25  Bruno Haible  <bruno@clisp.org>
109029         * lib/readlink.c: New file.
109031 2003-06-22  Karl Berry  <karl@gnu.org>
109033         * config/srclist.txt: update mkinstalldirs from automake.
109034         * config/mkinstalldirs: update.
109036 2003-06-22  Bruno Haible  <bruno@clisp.org>
109038         Portability to mingw32.
109039         * m4/ssize_t.m4: New file, from GNU gettext.
109040         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
109041         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
109043 2003-06-22  Bruno Haible  <bruno@clisp.org>
109045         * modules/safe-read: Add m4/ssize_t.m4.
109046         * modules/xreadlink: Add m4/ssize_t.m4.
109048 2003-06-20  Bruno Haible  <bruno@clisp.org>
109050         Assume C89, so PARAMS isn't needed.
109051         * lib/unicodeio.h (PARAMS): Remove.
109052         * lib/unicodeio.c: Don't use PARAMS.
109054 2003-06-18  Karl Berry  <karl@gnu.org>
109056         * config/config.{guess,sub}: update from prep.
109058 2003-06-18  Jim Meyering  <jim@meyering.net>
109060         Merge changes from coreutils.
109061         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
109062         Remove explicit declarations of xmalloc and realloc.
109063         Include xalloc.h.
109064         (read_utmp): Remove anachronistic cast of xmalloc.
109066 2003-06-17  Paul Eggert  <eggert@twinsun.com>
109068         Assume C89, so PARAMS isn't needed.
109069         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
109070         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
109071         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
109072         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
109073         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
109074         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
109075         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
109076         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
109077         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
109078         lib/xstrtod.h, lib/xstrtol.h: Likewise.
109079         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
109080         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
109081         no longer needed. Anyway, config.h should always be included before any
109082         other file.
109084 2003-06-11  Simon Josefsson  <jas@extundo.com>
109086         * modules/sysexits: New file.
109087         * MODULES.html.sh (func_all_modules): Add sysexits.
109089 2003-06-11  Simon Josefsson  <jas@extundo.com>
109091         * lib/sysexit_.h: New file.
109093 2003-06-11  Derek Price  <derek@ximbiot.com>
109095         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
109096         necessary.
109098 2003-06-11  Bruno Haible  <bruno@clisp.org>
109100         * m4/sysexits.m4: New file.
109102 2003-06-10  Simon Josefsson  <jas@extundo.com>
109104         * lib/argp.h: New file, from glibc.
109105         * lib/argp-ba.c: New file, from glibc.
109106         * lib/argp-eexst.c: New file, from glibc.
109107         * lib/argp-fmtstream.c: New file, from glibc.
109108         * lib/argp-fmtstream.h: New file, from glibc.
109109         * lib/argp-fs-xinl.c: New file, from glibc.
109110         * lib/argp-help.c: New file, from glibc.
109111         * lib/argp-namefrob.h: New file, from glibc.
109112         * lib/argp-parse.c: New file, from glibc.
109113         * lib/argp-pv.c: New file, from glibc.
109114         * lib/argp-pvh.c: New file, from glibc.
109115         * lib/argp-xinl.c: New file, from glibc.
109117 2003-06-10  Simon Josefsson  <jas@extundo.com>
109119         * modules/strchrnul: New file.
109121 2003-06-10  Simon Josefsson  <jas@extundo.com>
109123         * modules/argp: New file.
109125 2003-06-10  Simon Josefsson  <jas@extundo.com>
109127         * m4/strchrnul.m4: New file.
109129 2003-06-10  Simon Josefsson  <jas@extundo.com>
109131         * lib/strchrnul.h: New file.
109132         * lib/strchrnul.c: New file.
109134 2003-06-10  Bruno Haible  <bruno@clisp.org>
109136         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
109138 2003-06-07  Karl Berry  <karl@gnu.org>
109140         * config/config.{guess,sub}: update from prep.
109142 2003-06-07  Jim Meyering  <jim@meyering.net>
109144         * modules/strtod: Use $(...) notation, not @...@ for
109145         AC_REPLACE'd variables.
109146         * modules/localcharset: Likewise.
109148 2003-06-07  Jim Meyering  <jim@meyering.net>
109150         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
109151         in place of my name in the copyright comment.
109152         Remove definition and uses of __P.
109154         From coreutils.
109155         * lib/stat.c: Don't declare xmalloc explicitly.
109156         Instead, include "xalloc.h".
109157         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
109158         xrealloc, and xcalloc return values.
109159         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
109160         Improve comment.
109161         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
109163 2003-06-07  Bruno Haible  <bruno@clisp.org>
109165         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
109166         avoid AC_CONFIG_LINKS.
109167         * modules/fnmatch (Makefile.am): Use explicit creation rule for
109168         fnmatch.h, to avoid AC_CONFIG_LINKS.
109169         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
109171 2003-06-07  Bruno Haible  <bruno@clisp.org>
109173         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
109174         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
109175         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
109176         directory.
109177         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
109178         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
109179         directory.
109181 2003-06-06  Jim Meyering  <jim@meyering.net>
109183         Merge from coreutils.
109184         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
109185         Consolidate declarations and initializations of *_base* locals.
109187         Merge from coreutils.
109188         This avoids a core dump on systems without GNU putenv,
109189         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
109190         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
109191         (unsetenv): New static function, from GNU libc.
109192         (rpl_putenv): Use it.
109194         * lib/modechange.c: Remove trailing blanks.
109196         Merge from coreutils.
109197         * lib/fsusage.c: Remove declaration of statfs.
109198         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
109200         * lib/posixtm.c: Include <stdbool.h> unconditionally.
109202 2003-06-06  Jim Meyering  <jim@meyering.net>
109204         * lib/stdbool_.h: Renamed from stdbool.h.in.
109206 2003-06-06  Jim Meyering  <jim@meyering.net>
109207             Bruno Haible  <bruno@clisp.org>
109209         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
109210         Adjust Makefile.am snippet not to redirect directly to target.
109211         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
109213 2003-06-05  Paul Eggert  <eggert@twinsun.com>
109215         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
109216         mismatch, look in future quarters as well as past.  This fixes a
109217         bug when processing fall-backwards gaps immediately after a long
109218         period of daylight-saving time.
109220         * lib/mktime.c: Assume freestanding C89 or better.
109221         (HAVE_LIMITS_H): Remove.  Assume it's 1.
109222         (__P): Remove; not used.
109223         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
109224         (mktime, not_equal_tm, print_tm, check_result,
109225         main): Use prototypes.  Use const * where appropriate.
109226         (main): Fix typo in testing code that uncovered by above changes.
109227         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
109229 2003-06-04  Paul Eggert  <eggert@twinsun.com>
109231         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
109232         locale.h, localeconv.  This merges changes from coreutils.
109234         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
109235         It can be removed after the next Autoconf is released.
109236         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
109237         needed.
109239 2003-06-04  Paul Eggert  <eggert@twinsun.com>
109241         * lib/mktime.c: Fix Debian bug 177940
109242         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
109243         (localtime_offset): Now long int, not time_t, because we want it
109244         to be guaranteed to be signed.  All uses changed.
109245         (__mktime_internal): If overflow would occur when adding offset,
109246         don't add it.
109248         Merge 'human' changes from coreutils.  Rewrite to support
109249         locale-specific notations like thousands separators.
109250         * lib/human.c: Simplify authorship notice.
109251         Include human.h immediately after config.h.
109252         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
109253         <limits.h>: Do not include, since human.h does.
109254         (SIZE_MAX, UINTMAX_MAX): New macros.
109255         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
109256         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
109257         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
109258         (power_letter): Renamed from suffixes.
109259         (generate_suffix_backwards): Remove.
109260         (adjust_value): Now takes int style (because of human.h changes)
109261         and long double value (for greater precision on some platforms).
109262         (group_number): New function.
109263         (human_readable): Use it.  Use integer options, not enum.
109264         Put the options before the sizes in the arg list.
109265         Support all the new options.
109266         The old human_readable function has been removed;
109267         use inttostr.h instead.
109268         (human_readable, default_block_size, humblock):
109269         Use uintmax_t, not int, for block sizes.
109270         (human_readable_inexact, block_size_types): Remove.
109271         (block_size_opts): New constant.
109272         (human_options): Renamed from human_block_size, with new signature
109273         that allows block sizes up to UINTMAX_MAX.  All callers changed.
109274         * lib/human.h: Add copyright and authorship notice.
109275         Include <limits.h> and <stdbool.h> unconditionally.
109276         (PARAMS): Remove.  All uses removed.
109277         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
109278         (enum human_inexact_style): Remove tag; now a nameless enum.
109279         (human_floor, human_ceiling, human_round_to_even): Now have
109280         values 2, 0, 1 rather than -1, 1, 0.
109281         (human_group_digits, human_suppress_point_zero, human_autoscale,
109282         human_base_1024, human_SI, human_B): New constants.
109283         (human_readable_inexact, human_block_size): Remove.
109284         (human_readable): Size args are now uintmax_t, not int.
109285         (human_options): New decl.
109287         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
109288         unnecessary now that we assume C89 or better.  This change
109289         imported from coreutils.
109291         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
109292         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
109293         in the 2003-05-30 sync from glibc.
109295         .h files should stand alone, but we shouldn't include <sys/types.h>
109296         if we can get away with just <stddef.h>.
109298         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
109299         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
109300         rather than <sys/types.h>, as we merely need size_t.
109301         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
109302         to get size_t.
109303         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
109304         Include <stdio.h>, to get FILE.
109305         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
109306         memcasecmp.h has included <stddef.h> and all we need is size_t.
109307         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
109308         our interface, instead of including <sys/types.h>
109310 2003-06-04  Paul Eggert  <eggert@twinsun.com>
109312         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
109313         now, as glibc mktime is buggy on non-glibc systems.
109315 2003-06-03  Karl Berry  <karl@gnu.org>
109317         * config/config.sub: update from prep.
109319 2003-06-02  Paul Eggert  <eggert@twinsun.com>
109321         [from coreutils]
109322         Fix some minor time-related bugs with POSIX time arguments.
109323         Some valid time stamps were being rejected (notably -1, and
109324         time stamps before 1900 on 64-bit hosts).  And some invalid
109325         time stamps were being accepted, e.g. September 31.
109327         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
109328         that we can return (time_t) -1 successfully.
109329         * lib/posixtm.c: Likewise.
109330         [HAVE_STDBOOL_H]: Include <stdbool.h>.
109331         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
109332         (t): Remove static var.
109333         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
109334         of static var.  All uses changed.
109335         (year): Do not reject years before 1900; they can occur with
109336         64-bit time_t.
109337         (posix_time_parse): Do not check for out-of-range components;
109338         that is now the caller's responsibility, since our checks were
109339         only approximations.
109340         (posixtime): Use mktime to check for out-of-range components,
109341         since it knows them exactly.
109342         If mktime returns (time_t) -1, check whether an error actually occurred
109343         by invoking localtime on -1.
109344         (main) [TEST_POSIXTIME]: Check for input data errors, and report
109345         posixtime failures better.
109346         Improve the test data (in comments only).
109348 2003-06-02  Karl Berry  <karl@gnu.org>
109350         * config/mkinstalldirs (version): new variable.
109351         (--version): new option.
109352         (usage): improve message.
109354 2003-05-30  Karl Berry  <karl@gnu.org>
109356         * lib/mktime.c: update from libc.
109358 2003-05-30  Bruno Haible  <bruno@clisp.org>
109360         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
109361         * config/config.rpath: Upgrade to gettext-0.12.1.
109363 2003-05-30  Bruno Haible  <bruno@clisp.org>
109365         * m4/gettext.m4: Upgrade to gettext-0.12.1.
109366         * m4/nls.m4: New file, from gettext-0.12.1.
109367         * m4/po.m4: New file, from gettext-0.12.1.
109368         * m4/progtest.m4: Upgrade to gettext-0.12.1.
109370 2003-05-30  Bruno Haible  <bruno@clisp.org>
109372         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
109373         * lib/localcharset.h: Likewise.
109374         * lib/localcharset.c: Likewise.
109376 2003-05-29  Karl Berry  <karl@gnu.org>
109378         * config/config.rpath: update from gettext.
109380 2003-05-28  Paul Eggert  <eggert@twinsun.com>
109382         Assume the headers required for C89 freestanding compilers.
109383         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
109384         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
109385         * m4/human.m4 (gl_HUMAN): Likewise.
109386         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
109387         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
109388         * m4/userspec.m4 (gl_USERSPEC): Likewise.
109389         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
109390         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
109391         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
109393 2003-05-28  Paul Eggert  <eggert@twinsun.com>
109395         Assume the headers required for C89 freestanding compilers.
109396         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
109397         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
109398         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
109399         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
109400         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
109401         define, since <limits.h> is guaranteed to do that.
109402         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
109403         * lib/exclude.c: Include <stdbool.h> unconditionally.
109404         * lib/tempname.c: Include <stddef.h> unconditionally.
109405         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
109406         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
109407         <stddef.h> does that.
109408         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
109409         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
109410         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
109411         needed.
109412         * lib/xstrtol.c: Likewise.
109413         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
109414         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
109416         * lib/addext.c (addext): Use assignment rather than cast, to avoid
109417         warnings on some platforms.
109419         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
109420         arbitrarily.
109422 2003-05-26  Jim Meyering  <jim@meyering.net>
109424         Merge in a change from coreutils:
109425         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
109426         that is guaranteed to be `no'.  Use `no_such_member' to indicate
109427         that condition, rather than `-1' which is slightly misleading.
109428         Change the name of the cache variable to have the gl_ prefix.
109429         Prompted by a patch from Richard Dawe for DJGPP.
109431 2003-05-24  Karl Berry  <karl@gnu.org>
109433         * config/config.guess: update from prep.
109435 2003-05-22  Karl Berry  <karl@gnu.org>
109437         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
109439 2003-05-20  Karl Berry  <karl@gnu.org>
109441         * config/config.guess: update from prep.
109443 2003-05-18  Karl Berry  <karl@gnu.org>
109445         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
109446         might actually be set by the user.
109448         * config/depcomp, install-sh, mdate-sh: update from automake.
109450 2003-05-17  Bruno Haible  <bruno@clisp.org>
109452         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
109453         invalid expansion for AC_EGREP_CPP.
109454         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
109455         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
109456         Suggested by Akim Demaille <akim@epita.fr> in
109457         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
109459 2003-05-12  Jim Meyering  <jim@meyering.net>
109461         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
109462         the space-padded-by-default conversion specifiers, %e, %k, %l.
109464 2003-05-12  Bruno Haible  <bruno@clisp.org>
109466         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
109467         the string is longer than 4 KB.
109469 2003-05-11  Karl Berry  <karl@gnu.org>
109471         * config/config.{guess,sub}: update from prep.
109473 2003-05-09  Bruno Haible  <bruno@clisp.org>
109475         * modules/error: Add m4/strerror_r.m4 to file list.
109477 2003-05-03  Bruno Haible  <bruno@clisp.org>
109479         Upgrade to Unicode-4.0.
109480         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
109481         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
109482         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
109483         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
109484         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
109485         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
109486         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
109487         Change width of U+E0100..U+E01EF from 1 to 0.
109489 2003-04-25  Jim Meyering  <jim@meyering.net>
109491         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
109492         of type size_t, not int.
109494 2003-04-25  Bruno Haible  <bruno@clisp.org>
109496         * lib/copy-file.c: Include <stddef.h>, for size_t.
109498 2003-04-21  Paul Eggert  <eggert@twinsun.com>
109500         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
109501         code which expansion is under static control.  Patch imported from
109502         Akim Demaille's patch to Bison; see
109503         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
109505 2003-04-14  Bruno Haible  <bruno@clisp.org>
109507         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
109509 2003-04-11  Jim Meyering  <jim@meyering.net>
109511         Merge changes from Coreutils.
109513         2003-03-22  Jim Meyering  <jim@meyering.net>
109515         * lib/strftime.c (widen): Cast alloca return value to proper type.
109517         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
109519         From GNU libc.
109520         * lib/strftime.c (my_strftime): Handle very large width
109521         specifications for numeric values correctly.  Improve checks for
109522         overflow.
109524         2003-01-19  Jim Meyering  <jim@meyering.net>
109526         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
109527         definitions.
109528         (nl_get_alt_digit) [! defined my_strftime]: Define.
109529         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
109530         _nl_get_alt_digit and _nl_get_walt_digit.
109532         * lib/strftime.c (my_strftime): Merge in locale-related changes from
109533         libc. These changes have no effect outside of _LIBC.
109535 2003-04-10  Bruno Haible  <bruno@clisp.org>
109537         * modules/findprog: New file.
109538         * MODULES.html.sh (func_all_modules): Add it.
109540 2003-04-10  Bruno Haible  <bruno@clisp.org>
109542         * m4/findprog.m4: New file.
109543         * m4/eaccess.m4: New file.
109545 2003-04-10  Bruno Haible  <bruno@clisp.org>
109547         * lib/findprog.h: New file, from GNU gettext.
109548         * lib/findprog.c: New file, from GNU gettext.
109550 2003-04-05  Jim Meyering  <jim@meyering.net>
109552         Merge changes from Coreutils.
109554         * lib/exclude.h (PARAMS): Remove definition and uses.
109555         * lib/exclude.c: Remove uses of `PARAMS'.
109557         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
109558         Add test-cases for DOS filenames. Declare program_name.
109559         (main): Set up program_name.  Patch by Rich Dawe.
109561         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
109562         error from mntctl.
109563         Use mntctl's return value to drive the entry-processing loop, since
109564         we can't rely on the value of the vmt_length member in the last
109565         entry.  On some systems doing so could result in exhausting
109566         virtual memory.  Based in part on a patch from Mike Jetzer.
109568 2003-04-04  Bruno Haible  <bruno@clisp.org>
109570         * modules/linebreak: New file.
109571         * MODULES.html.sh (func_all_modules): Add it.
109573 2003-04-04  Bruno Haible  <bruno@clisp.org>
109575         * m4/linebreak.m4: New file.
109577 2003-04-04  Bruno Haible  <bruno@clisp.org>
109579         * lib/linebreak.h: New file, from GNU gettext.
109580         * lib/linebreak.c: New file, from GNU gettext with slight
109581         modifications.
109582         * lib/lbrkprop.h: New file, from GNU gettext.
109584 2003-04-03  Bruno Haible  <bruno@clisp.org>
109586         * modules/utf8-ucs4: New file.
109587         * modules/utf16-ucs4: New file.
109588         * modules/ucs4-utf8: New file.
109589         * modules/ucs4-utf16: New file.
109590         * MODULES.html.sh (func_all_modules): Add them.
109592 2003-04-03  Bruno Haible  <bruno@clisp.org>
109594         * m4/utf-ucs4.m4: New file.
109595         * m4/ucs4-utf.m4: New file.
109597 2003-04-03  Bruno Haible  <bruno@clisp.org>
109599         * lib/utf8-ucs4.h: New file, from GNU gettext.
109600         * lib/utf16-ucs4.h: New file, from GNU gettext.
109601         * lib/ucs4-utf8.h: New file, from GNU gettext.
109602         * lib/ucs4-utf16.h: New file, from GNU gettext.
109604 2003-04-02  Bruno Haible  <bruno@clisp.org>
109606         * modules/binary-io: New file.
109607         * MODULES.html.sh (func_all_modules): Add it.
109609 2003-04-02  Bruno Haible  <bruno@clisp.org>
109611         * lib/binary-io.h: New file, from GNU gettext.
109613 2003-04-01  Bruno Haible  <bruno@clisp.org>
109615         * modules/pathname: New file.
109616         * MODULES.html.sh (func_all_modules): Add it.
109618 2003-04-01  Bruno Haible  <bruno@clisp.org>
109620         * lib/pathname.h: New file, from GNU gettext.
109621         * lib/concatpath.c: New file, from GNU gettext.
109623 2003-03-30  Bruno Haible  <bruno@clisp.org>
109625         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
109627 2003-03-30  Bruno Haible  <bruno@clisp.org>
109629         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
109630         function chown() doesn't exist.
109632 2003-03-28  Bruno Haible  <bruno@clisp.org>
109634         * modules/copy-file: New file.
109635         * MODULES.html.sh (func_all_modules): Add it.
109637 2003-03-28  Bruno Haible  <bruno@clisp.org>
109639         * m4/copy-file.m4: New file.
109641 2003-03-28  Bruno Haible  <bruno@clisp.org>
109643         * lib/copy-file.h: New file, from GNU gettext.
109644         * lib/copy-file.c: New file, from GNU gettext.
109646 2003-03-18  Jim Meyering  <jim@meyering.net>
109648         * lib/quote.c (quote_n): Fix typo in comment.
109650 2003-03-18  Bruno Haible  <bruno@clisp.org>
109652         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
109653         checking.
109654         * m4/onceonly_2_57.m4: Likewise.
109656 2003-03-17  Bruno Haible  <bruno@clisp.org>
109658         * m4/onceonly.m4: Require autoconf 2.54 or newer.
109659         (m4_quote): Remove macro.
109660         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
109662 2003-03-14  Jim Meyering  <jim@meyering.net>
109664         Merge changes from Coreutils.
109665         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
109666         to be const, in order to avoid warnings.
109667         (obstack_room): Likewise.
109668         (obstack_empty_p): Likewise.
109670 2003-03-14  Bruno Haible  <bruno@clisp.org>
109672         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
109673         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
109675 2003-03-13  Paul Eggert  <eggert@twinsun.com>
109677         Merge changes from Bison.
109678         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
109679         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
109680         when compiling Bison 1.875's `bitset bset = obstack_alloc
109681         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
109682         * lib/hash.c: Include <stdbool.h> unconditionally.
109684 2003-03-13  Paul Eggert  <eggert@twinsun.com>
109686         * m4/onceonly.m4 (m4_quote): New macro.
109687         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
109688         Quote AC_FOREACH variable-expansions properly.
109690 2003-03-13  Paul Eggert  <eggert@twinsun.com>
109692         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
109694 2003-03-09  Paul Eggert  <eggert@twinsun.com>
109696         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
109697         Reported by Bruce Becker; see:
109698         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
109700 2003-03-03  Paul Eggert  <eggert@twinsun.com>
109701             Bruno Haible  <bruno@clisp.org>
109703         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
109704         Reported by John Hughes, see
109705         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
109707 2003-02-20  Bruno Haible  <bruno@clisp.org>
109709         * MODULES.html.sh (func_all_modules): Add poll.
109711 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
109713         * modules/poll: New file.
109715 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
109717         * lib/poll_.h: New file.
109718         * lib/poll.c: New file.
109720 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
109722         * m4/poll.m4: New file.
109724 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
109726         * modules/mathl: New file.
109728 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
109730         * lib/mathl.h: New file.
109731         * lib/acosl.c: New file.
109732         * lib/asinl.c: New file.
109733         * lib/atanl.c: New file.
109734         * lib/ceill.c: New file.
109735         * lib/cosl.c: New file.
109736         * lib/expl.c: New file.
109737         * lib/floorl.c: New file.
109738         * lib/frexpl.c: New file.
109739         * lib/ldexpl.c: New file.
109740         * lib/logl.c: New file.
109741         * lib/sincosl.c: New file.
109742         * lib/sinl.c: New file.
109743         * lib/sqrtl.c: New file.
109744         * lib/tanl.c: New file.
109745         * lib/trigl.c: New file.
109746         * lib/trigl.h: New file.
109748 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
109750         * m4/mathl.m4: New file.
109752 2003-02-18  Bruno Haible  <bruno@clisp.org>
109754         * MODULES.html.sh (func_all_modules): Add mathl.
109756 2003-02-17  Bruno Haible  <bruno@clisp.org>
109758         * modules/mkdtemp: New module.
109759         * MODULES.html.sh (func_all_modules): Add it.
109761 2003-02-17  Bruno Haible  <bruno@clisp.org>
109763         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
109765 2003-02-17  Bruno Haible  <bruno@clisp.org>
109767         * lib/mkdtemp.h: New file, from GNU gettext.
109768         * lib/mkdtemp.c: New file, from GNU gettext.
109770 2003-02-02  Jim Meyering  <jim@meyering.net>
109772         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
109773         e.g. glibc-2.2.93.
109775 2003-01-31  Bruno Haible  <bruno@clisp.org>
109777         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
109778         'rpl_rename'.
109779         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
109780         'rpl_strnlen'.
109781         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
109782         'rpl_strtod'.
109783         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
109784         'rpl_utime'.
109786 2003-01-31  Bruno Haible  <bruno@clisp.org>
109788         * lib/rename.c: #undef rename before defining rpl_rename.
109789         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
109791 2003-01-30  Bruno Haible  <bruno@clisp.org>
109793         * modules/vasnprintf, modules/vasprintf: New modules.
109794         * MODULES.html.sh (func_all_modules): Add them.
109796 2003-01-30  Bruno Haible  <bruno@clisp.org>
109798         * m4/signed.m4: New file, from GNU gettext.
109799         * m4/longdouble.m4: New file, from GNU gettext.
109800         * m4/wchar_t.m4: New file, from GNU gettext.
109801         * m4/wint_t.m4: New file, from GNU gettext.
109802         * m4/vasnprintf.m4: New file.
109803         * m4/vasprintf.m4: New file.
109805 2003-01-30  Bruno Haible  <bruno@clisp.org>
109807         * lib/printf-args.h: New file, from GNU gettext.
109808         * lib/printf-args.c: New file, from GNU gettext.
109809         * lib/printf-parse.h: New file, from GNU gettext.
109810         * lib/printf-parse.c: New file, from GNU gettext.
109811         * lib/vasnprintf.h: New file, from GNU gettext.
109812         * lib/vasnprintf.c: New file, from GNU gettext.
109813         * lib/asnprintf.c: New file, from GNU gettext.
109814         * lib/vasprintf.h: New file, from GNU gettext with modifications.
109815         * lib/vasprintf.c: New file, from GNU gettext.
109816         * lib/asprintf.c: New file, from GNU gettext.
109818 2003-01-29  Bruno Haible  <bruno@clisp.org>
109820         * modules/stpncpy: New module.
109821         * MODULES.html.sh (func_all_modules): Add it.
109823 2003-01-29  Bruno Haible  <bruno@clisp.org>
109825         * m4/stpncpy.m4: New file.
109827 2003-01-29  Bruno Haible  <bruno@clisp.org>
109829         * lib/stpncpy.h: New file, from GNU gettext with modifications.
109830         * lib/stpncpy.c: New file, from GNU gettext with modifications.
109832 2003-01-28  Bruno Haible  <bruno@clisp.org>
109834         * modules/c-ctype: New module.
109835         * MODULES.html.sh (func_all_modules): Add it.
109837 2003-01-28  Bruno Haible  <bruno@clisp.org>
109839         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
109840         Paul Eggert.
109841         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
109842         Paul Eggert.
109844 2003-01-27  Bruno Haible  <bruno@clisp.org>
109846         * modules/xsetenv: New module.
109847         * MODULES.html.sh (func_all_modules): Add it.
109849 2003-01-27  Bruno Haible  <bruno@clisp.org>
109851         * lib/xsetenv.h: New file, from GNU gettext.
109852         * lib/xsetenv.c: New file, from GNU gettext.
109854 2003-01-23  Jim Meyering  <jim@meyering.net>
109856         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
109857         from working on systems without dirfd (at least Irix and OSF1/Tru64).
109859 2003-01-23  Bruno Haible  <bruno@clisp.org>
109861         * modules/minmax: New module.
109862         * MODULES.html.sh (func_all_modules): Add it.
109864 2003-01-23  Bruno Haible  <bruno@clisp.org>
109866         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
109867         Eggert.
109869 2003-01-22  Bruno Haible  <bruno@clisp.org>
109871         * modules/exit: New module.
109872         * MODULES.html.sh (func_all_modules): Add it.
109874 2003-01-22  Bruno Haible  <bruno@clisp.org>
109876         * lib/exit.h: New file, from GNU gettext.
109878 2003-01-19  Bruno Haible  <bruno@clisp.org>
109880         * gnulib-tool: Recognize option --extract-maintainer.
109881         (func_get_maintainer): New function.
109882         * modules/*: Add Maintainer entry.
109884 2003-01-16  Jim Meyering  <jim@meyering.net>
109886         * m4/regex.m4: The `regex' struct is both input and output.
109887         Initialize it before each use.  Patch by Tim Waugh.
109889 2003-01-16  Bruno Haible  <bruno@clisp.org>
109891         * MODULES.html.sh: Add a table of contents. Add the module name as
109892         leftmost column. Add hyperlinks.
109894 2003-01-15  Bruno Haible  <bruno@clisp.org>
109896         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
109898 2003-01-15  Bruno Haible  <bruno@clisp.org>
109900         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
109901         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
109902         suffix.
109904 2003-01-15  Bruno Haible  <bruno@clisp.org>
109906         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
109908 2003-01-15  Bruno Haible  <bruno@clisp.org>
109910         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
109911         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
109913 2003-01-14  Jim Meyering  <jim@meyering.net>
109915         * lib/same.c (same_name): Tweak a comment.
109917 2003-01-14  Bruno Haible  <bruno@clisp.org>
109919         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
109920         when a string comparison is sufficient.
109922 2003-01-14  Bruno Haible  <bruno@clisp.org>
109924         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
109925         'unsigned int'.
109927 2003-01-14  Bruno Haible  <bruno@clisp.org>
109929         * lib/hash-pjw.c: Add comment about low quality of this function.
109931 2003-01-13  Bruno Haible  <bruno@clisp.org>
109933         * modules/stpcpy: Distribute lib/stpcpy.h.
109934         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
109936 2003-01-13  Bruno Haible  <bruno@clisp.org>
109938         * modules/*: Add a description.
109939         * modules/strpbrk: Fix Makefile.am snippet.
109940         * modules/strtoimax: Fix dependencies.
109941         * modules/strtoumax: Likewise.
109943 2003-01-13  Bruno Haible  <bruno@clisp.org>
109945         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
109946         * modules/alloca (Makefile.am): All object files depend on alloca.h.
109947         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
109949 2003-01-13  Bruno Haible  <bruno@clisp.org>
109951         * gnulib-tool (func_create_testdir): Store config/* files in the main
109952         directory.
109953         * config.rpath: Move to ...
109954         * config/config.rpath: ... here.
109955         * modules/gettext: Contains config/config.rpath, not config.rpath.
109956         * modules/iconv: Likewise.
109958 2003-01-12  Paul Eggert  <eggert@twinsun.com>
109960         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
109961         to avoid collisions with libcurses and libreadline.
109963         * m4/getstr.m4: Remove.
109964         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
109966 2003-01-12  Paul Eggert  <eggert@twinsun.com>
109968         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
109969         to avoid collisions with libcurses and libreadline.
109971         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
109972         * lib/getstr.h, getstr.c: Remove.
109973         * lib/getline.c: Include "getline.h", to check interface.
109974         Move body of old getstr.c here: this defines MIN_CHUNK and
109975         declares getdelim2, which is renamed from getstr.
109976         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
109978         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
109979         All uses changed.
109980         * lib/linebuffer.h: Likewise.
109981         (readline): Remove backward-compatibility macro.
109983 2003-01-12  Paul Eggert  <eggert@twinsun.com>
109985         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
109986         to avoid collisions with libcurses and libreadline.
109987         * getstr: Remove.
109988         * MODULES.html.sh: Remove getstr.
109989         * modules/getline: Depend on unlocked-io, not getstr.
109991 2003-01-12  Jim Meyering  <jim@meyering.net>
109993         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
109995 2003-01-10  Bruno Haible  <bruno@clisp.org>
109997         * modules/alloca: Change Makefile.am requirements. Simplify Include
109998         requirements. Add lib/alloca_.h to file list.
110000 2003-01-10  Bruno Haible  <bruno@clisp.org>
110002         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
110004 2003-01-10  Bruno Haible  <bruno@clisp.org>
110006         * lib/alloca_.h: New file.
110007         * lib/getdate.y: Unconditionally include alloca.h.
110008         * lib/makepath.c: Likewise.
110009         * lib/setenv.c: Likewise.
110010         * lib/userspec.c: Likewise.
110012 2003-01-09  Karl Berry  <karl@gnu.org>
110014         * MODULES.html.sh: include `dirname $0` in PATH, to find
110015         gnulib-tool.
110017 2003-01-09  Bruno Haible  <bruno@clisp.org>
110019         * modules/stdbool: Change configure.ac, Makefile.am requirements.
110020         Simplify Include requirements. Add lib/stdbool.h.in to file list.
110022 2003-01-09  Bruno Haible  <bruno@clisp.org>
110024         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
110026 2003-01-09  Bruno Haible  <bruno@clisp.org>
110028         * lib/stdbool.h.in: New file.
110030 2003-01-09  Bruno Haible  <bruno@clisp.org>
110032         * gnulib-tool (func_all_modules): Ignore files ending in ~.
110033         * MODULES.html.sh: Likewise.
110035 2003-01-08  Jim Meyering  <jim@meyering.net>
110037         * lib/full-write.c: Undefine and define-away `const' after inclusion
110038         of errno.h, not before.  Suggestion from Bruno Haible.
110040 2003-01-08  Bruno Haible  <bruno@clisp.org>
110042         * modules/full-read: Depend on full-write.
110044 2003-01-08  Bruno Haible  <bruno@clisp.org>
110046         * lib/safe-read.c: Include specification header first, to ensure its
110047         selfcontainedness.
110048         * lib/full-write.c: Likewise.
110050 2003-01-07  Jim Meyering  <jim@meyering.net>
110052         * lib/full-write.c: Rework so that it may serve to define full_read,
110053         too.
110054         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
110056 2003-01-07  Bruno Haible  <bruno@clisp.org>
110058         * lib/strtoimax.c: Include <stdint.h> as an alternative to
110059         <inttypes.h>.
110060         * lib/xstrtol.h: Likewise.
110061         * lib/xstrtoimax.c: Likewise.
110062         * lib/xstrtoumax.c: Likewise.
110063         * lib/human.h: Likewise.
110065         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
110066         on systems that have <inttypes.h> but not <stdint.h>.
110068 2003-01-07  Bruno Haible  <bruno@clisp.org>
110070         * MODULES.html.sh: Add copyright notice.
110071         (missed_files): Omit CVS directory entries.
110072         (func_module): Make it work with sed-3.02.
110073         * MODULES.txt: Remove file.
110075 2003-01-06  Jim Meyering  <jim@meyering.net>
110077         * lib/version-etc.c: Update year in translatable copyright string.
110079 2003-01-03  Karl Berry  <karl@gnu.org>
110081         * config/config.{guess,sub}: update from prep.
110083 2003-01-02  Karl Berry  <karl@gnu.org>
110085         * doc/COPYING.DOC: belatedly updated to 1.2.
110087 2003-01-01  Karl Berry  <karl@gnu.org>
110089         * gnulib-tool (func_verify_module): report module name $module in
110090         error message, not $1.
110091         * gnulib-tool (create-testdir): don't complain if destdir couldn't
110092         be created, only if it doesn't exist.
110093         * gnulib-tool (last_checkin_date): don't expand the $Date here.
110095 2002-12-31  Paul Eggert  <eggert@twinsun.com>
110097         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
110099 2002-12-31  Paul Eggert  <eggert@twinsun.com>
110101         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
110102         memcmp if strcoll doesn't work.
110104 2002-12-31  Bruno Haible  <bruno@clisp.org>
110106         * lib/utime.c (utime_null): No need to call ftruncate if the file was
110107         nonempty.
110109 2002-12-31  Bruno Haible  <bruno@clisp.org>
110111         * lib/memcoll.c (STRCOLL): New macro.
110112         (memcoll): Use it.
110114 2002-12-31  Bruno Haible  <bruno@clisp.org>
110116         * lib/localcharset.h: New file.
110117         * lib/localcharset.c: Include it.
110118         * lib/unicodeio.c: Likewise.
110120 2002-12-31  Bruno Haible  <bruno@clisp.org>
110122         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
110123         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
110125 2002-12-31  Bruno Haible  <bruno@clisp.org>
110127         * lib/getline.h: Include <stddef.h>, for size_t.
110129         * lib/unicodeio.h: Include <stddef.h>, for size_t.
110130         * lib/unicodeio.c: Don't include <stddef.h>.
110132 2002-12-31  Bruno Haible  <bruno@clisp.org>
110134         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
110135         HAVE_TM_ZONE.
110137 2002-12-24  Karl Berry  <karl@gnu.org>
110139         * config/config.guess: update from prep.
110141 2002-12-24  Bruno Haible  <bruno@clisp.org>
110143         General infrasructure.
110144         * m4/README: Rewritten.
110145         * m4/onceonly.m4: New file.
110146         * m4/onceonly_2_57.m4: New file.
110148         Module atexit.
110149         * m4/atexit.m4: New file.
110151         Module strtod.
110152         * m4/strtod.m4: New file.
110154         Module strtol.
110155         * m4/strtol.m4: New file.
110157         Module strtoul.
110158         * m4/strtoul.m4: New file.
110160         Module memchr.
110161         * m4/memchr.m4: New file.
110163         Module memcmp.
110164         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
110165         (jm_FUNC_MEMCMP): Invoke it.
110167         Module memcpy.
110168         * m4/memcpy.m4: New file.
110170         Module memmove.
110171         * m4/memmove.m4: New file.
110173         Module memset.
110174         * m4/memset.m4: New file.
110176         Module strcspn.
110177         * m4/strcspn.m4: New file.
110179         Module strpbrk.
110180         * m4/strpbrk.m4: New file.
110182         Module strstr.
110183         * m4/strstr.m4: New file.
110185         Module strerror.
110186         * m4/strerror.m4: New file.
110188         Module mktime.
110189         * m4/mktime.m4: Renamed from jm-mktime.m4.
110190         (gl_PREREQ_MKTIME): New macro.
110191         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
110193         Module malloc.
110194         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
110195         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
110196         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
110198         Module realloc.
110199         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
110200         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
110201         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
110203         Module strftime.
110204         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
110205         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
110206         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
110207         gl_TM_GMTOFF.
110208         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
110210         Module xalloc.
110211         * m4/xalloc.m4: New file.
110213         Module alloca.
110214         * m4/alloca.m4: New file.
110216         Module putenv.
110217         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
110218         (jm_FUNC_PUTENV): Invoke it.
110220         Module setenv.
110221         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
110222         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
110223         when invoked twice.
110224         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
110225         gt_FUNC_SETENV.
110227         Module memrchr.
110228         * m4/memrchr.m4: New file.
110230         Module stpcpy.
110231         * m4/stpcpy.m4: New file.
110233         Module strcase.
110234         * m4/strcase.m4: New file.
110236         Module strdup.
110237         * m4/strdup.m4: New file.
110239         Module strnlen.
110240         * m4/strnlen.m4: New file.
110242         Module strndup.
110243         * m4/strndup.m4: New file.
110245         Module xstrtod.
110246         * m4/xstrtod.m4: New file.
110248         Module xstrtol.
110249         * m4/xstrtol.m4: New file.
110251         Module getdate.
110252         * m4/getdate.m4: New file.
110254         Module unlocked-io.
110255         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
110256         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
110257         * m4/jm-glibc-io.m4n: Remove file.
110259         Module long-options.
110260         * m4/long-options.m4: New file.
110262         Module md5.
110263         * m4/md5.m4: New file.
110265         Module sha.
110266         * m4/sha.m4: New file.
110268         Module getstr.
110269         * m4/getstr.m4: New file.
110271         Module getline.
110272         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
110273         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
110274         <sys/types.h>, for size_t. Use the function name gnu_getline, not
110275         simply getline. Infoke gl_PREREQ_GETLINE.
110277         Module obstack.
110278         * m4/obstack.m4: New file.
110280         Module hash.
110281         * m4/hash.m4: New file.
110283         Module readtokens.
110284         * m4/readtokens.m4: New file.
110286         Module strverscmp.
110287         * m4/strverscmp.m4: New file.
110289         Module stdbool.
110290         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
110291         OSF/1.
110293         Module strtoll.
110294         * m4/strtoll.m4: New file.
110296         Module strtoull.
110297         * m4/strtoull.m4: New file.
110299         Module strtoimax.
110300         * m4/strtoimax.m4: New file.
110302         Module strtoumax.
110303         * m4/strtoumax.m4: New file.
110305         Module xstrtoimax.
110306         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
110307         jm_AC_PREREQ_XSTRTOIMAX.
110308         Moved the strtol prerequisites to strtol.m4.
110309         Moved the strtoll prerequisites to strtoll.m4.
110310         Moved the strtoimax prerequisites to strtoimax.m4.
110312         Module xstrtoumax.
110313         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
110314         jm_AC_PREREQ_XSTRTOUMAX.
110315         Moved the strtoul prerequisites to strtoul.m4.
110316         Moved the strtoull prerequisites to strtoull.m4.
110317         Moved the strtoumax prerequisites to strtoumax.m4.
110319         Module chown.
110320         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
110321         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
110323         Module dup2.
110324         * m4/dup2.m4: New file.
110326         Module ftruncate.
110327         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
110328         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
110330         Module getgroups.
110331         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
110332         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
110334         Module gettimeofday.
110335         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
110336         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
110337         gl_PREREQ_GETTIMEOFDAY.
110339         Module mkdir.
110340         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
110341         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
110343         Module mkstemp.
110344         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
110345         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
110346         jm_AC_TYPE_UINTMAX_T.
110347         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
110349         Module stat.
110350         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
110351         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
110353         Module lstat.
110354         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
110355         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
110357         Module timespec.
110358         * m4/timespec.m4 (gl_TIMESPEC): New macro.
110359         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
110360         * m4/st_mtim.m4: Indentation.
110362         Module nanosleep.
110363         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
110364         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
110365         gl_PREREQ_NANOSLEEP.
110367         Module regex.
110368         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
110369         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
110370         (gl_REGEX): New macro.
110372         Module rename.
110373         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
110374         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
110376         Module rmdir.
110377         * m4/rmdir.m4: New file.
110379         Module utime.
110380         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
110381         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
110382         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
110384         Module dirname.
110385         * m4/dirname.m4: New file.
110387         Module getopt.
110388         * m4/getopt.m4: New file.
110390         Module unistd-safer.
110391         * m4/unistd-safer.m4: New file.
110393         Module fnmatch.
110394         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
110395         declaration.
110396         (gl_PREREQ_FNMATCH_EXTRA): New macro.
110397         (gl_FUNC_FNMATCH_POSIX): New macro.
110398         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
110399         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
110400         simply fnmatch.
110402         Module exclude.
110403         * m4/exclude.m4: New file.
110405         Module human.
110406         * m4/human.m4: New file.
110408         Module acl.
110409         * m4/acl.m4: Nop.
110411         Module backupfile.
110412         * m4/backupfile.m4: New file.
110413         * m4/d-ino.m4: Indentation.
110415         Module fsusage.
110416         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
110417         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
110418         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
110420         Module dirfd.
110421         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
110422         requirements.
110424         Module euidaccess.
110425         * m4/euidaccess.m4: New file.
110427         Module file-type.
110428         * m4/file-type.m4: New file.
110430         Module fileblocks.
110431         * m4/fileblocks.m4: New file.
110433         Module filemode.
110434         * m4/filemode.m4: New file.
110436         Module isdir.
110437         * m4/isdir.m4: New file.
110439         Module lchown.
110440         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
110441         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
110443         Module makepath.
110444         * m4/makepath.m4: New file.
110446         Module modechange.
110447         * m4/modechange.m4: New file.
110449         Module mountlist.
110450         * m4/mountlist.m4: New file.
110451         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
110452         Indentation.
110454         Module path-concat.
110455         * m4/path-concat.m4: New file.
110457         Module pathmax.
110458         * m4/pathmax.m4: New file.
110460         Module same.
110461         * m4/same.m4: New file.
110463         Module save-cwd.
110464         * m4/save-cwd.m4: New file.
110466         Module savedir.
110467         * m4/savedir.m4: New file.
110469         Module xgetcwd.
110470         * m4/xgetcwd.m4: New file.
110471         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
110473         Module xreadlink.
110474         * m4/xreadlink.m4: New file.
110476         Module safe-read.
110477         * m4/safe-read.m4: New file.
110479         Module safe-write.
110480         * m4/safe-write.m4: New file.
110482         Module closeout.
110483         * m4/closeout.m4: New file.
110485         Module stdio-safer.
110486         * m4/stdio-safer.m4: New file.
110488         Module getpass.
110489         * m4/getpass.m4: New file.
110491         Module getugroups.
110492         * m4/getugroups.m4: New file.
110494         Module group-member.
110495         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
110496         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
110498         Module idcache.
110499         * m4/idcache.m4: New file.
110501         Module userspec.
110502         * m4/userspec.m4: New file.
110504         Module gettime.
110505         * m4/clock_time.m4: New file.
110506         * m4/gettime.m4: New file.
110508         Module settime.
110509         * m4/settime.m4: New file.
110511         Module posixtm.
110512         * m4/posixtm.m4: New file.
110514         Module gethostname.
110515         * m4/gethostname.m4: New file.
110517         Module canon-host.
110518         * m4/canon-host.m4: New file.
110520         Module gettext.
110521         * m4/codeset.m4: New file, from gettext-0.11.5.
110522         * m4/gettext.m4: New file, from gettext-0.11.5.
110523         * m4/glibc21.m4: New file, from gettext-0.11.5.
110524         * m4/iconv.m4: New file, from gettext-0.11.5.
110525         * m4/intdiv0.m4: New file, from gettext-0.11.5.
110526         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
110527         * m4/inttypes.m4: New file, from gettext-0.11.5.
110528         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
110529         * m4/isc-posix.m4: New file, from gettext-0.11.5.
110530         * m4/lcmessage.m4: New file, from gettext-0.11.5.
110531         * m4/lib-ld.m4: New file, from gettext-0.11.5.
110532         * m4/lib-link.m4: New file, from gettext-0.11.5.
110533         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
110534         * m4/progtest.m4: New file, from gettext-0.11.5.
110535         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
110536         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
110537         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
110539         Module localcharset.
110540         * m4/localcharset.m4: New file.
110542         Module hard-locale.
110543         * m4/hard-locale.m4: New file.
110545         Module mbswidth.
110546         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
110547         onceonly macros.
110548         * m4/mbrtowc.m4: Add comment.
110550         Module memcasecmp.
110551         * m4/memcasecmp.m4: New file.
110553         Module memcoll.
110554         * m4/memcoll.m4: New file.
110556         Module unicodeio.
110557         * m4/unicodeio.m4: New file.
110559         Module rpmatch.
110560         * m4/rpmatch.m4: New file.
110562         Module yesno.
110563         * m4/yesno.m4: New file.
110565         Module exitfail.
110566         * m4/exitfail.m4: New file.
110568         Module c-stack.
110569         * m4/c-stack.m4 (gl_C_STACK): New macro.
110570         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
110572         Module error.
110573         * m4/error.m4 (gl_ERROR): New macro.
110574         (jm_PREREQ_ERROR): Use onceonly macros.
110576         Module fatal.
110577         * m4/fatal.m4: New file.
110579         Module getloadavg.
110580         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
110581         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
110583         Module getpagesize.
110584         * m4/getpagesize.m4: New file.
110586         Module getusershell.
110587         * m4/getusershell.m4: New file.
110589         Module physmem.
110590         * m4/physmem.m4: New file.
110592         Module posixver.
110593         * m4/posixver.m4: New file.
110595         Module quotearg.
110596         * m4/quotearg.m4: New file.
110598         Module quote.
110599         * m4/quote.m4: New file.
110601         Module readutmp.
110602         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
110604         Module sig2str.
110605         * m4/sig2str.m4: New file.
110607         Other.
110608         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
110609         ulonglong.m4.
110610         * m4/intmax_t.m4: New file.
110611         * m4/d-type.m4: Indentation.
110612         * m4/jm-macros.m4: Update.
110613         * m4/prereq.m4 (jm_PREREQ): Update.
110614         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
110615         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
110616         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
110617         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
110618         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
110619         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
110620         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
110621         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
110622         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
110623         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
110624         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
110625         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
110626         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
110627         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
110628         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
110629         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
110630         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
110631         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
110632         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
110634 2002-12-24  Bruno Haible  <bruno@clisp.org>
110636         * MODULES.txt: Update according to m4/ changes.
110638         Module gettext.
110639         * config.rpath: New file, from gettext-0.11.5.
110641         * modules/*: New module descriptions.
110642         * gnulib-tool: New file.
110643         * MODULES.html.sh: New file.
110645 2002-12-21  Karl Berry  <karl@gnu.org>
110647         * doc/fdl.texi: update to version 1.2.
110649 2002-12-19  Karl Berry  <karl@gnu.org>
110651         * config/config.guess: update from prep.
110653 2002-12-18  Bruno Haible  <bruno@clisp.org>
110655         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
110656         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
110658 2002-12-17  Bruno Haible  <bruno@clisp.org>
110660         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
110661         stdlib.h, string.h.
110663 2002-12-17  Bruno Haible  <bruno@clisp.org>
110665         * lib/canon-host.c (strdup): Remove unused declaration.
110667         * lib/fsusage.c: Include full_read.h.
110668         (get_fs_usage): Use full_read instead of safe_read.
110670         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
110672 2002-12-12  Karl Berry  <karl@gnu.org>
110674         * config/config.guess: update from prep.
110676 2002-12-11  Bruno Haible  <bruno@clisp.org>
110678         * m4/setenv.m4: New file, from gettext-0.11.5.
110680 2002-12-11  Bruno Haible  <bruno@clisp.org>
110682         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
110683         not unsetenv().
110684         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
110685         modifications:
110687         2002-12-11  Bruno Haible  <bruno@clisp.org>
110689                 * setenv.c (alloca): Fall back to malloc.
110690                 (freea): New macro.
110691                 (setenv): Use freea() to free memory allocated with alloca().
110693         2002-11-13  Bruno Haible  <bruno@clisp.org>
110695                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
110696                 function declarations.
110697                 * unsetenv.c (unsetenv): Likewise.
110699         2002-03-04  Bruno Haible  <bruno@clisp.org>
110701                 Portability to AIX 4.3.3.
110702                 * unsetenv.c: New file, extracted from setenv.c.
110703                 * setenv.c: Move the unsetenv() function to unsetenv.c.
110705         2001-12-20  Bruno Haible  <bruno@clisp.org>
110707                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
110708                 use malloc instead. For SunOS 4.
110710         2001-12-11  Bruno Haible  <bruno@clisp.org>
110712                 * setenv.c: Declare alloca.
110713                 (compar_fn_t): New typedef.
110714                 (KNOWN_VALUE, STORE_VALUE): Use it.
110716         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
110717         setenv.h.
110719 2002-12-10  Paul Eggert  <eggert@twinsun.com>
110721         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
110722         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
110723         Choose values that are less likely to collide with system fnmatch
110724         options.
110725         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
110726         defined (e.g., a pure POSIX system).
110727         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
110728         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
110730 2002-12-06  Paul Eggert  <eggert@twinsun.com>
110732         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
110733         a pain in practice to deal with generated m4 files.  This change
110734         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
110736         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
110737         and jm-glibc-io.m4, as they are no longer a special case.
110738         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
110739         kludge and the auto-generation stuff.  Check only whether the
110740         functions are declared, not whether they exist, since older hosts
110741         that don't declare the functions can't use the optimization anyway.
110743 2002-12-06  Jim Meyering  <jim@meyering.net>
110745         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
110747         Merge in changes from libc's misc/error.c, in preparation
110748         for the merge of gnulib's changes back into libc.
110750         * lib/error.c (_): Define only if not already defined.
110751         Move definition to follow all #include directives.
110752         Include unlocked-io.h only if !_LIBC.
110753         [_LIBC]: Include <libio/libioP.h>.
110754         [USE_IN_LIBIO]: Include <libio/iolibio.h>
110755         (fflush): Tweak definition to use INTUSE.
110756         (putc): Define.
110758 2002-12-05  Paul Eggert  <eggert@twinsun.com>
110760         * lib/alloca.c [defined emacs]: Include "lisp.h".
110761         (xalloc_die) [defined emacs]: New macro.
110762         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
110763         [! defined emacs]: Include <xalloc.h>.
110764         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
110765         (pointer): Typedef to POINTER_TYPE *.
110766         (malloc): Remove decl; we now always use xmalloc.
110767         (alloca): Use old-style definition, since Emacs needs this.
110768         Check for arithmetic overflow when computing combined size.
110770 2002-12-04  Paul Eggert  <eggert@twinsun.com>
110772         Do not generate unlocked-io.h automatically, since it's easier to
110773         maintain it by hand.
110775         * lib/unlocked-io.h: New file, from GNU diffutils,
110776         but with proper copyright notice and attribution.
110777         * lib/gen-uio: Remove.
110778         * lib/Makefile.am: Add copyright notice.
110779         (libfetish_a_SOURCES): Add unlocked-io.h.
110780         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
110781         (DISTCLEANFILES, io_functions): Remove macros.
110782         (EXTRA_DIST): Remove gen_uio.
110783         (unlocked-io.h): Remove rule.
110785 2002-12-04  Jim Meyering  <jim@meyering.net>
110787         Reflect the fact that stat.c and lstat.c are no longer generated.
110788         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
110789         (DISTCLEANFILES): Likewise.
110790         (EXTRA_DIST): Likewise.
110791         (all_local): Don't depend on stat.c or lstat.c.
110792         (stat.c, lstat.c): Remove rules.
110793         (EXTRA_DIST): Remove xstat.in.
110795         * lib/xstat.in: Remove file.  Contents moved into stat.c.
110796         * lib/stat.c: New file.  Contents mostly from xstat.in.
110797         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
110798         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
110800         * lib/safe-read.c: Rework so that it may serve to define safe_write,
110801         too.
110802         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
110804 2002-12-03  Jim Meyering  <jim@meyering.net>
110806         * lib/safe-read.c, safe-write.c: Change variable names and comments,
110807         but not semantics, to minimize the differences between these two files.
110808         (safe_read): Change comment to mention SAFE_READ_ERROR.
110810         * lib/safe-read.c (IS_EINTR): Define.
110811         (safe_read): Use IS_EINTR in place of in-function cpp directives.
110813 2002-12-02  Jim Meyering  <jim@meyering.net>
110815         * lib/safe-read.c (EINTR): Define.
110816         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
110817         (INT_MAX): Provide fallback.
110818         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
110820         * lib/safe-read.h (SAFE_READ_ERROR): Define.
110822 2002-12-02  Bruno Haible  <bruno@clisp.org>
110824         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
110825         Define, taken from safe-read.c.
110826         (INT_MAX): Provide fallback.
110827         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
110828         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
110830         * lib/safe-read.c (EINTR): Remove definition.
110831         (safe_read): Don't use EINTR if it is absent.
110833 2002-12-01  Jim Meyering  <jim@meyering.net>
110835         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
110836         zero.
110837         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
110839 2002-11-27  Paul Eggert  <eggert@twinsun.com>
110841         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
110842         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
110843         with `if (! (value < limit)) abort ();', for readability.
110845 2002-11-26  Karl Berry  <karl@gnu.org>
110847         * lib/strdup.c: copy from libc again, with jim's ok.
110848         * lib/.cppi-disable: re-add strdup.c
110850 2002-11-25  Karl Berry  <karl@gnu.org>
110852         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
110853         instead of "strtol.c".
110855 2002-11-25  Karl Berry  <karl@gnu.org>
110857         * config/install-sh: update from automake for variable quoting, $0 in
110858         error msgs, etc.
110860         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
110861         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
110862         entry.
110864 2002-11-25  Jim Meyering  <jim@meyering.net>
110866         * lib/mktime.c: Sync from libc, now that it has the latest fix.
110868 2002-11-24  Karl Berry  <karl@gnu.org>
110870         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
110871         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
110873 2002-11-24  Jim Meyering  <jim@meyering.net>
110875         Update from coreutils:
110877         * lib/mktime.c: Merge in changes from libc.
110879         Avoid a link-time failure on some Linux systems.
110880         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
110881         (otherwise).
110882         (__mon_yday): Declare with the STATIC attribute.
110883         (__mktime_internal): Likewise.
110884         Based on a report from Greg Schafer.
110886 2002-11-23  Jim Meyering  <jim@meyering.net>
110888         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
110889         Use `unsigned', not `int', as type of index.
110891         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
110893         * lib/fsusage.c: Remove unneeded parentheses around operands of
110894         `defined'.
110896 2002-11-22  Paul Eggert  <eggert@twinsun.com>
110898         * lib/quotearg.h: Allow multiple inclusion by surrounding with
110899         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
110900         so that we can be included first.
110901         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
110902         * lib/quotearg.c: Include quotearg.h immediately after config.h.
110903         No need to include stddef.h or sys/types.h any more.
110904         Surround local include files with "", not "<>".
110905         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
110906         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
110907         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
110908         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
110909         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
110910         (ISPRINT): Remove; no longer needed now that we assume C89.
110912         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
110913         Preserve errno.
110915         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
110916         quotearg_char): Use SIZE_MAX rather than
110917         (size_t) -1 when we are talking about "infinity".
110919         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
110921 2002-11-22  Paul Eggert  <eggert@twinsun.com>
110923         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
110924         hint that one should use `if (! x) abort ();' rather than `assert
110925         (x);', and anyway it's one less thing to worry about configuring.
110926         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
110927         hash_rehash, hash_insert): Use abort rather than assert.
110929 2002-11-22  Bruno Haible  <bruno@clisp.org>
110931         * lib/safe-read.h: Assume C89. Add comments.
110932         (safe_read): Change return type to size_t.
110933         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
110934         byte counts > SSIZE_MAX correctly.
110935         * lib/safe-write.h: New file.
110936         * lib/safe-write.c: New file.
110937         * lib/full-read.h: New file.
110938         * lib/full-read.c: New file.
110939         * lib/full-write.h: Assume C89. Add comments.
110940         * lib/full-write.c: Include safe-write.h.
110941         (full_write): Rewritten to use safe_write.
110942         Suggested by Jim Meyering and Paul Eggert.
110944 2002-11-21  Jim Meyering  <jim@meyering.net>
110946         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
110948         Merge in changes from the coreutils.
110950         2002-09-25  Paul Eggert  <eggert@twinsun.com>
110951         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
110952         <stdint.h>.
110953         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
110954         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
110955         int.  Work more efficiently if X is the same width as uintmax_t.
110956         Do not compare X to -1, to avoid bogus compiler warning.
110957         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
110958         Don't assume that f_frsize and f_bsize are the same type.
110960         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
110961         warning on FreeBSD.
110963         * lib/makepath.c (make_path): Restore umask *before* creating the final
110964         component.
110965         (make_path): Minor reformatting.
110967         * lib/xmalloc.c: Adjust to work with new autoconf macros,
110968         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
110969         HAVE_MALLOC/HAVE_REALLOC.
110971         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
110972         dummy ones.  At least on GNU/Linux systems, `auto' means something
110973         else.
110974         From Michael Stone.
110976 2002-11-21  Bruno Haible  <bruno@clisp.org>
110978         Remove case insensitive option matching.
110979         * lib/argmatch.h (argcasematch): Remove declaration.
110980         (ARGCASEMATCH): Remove macro.
110981         (__xargmatch_internal): Remove case_sensitive argument.
110982         (XARGMATCH): Update.
110983         (XARGCASEMATCH): Remove macro.
110984         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
110985         case_sensitive argument.
110986         (argcasematch): Remove function.
110987         (__xargmatch_internal): Remove case_sensitive argument.
110988         (main): Use XARGMATCH instead of XARGCASEMATCH.
110990         * lib/xmalloc.c: Change compile-time error message. Add comment about
110991         required autoconf version.
110993 2002-11-20  Paul Eggert  <eggert@twinsun.com>
110995         Merge argmatch cleanups from Bison.  Assume C89.
110997         * lib/argmatch.c: Include config.h here, not in argmatch.h.
110998         Include stdlib.h, for EXIT_FAILURE.
110999         Always include <string.h>, since we assume C89.
111000         (EXIT_FAILURE): Remove pre-C89 bug workaround.
111001         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
111002         Include <stddef.h> instead, since it's all we need for size_t.
111003         (PARAMS): Remove.  All uses removed.
111004         (ARRAY_CARDINALITY): Do not bother to #undef.
111005         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
111006         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
111007         Remove unnecessary parentheses.
111008         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
111009         Insert necessary parentheses.
111010         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
111011         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
111013 2002-11-19  Bruno Haible  <bruno@clisp.org>
111015         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
111016         * lib/mbswidth.h: Include <stddef.h>, for size_t.
111018         * lib/mbswidth.h (PARAMS): Remove macro.
111019         (mbswidth, mbsnwidth): Use ANSI C function declarations.
111020         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
111022         * lib/gcd.h (PARAMS): Remove macro.
111023         (gcd): Use ANSI C function declarations.
111024         * lib/gcd.c (gcd): Likewise.
111026 2002-11-15  Bruno Haible  <bruno@clisp.org>
111028         * lib/strcspn.c: Include <stddef.h>.
111029         (strcspn): Use ANSI C function declaration. Change return type to
111030         size_t. Use NULL.
111031         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
111032         (strpbrk): Use NULL.
111033         * lib/strpbrk.h (PARAMS): Remove macro.
111034         (strpbrk): Use ANSI C function declaration.
111035         * lib/strstr.c: Don't include <sys/types.h>.
111036         * lib/strstr.h (PARAMS): Remove macro.
111037         (strstr): Use ANSI C function declarations.
111039 2002-11-14  Karl Berry  <karl@gnu.org>
111041         * config/mkinstalldirs: `do' on separate line, instead of
111042         `for var; do'.
111044 2002-11-06  Bruno Haible  <bruno@clisp.org>
111046         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
111047         * lib/gcd.c (gcd): Likewise.
111049 2002-11-05  Bruno Haible  <bruno@clisp.org>
111051         * lib/gcd.h: New file, from gettext-0.11.5.
111052         * lib/gcd.c: New file, from gettext-0.11.5.
111054 2002-11-05  Bruno Haible  <bruno@clisp.org>
111056         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
111057         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
111058         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
111059         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
111061         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
111062         <libintl.h>.
111063         * lib/makepath.c: Include gettext.h instead of <locale.h> and
111064         <libintl.h>.
111066         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
111067         * lib/human.c: Include gettext.h instead of <libintl.h>.
111068         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
111069         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
111070         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
111071         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
111072         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
111073         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
111074         (textdomain): Remove definition.
111075         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
111077         * lib/long-options.c: Remove include of <libintl.h> and definition of
111078         _.
111079         * lib/same.c: Remove include of <libintl.h> and definition of _.
111081 2002-11-04  Owen Taylor  <otaylor@redhat.com>
111083         * lib/config.charset: A few additions for Solaris.
111085 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
111087         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
111088         * lib/localcharset.c (locale_charset): Declare as extern "C".
111090 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
111092         * lib/config.charset: msdos in uk_UA uses CP1125.
111094 2002-11-04  Bruno Haible  <bruno@clisp.org>
111096         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
111097         * lib/strcase.h: New file, from GNU gettext-0.11.5.
111098         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
111099         * lib/strstr.h: New file, from GNU gettext-0.11.5.
111100         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
111102 2002-11-04  Bruno Haible  <bruno@clisp.org>
111104         * lib/localcharset.c (locale_charset): Don't return an empty string.
111106 2002-11-04  Bruno Haible  <bruno@clisp.org>
111108         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
111109         aliases.
111111 2002-11-04  Bruno Haible  <bruno@clisp.org>
111113         * lib/config.charset: Update for newest glibc. Add canonical names
111114         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
111116 2002-11-04  Bruno Haible  <bruno@clisp.org>
111118         * lib/config.charset: Add support for NetBSD.
111120 2002-11-04  Bruno Haible  <bruno@clisp.org>
111122         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
111124 2002-11-01  Bruno Haible  <bruno@clisp.org>
111126         * configure.in: Add AC_CONFIG_AUX_DIR call.
111127         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
111128         test/Makefile.
111129         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
111131 2002-09-28  Karl Berry  <karl@gnu.org>
111133         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
111134         installed automake until the next release, since changes have been
111135         made.
111137 2002-09-25  Karl Berry  <karl@gnu.org>
111139         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
111140         * lib/getopt*: copy from libc/posix.
111141         * lib/gettext.h: copy from gettext.
111142         * lib/.cppi-disable: add strdup.c, gettext.h.
111144 2002-09-25  Karl Berry  <karl@gnu.org>
111146         * config/srclist.txt: enable gettext.h check.
111147         * config/config.{guess,sub}: update from prep.
111148         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
111149                 from automake 1.6.3.
111150         See srclist*.
111152 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
111154         * regex.c (PATFETCH): Remove the translating fetch.
111155         (PATFETCH_RAW): Rename to PATFETCH.
111156         (set_image_of_range): New fun.
111157         (SET_RANGE_TABLE_WORK_AREA): Use it.
111158         (regex_compile): Don't translate the pattern chars so eagerly.
111159         Only do it when inserting an `exactn' bytecode or when handling
111160         a char-range.
111161         (mutually_exclusive_p): Avoid empty statement.
111163 2002-07-06  Jim Meyering  <meyering@lucent.com>
111165         * m4/README: Don't mention Makefile.am.in.
111166         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
111168 2002-07-01  Jim Meyering  <meyering@lucent.com>
111170         * lib/c-stack.c: Include sys/time.h.
111171         From Volker Borchert.
111173 2002-06-26  Paul Eggert  <eggert@twinsun.com>
111175         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
111177 2002-06-26  Paul Eggert  <eggert@twinsun.com>
111179         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
111180         New macro.  Use it uniformly instead of
111181         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
111182         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
111183         reported by Vin Shelton.
111185 2002-06-22  Paul Eggert  <eggert@twinsun.com>
111187         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
111188         Do not assume SA_SIGINFO behavior.
111189         Bug reported by Jim Meyering on NetBSD 1.5.2.
111191 2002-06-22  Jim Meyering  <meyering@lucent.com>
111193         * m4/c-stack.m4: New file, from diffutils-2.8.2.
111194         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
111196         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
111197         now that configure.ac uses AC_GNU_SOURCE.
111198         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
111199         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
111201         Update to latest tools.  Suggestions from Paul Eggert.
111202         * m4/stdbool.m4: New file, from diffutils-2.8.2.
111203         * m4/gnu-source.m4: Update from diffutils-2.8.2.
111204         * m4/fnmatch.m4: Likewise.
111205         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
111206         to AC_HEADER_STDBOOL
111208 2002-06-22  Jim Meyering  <meyering@lucent.com>
111210         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
111211         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
111213 2002-06-22  Jim Meyering  <meyering@lucent.com>
111215         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
111217         * lib/exitfail.c, exitfail.h: Likewise.
111218         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
111220         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
111221         of fnmatch.h.
111222         (EXTRA_DIST): Add fnmatch_loop.c.
111223         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
111225         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
111226         * lib/fnmatch.c: Update from diffutils-2.8.2.
111227         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
111228         * lib/fnmatch.h: Remove file.
111230 2002-06-21  Jim Meyering  <meyering@lucent.com>
111232         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
111233         * m4/mbrtowc.m4: Likewise.
111235         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
111236         * m4/mbswidth.m4: Reflect name change:
111237         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
111238         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
111240         * m4/lib-link.m4: Update from gettext-0.11.2.
111241         * m4/gettext.m4: Likewise.
111243         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
111244         From Alfred M. Szmidt.
111246 2002-06-18  Paul Eggert  <eggert@twinsun.com>
111248         * lib/file-type.h: Report an error if neither S_ISREG nor
111249         S_IFREG is defined, instead of using a test specific to glibc
111250         2.2.  This should be safe, since POSIX requires S_ISREG and
111251         Unix Version 7 had S_IFREG.  We don't need to check for
111252         <sys/types.h> since we don't use any symbols that it defines.
111254 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
111256         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
111257         $@-t, so that each temporary file name is unique and valid in the first
111258         8 characters, for operation under DOS.
111260 2002-06-15  Paul Eggert  <eggert@twinsun.com>
111262         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
111264 2002-06-15  Jim Meyering  <meyering@lucent.com>
111266         Work even with DJGPP 2.03, which lacks support for symlinks.
111267         From Richard Dawe.
111268         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
111269         is defined.
111270         * lib/lchown.c (S_ISLNK): Likewise.
111272 2002-06-15  Jim Meyering  <meyering@lucent.com>
111274         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
111275         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
111276         have been included before this file.
111278 2002-06-14  Jim Meyering  <meyering@lucent.com>
111280         * lib/file-type.h: Use the version from diffutils-2.8.2.
111281         * lib/file-type.c: Likewise.
111283 2002-06-07  Jim Meyering  <meyering@lucent.com>
111285         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
111286         They're needed at least for NetBSD 1.5.2.
111287         ($statxfs_includes): Include those same headers.
111288         ($statxfs_includes): Include sys/vfs.h if available.
111289         ($statxfs_includes): Likewise for sys/statvfs.h.
111290         Check for the following members in both structs statfs and statvfs:
111291         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
111293 2002-06-01  Jim Meyering  <meyering@lucent.com>
111295         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
111296         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
111298 2002-05-28  Jim Meyering  <meyering@lucent.com>
111300         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
111301         Reported by Volker Borchert.
111303 2002-05-27  Jim Meyering  <meyering@lucent.com>
111305         Fix a problem seen only on nonconforming systems whereby ls.c's
111306         use of localtime, and then of gettimeofday would cause trouble:
111307         the localtime call used to initialize rpl_gettimeofday's save
111308         mechanism would clobber ls's current local time information so
111309         that in any long listing the first file would always be listed
111310         with date 1970-01-01.  Analysis by Volker Borchert.
111312         * lib/gettimeofday.c (localtime): Undefine.
111313         (rpl_localtime): New function.
111315 2002-05-27  Jim Meyering  <meyering@lucent.com>
111317         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
111318         localtime.
111320         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
111321         use the replacement function; it wouldn't resolve at link time.
111322         Reported by Volker Borchert.
111324 2002-05-22  Jim Meyering  <meyering@lucent.com>
111326         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
111327         file-type.h.
111328         * lib/file-type.h: New file.
111329         * lib/file-type.c (file_type): New file/function.  Extracted from
111330         diffutils.
111332 2002-04-30  Jim Meyering  <meyering@lucent.com>
111334         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
111336 2002-04-29  Paul Eggert  <eggert@twinsun.com>
111338         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
111340 2002-04-29  Paul Eggert  <eggert@twinsun.com>
111342         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
111343         Do not check for alloca.h (no longer used) or stdbool.h (was never
111344         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
111346 2002-04-29  Paul Eggert  <eggert@twinsun.com>
111348         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
111350 2002-04-29  Jim Meyering  <meyering@lucent.com>
111352         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
111353         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
111354         Use AC_FUNC_STRNLEN here instead.
111356         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
111357         With autoconf-2.53a, it's part of AC_PROG_CC.
111359 2002-04-28  Paul Eggert  <eggert@twinsun.com>
111361         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
111362         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
111364 2002-04-28  Paul Eggert  <eggert@twinsun.com>
111366         * lib/sig2str.h, lib/sig2str.c: New files.
111367         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
111369 2002-04-28  Paul Eggert  <eggert@twinsun.com>
111371         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
111372         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
111373         of 127, since 64 is the largest conceivable number for ancient
111374         nonstandard hosts.
111375         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
111377 2002-04-28  Jim Meyering  <meyering@lucent.com>
111379         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
111381 2002-04-24  Jim Meyering  <meyering@lucent.com>
111383         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
111384         (jm_PREREQ): Use it.
111386         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
111387         mach/mach.h fcntl.h.
111388         Check for this function: setlocale.
111390 2002-04-24  Jim Meyering  <meyering@lucent.com>
111392         * lib/gettext.h: New file, from Gettext.
111393         * lib/Makefile.am (INCLUDES): Remove -I../intl.
111394         (libfetish_a_SOURCES): Add gettext.h.
111396 2002-04-16  Jim Meyering  <meyering@lucent.com>
111398         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
111399         ut_pid, ut_id, ut_exit.
111401 2002-04-16  Jim Meyering  <meyering@lucent.com>
111403         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
111404         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
111405         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
111407 2002-04-12  Jim Meyering  <meyering@lucent.com>
111409         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
111410         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
111411         existence of the getmntinfo function.  Needed for Darwin 5.3.
111413         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
111414         This is necessary at least on Darwin 5.3.
111416         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
111417         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
111418         strnlen.o in the library, and that makes some versions of ranlib
111419         object.
111421 2002-04-12  Jim Meyering  <meyering@lucent.com>
111423         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
111425 2002-04-09  Jim Meyering  <meyering@lucent.com>
111427         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
111428         to be more precise.  Rather than saying we're checking whether the
111429         function `works', say what we're testing.
111430         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
111431         Reported by Bruno Haible.
111433 2002-03-10  Jim Meyering  <meyering@lucent.com>
111435         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
111436         Suggestion from Santiago Vila.
111438 2002-03-08  Jim Meyering  <meyering@lucent.com>
111440         * lib/rename.c: Mention that this wrapper is needed also on
111441         mips-dec-ultrix4.4 systems.
111443 2002-03-02  Jim Meyering  <meyering@lucent.com>
111445         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
111446         not HAVE_CLOCK_SETTIME.
111448 2002-02-27  Paul Eggert  <eggert@twinsun.com>
111450         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
111451         Check for clock_settime.
111453 2002-02-27  Paul Eggert  <eggert@twinsun.com>
111455         * lib/nanosleep.h: Rename to....
111456         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
111458         * lib/gettime.c: New file.
111459         * lib/settime.c: New file.
111460         * lib/stime.c: Remove.
111462         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
111463         timespec.h.  Remove nanosleep.h.
111465 2002-02-25  Paul Eggert  <eggert@twinsun.com>
111467         * m4/acl.m4: New file.
111468         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
111469         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
111471 2002-02-25  Paul Eggert  <eggert@twinsun.com>
111473         * lib/acl.c, lib/acl.h: New files.
111474         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
111476 2002-02-24  Jim Meyering  <meyering@lucent.com>
111478         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
111479         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
111480         cause trouble.  Reported by Nelson Beebe.
111482 2002-02-23  Paul Eggert  <eggert@twinsun.com>
111484         * lib/path-concat.c (xpath_concat): Reorder code to pacify
111485         compilers that don't know that xalloc_die never returns.
111487 2002-02-20  Jim Meyering  <meyering@lucent.com>
111489         * lib/getdate.c: Regenerate using bison-1.33.
111491 2002-02-17  Jim Meyering  <meyering@lucent.com>
111493         * config/config.guess (main): Don't use `head -1'; it's no longer
111494         portable. Use `sed 1q' instead.
111496 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
111498         * m4/codeset.m4: Upgrade to gettext-0.11.
111499         * m4/gettext.m4: Upgrade to gettext-0.11.
111500         * m4/glibc21.m4: Upgrade to gettext-0.11.
111501         * m4/iconv.m4: Upgrade to gettext-0.11.
111502         * m4/isc-posix.m4: Upgrade to gettext-0.11.
111503         * m4/lcmessage.m4: Upgrade to gettext-0.11.
111504         * m4/lib-ld.m4: New file, from gettext-0.11.
111505         * m4/lib-link.m4: New file, from gettext-0.11.
111506         * m4/lib-prefix.m4: New file, from gettext-0.11.
111507         * m4/progtest.m4: Upgrade to gettext-0.11.
111509 2002-02-15  Paul Eggert  <eggert@twinsun.com>
111511         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
111512         (jm_PREREQ): Use it.
111514 2002-02-15  Paul Eggert  <eggert@twinsun.com>
111516         * lib/posixver.c, lib/posixver.h: New files.
111517         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
111519 2002-02-02  Paul Eggert  <eggert@twinsun.com>
111520             Bruno Haible  <bruno@clisp.org>
111522         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
111523         (fwrite_success_callback): New declaration.
111524         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
111525         print_unicode_char. Call failure callback instead of error.
111526         (fwrite_success_callback): New function.
111527         (exit_failure_callback): New function.
111528         (fallback_failure_callback): New function.
111529         (print_unicode_char): Call unicode_to_mb.
111531 2002-01-26  Jim Meyering  <meyering@lucent.com>
111533         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
111534         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
111536 2002-01-26  Jim Meyering  <meyering@lucent.com>
111538         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
111540 2002-01-22  Paul Eggert  <eggert@twinsun.com>
111542         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
111544 2002-01-22  Jim Meyering  <meyering@lucent.com>
111546         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
111547         Otherwise, some versions of automake would omit the rule that makes
111548         Makefile from Makefile.in.
111550 2002-01-21  Paul Eggert  <eggert@twinsun.com>
111552         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
111553         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
111554         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
111555         (memcoll): Set errno to zero if there is no error.
111557         * lib/quotearg.c (quotearg_buffer_restyled):
111558         Fix bug with quoting buffers containing NUL when backslashing escapes.
111559         This bug was exposed by the other changes in this patch.
111560         (quotearg_n_options): New arg ARGSIZE.
111561         All callers changed.
111562         (quoting_options_from_style): New function.
111563         (quotearg_n_style): Use it.
111564         (quotearg_n_style_mem): New function.
111566         * lib/quotearg.h (quotearg_n_style_mem): New function.
111568 2002-01-19  Jim Meyering  <meyering@lucent.com>
111570         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
111571         Remove useless quotes: DF_PROG="df".
111572         * m4/strnlen.m4: New file.
111574 2002-01-16  Paul Eggert  <eggert@twinsun.com>
111576         * lib/backupfile.c (ISDIGIT): Comment fix.
111577         * lib/getdate.y (ISDIGIT): Likewise.
111578         * lib/posixtm.c (ISDIGIT, year): Likewise.
111579         * lib/strverscmp.c (ISDIGIT): Likewise.
111580         * lib/userspec.c (ISDIGIT): Likewise.
111582 2002-01-16  Jim Meyering  <meyering@lucent.com>
111584         * lib/getdate.y: Add three semicolons, each just before a closing
111585         brace. Bison (as of version 1.31) no longer papers over that mistake.
111587 2002-01-05  Jim Meyering  <meyering@lucent.com>
111589         * lib/version-etc.c (version_etc_copyright): Update copyright year.
111591 2001-12-19  Paul Eggert  <eggert@twinsun.com>
111593         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
111594         not silently exit merely because the output buffer happens to
111595         have nothing pending.
111597 2001-12-18  Paul Eggert  <eggert@twinsun.com>
111599         See the big note in ../ChangeLog.
111600         * lib/human.c (suffixes): Prefer K to k for 1024.
111601         (generate_suffix_backwards): New function.
111602         (human_readable_inexact): Use it.
111603         * lib/xstrtol.c (__xstrtol): If there is no number but there
111604         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
111605         Accept 'K' as well as 'k'.
111607 2001-12-15  Jim Meyering  <meyering@lucent.com>
111609         * lib/regex.h (__restrict_arr): Update from libc.
111611         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
111612         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
111613         (STREQ): Define.
111615 2001-12-14  Jim Meyering  <meyering@lucent.com>
111617         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
111618         Suggestion from Bruno Haible.
111620 2001-12-10  Jim Meyering  <meyering@lucent.com>
111622         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
111623         xrealloc, Instead, include "xalloc.h".
111624         (initbuffer): Don't cast xmalloc return value to char*.
111625         (readline): Reword comment.
111626         Don't cast xrealloc return value to char*
111627         Return NULL, not 0.
111629 2001-12-09  Jim Meyering  <meyering@lucent.com>
111631         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
111632         about `signed and unsigned type in conditional expression'.
111633         * lib/posixtm.c (posix_time_parse): Likewise.
111635         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
111637         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
111638         to avoid a pedantic warning.
111640         * lib/getstr.c: Don't include assert.h.
111641         (getstr): Remove warning-evoking assertions.
111642         Return -1 if offset parameter is out of bounds.
111643         Change the type of a local from int to size_t.
111645         * lib/strftime.c (my_strftime_localtime_r): Include this function
111646         definition in the `#if ! HAVE_TM_GMTOFF' block.
111648         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
111649         Include xalloc.h instead.
111651 2001-12-02  Jim Meyering  <meyering@lucent.com>
111653         * lib/tempname.c: Don't declare getenv, thus reverting the change of
111654         2001-11-18.  It's no longer necessary, now that stdlib.h is always
111655         included.
111657         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
111658         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
111660 2001-11-30  Akim Demaille  <akim@epita.fr>
111662         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
111663         before being defined.
111665 2001-11-27  Paul Eggert  <eggert@twinsun.com>
111667         * lib/quotearg.h (quotearg_n, quotearg_n_style):
111668         First arg is int, not unsigned.
111669         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
111670         (SIZE_MAX, UINT_MAX): New macros.
111671         (quotearg_n_options): Abort if N is negative.
111672         Avoid overflow check on hosts where size_t is 64 bits and int
111673         is 32 bits, as overflow is impossible there.
111674         Fix off-by-one typo that caused unnecessary reallocation.
111676 2001-11-27  Jim Meyering  <meyering@lucent.com>
111678         * lib/tempname.c: Merge with version from libc.
111679         * lib/regex.c: Likewise.
111681         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
111682         systems for which STDC_HEADERS is 0, it was not included, resulting in
111683         a warning about an integer-to-pointer conversion problem with getenv.
111684         Reported by Volker Borchert.
111686 2001-11-26  Jim Meyering  <meyering@lucent.com>
111688         * lib/gtod.h: Remove file.
111689         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
111690         * lib/gettimeofday.c: Don't include gtod.h.
111691         (GTOD_init): Remove function.
111692         (rpl_gettimeofday): Do its job here instead, rather than aborting.
111693         Suggestion from Volker Borchert.
111695 2001-11-23  Jim Meyering  <meyering@lucent.com>
111697         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
111698         it.
111699         * lib/hash.c (struct hash_table): Define it here instead.
111701 2001-11-22  Jim Meyering  <meyering@lucent.com>
111703         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
111705 2001-11-20  Jim Meyering  <meyering@lucent.com>
111707         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
111708         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
111710 2001-11-19  Jim Meyering  <meyering@lucent.com>
111712         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
111713         directory.  Use "conftestXXXXXX" as the template.
111714         Suggestion from Paul Eggert.
111716         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
111717         immediately, so the test doesn't mistakenly hit the max-open-files
111718         limit.
111720 2001-11-18  Paul Eggert  <eggert@twinsun.com>
111722         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
111723         (TEMPORARIES): New macro.
111724         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
111725         removes an artificial limitation (e.g. HP-UX 10.20, where
111726         TMP_MAX is 17576).
111728 2001-11-18  Jim Meyering  <meyering@lucent.com>
111730         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
111732 2001-11-18  Jim Meyering  <meyering@lucent.com>
111734         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
111735         on SunOS 4.
111737         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
111738         files will be created before anything else.
111740 2001-11-17  Paul Eggert  <eggert@twinsun.com>
111742         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
111743         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
111745 2001-11-17  Jim Meyering  <meyering@lucent.com>
111747         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
111748         Prompted by a report from Bob Proulx.
111750         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
111751         Instead, require UTILS_FUNC_MKSTEMP.
111753 2001-11-17  Jim Meyering  <meyering@lucent.com>
111755         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
111756         Now, that's done as part of AC_FUNC_STRTOD.
111758 2001-11-17  Jim Meyering  <meyering@lucent.com>
111760         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
111761         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
111762         rather than group writable.  Patch by Juan F. Codagnone.
111764         * lib/readtokens.c: Remove explicit declarations of xmalloc and
111765         xrealloc, Instead, include "xalloc.h".
111767         * lib/mountlist.c: Include unlocked-io.h after all system headers.
111768         Remove explicit declarations of xmalloc, xrealloc,
111769         and xstrdup.  Instead, include "xalloc.h".
111771         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
111772         unlocked-io.h.
111773         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
111774         Likewise.
111775         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
111777         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
111778         Reported by Padraig Brady.
111780         * lib/mkstemp.c: #undef mkstemp.
111781         Include config.h.
111782         (rpl_mkstemp): Rename from mkstemp.
111783         Protoize.
111785 2001-11-16  Jim Meyering  <meyering@lucent.com>
111787         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
111788         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
111789         determine the amount of total physical memory, use pstat_getstatic.
111790         HPUX-11 doesn't define _SC_PHYS_PAGES.
111791         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
111792         If sysconf couldn't be used to determine the amount of available
111793         physical memory, use both pstat_getstatic and pstat_getdynamic.
111794         Based on a patch from Bob Proulx.
111796 2001-11-10  Jim Meyering  <meyering@lucent.com>
111798         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
111799         (jm_PREREQ): Use it.
111801 2001-11-09  Jim Meyering  <meyering@lucent.com>
111803         * m4/jm-macros.m4: Require autoconf-2.52f.
111804         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
111805         Use these AC_-prefixed names, not the AM_-prefixed ones.
111807         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
111809 2001-11-05  Jim Meyering  <meyering@lucent.com>
111811         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
111813 2001-11-04  Jim Meyering  <meyering@lucent.com>
111815         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
111816         $DEFS.
111818 2001-11-03  Jim Meyering  <meyering@lucent.com>
111820         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
111821         of AC_DEFUN.
111823         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
111824         know the name of the variable in the macro definition.
111826 2001-11-03  Jim Meyering  <meyering@lucent.com>
111828         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
111829         in argmatch_to_argument call.
111831         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
111832         argument.
111834         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
111835         e.g., a fault due to an attempt to free a NULL pointer.
111837 2001-11-01  Jim Meyering  <meyering@lucent.com>
111839         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
111840         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
111842 2001-11-01  Jim Meyering  <meyering@lucent.com>
111844         * lib/dirfd.c, lib/dirfd.h: New files.
111845         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
111847         * lib/hash.c (hash_print) [TESTING]: Clean up.
111849 2001-10-22  Paul Eggert  <eggert@twinsun.com>
111851         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
111852         to avoid a warning if -Wall.
111854 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
111856         * README: New file
111857         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
111858         (per RMS's instructions, this is now the canonical source)
111859         * lgpl/, gpl/: New directories.
111861 2001-10-21  Paul Eggert  <eggert@twinsun.com>
111863         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
111865 2001-10-21  Jim Meyering  <meyering@lucent.com>
111867         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
111868         this code would end up calling gettext even in packages built
111869         with --disable-nls.
111870         * lib/getopt.c (_): Likewise.
111871         * lib/regex.c (_): Likewise.
111873 2001-10-20  Paul Eggert  <eggert@twinsun.com>
111875         * m4/error.m4 (jm_PREREQ_ERROR):
111876         Do not invoke AC_CHECK_FUNCS with strerror_r, as
111877         AC_FUNC_STRERROR_R does that.
111878         Check for strerror declaration.
111880         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
111881         are supposed to have them these days.
111882         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
111883         Merge changes from latest Autoconf CVS.
111884         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
111885         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
111886         POSIX decided to standardize on the int flavor of strerror_r.
111888 2001-10-20  Paul Eggert  <eggert@twinsun.com>
111890         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
111891         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
111892         Use strerror_r that is only a macro, even if it is not a function.
111893         (strerror): Check for HAVE_DECL_STRERROR before declaring.
111894         (private_strerror): Use prototypes, not old-style function definition.
111895         (print_errno_message): New function.
111896         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
111897         char*-flavored one.
111898         (error_tail, error, error_at_line): Use it.
111900 2001-10-11  Jim Meyering  <meyering@lucent.com>
111902         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
111903         and quote_n (1, ... to avoid clobbering a buffer.
111905 2001-10-05  Jim Meyering  <meyering@lucent.com>
111907         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
111908         hash-pjw.h.
111909         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
111910         * lib/hash-pjw.h: New file.
111912 2001-09-30  Jim Meyering  <meyering@lucent.com>
111914         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
111915         `struct fsstat' has the `f_fstypename' member.
111916         Use that to define FS_TYPE, which is now used to make
111917         the getfsstat link test tighter.
111919 2001-09-30  Jim Meyering  <meyering@lucent.com>
111921         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
111922         Include <sys/ucred.h>, for Apple Darwin.
111923         Include sys/mount.h and sys/fs_types.h only if available.
111924         (FS_TYPE): Define.
111925         (read_filesystem_list): Use FS_TYPE.
111927 2001-09-29  Paul Eggert  <eggert@twinsun.com>
111929         * lib/exclude.c (excluded_filename): 0 -> false, since it's
111930         a boolean context.
111932 2001-09-29  Jim Meyering  <meyering@lucent.com>
111934         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
111935         [one-argument getmntent function]): Include stdio.h before mntent.h.
111936         SunOS 4.1.x needs it for the declaration of `FILE'.
111937         Patch by Volker Borchert.
111939         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
111940         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
111941         sys/fs_types.h, and make the link-test for getfsstat guard #include
111942         directives with appropriate #if HAVE_*_H tests so that we can
111943         detect getfsstat on Apple Darwin1.3.7 systems.
111944         Reported by Nelson Beebe.
111945         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
111947 2001-09-28  Paul Eggert  <eggert@twinsun.com>
111949         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
111950         #defines strtoimax.  Also treat the other strto* functions
111951         like strtoimax.
111953         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
111954         Check for strtoul and strtoumax,
111955         as those declarations are made even in the signed case.
111956         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
111957         Likewise, for strtol and strtoimax.
111959 2001-09-28  Paul Eggert  <eggert@twinsun.com>
111961         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
111962         #defines strtoimax.  Also treat the other strto* functions
111963         like strtoimax.
111965         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
111966         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
111967         (strtoimax, strtoumax): Do not declare if already defined as a macro.
111969 2001-09-26  Jim Meyering  <meyering@lucent.com>
111971         Most macros in unlocked-io.h had the wrong number of arguments.
111972         * lib/gen-uio: New script.
111973         (USE_UNLOCKED_IO): Define to 1 if not already defined.
111974         * lib/unlocked-io.hin: Remove file.
111975         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
111976         rather than trying to embed it here.
111977         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
111978         Reported by Padraig Brady.
111980 2001-09-25  Volker Borchert  <bt@teknon.de>
111982         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
111983         `result'.
111985 2001-09-24  Jim Meyering  <meyering@lucent.com>
111987         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
111989 2001-09-23  Jim Meyering  <meyering@lucent.com>
111991         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
111992         instead of the mere test for existence of mntent.h.  The latter
111993         would get a false-positive on AIX 3.4 systems.
111994         In the outer getmntent if-block, don't die if neither of the getmntent
111995         tests succeeds.  Instead, just fall through and continue with the
111996         remaining tests.
111998 2001-09-23  Jim Meyering  <meyering@lucent.com>
112000         * lib/mountlist.c: Remove useless parentheses in #if directives.
112001         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
112002         the deprecated MOUNTED symbol is no longer defined in mntent.h.
112004 2001-09-22  Jim Meyering  <meyering@lucent.com>
112006         * m4/gettext.m4: New file.  From gettext.
112007         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
112008         * m4/progtest.m4: Likewise
112009         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
112010         * m4/glibc21.m4: Likewise.
112012         * m4/libintl.m4: Remove.  No longer used.
112014 2001-09-22  Jim Meyering  <meyering@lucent.com>
112016         * lib/localcharset.c: Update from latest gettext.
112017         * lib/config.charset: Likewise.
112019 2001-09-20  Jim Meyering  <meyering@lucent.com>
112021         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
112022         strtoimax.
112023         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
112024         strtoumax.
112026 2001-09-20  Jim Meyering  <meyering@lucent.com>
112028         * lib/xstrtol.c (strtoimax): Guard declaration with
112029         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
112030         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
112031         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
112032         (strtoumax): Likewise, for completeness (it wasn't necessary).
112034 2001-09-17  Paul Eggert  <eggert@twinsun.com>
112036         * lib/strtoimax.c (HAVE_LONG_LONG):
112037         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
112038         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
112039         to work around bug in IBM C compiler.
112041 2001-09-17  Jim Meyering  <meyering@lucent.com>
112043         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
112044         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
112045         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
112046         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
112047         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
112048         whenever the right hand side need not be expanded by the shell.
112050 2001-09-16  Paul Eggert  <eggert@twinsun.com>
112052         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
112053         library.  It's not correct, as some older glibcs are buggy.
112054         fnmatch wasn't fixed until glibc 2.2.
112056         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
112057         special shell magic here.
112059 2001-09-16  Jim Meyering  <meyering@lucent.com>
112061         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
112062         * m4/jm-macros.m4: Require it.
112064 2001-09-16  Jim Meyering  <meyering@lucent.com>
112066         * lib/mkdir.c: New file.
112068 2001-09-15  Jim Meyering  <meyering@lucent.com>
112070         * m4/jm-macros.m4: Check for help2man.
112072 2001-09-11  Jim Meyering  <meyering@lucent.com>
112074         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
112075         The body, by Paul Eggert, was moved here from configure.in.
112076         * m4/jm-macros.m4: Require UTILS_HOST_OS.
112078 2001-09-04  Paul Eggert  <eggert@twinsun.com>
112080         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
112081         (jm_PREREQ): Use it.
112083 2001-09-04  Paul Eggert  <eggert@twinsun.com>
112085         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
112086         Use ssize_t, not int, to store result of readlink.
112087         Check for ssize_t overflow as well as size_t overflow,
112088         as POSIX says the result of readlink is implementation-defined
112089         when ssize_t overflows.
112090         Remove unnecessary cast to char*.
112091         Use free+malloc instead of realloc, as the storage doesn't need
112092         to be preserved and it's clearer and can be more efficient that way.
112093         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
112094         * lib/xreadlink.h (xreadlink): Update prototype.
112096 2001-09-04  Paul Eggert  <eggert@twinsun.com>
112098         * lib/xgetcwd.c: Revert some of the previous change; intead,
112099         fix the HAVE_GETCWD_NULL code to behave more like the
112100         !HAVE_GETCWD_NULL code used to.
112102         Include "xalloc.h".
112103         (xgetcwd): Do not return NULL when memory is exhausted; instead,
112104         invoke xalloc_die.
112106 2001-09-03  Paul Eggert  <eggert@twinsun.com>
112108         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
112109         sys/param.h, as pathmax.h includes them.
112111 2001-09-03  Paul Eggert  <eggert@twinsun.com>
112113         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
112114         (jm_PREREQ_XGETCWD): New macro.
112116         * m4/getcwd.m4: New file.
112118 2001-09-03  Paul Eggert  <eggert@twinsun.com>
112120         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
112121         like the HAVE_GETCWD_NULL code.
112122         Include pathmax.h if not HAVE_GETCWD.
112123         Do not include xalloc.h.
112124         (INITIAL_BUFFER_SIZE): New symbol.
112125         Do not use xmalloc / xrealloc, since the caller is responsible for
112126         handling errors.  Preserve errno around `free' during failure.
112127         Do not overrun buffer when using getwd.
112129 2001-09-03  Paul Eggert  <eggert@twinsun.com>
112131         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
112132         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
112133         getcwd (NULL, 0).
112135 2001-09-03  Paul Eggert  <eggert@twinsun.com>
112137         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
112138         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
112139         spotted by Jim Meyering.
112141 2001-09-03  Jim Meyering  <meyering@lucent.com>
112143         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
112144         failure.
112146 2001-09-02  Jim Meyering  <meyering@lucent.com>
112148         * lib/error.c: Update from GNU libc.
112150 2001-09-01  Jim Meyering  <meyering@lucent.com>
112152         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
112153         Used by df.
112155 2001-09-01  Jim Meyering  <meyering@lucent.com>
112157         * lib/xreadlink.c: New file.
112158         * lib/xreadlink.h: New file.
112159         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
112160         xreadlink.h.
112162         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
112163         doesn't conflict with sparc Solaris 7's definition in
112164         /usr/include/sys/int_types.h.
112166         * lib/exclude.c: Use `""', not `<>' to #include non-system header
112167         files.
112168         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
112169         and strncasecmp as r-values.  Unixware didn't have declarations.
112171 2001-08-31  Paul Eggert  <eggert@twinsun.com>
112173         * lib/xstrtol.h: Add copyright notice.
112174         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
112175         LONGINT_INVALID_SUFFIX_CHAR.
112177 2001-08-31  Paul Eggert  <eggert@twinsun.com>
112179         * lib/xstrtol.c (strtoimax): New decl.
112181 2001-08-31  Paul Eggert  <eggert@twinsun.com>
112183         * lib/xgetcwd.c: Don't include pathmax.h.
112184         Include stdlib.h and unistd.h if available.
112185         Include xalloc.h.
112186         (xmalloc, xstrdup, free): Remove decls.
112187         (xgetcwd): Don't assume sizes fit in unsigned.
112188         Check for overflow when computing sizes.
112189         Simplify reallocation code.
112191 2001-08-31  Paul Eggert  <eggert@twinsun.com>
112193         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
112194         a directory's st_size can have an arbitrary value, so the old
112195         usage could waste an arbitrary amount of memory.  All uses
112196         changed.
112197         * lib/savedir.h: Update prototype.
112199 2001-08-31  Paul Eggert  <eggert@twinsun.com>
112201         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
112203         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
112204         old strtoimax.c.
112206         Also, make the following further changes to make this file's
112207         configuration more similar to that of strtol.c:
112208         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
112209         (strtoumax, uintmax_t, strtoull, strtol): Remove.
112210         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
112211         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
112212         changed to signed values.
112214         And make the following changes as well:
112215         Fix copyright notice, as 1999 was missing.
112216         (verify): New macro.
112217         (strtoimax): Check sizes at compile-time, not run-time.
112218         Prefer strtol to strtoll if both work.
112219         (main): Remove; it was not that useful and was a pain to maintain.
112221         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
112223 2001-08-31  Jim Meyering  <meyering@lucent.com>
112225         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
112226         Use an initial, malloc'd, buffer of length 128 rather than
112227         a statically allocated one of length 1024.
112229 2001-08-30  Paul Eggert  <eggert@twinsun.com>
112231         Simplify code, partly by assuming autoconf 2.52 semantics.
112233         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
112235         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
112236         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
112237         All uses removed.
112238         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
112239         Move AC_REQUIRE to next-to-top level, to avoid confusion.
112240         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
112241         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
112242         jm_AC_HEADER_INTTYPES_H.
112243         * m4/jm-macros.m4 (jm_MACROS): Likewise.
112245         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
112247         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
112248         Quote first arg of AC_DEFUN.
112249         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
112250         since they are needed to parse the include file even if we need
112251         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
112252         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
112253         but with opposite signedness.
112255 2001-08-30  Paul Eggert  <eggert@twinsun.com>
112257         Merge 'exclude' changes from tar 1.13.22.
112258         This fixes one or two unlikely storage allocation overflow bugs,
112259         but doesn't change user-visible behavior otherwise.
112261 2001-08-30  Paul Eggert  <eggert@twinsun.com>
112263         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
112264         (jm_PREREQ_EXCLUDE): New macro.
112266 2001-08-30  Paul Eggert  <eggert@twinsun.com>
112268         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
112269         tm to be declared.
112271 2001-08-30  Paul Eggert  <eggert@twinsun.com>
112273         * lib/hash.c: Remove '2001' from copyright notice.
112275 2001-08-30  Paul Eggert  <eggert@twinsun.com>
112277         * lib/full-write.h: New file.
112278         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
112279         * lib/full-write.c: Correct credits, as cccp.c no longer
112280         exists and anyway it was so heavily changed from the old cccp
112281         code as to be unrecognizable.  Include full-write.h.
112282         (full_write): Return size_t, with short writes meaning failure.
112283         All callers changed.  This fixes a bug with large buffers
112284         on 64-bit hosts.
112285         * lib/utime.c: Include full-write.h.
112287 2001-08-30  Paul Eggert  <eggert@twinsun.com>
112289         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
112290         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
112291         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
112292         Include if available.
112293         (<xalloc.h>): Include
112294         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
112295         (verify): New macro.  Use it to verify that EXCLUDE macros do not
112296         collide with FNM macros.
112297         (struct patopts): New struct.
112298         (struct exclude): Use it, as exclude patterns now come with options.
112299         (new_exclude): Support above changes.
112300         (new_exclude, add_exclude_file):
112301         Initial size must now be a power of two to simplify overflow checking.
112302         (free_exclude, fnmatch_no_wildcards): New function.
112303         (excluded_filename): No longer requires options arg, as the options
112304         are determined by add_exclude.  Now returns bool, not int.
112305         (excluded_filename, add_exclude):
112306         Add support for the fancy new exclusion options.
112307         (add_exclude, add_exclude_file): Now takes int options arg.
112308         Check for arithmetic overflow when computing sizes.
112309         (add_exclude_file): xrealloc might modify errno, so don't
112310         realloc until after errno might be used.
112312         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
112313         New macros.
112314         (free_exclude): New decl.
112315         (add_exclude, add_exclude_file): Now takes int options arg.
112316         (excluded_filename): No longer requires options arg, as the options
112317         are determined by add_exclude.  Now returns bool, not int.
112319 2001-08-30  Paul Eggert  <eggert@twinsun.com>
112321         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
112323 2001-08-27  Jim Meyering  <meyering@lucent.com>
112325         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
112327         * lib/version-etc.c (N_): Remove definition.
112328         Revert most of last change.
112329         Instead, simply don't mark the `Copyright...' string for translation.
112330         Based on advice from Paul Eggert.
112332         * lib/strtoxmax.c: Tweak comment.
112334 2001-08-26  Jim Meyering  <meyering@lucent.com>
112336         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
112338         * m4/xstrtoimax.m4: New file.
112339         * m4/xstrtoumax.m4: Add comments explaining why we
112340         AC_REPLACE_FUNCS(strtol).
112342 2001-08-26  Jim Meyering  <meyering@lucent.com>
112344         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
112345         of copyright with `%s' so translators don't get an untranslated
112346         message in 2002.
112347         (COPYRIGHT_YEAR): Define.
112348         (version_etc): Use fprintf rather than fputs.
112349         Suggestion from Ulrich Drepper.
112351         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
112353         * lib/strtoll.c: New file, from GNU libc.
112354         * lib/xstrtoimax.c: New file.
112356         * lib/xstrtol.h: Add xstrtoimax.
112357         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
112358         * lib/strtoimax.c: New file.  Likewise, but first define
112359         STRTOUXMAX_SIGNED.
112361         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
112362         ...
112363         * lib/strtoxmax.c: ... then renamed to this.
112365 2001-08-18  Paul Eggert  <eggert@twinsun.com>
112367         * m4/inttypes.m4: Add AC_PREREQ(2.13).
112368         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
112369         (jm_AC_TYPE_INTMAX_T): New macro.
112370         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
112372         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
112374         * m4/longlong.m4: Renamed from ulonglong.m4.
112375         * m4/inttypes.m4: Renamed from inttypes_h.m4.
112376         * m4/uintmax_t.m4: Removed.
112378 2001-08-13  Paul Eggert  <eggert@twinsun.com>
112380         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
112381         Port to Solaris 8, where 'sed' requires a space after the 'r'
112382         command, and where sh dislikes "$/".  Clean up the spacing a bit.
112383         Redirect output to $tmp just once.
112385 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
112387         * lib/addext.c (<errno.h>): Include.
112388         (errno): Declare if not defined.
112389         (addext): Work correctly when pathconf returns -1 and leaves
112390         errno alone because there is no limit.  Also, work even if
112391         pathconf returns a value greater than SIZE_MAX.
112393 2001-08-12  Jim Meyering  <meyering@lucent.com>
112395         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
112396         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
112397         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
112398         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
112399         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
112400         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
112401         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
112402         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
112403         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
112404         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
112405         utime.m4, utimes.m4, xstrtoumax.m4:
112406         Quote the first argument in each use of AC_DEFUN.
112408 2001-08-12  Jim Meyering  <meyering@lucent.com>
112410         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
112411         Simply `return getcwd (NULL, 0);'.
112412         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
112413         Use 1300 as initial value for length, not PATH_MAX.
112415         * lib/pathmax.h: Clean up cpp syntax.
112417 2001-08-12  Jim Meyering  <meyering@lucent.com>
112419         * lib/gettimeofday.c: New file.
112420         * lib/gtod.h: New file.
112421         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
112423 2001-08-05  Jim Meyering  <meyering@lucent.com>
112425         * m4/jm-macros.m4: Require autoconf-2.52.
112427 2001-08-04  Jim Meyering  <meyering@lucent.com>
112429         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
112430         stmt, to get in sync with glibc.
112432 2001-08-03  Paul Eggert  <eggert@twinsun.com>
112434         The following changes are from gettext 0.10.39 as maintained by
112435         Bruno Haible.
112437         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
112438         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
112439         with inverted sense.  All uses changed.
112441         * lib/mbswidth.c: Don't include <limits.h>.
112442         Include <stdlib.h> and <string.h> unconditionally.
112443         (iswcntrl, mbsinit, ISCNTRL): New macros.
112444         (mbsnwidth): Use K&R style function declarations.
112445         Don't bother checking for MB_LEN_MAX == 1, since the compiler
112446         can optimize it when MB_CUR_MAX == 1.
112447         The width of control characters is zero, not 1.
112449 2001-08-03  Paul Eggert  <eggert@twinsun.com>
112451         The following changes are from gettext 0.10.39 as maintained by
112452         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
112454         * m4/codeset.m4: Upgrade to serial AM1.
112455         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
112456         all uses changed.  Quote first arg of AC_DEFUN.
112457         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
112459         * m4/iconv.m4: Upgrade to serial AM2.
112460         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
112461         Add --with-libconv-prefix.
112462         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
112463         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
112464         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
112465         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
112466         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
112468         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
112469         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
112470         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
112471         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
112472         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
112473         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
112474         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
112475         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
112476         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
112478         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
112479         string.h any more.
112481         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
112482         not the default value.
112484         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
112485         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
112486         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
112487         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
112488         Also check for iswcntrl, used for wcwidth fallback.
112489         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
112490         to Autoconf 2.13.
112492 2001-08-03  Jim Meyering  <meyering@lucent.com>
112494         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
112495         as it was in the original.  Reported by Paul Eggert.
112497 2001-07-16  Jim Meyering  <meyering@lucent.com>
112499         * m4/gettimeofday.m4: New file.
112500         Prompted by a report from Bernhard Baehr.
112502 2001-07-15  Jim Meyering  <meyering@lucent.com>
112504         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
112505         stuff. Now it's in ../Makefile.cfg.
112507 2001-07-15  Jim Meyering  <meyering@lucent.com>
112509         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
112510         (BUILT_SOURCES): Add unlocked-io.h.
112511         (io_functions): Define.
112512         (unlocked-io.h): New rule.
112513         (DISTCLEANFILES): Add unlocked-io.h.
112514         (all-local): Depend on unlocked-io.h, to ensure it is created.
112516         * lib/unlocked-io.hin: New file
112518         * lib/regex.c: Update from glibc.
112520 2001-07-05  Jim Meyering  <meyering@lucent.com>
112522         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
112523         recommendation.
112524         (libfetish_a_SOURCES): Put all .h files here instead.
112525         Remove a thus-exposed (better checks in automake) duplicate and
112526         two unnecessary .h files.
112528 2001-07-04  Jim Meyering  <meyering@lucent.com>
112530         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
112531         that generates jm-glibc-io.m4 so that it doesn't trigger any make
112532         distcheck failure.
112534 2001-07-02  Jim Meyering  <meyering@lucent.com>
112536         The following changes were prompted by suggestions from Bruno Haible.
112538         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
112539         is now generated.
112540         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
112541         definition of EXTRA_DIST.
112542         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
112543         ensure that the generated file is created/updated whenever the list
112544         of $(unlocked_functions) is changed.
112545         (jm-glibc-io.m4): New rule.
112546         (unlocked-io.h): New rule -- currently unused.
112548 2001-06-24  Jim Meyering  <meyering@lucent.com>
112550         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
112551         unmatched right bracket, rather than kludging it with an extra,
112552         falsely-matching quote in a comment.  Patch by Akim Demaille.
112554 2001-06-11  Jim Meyering  <meyering@lucent.com>
112556         * lib/regex.c: Update from GNU libc.
112558 2001-05-27  Jim Meyering  <meyering@lucent.com>
112560         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
112561         Check for ut_type in struct utmp.
112563 2001-05-27  Jim Meyering  <meyering@lucent.com>
112565         * lib/readutmp.h (UT_TYPE): Define.
112567 2001-05-24  Jim Meyering  <meyering@lucent.com>
112569         * lib/argmatch.c: Include "quote.h".
112570         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
112571         quote function.  Reported by Göran Uddeborg.
112573 2001-05-22  Jim Meyering  <meyering@lucent.com>
112575         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
112576         now that we use the package-supplied version unconditionally.
112577         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
112579 2001-05-21  Jim Meyering  <meyering@lucent.com>
112581         * m4/regex.m4: Change a couple backticks to single quotes to avoid
112582         shell syntax errors.
112584 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
112586         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
112588 2001-05-20  Paul Eggert  <eggert@twinsun.com>
112590         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
112591         Don't bother to check library strftime, since
112592         we'll be using our own my_strftime function anyway.
112593         Define my_strftime instead of strftime.
112595 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
112597         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
112598         which is not yet declared.
112600 2001-05-15  Jim Meyering  <meyering@lucent.com>
112602         * m4/regex.m4: Use proper quoting so brackets appear in the test
112603         program.
112604         Reported by, and with help from, Bruno Haible.
112606 2001-05-13  Jim Meyering  <meyering@lucent.com>
112608         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
112609         undefined.
112611 2001-05-11  Paul Eggert  <eggert@twinsun.com>
112613         dirname code cleanup.  base_name now behaves more compatibly
112614         with POSIX basename when given file names that have trailing
112615         slashes, and similarly for dir_name.  Add new primitives
112616         base_len and dir_len.  Put the directory-name-related decls
112617         into dirname.h.
112619         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
112620         * lib/backupfile.c (base_name): Likewise.
112621         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
112622         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
112623         * lib/makepath.c (strip_trailing_slashes): Likewise.
112624         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
112625         ISSLASH): Likewise.
112626         * lib/rename.c (strip_trailing_slashes): Likewise.
112627         * lib/same.c (base_name): Likewise.
112628         * lib/stripslash.c (ISSLASH): Likewise.
112630         * lib/addext.c: Include <dirname.h> after size_t is defined.
112631         * lib/backupfile.c: Likewise.
112633         * lib/addext.c (addext): Use base_len to trim redundant
112634         trailing slashes instead of doing it ourselves.
112635         But do not trim the last slash if it is not redundant.
112637         * lib/backupfile.c (find_backup_file_name,
112638         max_backup_version): Use base_len instead of rolling it ourselves.
112639         Handle the case of "" and (on DOS) "C:" correctly.
112641         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
112642         needed. Include <string.h>, <dirname.h>.
112643         (base_name): Allow file names ending in slashes, other than names
112644         that are all slashes.  In this case, return the basename followed
112645         by the slashes.  This is more general, and can be used in places
112646         where the original base_name purposely had an assertion failure.
112647         (base_len): New function.
112649         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
112650         Do not include <assert.h>; no longer needed.
112651         Include xalloc.h.
112652         (memrchr): Remove decl.
112653         (dir_name_r): Remove.
112654         (dir_len): Renamed from dirlen.  All callers changed.
112655         Rewrite in terms of base_name, for simplicity and consistency.
112656         (dir_name): Never return NULL.  All callers changed.
112657         Do not include <stdlib.h> in test program; no longer needed.
112658         return 0; is fine for test program.
112660         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
112661         New macros.
112662         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
112664         * lib/path-concat.c (path_concat): Use base_len to compute
112665         base length, not strlen; this means we cannot rely on memcpy
112666         to null-terminate.
112668         * lib/same.c (STREQ): Remove.
112669         (same_name): Handle the case where the basename ends in trailing '/'.
112671         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
112672         a slash was stripped.  Do not strip the last slash after a
112673         file system prefix.
112675 2001-05-11  Paul Eggert  <eggert@twinsun.com>
112677         * lib/Makefile.am (libfetish_a_SOURCES):
112678         Add strftime.c, since we now compile it on all hosts.
112680         * lib/strftime.c (my_strftime):
112681         Define to nstrftime if emacs, but only if my_strftime is not defined.
112682         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
112683         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
112684         Add one more extra argument: a nanoseconds value.
112685         All uses changed.
112686         (ns): New macro.
112687         (my_strftime function): Add %N format.
112688         (emacs_strftimeu): Renamed from emacs_strftime,
112689         with extra ut argument.
112691 2001-05-09  Paul Eggert  <eggert@twinsun.com>
112693         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
112695 2001-04-21  Jim Meyering  <meyering@lucent.com>
112697         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
112698         doesn't interfere.
112700 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
112702         * m4/ftruncate.m4: Check for chsize.
112703         Link with ftruncate.o unconditionally if ftruncate is missing.
112704         This was required when cross-compiling to i586-mingw32msvc.
112706 2001-04-08  Jim Meyering  <meyering@lucent.com>
112708         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
112709         recomputed; that's necessary when the offset spans a DST transition.
112710         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
112712 2001-04-02  Jim Meyering  <meyering@lucent.com>
112714         * lib/regex.h, regex.c: Update from GNU libc.
112716 2001-03-24  Jim Meyering  <meyering@lucent.com>
112718         * m4/jm-macros.m4: Require autoconf-2.49d.
112720 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
112722         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
112724 2001-03-19  Paul Eggert  <eggert@twinsun.com>
112726         * lib/version-etc.c (version_etc_copyright): Update to 2001.
112728 2001-03-17  Jim Meyering  <meyering@lucent.com>
112730         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
112731         now that the version in autoconf is equivalent.
112732         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
112734         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
112735         Suggestion from Akim Demaille.
112737         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
112738         (jm_PREREQ_TEMPNAME): New function.
112740 2001-03-16  Paul Eggert  <eggert@twinsun.com>
112742         * lib/tempname.c (uint64_t): Define to uintmax_t if
112743         not defined, and if UINT64_MAX is not defined.
112744         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
112745         Reported by John David Anglin.
112747 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
112749         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
112750         resolve alias if codeset is empty.
112751         * lib/config.charset (BeOS): Use wildcard syntax.
112753 2001-03-13  Jim Meyering  <meyering@lucent.com>
112755         * lib/path-concat.c (path_concat)
112756         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
112757         concatenating e.g., `C:' and `foo'.
112758         From Bruno Haible.
112760 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
112762         * lib/localcharset.c (locale_charset): Don't use
112763         setlocale(LC_CTYPE,NULL). Don't return NULL.
112764         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
112766 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
112768         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
112769         support for DOS/DJGPP.
112771 2001-03-01  Paul Eggert  <eggert@twinsun.com>
112773         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
112774         lacks mkstemp.  Compile our own tempname.c if we compile our own
112775         mkstemp.c, as mkstemp relies on tempname.
112777 2001-03-01  Jim Meyering  <meyering@lucent.com>
112779         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
112780         AH_VERBATIM really does output its argument verbatim.
112782 2001-02-28  Paul Eggert  <eggert@twinsun.com>
112784         * lib/Makefile.am (libfetish_a_SOURCES):
112785         Add dup-safer.c, fopen-safer.c.
112786         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
112788         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
112789         * lib/unistd-safer.h: New files.
112791 2001-02-25  Paul Eggert  <eggert@twinsun.com>
112793         The mkstemp replacement is taken from glibc 2.2.2, with some
112794         portability fixes for use outside glibc, as follows:
112796         * lib/tempname.c (struct_stat64): New macro.
112797         (direxists, __gen_tempname): Use it.
112798         This avoids a portability problem with Solaris 8.
112800         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
112801         (<stddef.h>, <stdint.h>, <string.h>):
112802         Include only if STDC_HEADERS || _LIBC.
112803         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
112804         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
112805         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
112806         (__set_errno): Define this macro if <errno.h> doesn't.
112807         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
112808         Define these macros if <stdio.h> doesn't.
112809         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
112810         Define these macros if <sys/stat.h>
112811         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
112812         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
112813         __xstat64): Define if not _LIBC.
112814         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
112815         (__gen_tempname): Invoke gettimeofday only if
112816         HAVE_GETTIMEOFDAY || _LIBC;
112817         otherwise, fall back on plain "time".
112818         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
112820         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
112822         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
112824 2001-02-18  Paul Eggert  <eggert@twinsun.com>
112826         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
112828 2001-02-17  Paul Eggert  <eggert@twinsun.com>
112830         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
112831         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
112832         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
112833         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
112835 2001-02-17  Paul Eggert  <eggert@twinsun.com>
112837         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
112838         Remove workaround macros for hosts that have mbrtowc but not
112839         mbstate_t, as we now insist on proper declarations for both
112840         before using mbrtowc.
112842 2001-02-17  Jim Meyering  <meyering@lucent.com>
112844         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
112845         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
112846         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
112847         UnixWare 7.1.1.
112849         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
112850         rather than AC_CACHE_VAL.
112852 2001-02-17  Jim Meyering  <meyering@lucent.com>
112854         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
112855         around included file name.
112857         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
112859         * lib/strftime.c: Update from GNU libc (the only changes were to
112860         comments).
112862 2001-02-17  Jim Meyering  <meyering@lucent.com>
112864         * lib/regex.c: Update from libc.
112866 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
112868         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
112869         clash.
112871 2001-02-16  Paul Eggert  <eggert@twinsun.com>
112873         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
112874         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
112875         Reported by Mark Hounschell via Paul Eggert.
112877 2001-02-07  Jim Meyering  <meyering@lucent.com>
112879         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
112881 2001-02-05  Jim Meyering  <meyering@lucent.com>
112883         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
112884         it includes the patch required for `large file' support with at least
112885         HP-UX's 10.20 /bin/cc.
112887 2001-02-03  Jim Meyering  <meyering@lucent.com>
112889         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
112890         AS_IF, now that it works once again (mysteriously).
112891         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
112893 2001-01-30  Jim Meyering  <meyering@lucent.com>
112895         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
112896         * m4/chown.m4: Rename conftestchown to conftest.chown.
112897         * m4/rename.m4: s/conftestdir/conftest.d1/ and
112898         s/conftestdir2/conftest.d2/.
112899         * m4/utimes.m4: s/conftestdata/conftest.data/
112900         Inspired by Pavel Roskin's change in autoconf.
112902 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
112904         * lib/config.charset: Update for FreeBSD 4.2.
112906 2001-01-27  Jim Meyering  <meyering@lucent.com>
112908         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
112909         a use of AS_IF.
112910         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
112912 2001-01-26  Jim Meyering  <meyering@lucent.com>
112914         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
112915         quotearg.c includes it.
112917 2001-01-26  Jim Meyering  <meyering@lucent.com>
112919         * lib/quotearg.c: Include stddef.h.
112920         * lib/quote.c: Include stddef.h.
112921         Reported by Axel Kittenberger.
112923         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
112924         line in double quotes so that it evokes a better diagnostic.
112925         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
112926         Reported by Axel Kittenberger.
112928 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
112930         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
112931         as if it was a `charset'.
112933 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
112935         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
112936         has const.
112938 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
112940         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
112941         to avoid a warning.  Add back 'const' to inptr.
112943 2001-01-20  Jim Meyering  <meyering@lucent.com>
112945         Be sure that headers are checked before used in code compiled
112946         for the type checks.
112947         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
112948         In place of that, invoke jm_CHECK_ALL_TYPES.
112949         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
112950         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
112951         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
112952         The check for ssize_t was mistakenly run before the test for unistd.h.
112954         The configure-time check for stdbool.h was missing.
112955         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
112956         (jm_PREREQ_HASH): New function.
112958 2001-01-17  Jim Meyering  <meyering@lucent.com>
112960         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
112961         for autoconf-2.49c.
112962         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
112964 2001-01-16  Jim Meyering  <meyering@lucent.com>
112966         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
112967         From Bruno Haible.
112969 2001-01-14  Jim Meyering  <meyering@lucent.com>
112971         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
112972         foo and bar.  Create conftestdir/ in the script, not in the C code.
112973         Remove directories in the script, not in the C code.
112974         Remove conftestdir{,2} before trying to create the directory.
112975         Make the entire configure script fail if the mkdir fails.
112977 2001-01-14  Jim Meyering  <meyering@lucent.com>
112979         * lib/rename.c: New file.  From Volker Borchert.
112980         Include stdlib.h, string.h or strings.h, and xalloc.h.
112981         Use strip_trailing_slashes rather than open-coding it.
112983 2001-01-03  Paul Eggert  <eggert@twinsun.com>
112985         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
112987 2001-01-03  Jim Meyering  <meyering@lucent.com>
112989         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
112990         of local `inptr' to avoid warning with some system declarations of
112991         iconv.
112993 2001-01-02  Volker Borchert  <bt@teknon.de>
112995         * m4/rename.m4: New file.
112996         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
112998 2001-01-01  Jim Meyering  <meyering@lucent.com>
113000         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
113001         even on systems with utmpx.h.  It's necessary for the declaration of
113002         utmp's ut_user member.  Reported by Andreas Jaeger.
113004         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
113005         available. They are required for the declarations of getgrgid and
113006         getpwuid resp.
113007         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
113008         Reported by Andreas Jaeger.
113010 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
113012         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
113013         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
113014         so `make install' also works in VPATH builds.
113016 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
113018         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
113019         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
113020         can be used in subdirectories.
113022 2000-12-29  Paul Eggert  <eggert@twinsun.com>
113024         * lib/modechange.c: Do not assume that mode_t uses the
113025         traditional octal encoding.  E.g. "chmod 1 FOO" should set
113026         the other-execute bit of FOO even if S_IXOTH != 1.
113028         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
113029         WOTH, XOTH, ALLM): New macros.
113030         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
113031          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
113032         Use them.
113033         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
113034         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
113035         (mode_compile):
113036         No need to use uintmax_t; unsigned long is long enough.
113037         Don't bother to get suffix since we don't use it.
113039 2000-12-26  Jim Meyering  <meyering@lucent.com>
113041         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
113042         better with autoheader.
113044 2000-12-24  Jim Meyering  <meyering@lucent.com>
113046         * lib/hash.c (is_prime): Return explicit boolean values.
113047         (hash_get_first): Return NULL to appease Irix5.6's 89.
113048         Reported by Nelson Beebe.
113050 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
113052         * lib/localcharset.c (locale_charset): Add support for Win32.
113054 2000-12-18  Paul Eggert  <eggert@twinsun.com>
113056         * lib/physmem.h, lib/physmem.c: New files.
113058         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
113059         (noinst_HEADERS): Add physmem.h.
113061         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
113062         't' for compatibility with Solaris 8 sort.
113064 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
113066         * lib/config.charset: Add support for BeOS.
113068 2000-12-17  Jim Meyering  <meyering@lucent.com>
113070         * m4/dos.m4 (jm_AC_DOS): New file and macro.
113071         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
113073 2000-12-16  Jim Meyering  <meyering@lucent.com>
113075         This bug had a serious impact on chown: `chown N:M FILE' (for integer
113076         N and M) would have treated it like `chown N:N FILE'.
113078         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
113080 2000-12-16  Jim Meyering  <meyering@lucent.com>
113082         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
113083         SHELLS_FILE to a file name that's useful on djgpp systems.
113084         Include stdlib.h.
113085         (ADDITIONAL_DEFAULT_SHELLS): Define.
113086         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
113087         Based mostly on a patch from Prashant TR.
113089 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
113091         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
113092         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
113093         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
113095 2000-12-08  Andreas Schwab  <schwab@suse.de>
113097         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
113098         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
113100 2000-12-07  Jim Meyering  <meyering@lucent.com>
113102         * lib/stripslash.c (ISSLASH): Define.
113103         (strip_trailing_slashes): Use ISSLASH rather than comparing against
113104         `/'.
113105         From Prashant TR.
113107         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
113108         (dir_name_r): Declare this function as static.
113109         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
113110         manifest itself on a name containing a mix of slashes and
113111         backslashes.
113112         Make this function work with names starting with a DOS-style
113113         drive letter and colon prefix.
113114         (dir_name): Append `.' if necessary.
113115         Based mostly on patches from Prashant TR and Eli Zaretskii.
113117         * lib/dirname.h (dir_name_r): Remove prototype.
113119 2000-12-06  Paul Eggert  <eggert@twinsun.com>
113121         * m4/off_t-format.m4: Remove this file.
113122         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
113124 2000-12-06  Jim Meyering  <meyering@lucent.com>
113126         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
113127         replacement strtoull, we may well need the replacement strtoul, too.
113128         Check for declarations of strtoul and strtoull.
113129         Check for strtol.  Mainly as a cue to cause automake to include
113130         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
113131         Check for limits.h -- strtol.c needs it.
113133 2000-12-05  Jim Meyering  <meyering@lucent.com>
113135         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
113137 2000-12-04  Jim Meyering  <meyering@lucent.com>
113139         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
113140         Also include memory.h, stdlib.h, unistd.h if appropriate.
113141         Reported by Andreas Jaeger (conflicting declaration of malloc).
113143 2000-12-02  Jim Meyering  <meyering@lucent.com>
113145         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
113146         * m4/jm-macros.m4 (jm_MACROS): require it.
113148 2000-12-02  Jim Meyering  <meyering@lucent.com>
113150         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
113152 2000-12-01  Paul Eggert  <eggert@twinsun.com>
113154         * lib/memrchr.c: Include <config.h> before any system include file.
113156 2000-11-30  Jim Meyering  <meyering@lucent.com>
113158         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
113160 2000-11-30  Jim Meyering  <meyering@lucent.com>
113162         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
113164 2000-11-29  Paul Eggert  <eggert@twinsun.com>
113166         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
113168 2000-11-26  Jim Meyering  <meyering@lucent.com>
113170         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
113172 2000-11-22  Paul Eggert  <eggert@twinsun.com>
113174         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
113175         size of (size_t) -1; it's not portable.
113177 2000-11-17  Jim Meyering  <meyering@lucent.com>
113179         * lib/strstr.c: Update from GNU libc.
113181 2000-11-17  Akim Demaille  <akim@epita.fr>
113183         * lib/obstack.h: Formatting changes.
113184         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
113185         prevent type checking.
113186         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
113187         cast the value to (void *): assigning a `foo *' to a `void *'
113188         variable is valid.
113189         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
113191 2000-11-16  Jim Meyering  <meyering@lucent.com>
113193         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
113195 2000-11-11  Jim Meyering  <meyering@lucent.com>
113197         * lib/error.c: Add a couple #includes, merging from GNU libc version.
113199 2000-11-10  Jim Meyering  <meyering@lucent.com>
113201         * lib/obstack.h: Update from GNU libc.
113202         * lib/obstack.c: Likewise.
113204 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
113206         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
113208 2000-11-06  Paul Eggert  <eggert@twinsun.com>
113210         * lib/getusershell.c (setusershell): Use rewind rather than
113211         fseek/fseeko, to avoid configuration hassles with fseeko.
113212         Don't bother opening SHELLS_FILE if shellstream is NULL;
113213         it's not necessary.
113215 2000-11-05  Jim Meyering  <meyering@lucent.com>
113217         * lib/makepath.h (make_dir): Declare.
113218         * lib/makepath.c (make_dir): Remove `static' attribute.
113219         Tweak a comment.
113221 2000-11-04  Jim Meyering  <meyering@lucent.com>
113223         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
113225 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
113227         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
113228         last one in a bucket, advance to the next bucket.
113230 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
113232         * lib/fnmatch.c: Do not comment out all the code if we are using
113233         the GNU C library, because in some cases we are replacing buggy
113234         code in the GNU C library itself.
113236 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
113238         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
113239         (regex_compile): Catch bogus \(\1\).
113241 2000-10-30  Paul Eggert  <eggert@twinsun.com>
113243         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
113244         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
113245         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
113247 2000-10-30  Paul Eggert  <eggert@twinsun.com>
113249         * lib/error.h, getline.h, modechange.h:
113250         Remove "2000" from Copyright line, as the file hasn't been
113251         changed this year other than in the copyright notice.
113253         * lib/xalloc.h: Add "2000" to Copyright line, as this file
113254         was changed this year.
113256 2000-10-29  Jim Meyering  <meyering@lucent.com>
113258         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
113259         renaming.
113260         * m4/ls-mntd-fs.m4: Likewise
113262 2000-10-29  Jim Meyering  <meyering@lucent.com>
113264         * lib/xstat.in: Fix grammar in comment.
113266 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
113268         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
113269         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
113270         doesn't define __restrict_arr.
113272 2000-10-28  Jim Meyering  <meyering@lucent.com>
113274         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
113275         (jm_PREREQ_MEMCHR): New function.
113277 2000-10-28  Jim Meyering  <meyering@lucent.com>
113279         * lib/memchr.c: Update from libc.
113280         Adjust for portability:
113281         [HAVE_STDLIB_H]: Include stdlib.h.
113282         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
113283         Undef __memchr, too.
113284         [!weak_alias]: Define __memchr to memchr.
113286         * lib/regex.c: Update from libc.
113287         * lib/regex.h: Likewise.
113288         * lib/getopt1.c: Likewise.
113289         * lib/memcmp.c: Likewise.
113291         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
113292         Avoid using fseek, when possible -- it's broken by design.
113293         Patch by Ulrich Drepper.
113295 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
113297         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
113298         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
113299         Giving in to popular pressure to shut up the compiler with casts.
113301 2000-10-26  Jim Meyering  <meyering@lucent.com>
113303         * lib/strftime.c: Update from libc.
113305 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
113307         * regex.c: More `unsigned char' -> `re_char' changes.
113308         Also change several `int' into `re_wchar_t'.
113309         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
113310         (PUSH_FAILURE_POINTER): Don't cast any more.
113311         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
113312         We want GCC to complain, since this piece of code makes
113313         re_match non-reentrant, which *should* be fixed.
113314         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
113315         (EXTEND_BUFFER): Use RETALLOC.
113316         (SET_LIST_BIT): Don't cast.
113317         (re_wchar_t): New type.
113318         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
113319         that those two functions will always properly return.
113320         (IMMEDIATE_QUIT_CHECK): Cast to void.
113321         (analyse_first): Use recursion rather than an explicit stack.
113322         (re_compile_fastmap): Can't fail anymore.
113323         (re_search_2): Don't check re_compile_fastmap for failure.
113324         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
113325         Now also sets the new value (passed in a new argument).
113326         (re_match_2_internal): Use it.
113327         Also, use a new var `reg' of type size_t when looping through regs
113328         rather than reuse the inappropriate `mcnt'.
113330 2000-10-25  Jim Meyering  <meyering@lucent.com>
113332         * lib/obstack.c: Update from libc.
113334 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
113336         * regex.c (regex_compile): Change the way of handling a range from
113337         a char less than 256 to a char not less than 256.
113339 2000-10-24  Andrew Innes  <andrewi@gnu.org>
113341         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
113342         NT-Emacs only.
113343         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
113344         so that re_search functions only quit when callers expect them to.
113346 2000-10-23  Jim Meyering  <meyering@lucent.com>
113348         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
113349         wrong.  That set_locale call must not have any side effects.
113350         From Paul Eggert.
113352 2000-10-22  Jim Meyering  <meyering@lucent.com>
113354         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
113355         [CYCLIC]: Remove now-unused definition.
113357         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
113358         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
113359         Suggestion from Ulrich Drepper.
113361 2000-10-21  Jim Meyering  <meyering@lucent.com>
113363         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
113364         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
113365         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
113367 2000-10-21  Jim Meyering  <meyering@lucent.com>
113369         * lib/dirname.c (memrchr): Declare if necessary.
113370         (dir_name): Remove the restriction that there be no
113371         trailing slashes.  Now, this code skips past them, effectively
113372         ignoring them.
113373         [TEST_DIRNAME] (main): New unit tests.
113375         * lib/memrchr.c: New file from GNU libc.
113376         Undef __memrchr, too.
113377         [!weak_alias]: Define __memrchr to memrchr.
113378         Guard weak_alias use with `#ifdef weak_alias'.
113380 2000-10-21  Jim Meyering  <meyering@lucent.com>
113382         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
113383         (dir_name): Use dir_name_r.
113384         * lib/dirname.h (dir_name_r): Declare it.
113386 2000-10-17  Jim Meyering  <meyering@lucent.com>
113388         * lib/quote.h (PARAMS): Define and use.
113389         Reported by Akim Demaille.
113391         * lib/getopt.c: Update from libc.
113393 2000-10-16  Jim Meyering  <meyering@lucent.com>
113395         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
113396         setlocale.
113397         From Jan Fedak.
113399 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
113401         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
113403 2000-09-25  Jim Meyering  <meyering@lucent.com>
113405         * lib/md5.h (rol): Define (from GnuPG).
113407         * lib/sha.c: Give credit (GnuPG) where due.
113408         (M): Use rol rather than open-coding it.
113409         Add a FIXME comment.
113411 2000-09-21  Jim Meyering  <meyering@lucent.com>
113413         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
113414         Reported by Michael Stone.
113416 2000-09-20  Jim Meyering  <meyering@lucent.com>
113418         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
113419         (noinst_HEADERS): Add sha.h.
113420         Based on code from Scott G. Miller and from GnuPG.
113422 2000-09-18  Jim Meyering  <meyering@lucent.com>
113424         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
113425         LIBS. Otherwise, everyone ends up linking with -lelf for some
113426         configurations.
113427         Reported by Mike Stone.
113429 2000-09-15  Jim Meyering  <meyering@lucent.com>
113431         * lib/regex.c: Update from libc.
113433 2000-09-10  Jim Meyering  <meyering@lucent.com>
113435         * lib/getopt.c (_getopt_internal): Update from glibc.
113437 2000-09-09  Jim Meyering  <meyering@lucent.com>
113439         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
113440         think it should be used as a general replacement for isascii.
113441         * lib/fnmatch.c: Likewise.
113442         * lib/mbswidth.c: Likewise
113443         * lib/regex.c: Likewise.
113445         Don't use atoi.
113446         * lib/userspec.c: Include sys/param.h and limits.h.
113447         Include xstrtol.h.
113448         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
113449         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
113450         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
113451         UID, GID.  Check range.
113453 2000-09-06  Jim Meyering  <meyering@lucent.com>
113455         * lib/getopt.c (_getopt_internal): Update from glibc.
113457 2000-08-30  Jim Meyering  <meyering@lucent.com>
113459         * lib/strftime.c: Merge in changes from GNU libc.
113461 2000-08-26  Jim Meyering  <meyering@lucent.com>
113463         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
113464         * m4/fpending.m4: New file.
113466 2000-08-26  Jim Meyering  <meyering@lucent.com>
113468         * lib/closeout.c: Include "__fpending.h".
113469         (close_stdout_status): Return right away if there's nothing to flush.
113471         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
113472         * lib/__fpending.c: New file.
113473         * lib/__fpending.h: New file.
113475 2000-08-20  Jim Meyering  <meyering@lucent.com>
113477         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
113478         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
113479         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
113481 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
113483         Improve fileutils installation on systems where running
113484         programs (like install) can't be unlinked.
113485         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
113486         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
113488 2000-08-07  Paul Eggert  <eggert@twinsun.com>
113490         Standardize on "memory exhausted" instead of "Memory exhausted"
113491         or "virtual memory exhausted".
113492         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
113493         "virtual memory exhausted".
113494         * lib/same.c (same_name): Invoke xalloc_die instead of printing
113495         our own message.
113496         * lib/userspec.c (parse_user_spec): Likewise.
113497         * lib/bumpalloc.h: comment fix
113498         * lib/same.c, userspec.c: Include xalloc.h.
113500         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
113501         not char *const and pointing to a constant array.
113502         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
113503         (xrealloc): Comment fix.
113505         * lib/userspec.c (parse_user_spec):
113506         Don't translate a message until just before returning,
113507         to avoid unnecessary translation.
113509 2000-08-07  Jim Meyering  <meyering@lucent.com>
113511         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
113512         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
113513         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
113514         getgroups.c, gethostname.c, getopt.h, group-member.c,
113515         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
113516         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
113517         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
113518         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
113519         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
113520         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
113521         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
113522         yesno.c: Back out Copyright date changes for each file with no change
113523         this year.  This eases coordination with other programs using the same
113524         source code modules.  From Paul Eggert.
113526 2000-08-06  Paul Eggert  <eggert@twinsun.com>
113528         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
113529         not char, for compatibility with glibc 2.1.3 strftime.c.
113531 2000-08-03  Greg McGary  <greg@mcgary.org>
113533         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
113534         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
113535         (EXTEND_BUFFER): Use them.
113537 2000-08-01  Jim Meyering  <meyering@lucent.com>
113539         * lib/dirname.c (ISSLASH): Define.
113540         (BACKSLASH_IS_PATH_SEPARATOR): Define.
113541         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
113542         both `\' and `/' may be use as path separators.
113543         Based on a patch from Prashant TR.
113545 2000-07-31  Paul Eggert  <eggert@twinsun.com>
113547         * lib/quotearg.c (quotearg_n_options): Don't make the initial
113548         slot vector a constant, since it might get modified.
113550 2000-07-31  Jim Meyering  <meyering@lucent.com>
113552         * lib/xmalloc.c: Use `virtual memory exhausted', not
113553         `Memory exhausted'.
113554         * lib/obstack.c (print_and_abort): Likewise.
113556 2000-07-30  Paul Eggert  <eggert@twinsun.com>
113558         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
113559         buffer, so that the caller can always quote one small
113560         component of a "memory exhausted" message in slot 0.
113561         From a suggestion by Jim Meyering.
113563 2000-07-30  Jim Meyering  <meyering@lucent.com>
113565         * lib/makepath.c (make_path): Quote the other instance, too.
113567         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
113568         (STATIC_BUF_SIZE): Define.
113569         (quotearg_n_options): Use only statically allocated storage when
113570         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
113571         than STATIC_BUF_SIZE.
113573 2000-07-29  Jim Meyering  <meyering@lucent.com>
113575         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
113576         * lib/dirname.c (dir_name): Likewise.
113578         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
113579         `/'.
113581         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
113582         (dir_name): Assert that there are no trailing slashes.
113584 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
113586         * lib/mbswidth.h (mbswidth): Add a flags argument.
113587         (mbswidth): New declaration.
113588         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
113589         * lib/mbswidth.c (mbswidth): Add a flags argument.
113590         (mbsnwidth): New function.
113592 2000-07-24  Jim Meyering  <meyering@lucent.com>
113594         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
113596 2000-07-23  Paul Eggert  <eggert@twinsun.com>
113598         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
113600 2000-07-23  Paul Eggert  <eggert@twinsun.com>
113602         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
113603         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
113604         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
113605         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
113606         invoke multibyte primitives.
113608 2000-07-23  Paul Eggert  <eggert@twinsun.com>
113610         * lib/quotearg.c:
113611         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
113612         so that mbstate_t is always defined.
113614         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
113615         be 1 in at least one GCC installation, and this configuration
113616         error is likely to be common.  Ignoring MB_LEN_MAX hurts
113617         performance on hosts that have mbrtowc but have only unibyte
113618         locales, but I assume these hosts are rare.
113620 2000-07-23  Paul Eggert  <eggert@twinsun.com>
113622         * lib/mbswidth.c (_XOPEN_SOURCE):
113623         Don't define; this causes problems on Solaris 7.
113624         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
113626 2000-07-23  Jim Meyering  <meyering@lucent.com>
113628         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
113629         too: getgrgid, getpwuid, getuid.
113631 2000-07-23  Jim Meyering  <meyering@lucent.com>
113633         * lib/basename.c (base_name): Add an assertion.
113635 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
113637         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
113638         shadow its mbsinit function.
113640 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
113642         * lib/mbswidth.h: New file.
113643         * lib/mbswidth.c: New file.
113644         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
113645         (noinst_HEADERS): Add mbswidth.h.
113647 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
113649         * lib/config.charset: Add support for FreeBSD. Improve support for
113650         HP-UX and IRIX 6.
113652 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
113654         * m4/mbswidth.m4: New file.
113655         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
113657 2000-07-15  Jim Meyering  <meyering@lucent.com>
113659         * lib/makepath.c: Include quote.h.
113660         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
113661         corresponding argument in a `quote (...)' call.
113662         Give better diagnostics.
113664         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
113665         (noinst_HEADERS): Add quote.h.
113667         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
113668         from tar's src/misc.c.
113669         * lib/quote.h: New file.  Prototypes for same.
113671 2000-07-14  Paul Eggert  <eggert@twinsun.com>
113673         From a suggestion by Bruno Haible.
113674         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
113675         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
113676         to decide whether to define the BeOS workaround macro;
113677         this adjusts to the change to AC_MBSTATE_T.
113679 2000-07-14  Jim Meyering  <meyering@lucent.com>
113681         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
113682         jm_AC_TYPE_UINTMAX_T.
113684 2000-07-13  Paul Eggert  <eggert@twinsun.com>
113686         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
113688         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
113689         quotearg_buffer_restyled): Add support for
113690         clocale_quoting_style.  Undo previous change to
113691         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
113692         and "{RIGHT QUOTATION MARK}" msgids.
113694 2000-07-10  Paul Eggert  <eggert@twinsun.com>
113696         From a suggestion by Bruno Haible.
113697         * m4/mbstate_t.m4 (AC_MBSTATE_T):
113698         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
113699         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
113700         and mbstate_t, to a single-part test that simply defines mbstate_t.
113701         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
113702         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
113704 2000-07-10  Jim Meyering  <meyering@lucent.com>
113706         * m4/strerror_r.m4: Mirror the correction made in autoconf.
113708         * m4/gnu-source.m4: Output to confdefs.h directly.
113709         Suggestion from Akim Demaille.
113711 2000-07-09  Paul Eggert  <eggert@twinsun.com>
113713         The old behavior of quoting `like this' doesn't look good with
113714         newer, ISO-style fonts.  See:
113715         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
113717         Instead, quote "like this" by default.  Let the translator
113718         tailor the locale-specific quoting behavior by providing
113719         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
113721         * lib/quotearg.c (N_): New macro.
113722         (gettext_default): New function.
113723         (quotearg_buffer_restyled): Use
113724         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
113725         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
113727 2000-07-09  Jim Meyering  <meyering@lucent.com>
113729         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
113730         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
113732         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
113733         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
113735 2000-07-09  Jim Meyering  <meyering@lucent.com>
113737         * lib/Most files: Update copyright dates to include 2000.
113739 2000-07-08  Jim Meyering  <meyering@lucent.com>
113741         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
113742         if not defined.
113743         (xgethostname): Remove now-unnecessary #ifdef.
113744         Move declaration of `err' into loop where it's used.
113746 2000-07-05  Paul Eggert  <eggert@twinsun.com>
113747         and Bruno Haible  <haible@clisp.cons.org>
113749         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
113750         only if the test for an object-type mbstate_t fails.  This
113751         prevents us from mistakenly reporting that mbstate_t is a
113752         system object type after we "#define mbstate_t int" to work
113753         around its lack.
113755 2000-07-05  Paul Eggert  <eggert@twinsun.com>
113756         and Bruno Haible  <haible@clisp.cons.org>
113758         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
113760 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
113762         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
113763         to strerror_r.
113764         Include <ctype.h> for use of isalpha.
113766 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
113768         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
113769         by allocating a larger buffer. Test the gethostname return value for
113770         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
113771         returns an error and ENAMETOOLONG isn't defined.
113773 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
113775         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
113776         dimension.
113778 2000-07-04  Jim Meyering  <meyering@lucent.com>
113780         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
113781         of the deprecated AC_CHECKING.
113783 2000-07-04  Jim Meyering  <meyering@lucent.com>
113785         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
113786         Reported by Bruno Haible.
113788 2000-07-04  Jim Meyering  <meyering@lucent.com>
113790         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
113791         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
113792         lacks mbrtowc.
113794 2000-07-03  Paul Eggert  <eggert@twinsun.com>
113796         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
113797         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
113799 2000-07-03  Paul Eggert  <eggert@twinsun.com>
113800         and Bruno Haible  <haible@clisp.cons.org>
113802         * lib/quotearg.c (mbrtowc):
113803         Assign to *pwc, and return 1 only if result is nonzero.
113804         (iswprint): Use ISPRINT when substituting our own mbrtowc.
113806 2000-07-03  Jim Meyering  <meyering@lucent.com>
113808         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
113810 2000-07-03  Jim Meyering  <meyering@lucent.com>
113812         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
113813         This is necessary to get a definition of e.g., UTMP_FILE on
113814         HP-UX 10.20.
113815         From Bob Proulx.
113817 2000-07-02  Jim Meyering  <meyering@lucent.com>
113819         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
113821         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
113822         AC_LIBOBJ(function_name).
113823         * m4/chown.m4: Likewise.
113824         * m4/fnmatch.m4: Likewise.
113825         * m4/ftruncate.m4: Likewise.
113826         * m4/getgroups.m4: Likewise.
113827         * m4/getline.m4: Likewise.
113828         * m4/group-member.m4: Likewise.
113829         * m4/jm-macros.m4: Likewise.
113830         * m4/lstat.m4: Likewise.
113831         * m4/malloc.m4: Likewise.
113832         * m4/memcmp.m4: Likewise.
113833         * m4/nanosleep.m4: Likewise.
113834         * m4/putenv.m4: Likewise.
113835         * m4/realloc.m4: Likewise.
113836         * m4/regex.m4: Likewise.
113837         * m4/stat.m4: Likewise.
113838         * m4/strftime.m4: Likewise.
113840 2000-07-02  Jim Meyering  <meyering@lucent.com>
113842         * lib/quotearg.c (mbstate_t): Don't define here.
113844 2000-07-02  Jim Meyering  <meyering@lucent.com>
113846         * lib/nanosleep.c (SIGCONT): Define if not already defined.
113848 2000-07-01  Jim Meyering  <meyering@lucent.com>
113850         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
113852 2000-07-01  Jim Meyering  <meyering@lucent.com>
113854         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
113855         problem.
113857 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
113859         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
113860         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
113862 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
113864         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
113865         per change in ../m4/ls-mntd-fs.m4.
113866         (read_filesystem_list): Ignore symbolic links.
113868 2000-06-29  Jim Meyering  <meyering@lucent.com>
113870         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
113871         for declaration of strcmp.
113873         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
113875         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
113876         Avoid warning by casting result to `char *' to remove `const'.
113878 2000-06-28  Jim Meyering  <meyering@lucent.com>
113880         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
113881         included by quotearg.c, for which we perform this test.  From
113882         Bruno Haible.
113884 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
113886         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
113887         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
113888         <utmpx.h> exists, put readutmp.o into LIBOBJS.
113890 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
113892         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
113894 2000-06-26  Paul Eggert  <eggert@twinsun.com>
113896         savedir now sets errno on failure and invokes xmalloc to get memory.
113897         Fix a couple of other minor bugs while we're at it.
113899         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
113900         (NAMLEN): Remove macro.
113901         (malloc, realloc): Remove decls.
113902         (stpcpy): Likewise.
113903         ("xalloc.h"): Include.
113904         (NAME_SIZE_DEFAULT): New macro.
113905         (savedir): Use xmalloc / xrealloc to allocate memory.
113906         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
113907         Skip "" directory entries.
113908         Use strlen to calculate directory entry length, since the old method
113909         is rarely used these days and isn't worth supporting.
113910         Don't use a pointer after freeing it.
113911         Check for integer overflow when calculating allocation size.
113912         Use memcpy to copy entries, instead of stpcpy.
113913         Set errno properly when returning NULL.
113914         Check for readdir error.
113916 2000-06-26  Jim Meyering  <meyering@lucent.com>
113918         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
113920 2000-06-25  Jim Meyering  <meyering@lucent.com>
113922         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
113923         Linux header bug when _XOPEN_SOURCE is defined to 500.
113925 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
113927         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
113928         deficiency.
113930 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
113932         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
113933         Include xalloc.h.
113934         Don't include <stdlib.h>.  Don't declare malloc, realloc.
113936 2000-06-24  Jim Meyering  <meyering@lucent.com>
113938         * m4/strerror_r.m4: Revive this file -- to try out an experimental
113939         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
113940         for which strerror does return char*, but which lacks a conveniently
113941         accessible declaration of the function.  If the compile-test says
113942         strerror_r doesn't work, then resort to a `run'-test that works on
113943         BeOS and segfaults on DEC Unix.
113945 2000-06-24  Jim Meyering  <meyering@lucent.com>
113947         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
113949 2000-06-23  Paul Eggert  <eggert@twinsun.com>
113951         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
113952         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
113954 2000-06-23  Paul Eggert  <eggert@twinsun.com>
113956         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
113957         (mbrtowc, mbstate_t): Define substitutes if
113958         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
113959         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
113960         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
113962 2000-06-23  Jim Meyering  <meyering@lucent.com>
113964         * m4/afs.m4: Add missing AC_MSG_RESULT.
113965         Reported by Bruno Haible.
113967         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
113968         Suggestion from Bruno Haible.
113970 2000-06-23  Jim Meyering  <meyering@lucent.com>
113972         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
113974 2000-06-21  Jim Meyering  <meyering@lucent.com>
113976         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
113978 2000-06-21  Jim Meyering  <meyering@lucent.com>
113980         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
113981         (noinst_HEADERS): Add getstr.h.
113983         * lib/getline.c (getstr): Move into a separate file.
113984         * lib/getstr.c (getstr): New file, extracted from getline.c, with
113985         the following changes: new parameter, delim2; both delim[12]
113986         parameters have type `int', not `char'.  The latter would lose
113987         with 8-bit delimiters.
113988         * lib/getstr.h: New file.
113990 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
113992         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
113993         than 1024, return a memory chunk of least possible size, instead
113994         of size PATH_MAX + 2. In the loop, increment the size proportionally.
113995         Use free/xmalloc instead of xrealloc to avoid copying for very long
113996         paths.
113998 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
114000         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
114001         the empty string.
114003 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
114005         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
114006         address, not strdup.  Include <stdlib.h> and don't declare free().
114008 2000-06-19  Jim Meyering  <meyering@lucent.com>
114010         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
114012 2000-06-18  Jim Meyering  <meyering@lucent.com>
114014         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
114016         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
114017         `checking whether...' message to be consistent with that of the
114018         lstat test.
114020 2000-06-18  Jim Meyering  <meyering@lucent.com>
114022         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
114023         Besides, these days every porting target provides a mkdir function.
114025         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
114026         needed. (this snippet comes from src/system.h).
114028 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
114030         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
114032 2000-06-15  Paul Eggert  <eggert@twinsun.com>
114034         * lib/human.c (adjust_value): New function.
114035         (human_readable_inexact): Apply rounding style even when
114036         printing approximate values.
114038 2000-06-14  Paul Eggert  <eggert@twinsun.com>
114040         * lib/human.c (human_readable_inexact): Allow an input block
114041         size that is not a multiple of the output block size, and vice versa.
114042         Reported by Piergiorgio Sartor.
114044 2000-06-14  Paul Eggert  <eggert@twinsun.com>
114046         * lib/getdate.y (get_date): Apply relative times after time
114047         zone indicator, not before.  Reported by Todd A. Jacobs.
114049 2000-06-13  Jim Meyering  <meyering@lucent.com>
114051         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
114053         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
114055 2000-06-12  Paul Eggert  <eggert@twinsun.com>
114057         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
114059 2000-06-12  Jim Meyering  <meyering@lucent.com>
114061         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
114062         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
114063         optional argument.
114064         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
114065         the optional argument, `lib'.
114067 2000-06-08  Jim Meyering  <meyering@lucent.com>
114069         * m4/largefile.m4: Remove file (now that it's part of autoconf).
114071 2000-06-04  Paul Eggert  <eggert@twinsun.com>
114073         Rewrite largefile configuration so that we don't need to run
114074         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
114075         AC_CANONICAL_HOST in configure.in -- jmm]
114077         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
114078         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
114079         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
114080         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
114081         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
114082         All uses changed.
114083         Instead of inspecting the output of getconf, try to compile the
114084         test program without and with the macro definition.
114085         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
114086         for getconf.  Instead, check for the needed flags by compiling
114087         test programs.
114089 2000-06-04  Paul Eggert  <eggert@twinsun.com>
114091         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
114093 2000-06-04  Jim Meyering  <meyering@lucent.com>
114095         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
114096         SunOS 4.1.4 for which gid_t is an unsigned type.
114098 2000-06-03  Jim Meyering  <meyering@lucent.com>
114100         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
114101         now that autoconf requires that.
114103         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
114104         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
114105         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
114107 2000-06-03  Jim Meyering  <meyering@lucent.com>
114109         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
114111 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
114113         * m4/glibc21.m4: New file.
114114         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
114116 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
114118         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
114119         newer, don't install charset.alias.
114120         * lib/config.charset: Change the Linux/glibc rules so they become empty
114121         on glibc-2.1 or newer.
114123 2000-06-02  Jim Meyering  <meyering@lucent.com>
114125         * lib/mountlist.c: Back out last change.  Instead, do this...
114126         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
114127         me_dummy member using the same `ignore'-testing code.
114128         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
114129         fs_type strings.
114130         From Mark D. Roth.
114132 2000-05-29  Jim Meyering  <meyering@lucent.com>
114134         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
114135         mounts with the `ignore' attribute.  Based on a patch from
114136         Mark D. Roth.
114138 2000-05-28  Jim Meyering  <meyering@lucent.com>
114140         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
114141         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
114142         * m4/stat.m4: Likewise.
114143         * m4/lstat.m4: Likewise.
114144         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
114146         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
114147         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
114149 2000-05-26  Jim Meyering  <meyering@lucent.com>
114151         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
114153 2000-05-24  Jim Meyering  <meyering@lucent.com>
114155         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
114156         autoconf requires that.
114157         * m4/lib-check.m4: Likewise.
114158         * m4/jm-macros.m4: Likewise.
114159         * m4/strftime.m4: Likewise.
114161         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
114162         AC_CHECK_DECLS, now that autoconf requires that.
114164 2000-05-22  Jim Meyering  <meyering@lucent.com>
114166         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
114167         * m4/lstat.m4: Likewise.
114169 2000-05-22  Jim Meyering  <meyering@lucent.com>
114171         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
114173 2000-05-20  Jim Meyering  <meyering@lucent.com>
114175         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
114176         (jm_PREREQ): Use it.
114178 2000-05-18  Jim Meyering  <meyering@lucent.com>
114180         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
114181         back, too, since it may have been modified by allocate_entry.
114182         (hash_delete): Rewrite to use neither the assignment operator
114183         nor the comma operator in an if-expression.
114185 2000-05-15  Paul Eggert  <eggert@twinsun.com>
114187         * lib/closeout.c:
114188         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
114189         Remove; no longer needed.
114190         "quotearg.h": Add include.
114191         (file_name): Do not bother to explicitly initialize to NULL; it's less
114192         efficient on some hosts.
114193         (close_stdout_status): Remove test as to whether stdout was already
114194         closed; it breaks for the case "echo x | sort >&-".
114195         Quote file name colons.
114196         Do not assume that _("write error") lacks format strings.
114198 2000-05-15  Jim Meyering  <meyering@lucent.com>
114200         * lib/version-etc.c (version_etc_copyright): Update the copyright
114201         string used in all --version output.
114203 2000-05-14  Jim Meyering  <meyering@lucent.com>
114205         * lib/closeout.c (close_stdout_set_file_name): New function.
114206         (close_stdout_status): Use new file-scoped global.
114207         Return right away if fstat says the stdout file descriptor is invalid.
114208         * lib/closeout.h (close_stdout_set_file_name): Declare.
114210 2000-05-10  Jim Meyering  <meyering@lucent.com>
114212         * lib/closeout.c [default_exit_status]: New file-scoped variable.
114213         (close_stdout_set_status): New function.
114214         * lib/closeout.h (close_stdout_set_status): Declare.
114216 2000-05-09  Jim Meyering  <meyering@lucent.com>
114218         * m4/gettext.m4: Rename this...
114219         * m4/libintl.m4: ...to this.
114221 2000-05-08  Jim Meyering  <meyering@lucent.com>
114223         * lib/long-options.c: Don't include closeout.h.
114224         (parse_long_options): Don't call close_stdout for --version.
114226 2000-05-06  Paul Eggert  <eggert@twinsun.com>
114228         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
114229         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
114230         2.1.3 bug.  This avoids a clash when files like regex.c define
114231         _GNU_SOURCE.
114233 2000-05-06  Jim Meyering  <meyering@lucent.com>
114235         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
114236         (AC_REPLACE_FUNCS): Add strnlen.
114238         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
114239         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
114241         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
114242         AC_SEARCH_LIBS call for nanosleep.
114243         (LIB_NANOSLEEP): Set and AC_SUBST.
114245 2000-05-06  Jim Meyering  <meyering@lucent.com>
114247         * lib/strnlen.c: Undefine __strnlen and strnlen.
114248         [!weak_alias]: Define __strnlen to strnlen.
114250         * lib/atexit.c: New file, from libiberty.
114252 2000-05-06  Jim Meyering  <meyering@lucent.com>
114254         * lib/closeout.c (close_stdout_status): Also check for errors on the
114255         stderr stream.
114257 2000-05-05  Jim Meyering  <meyering@lucent.com>
114259         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
114260         AC_SEARCH_LIBS call for clock_gettime.
114261         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
114263         * m4/search-libs.m4: Update from autoconf.
114265         su doesn't work on Solaris 2.6.
114266         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
114267         <shadow.h>.  Reported by Dragos Harabor.
114269 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
114271         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
114272         memcpy instead of xmalloc, xrealloc, path_concat.
114273         (locale_charset): Treat empty environment variables as absent.
114274         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
114276 2000-05-04  Jim Meyering  <meyering@lucent.com>
114278         * lib/getopt.c: Update from glibc.
114279         * lib/obstack.c: Likewise.
114280         * lib/obstack.h: Likewise.
114281         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
114282         file
114284         * lib/regex.h: Likewise.
114285         * lib/strndup.c: Likewise.
114286         * lib/strnlen.c: New file, from glibc.
114288 2000-05-03  Jim Meyering  <meyering@lucent.com>
114290         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
114292 2000-05-02  Paul Eggert  <eggert@twinsun.com>
114294         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
114295         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
114296         compile-time test, rather than inspecting host and OS, to
114297         decide whether to define _LARGEFILE_SOURCE.
114299 2000-05-01  Jim Meyering  <meyering@lucent.com>
114301         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
114303         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
114304         Based on a patch from Bruno Haible.
114306 2000-05-01  Jim Meyering  <meyering@lucent.com>
114308         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
114310 2000-04-29  Jim Meyering  <meyering@lucent.com>
114312         * lib/path-concat.c: Declare strdup only if it's not defined.
114313         * lib/canon-host.c: Likewise.
114315 2000-04-28  Jim Meyering  <meyering@lucent.com>
114317         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
114318         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
114319         is included first, then limits.h is included by locale.h by libintl.h.
114320         From John David Anglin.
114322 2000-04-25  Jim Meyering  <meyering@lucent.com>
114324         * lib/makepath.c (S_IRWXUGO): Define.
114325         (make_path): Always perform explicit chmod if MODE specifies any
114326         of the `special' permission bits.  Prompted by a bug report against
114327         install from Mate Wierdl and Joost van Baal.
114329 2000-04-18  Jim Meyering  <meyering@lucent.com>
114331         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
114332         (jm_PREREQ): Use it.
114334 2000-04-18  Jim Meyering  <meyering@lucent.com>
114336         * lib/README: New file.
114338         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
114339         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
114341 2000-04-17  Jim Meyering  <meyering@lucent.com>
114343         Get it right :-)
114344         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
114345         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
114346         Suggestion from Akim Demaille.
114348 2000-04-17  Jim Meyering  <meyering@lucent.com>
114350         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
114351         the definition of it to rpl_strftime also defined-away the system's
114352         declaration.
114354 2000-04-15  Jim Meyering  <meyering@lucent.com>
114356         Use `C' to denote so-called `contiguous' files, the same way
114357         that tar does.
114358         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
114359         (ftypelet): Use S_ISCTG.
114360         From Michael Deutschmann.
114362 2000-04-14  Jim Meyering  <meyering@lucent.com>
114364         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
114365         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
114366         clobbered.
114368 2000-04-14  Jim Meyering  <meyering@lucent.com>
114370         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
114372 2000-04-13  Jim Meyering  <meyering@lucent.com>
114374         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
114375         AH_VERBATIM to insert required #ifndef into config.h.in.
114376         Suggestion from Akim Demaille.
114378 2000-04-12  Jim Meyering  <meyering@lucent.com>
114380         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
114381         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
114382         Christian Krackowizer.
114384         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
114385         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
114386         (AC_SYS_LARGEFILE): Require.
114387         (AM_C_PROTOTYPES): Require.
114389 2000-04-08  Jim Meyering  <meyering@lucent.com>
114391         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
114392         names don't conflict.  Reported by Eli Zaretskii.
114394 2000-04-07  Jim Meyering  <meyering@lucent.com>
114396         * lib/putenv.c: Move inclusion of errno.h so it follows that of
114397         sys/types.h, to work around system header problems on AIX 3.2.5.
114398         From Bruno Haible.
114400 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
114402         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
114403         bug.  Deal with the different error behavior of Irix iconv.
114405 2000-04-05  Paul Eggert  <eggert@twinsun.com>
114407         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
114408         IRIX if the installer said otherwise.
114410 2000-04-05  Jim Meyering  <meyering@lucent.com>
114412         Portability tweaks required for ultrix4.3.
114413         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
114414         (jm_CHECK_DECLS): Add getutent to the list of functions.
114415         (_jm_DECL_HEADERS): Add utmpx.h.
114416         From John David Anglin.
114418         * m4/strftime.m4: Back out the 2000-04-02 change.
114419         Instead of that change, simply undefine putenv in the test program.
114421 2000-04-05  Jim Meyering  <meyering@lucent.com>
114423         Portability tweaks required for ultrix4.3.
114424         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
114425         getutent.
114426         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
114427         * lib/canon-host.c: Declare strdup.
114428         * lib/path-concat.c: Likewise.
114429         From John David Anglin.
114431 2000-04-04  Jim Meyering  <meyering@lucent.com>
114433         Be more DOS 8.3-friendly.
114434         * lib/ref-add.sin: Renamed from ref-add.sed.in.
114435         * lib/ref-del.sin: Renamed from ref-del.sed.in.
114436         * lib/Makefile.am: Reflect renaming.
114437         Reported by Eli Zaretskii.
114439         Use a temporary file name that won't clash with `charset.alias'
114440         in the DOS 8.3 name space.
114441         * lib/Makefile.am (charset_tmp): Define.
114442         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
114443         (uninstall-local): Likewise.
114444         Reported by Eli Zaretskii.
114446 2000-04-03  Jim Meyering  <meyering@lucent.com>
114448         * m4/gettext.m4: Fix typo in comment.
114450         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
114451         textutils/configure.in).  Suggestion from Paul Eggert.
114452         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
114454 2000-04-02  Paul Eggert  <eggert@twinsun.com>
114456         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
114457         variable in the shell rather than using putenv, which isn't
114458         portable.  This avoids the configure-time inter-test dependency
114459         on the potentially-renamed putenv function.
114461 2000-03-30  Paul Eggert  <eggert@twinsun.com>
114463         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
114464         before checking struct stat.st_blksize, so that
114465         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
114467 2000-03-29  Paul Eggert  <eggert@twinsun.com>
114469         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
114470         since strftime.c uses HAVE_STRFTIME to decide whether to use
114471         the underlying strftime.
114473 2000-03-29  Paul Eggert  <eggert@twinsun.com>
114475         * lib/time/strftime.c (my_strftime): Make sure we call the system
114476         strftime, not ourselves, when invoking the underlying strftime.
114478 2000-03-24  Jim Meyering  <meyering@lucent.com>
114480         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
114481         (charset_alias): Define.
114482         (install-exec-local): Factor out common code.
114483         (uninstall-local): Split lines longer than 80.
114484         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
114485         (SUFFIXES): Define.
114486         (.sed.in.sed): New rule.  Don't redirect directly to $@.
114487         (CLEANFILES): Add ref-add.sed and ref-del.sed.
114489 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
114491         * lib/config.charset: Output a line containing "Packages using this
114492         file".
114493         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
114494         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
114495         ref-del.sed): New rules.
114497 2000-03-17  Jim Meyering  <meyering@lucent.com>
114499         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
114500         Otherwise, include <strings.h>
114502 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
114504         * lib/unicodeio.c (utf8_wctomb): New function.
114505         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
114506         format instead of in UCS-4 with platform dependent endianness.
114508 2000-03-10  Jim Meyering  <meyering@lucent.com>
114510         * m4/lib-check.m4: Look for getspnam in -lgen, too.
114511         From Marco Franzen.
114513 2000-03-07  Paul Eggert  <eggert@twinsun.com>
114515         * lib/savedir.c (savedir): Work even if directory size is
114516         negative; this can happen with some screwy NFS configurations.
114518 2000-03-06  Jim Meyering  <meyering@lucent.com>
114520         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
114521         if it's NULL (because we ran out of memory).  From Bruno Haible.
114523 2000-03-05  Jim Meyering  <meyering@lucent.com>
114525         * lib/localcharset.c ("path-concat.h"): Include.
114526         (get_charset_aliases): Use path_concat instead of ANSI string
114527         concatenation.
114529         * lib/unicodeio.h (PARAMS): Define.
114530         Use it to guard prototype.
114532 2000-03-04  Jim Meyering  <meyering@lucent.com>
114534         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
114535         for lib/localcharset.c.
114537 2000-03-04  Jim Meyering  <meyering@lucent.com>
114539         * lib/Makefile.am (install-exec-local): Create $(libdir) before
114540         installing into it.
114541         (uninstall-local): Uncomment this rule so `make distcheck' works
114542         once again.
114544         * lib/unicodeio.c (<errno.h>): Include it.
114545         (errno): Declare if not defined.
114547         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
114549         * lib/config.charset: New version, incorporating remarks from a linux
114550         i18n mailing list.  From Bruno Haible.
114552 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
114554         * m4/codeset.m4: New file.
114555         * m4/iconv.m4: New file.
114556         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
114558 2000-03-03  Jim Meyering  <meyering@lucent.com>
114560         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
114562 2000-03-02  Jim Meyering  <meyering@lucent.com>
114564         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
114565         the messages come out on separate lines.
114567         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
114568         rather than jm_CHECK_DECLARATIONS.
114569         * m4/decl.m4: Remove now-unused file.
114571         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
114572         geteuid.
114574 2000-03-02  Jim Meyering  <meyering@lucent.com>
114576         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
114578 2000-03-01  Jim Meyering  <meyering@lucent.com>
114580         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
114581         * lib/unicodeio.c: Likewise.
114583 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
114585         * lib/config.charset: New file.
114586         * lib/localcharset.c: New file.
114587         * lib/unicodeio.h, lib/unicodeio.c: New files.
114588         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
114589         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
114590         (noinst_HEADERS): Add unicodeio.h.
114591         (all-local, install-exec-local, charset.alias): New targets.
114593 2000-02-28  Paul Eggert  <eggert@twinsun.com>
114595         * lib/quotearg.c (ALERT_CHAR): New macro.
114596         (quotearg_buffer_restyled): Use it.
114598 2000-02-27  Jim Meyering  <meyering@lucent.com>
114600         * m4/check-decl.m4: Add getenv to the list.
114602 2000-02-27  Jim Meyering  <meyering@lucent.com>
114604         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
114605         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
114607         * lib/backupfile.c: Guard inclusion of stdlib.h with
114608         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
114609         Declare malloc if needed.
114611         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
114612         `#ifndef HAVE_DECL..'
114613         now that autoconf always defines the HAVE_DECL_ symbols.
114614         * lib/human.c: Likewise.
114615         * lib/same.c: Likewise.
114616         * lib/strtoumax.c: Likewise.
114618         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
114619         declaration check was not run.
114620         * lib/hash.c: Likewise.
114621         * lib/human.c: Likewise.
114622         * lib/same.c: Likewise.
114623         * lib/strtoumax.c: Likewise.
114625         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
114626         `.', then first look up the entire `.'-containing string as a login
114627         name.
114629 2000-02-23  Jim Meyering  <meyering@lucent.com>
114631         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
114632         in place of my hack.
114634 2000-02-18  Paul Eggert  <eggert@twinsun.com>
114636         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
114637         (textint): New typedef.
114638         (parser_control): Member year changed from int to textint.
114639         All uses changed.
114640         (YYSTYPE): Removed; replaced by %union with int and textint members.
114641         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
114642         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
114643         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
114644         (tSNUMBER, tUNUMBER): Now of type <textintval>.
114645         (date, number, to_year): Use width of number in digits, not its value,
114646         to determine whether it's a 2-digit year, or a 2-digit time.
114647         (yylex): Store number of digits of numeric tokens.
114648         Reported by John Kendall.
114650         (parser_control): Changed from struct parser_control to typedef (for
114651         consistency).  All uses changed.
114653         (tID): Removed; not used.
114654         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
114656 2000-02-14  Paul Eggert  <eggert@twinsun.com>
114658         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
114659         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
114661 2000-02-12  Jim Meyering  <meyering@lucent.com>
114663         * lib/userspec.c (ISDIGIT): Define it.
114664         (isdigit): Remove definition.
114665         (is_number): Use ISDIGIT, not isdigit.
114666         <libintl.h>: Include.
114667         (_ and N_): Define.
114668         (parse_user_spec): Mark translatable strings.
114670 2000-02-10  Jim Meyering  <meyering@lucent.com>
114672         With these changes, nanosleep.[ch] are finally enough like the other
114673         lib/* replacement files to compile on a few more losing systems.
114675         * lib/nanosleep.h: Don't include config.h.
114676         Remove prototype from declaration of nanosleep.
114677         (PARAMS): Remove now-unneeded definition.
114678         * lib/nanosleep.c: #undef nanosleep.
114679         (rpl_nanosleep): Rename from nanosleep.
114681 2000-02-10  Jim Meyering  <meyering@lucent.com>
114683         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
114684         gnu_nanosleep to rpl_nanosleep.
114686 2000-02-09  Jim Meyering  <meyering@lucent.com>
114688         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
114689         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
114691 2000-02-08  Akim Demaille  <akim@epita.fr>
114693         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
114694         `[' and `]' and remove uses of `changequote'.
114695         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
114696         (AC_SYS_LARGEFILE): Likewise.
114697         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
114698         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
114699         of changequote.
114700         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
114701         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
114702         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
114703         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
114705 2000-02-05  Jim Meyering  <meyering@lucent.com>
114707         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
114708         Remove explicit use of AC_HEADER_TIME.  It is required by
114709         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
114710         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
114711         in autoconf whereby the expansion of the latter ended up preceding
114712         the expansion of its prerequisite, AC_HEADER_TIME.
114713         Reported by Volker Borchert.
114715 2000-02-03  Jim Meyering  <meyering@lucent.com>
114717         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
114719 2000-02-03  Jim Meyering  <meyering@lucent.com>
114721         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
114722         rather than with `#if HAVE_UTMPNAME'.
114724 2000-02-02  Jim Meyering  <meyering@lucent.com>
114726         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
114727         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
114728         Reported by Eli Zaretskii.
114730 2000-02-01  Jim Meyering  <meyering@lucent.com>
114732         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
114734 2000-01-31  Jim Meyering  <meyering@lucent.com>
114736         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
114737         functions.  Add the time.h and sys/time.h headers along with the
114738         AC_REQUIRE'ment of AC_HEADER_TIME.
114740 2000-01-31  Jim Meyering  <meyering@lucent.com>
114742         * lib/nanosleep.h (nanosleep): Guard declaration with
114743         `#if ! HAVE_DECL_NANOSLEEP'.
114744         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
114745         the declaration in that vendor's sys/timers.h.
114746         Reported by Christian Krackowizer.
114748         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
114749         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
114750         (ISPRINT): Likewise.
114751         Reported by Tom Tromey.
114753 2000-01-30  Jim Meyering  <meyering@lucent.com>
114755         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
114757         * m4/prereq.m4 (utmp_includes): Define.
114758         Check for ut_user and ut_name members in both struct utmpx
114759         and struct utmp.
114761 2000-01-30  Jim Meyering  <meyering@lucent.com>
114763         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
114764         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
114765         header files where only utmpx.ut_user is declared.
114767         * lib/readutmp.h (UT_USER): Define.
114769 2000-01-29  Jim Meyering  <meyering@lucent.com>
114771         * m4/lib-check.m4: New file containing library-related checks from
114772         fileutils and sh-utils (textutils had none).
114774 2000-01-28  Jim Meyering  <meyering@lucent.com>
114776         * m4/perl.m4: Change format of warning message to look more like that
114777         from the missing script.  Suggestion from François Pinard.
114779 2000-01-25  Jim Meyering  <meyering@lucent.com>
114781         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
114782         well as time.h in the compile check.
114783         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
114784         Fix typo in cross-compiling case: s/yes/no/.
114786 2000-01-23  Jim Meyering  <meyering@lucent.com>
114788         * m4/jm-macros.m4: Move df-related tests here from
114789         fileutils/configure.in
114791         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
114792         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
114794         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
114795         s/space/ac_fsusage_space/.
114796         (jm_FILE_SYSTEM_USAGE): Take two parameters.
114798         * m4/ftruncate.m4: New file (derived from part of
114799         fileutils/configure.in).
114800         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
114801         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
114803         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
114804         AC_SUBST these here, rather than just in sh-util/configure.in, so
114805         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
114806         all the same.
114807         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
114808         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
114809         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
114810         (AC_SUBST(POW_LIBM)): Likewise.
114811         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
114813 2000-01-23  Jim Meyering  <meyering@lucent.com>
114815         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
114816         obstack.c.
114818 2000-01-22  Jim Meyering  <meyering@lucent.com>
114820         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
114822         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
114824         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
114825         configure.in
114826         (AC_CHECK_HEADERS): Likewise for sh-utils.
114827         (AC_CHECK_HEADERS): Likewise for textutils.
114828         Merge the three lists of headers.
114830         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
114831         from fileutils' configure.in.
114833         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
114834         code. Moved tests into their own function (_jm_DECL_HEADERS) in
114835         check-decl.m4.
114837         * m4/check-decl.m4: Use #if rather than #ifdef.
114838         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
114839         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
114840         (_jm_DECL_HEADERS): Define new function.
114841         (jm_CHECK_DECLARATIONS): Require it.
114843 2000-01-22  Jim Meyering  <meyering@lucent.com>
114845         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
114846         [! HAVE_DECL_STRTOULL]: Declare strtoull.
114847         Required for some AIX systems.  Reported by Christian Krackowizer.
114848         [TESTING] (main): New function.
114850         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
114851         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
114852         letters.
114854         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
114855         iswprint.
114857         * lib/strverscmp.c (ISDIGIT): Define.
114858         (strverscmp): Use ISDIGIT, not isdigit.
114860 2000-01-19  Jim Meyering  <meyering@lucent.com>
114862         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
114863         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
114864         defines `struct timespec' in <sys/time.h>
114866         * m4/c-bs-a.m4: Remove uses of changequote altogether.
114867         Thanks to Akim for explaining.
114869 2000-01-17  Paul Eggert  <eggert@twinsun.com>
114871         * lib/nanosleep.c (nanosleep):
114872         Don't use SA_INTERRUPT to decide whether to call sigaction, as
114873         POSIX.1 doesn't require SA_INTERRUPT and some systems
114874         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
114875         it's been part of POSIX.1 since day 1 (in 1988).
114877 2000-01-17  Jim Meyering  <meyering@lucent.com>
114879         * lib/interlock: Remove unused file.  Reported by François Pinard.
114881 2000-01-16  Paul Eggert  <eggert@twinsun.com>
114883         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
114884         alert, backslash, formfeed, and vertical tab unnecessarily in
114885         shell quoting style.
114887 2000-01-16  Jim Meyering  <meyering@lucent.com>
114889         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
114890         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
114891         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
114892         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
114894 2000-01-16  Jim Meyering  <meyering@lucent.com>
114896         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
114897         because the latter didn't work.
114899 2000-01-15  Jim Meyering  <meyering@lucent.com>
114901         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
114902         (AC_REPLACE_FUNCS): Add memcpy and memset.
114903         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
114904         Add strpbrk.
114905         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
114907 2000-01-12  Jim Meyering  <meyering@lucent.com>
114909         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
114910         (jm_PREREQ): Use it.
114911         (jm_PREREQ_READUTMP): New macro.
114912         (jm_PREREQ): Use it.
114914 2000-01-11  Paul Eggert  <eggert@twinsun.com>
114916         Quote multibyte characters correctly.
114917         * m4/c-bs-a.m4: New file.
114918         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
114919         (jm_PREREQ): Use it.
114921 2000-01-11  Paul Eggert  <eggert@twinsun.com>
114923         * m4/uintmax_t.m4: Port to autoconf 2.13.
114925 2000-01-08  Jim Meyering  <meyering@ascend.com>
114927         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
114928         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
114930 2000-01-04  Jim Meyering  <meyering@ascend.com>
114932         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
114933         jm_STRUCT_DIRENT_D_TYPE.
114934         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
114935         jm_STRUCT_DIRENT_D_INO.
114936         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
114937         jm_STRUCT_UTIMBUF.
114938         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
114939         renamings.
114940         * m4/utime.m4: Likewise.
114942         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
114943         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
114945 2000-01-03  Paul Eggert  <eggert@twinsun.com>
114947         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
114948         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
114950 2000-01-02  Jim Meyering  <meyering@ascend.com>
114952         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
114953         remember if this is necessary.
114955 1999-12-26  Jim Meyering  <meyering@ascend.com>
114957         * m4/jm-macros.m4: Use it here.
114958         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
114960 1999-12-23  Jim Meyering  <meyering@ascend.com>
114962         * m4/jm-macros.m4: Check for clock_gettime (moved from
114963         fileutils/configure.in)
114964         Check for gettimeofday.
114966 1999-12-20  Jim Meyering  <meyering@ascend.com>
114968         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
114969         autoconf-2.14a-1999-12-20.
114971 1999-12-19  Jim Meyering  <meyering@ascend.com>
114973         * m4/lstat-slash.m4: New file.
114974         * m4/jm-macros.m4: Use the new macro:
114975         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
114977 1999-12-07  Jim Meyering  <meyering@ascend.com>
114979         * m4/perl.m4: Require that File::Compare be available, too.
114980         Too many systems seem to lack it.
114982         * m4/strftime.m4: Add checks for most of the cpp macros tested in
114983         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
114985 1999-11-18  Paul Eggert  <eggert@twinsun.com>
114987         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
114988         problem with the QNX 4.25 shell, which doesn't propagate exit
114989         status of failed commands inside shell assignments.
114991 1999-11-17  Jim Meyering  <meyering@ascend.com>
114993         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
114995 1999-11-07  Jim Meyering  <meyering@ascend.com>
114997         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
114999 1999-11-06  Jim Meyering  <meyering@ascend.com>
115001         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
115002         * m4/jm-macros.m4 (jm_MACROS): Use it here.
115004 1999-11-05  Jim Meyering  <meyering@ascend.com>
115006         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
115007         configure.in of textutils, fileutils, and sh-utils into this one
115008         (shared between those packages) file.
115009         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
115010         AC_STRUCT_ST_BLKSIZE.
115012 1999-11-03  Jim Meyering  <meyering@ascend.com>
115014         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
115015         of AC_CHECK_TYPE checks includes unistd.h.
115016         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
115017         Suggestion from Akim Demaille.
115019 1999-10-30  Jim Meyering  <meyering@ascend.com>
115021         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
115022         m4-quoted string.
115023         * m4/ls-mntd-fs.m4: Likewise.
115024         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
115025         * m4/jm-winsz1.m4: Likewise.
115027         * m4/const.m4: Remove file, since the fix made it into the experimental
115028         version of autoconf.
115029         * m4/mktime.m4: Likewise.
115031         * m4/check-type.m4: Remove file, now that the latest version of
115032         AC_CHECK_TYPE takes a third arg to specify additional #includes.
115034         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
115035         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
115036         AC_CHECK_TYPE.
115038 1999-10-04  Jim Meyering  <meyering@ascend.com>
115040         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
115042 1999-09-22  Paul Eggert  <eggert@twinsun.com>
115044         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
115045         2.95.1 bug with HP-UX 10.20.
115047 1999-09-17  Jim Meyering  <meyering@ascend.com>
115049         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
115050         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
115051         due to missing strdup (against sh-utils-2.0).
115053 1999-08-29  Jim Meyering  <meyering@ascend.com>
115055         * m4/jm-macros.m4: Require jm_BISON.
115056         * m4/bison.m4: New file.
115058 1999-08-17  Paul Eggert  <eggert@twinsun.com>
115060         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
115061         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
115063 1999-08-05  Jim Meyering  <meyering@ascend.com>
115065         * m4/getline.m4: Rename test file from conftestdata to conftest.data
115066         to avoid conflicts with `conftest' on 8+3 filesystems.
115067         Suggestion from Eli Zaretskii.
115069 1999-08-04  Jim Meyering  <meyering@ascend.com>
115071         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
115072         fileutils and sh-utils (textutils's getline test was inadequate).
115073         (AM_FUNC_GETLINE): Run this test.
115074         (AC_CHECK_FUNCS): Check for getdelim.
115075         Reported by Bob Proulx.
115077 1999-08-02  Jim Meyering  <meyering@ascend.com>
115079         * m4/jm-macros.m4: Add a comment.
115081 1999-08-01  Paul Eggert  <eggert@twinsun.com>
115083         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
115084         <inttypes.h> defines strtoumax as a macro (and not as a
115085         function).
115087 1999-08-01  Paul Eggert  <eggert@twinsun.com>
115089         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
115090         that we can shift, multiply and divide unsigned long long
115091         values; Ultrix cc can't do it.
115093 1999-08-01  Paul Eggert  <eggert@twinsun.com>
115095         * m4/mktime.m4: New file, which is a preview of what should appear
115096         in the next public autoconf release.
115098 1999-08-01  Paul Eggert  <eggert@twinsun.com>
115100         * m4/lfs.m4: Remove this file.
115101         * m4/largefile.m4: New file.  It contains the old contents of
115102         lfs.m4, except that all names with prefix AC_LFS have been
115103         changed to use the prefix AC_SYS_LARGEFILE instead, to be
115104         compatible with future autoconf versions.  Also, some minor m4
115105         quoting problems have been fixed.
115107 1999-08-01  Paul Eggert  <eggert@twinsun.com>
115109         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
115110         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
115111         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
115112         and simplify the shell code.
115114 1999-08-01  Jim Meyering  <meyering@ascend.com>
115116         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
115117         m4.
115119 1999-07-20  Jim Meyering  <meyering@ascend.com>
115121         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
115123 1999-07-15  Jim Meyering  <meyering@ascend.com>
115125         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
115127 1999-05-22  Jim Meyering  <meyering@ascend.com>
115129         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
115131 1999-05-20  Jim Meyering  <meyering@ascend.com>
115133         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
115134         Add a colon after each `then' in case $4 is empty.
115136 1999-05-16  Jim Meyering  <meyering@ascend.com>
115138         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
115140 1999-05-10  Jim Meyering  <meyering@ascend.com>
115142         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
115144         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
115145         AC_FUNC_MKTIME.
115147 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
115149         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
115151 1999-05-04  Paul Eggert  <eggert@twinsun.com>
115153         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
115154         not CPPFLAGS, so that linking works correctly in IRIX.
115156 1999-04-30  Paul Eggert  <eggert@twinsun.com>
115158         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
115160 1999-04-20  Paul Eggert  <eggert@twinsun.com>
115162         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
115163         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
115164         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
115165         jm_AC_TYPE_UNSIGNED_LONG_LONG.
115166         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
115168         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
115170 1999-04-20  Jim Meyering  <meyering@ascend.com>
115172         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
115173         AC_REPLACE xstroull if necessary.  From Paul Eggert.
115174         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
115176 1999-04-18  Jim Meyering  <meyering@ascend.com>
115178         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
115179         * m4/jm-macros.m4: Use it.
115181 1999-04-06  Jim Meyering  <meyering@ascend.com>
115183         * m4/strftime.m4: Remove test for %f.
115185 1999-03-29  Jim Meyering  <meyering@ascend.com>
115187         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
115188         superset of the AC_TYPE_* checks in the textutils, fileutils,
115189         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
115190         AC_TYPE_PID_T.
115192 1999-03-28  Jim Meyering  <meyering@ascend.com>
115194         * m4/jm-macros.m4: Define GNU_PACKAGE here.
115195         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
115196         replaced e.g., in the *.sh files of the sh-utils.
115198 1999-03-20  Jim Meyering  <meyering@ascend.com>
115200         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
115201         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
115202         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
115204 1999-03-19  Jim Meyering  <meyering@ascend.com>
115206         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
115208 1999-03-12  Jim Meyering  <meyering@ascend.com>
115210         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
115212 1999-03-07  Jim Meyering  <meyering@ascend.com>
115214         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
115215         declared.
115217 1999-02-17  Jim Meyering  <meyering@ascend.com>
115219         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
115220         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
115222 1999-02-07  Jim Meyering  <meyering@ascend.com>
115224         * m4/group-member.m4: New file -- extracted from sh-utils'
115225         configure.in.
115227         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
115228         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
115230 1999-02-06  Jim Meyering  <meyering@ascend.com>
115232         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
115233         * m4/fnmatch.m4: Likewise.
115234         * m4/getgroups.m4: Likewise.
115235         * m4/lstat.m4: Likewise.
115236         * m4/malloc.m4: Likewise.
115237         * m4/putenv.m4: Likewise.
115238         * m4/realloc.m4: Likewise.
115239         * m4/regex.m4: Likewise.
115240         * m4/stat.m4: Likewise.
115241         * m4/strftime.m4: Likewise.
115242         Suggestion from Alain Magloire.
115244         * m4/chown.m4: Use `.$ac_objext', not `.o'.
115245         * m4/fnmatch.m4: Likewise.
115246         * m4/getgroups.m4: Likewise.
115247         * m4/getline.m4: Likewise.
115248         * m4/lstat.m4: Likewise.
115249         * m4/malloc.m4: Likewise.
115250         * m4/memcmp.m4: Likewise.
115251         * m4/putenv.m4: Likewise.
115252         * m4/realloc.m4: Likewise.
115253         * m4/regex.m4: Likewise.
115254         * m4/stat.m4: Likewise.
115255         * m4/strftime.m4: Likewise.
115256         Suggestion from Alain Magloire.
115258         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
115259         an argument.
115261         * m4/regex.m4: Add a run-time Test for proper operation of
115262         re_compile_pattern.
115264 1999-01-31  Jim Meyering  <meyering@ascend.com>
115266         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
115268 1999-01-30  Jim Meyering  <meyering@ascend.com>
115270         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
115272         * m4/jm-mktime.m4: Make this a wrapper around the official
115273         AM_FUNC_MKTIME rather than my private copy, now that the official one
115274         is up to date.
115275         * m4/mktime.m4: Remove file.
115277         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
115278         * m4/uptime.m4: Likewise.
115279         * m4/uintmax_t.m4: Likewise.
115281 1999-01-28  Jim Meyering  <meyering@ascend.com>
115283         * m4/jm-macros.m4: Use jm_AFS.
115284         * m4/afs.m4: New file (from fileutils' configure.in).
115286         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
115287         * m4/chown.m4: Likewise.
115288         * m4/d-ino.m4: Likewise.
115289         * m4/d-type.m4: Likewise.
115290         * m4/fnmatch.m4: Likewise.
115291         * m4/getgroups.m4: Likewise.
115292         * m4/gettext.m4: Likewise.
115293         * m4/jm-mktime.m4: Likewise.
115294         * m4/jm-winsz2.m4: Likewise.
115295         * m4/lcmessage.m4: Likewise.
115296         * m4/ls-mntd-fs.m4: Likewise.
115297         * m4/malloc.m4: Likewise.
115298         * m4/memcmp.m4: Likewise.
115299         * m4/putenv.m4: Likewise.
115300         * m4/realloc.m4: Likewise.
115301         * m4/st_mtim.m4: Likewise.
115302         * m4/strftime.m4: Likewise.
115304 1999-01-16  Jim Meyering  <meyering@ascend.com>
115306         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
115307         (ARGMATCH_DIE_DECL): Define.
115309 1999-01-12  Jim Meyering  <meyering@ascend.com>
115311         * m4/Makefile.am.in: Rewrite to avoid using fmt.
115312         Reported by Lars Hecking.
115314 1999-01-10  Jim Meyering  <meyering@ascend.com>
115316         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
115317         gross kludge.
115318         * m4/inttypes_h.m4: Likewise.
115319         * m4/lstat.m4: Likewise.
115320         * m4/malloc.m4: Likewise.
115321         * m4/readdir.m4: Likewise.
115322         * m4/realloc.m4: Likewise.
115323         * m4/st_dm_mode.m4: Likewise.
115324         * m4/stat.m4: Likewise.
115325         * m4/utimbuf.m4: Likewise.
115326         * m4/utimes.m4: Likewise.
115328         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
115329         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
115330         comments in config.h.in are meaningful.
115332         * m4/jm-macros.m4: Require autoconf-2.13 here.
115334         * m4/regex.m4: By default, don't use the included regex.c on systems
115335         with glibc 2.  Suggestion from Uli Drepper.
115337 1999-01-02  Jim Meyering  <meyering@ascend.com>
115339         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
115341 1998-12-18  Jim Meyering  <meyering@ascend.com>
115343         * m4/Makefile.am.in (Makefile.am): Simplify rule.
115344         Based on a suggestion from Lars Hecking.
115346 1998-11-16  Paul Eggert  <eggert@twinsun.com>
115348         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
115350 1998-11-16  Jim Meyering  <meyering@ascend.com>
115352         * m4/lfs.m4: Double-quote the `uname...` expression.
115354 1998-11-14  Jim Meyering  <meyering@ascend.com>
115356         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
115357         * m4/stat.m4: Likewise.
115359 1998-11-03  Jim Meyering  <meyering@ascend.com>
115361         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
115362         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
115364 1998-10-18  Jim Meyering  <meyering@ascend.com>
115366         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
115368 1998-10-17  Jim Meyering  <meyering@ascend.com>
115370         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
115371         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
115372         calls for those previously hard-coded headers.  Instead, take a new
115373         parameter.
115374         (jm_CHECK_DECLARATIONS): Reflect interface change.
115375         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
115376         (jm_CHECK_DECL_LOCALTIME_R): New macro.
115378         * m4/mktime.m4: Test for spring-forward gap before long-running test.
115380 1998-10-14  Jim Meyering  <meyering@ascend.com>
115382         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
115383         instead of "TZ=America/Vancouver".  From Paul Eggert.
115385 1998-10-11  Jim Meyering  <meyering@ascend.com>
115387         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
115388         This adds a test for a recently added compatibility fix for mktime.c.
115389         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
115391 1998-09-27  Jim Meyering  <meyering@ascend.com>
115393         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
115395         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
115396         ../configure.in, including a change from Gordon Matzigkeit to allow
115397         cross-compiling for the Hurd.
115399         * m4/glibc.m4: New file/macro to test for the GNU C Library
115400         versions 1 and 2.  From Gordon Matzigkeit.
115401         Indent.
115403 1998-09-21  Jim Meyering  <meyering@ascend.com>
115405         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
115407 1998-08-18  Paul Eggert  <eggert@twinsun.com>
115409         Port nanosecond-resolution times to UnixWare 2.1.2 and
115410         pedantic Solaris 2.6.
115412         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
115413         AC_STRUCT_ST_MTIM.
115414         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
115415         Generate name of ns member, instead of just 1 or undef.
115416         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
115418 1998-08-15  Jim Meyering  <meyering@ascend.com>
115420         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
115421         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
115422         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
115423         instead of jm_TYPE_SSIZE_T.
115425 1998-08-12  Jim Meyering  <meyering@ascend.com>
115427         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
115429 1998-08-02  Jim Meyering  <meyering@ascend.com>
115431         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
115432         in acconfig.h manually.
115434 1998-07-31  Paul Eggert  <eggert@twinsun.com>
115436         * m4/st_mtim.m4: New file.
115438 1998-07-28  Jim Meyering  <meyering@ascend.com>
115440         * m4/utimes.m4: Undef stat.
115442 1998-07-25  Jim Meyering  <meyering@ascend.com>
115444         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
115445         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
115447 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
115449         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
115450         uid and gid actually remain unchanged.
115452 1998-07-07  Jim Meyering  <meyering@ascend.com>
115454         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
115456 1998-07-04  Jim Meyering  <meyering@ascend.com>
115458         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
115459         to prove that this macro can be used in packages without regex.c.
115461 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
115463         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
115464         is to be used.
115466 1998-07-03  Jim Meyering  <meyering@ascend.com>
115468         * m4/gettext.m4: Add -lintl if it's found to be necessary.
115470         * m4/gettext.m4: New file -- from gettext-0.10.35.
115471         * m4/lcmessage.m4: Likewise.
115472         * m4/progtest.m4: Likewise.
115474         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
115475         * m4/jm-macros.m4: Require the new macro.
115477 1998-06-29  Jim Meyering  <meyering@ascend.com>
115479         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
115480         for the definition of NGROUPS (used in a system header included
115481         by sys/mount.h).
115483 1998-06-28  Jim Meyering  <meyering@ascend.com>
115485         * m4/ls-mntd-fs.m4: New file.
115486         * m4/fstypename.m4: New file.
115488         * m4/jm-macros.m4: Require the new macro.
115489         * m4/jm-glibc-io.m4: New file.
115491 1998-05-19  Jim Meyering  <meyering@ascend.com>
115493         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
115494         * m4/lchown.m4: New file.
115496         * m4/Makefile.am.in: New file.
115497         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
115499 1998-05-14  Jim Meyering  <meyering@ascend.com>
115501         * m4/Makefile.am (EXTRA_DIST): Add them.
115502         * m4/jm-macros.m4: New file.
115503         * m4/utimbuf.m4: New file.
115505 1998-05-12  Jim Meyering  <meyering@ascend.com>
115507         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
115509 1998-05-11  Jim Meyering  <meyering@ascend.com>
115511         * m4/isc-posix.m4: New file.
115513 1998-05-10  Jim Meyering  <meyering@ascend.com>
115515         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
115517 1998-05-09  Jim Meyering  <meyering@ascend.com>
115519         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
115520         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
115521         with automake.
115523         * m4/ssize_t.m4: New file.
115524         * m4/mktime.m4: Remove file -- the new automake has this now.
115526 1998-04-26  Jim Meyering  <meyering@ascend.com>
115528         * m4/assert.m4: New file.
115529         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
115531 1998-04-05  Jim Meyering  <meyering@ascend.com>
115533         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
115534         (jm_PREREQ): Use it here.
115536 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
115538         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
115539         in acconfig.h.
115541 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
115543         * m4/prereq.m4: New file.
115544         * m4/error.m4: New file.
115545         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
115547 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
115549         * m4/getline.m4: Don't set am_cv_func_working_getline before the
115550         cache-check for the same variable -- that defeated the purpose of
115551         the test; the test program was never run.  This was a problem only
115552         on systems with losing getline functions -- HP-UX 10.20 is one.
115553         Reported by Bjorn Helgaas.
115555 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
115557         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
115559 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
115561         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
115563         * m4/const.m4: New file.  Use an initializer in this declaration
115564         typedef int charset[2]; const charset x;
115565         Reported by Bob Glickstein.
115567 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
115569         * m4/chown.m4: Fix reversed types on -1 args to chown.
115570         From Kaveh Ghazi.
115572 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
115574         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
115575         Add lseek and memchr.
115577         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
115578         T.E.Dickey <dickey@clark.net> said that some older preprocessors
115579         have a 20-character limit on names.
115581 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
115583         * m4/inttypes_h.m4: New file.
115584         * m4/uintmax_t.m4: New file.
115585         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
115588         -----
115590         Local Variables:
115591         coding: utf-8
115592         End:
115594         Copyright (C) 1997-2018 Free Software Foundation, Inc.
115596         Copying and distribution of this file, with or without
115597         modification, are permitted provided the copyright notice
115598         and this notice are preserved.